blob: fedb590470029b11e91c6409ae5670da5b2a1534 [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
cristy73bd4a52010-10-05 11:24:23 +0000930PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000931PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000932LN_S
cristy3ed852e2009-09-05 21:47:34 +0000933LD
cristy73bd4a52010-10-05 11:24:23 +0000934FGREP
935SED
936am__fastdepCXX_FALSE
937am__fastdepCXX_TRUE
938CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000939ac_ct_CXX
940CXXFLAGS
941CXX
cristya0b81c32010-01-22 02:54:33 +0000942EGREP
943GREP
944CPP
cristy73bd4a52010-10-05 11:24:23 +0000945am__fastdepCC_FALSE
946am__fastdepCC_TRUE
947CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000948am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000949AMDEPBACKSLASH
950AMDEP_FALSE
951AMDEP_TRUE
952am__quote
953am__include
954DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000955OBJEXT
956EXEEXT
957ac_ct_CC
958CPPFLAGS
959LDFLAGS
960CFLAGS
961CC
962DIRSEP
963MAGICK_FILTER_MODULE_PATH
964MAGICK_CONFIGURE_BUILD_PATH
965MAGICK_CONFIGURE_SRC_PATH
966MAGICK_CODER_MODULE_PATH
967MAN_DIR
968INFO_DIR
969PERSISTINCLUDE_DIR
970INCLUDE_DIR
971LIB_DIR
972LOCALSTATE_DIR
973SHAREDSTATE_DIR
974SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000975DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000976DATA_DIR
977LIBEXEC_DIR
978SBIN_DIR
979BIN_DIR
980EXEC_PREFIX_DIR
981PREFIX_DIR
982CONFIG_STATUS_DEPENDENCIES
983MAGICK_LIB_VERSION_NUMBER
984MAGICK_LIB_VERSION_TEXT
985MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000986AM_BACKSLASH
987AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000988AM_DEFAULT_V
989AM_V
cristy73bd4a52010-10-05 11:24:23 +0000990am__untar
991am__tar
992AMTAR
993am__leading_dot
994SET_MAKE
995AWK
996mkdir_p
997MKDIR_P
998INSTALL_STRIP_PROGRAM
999STRIP
1000install_sh
1001MAKEINFO
1002AUTOHEADER
1003AUTOMAKE
1004AUTOCONF
1005ACLOCAL
1006VERSION
1007PACKAGE
1008CYGPATH_W
1009am__isrc
1010INSTALL_DATA
1011INSTALL_SCRIPT
1012INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001013PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001014PACKAGE_RELEASE_DATE
1015PACKAGE_LIB_VERSION_NUMBER
1016PACKAGE_LIB_VERSION
1017PACKAGE_CHANGE_DATE
1018PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001019PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001020MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001021MAGICK_LIBRARY_VERSION_INFO
1022MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001023MAGICK_LIBRARY_AGE
1024MAGICK_LIBRARY_REVISION
1025MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001026MAGICK_TARGET_OS
1027MAGICK_TARGET_VENDOR
1028MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001029target_os
1030target_vendor
1031target_cpu
1032target
1033host_os
1034host_vendor
1035host_cpu
1036host
1037build_os
1038build_vendor
1039build_cpu
1040build
1041CONFIGURE_ARGS
1042DISTCHECK_CONFIG_FLAGS
1043target_alias
1044host_alias
1045build_alias
1046LIBS
1047ECHO_T
1048ECHO_N
1049ECHO_C
1050DEFS
1051mandir
1052localedir
1053libdir
1054psdir
1055pdfdir
1056dvidir
1057htmldir
1058infodir
1059docdir
1060oldincludedir
1061includedir
1062localstatedir
1063sharedstatedir
1064sysconfdir
1065datadir
1066datarootdir
1067libexecdir
1068sbindir
1069bindir
1070program_transform_name
1071prefix
1072exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001073PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001074PACKAGE_BUGREPORT
1075PACKAGE_STRING
1076PACKAGE_VERSION
1077PACKAGE_TARNAME
1078PACKAGE_NAME
1079PATH_SEPARATOR
1080SHELL'
1081ac_subst_files=''
1082ac_user_opts='
1083enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001084enable_silent_rules
1085enable_dependency_tracking
1086with_gnu_ld
1087with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001088with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001089enable_bounds_checking
1090enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001091with_includearch_dir
1092with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001093with_threads
1094enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001095enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001096enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001097enable_shared
1098enable_static
1099with_pic
1100enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001101with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001102enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001103with_modules
1104enable_delegate_build
1105enable_deprecated
1106enable_installed
1107enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001108enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001109enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001110enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001111enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001112enable_ccmalloc
1113enable_efence
1114enable_prof
1115enable_gprof
1116enable_gcov
1117with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001118enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001119with_quantum_depth
1120with_cache
1121with_frozenpaths
1122with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001123with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001124with_perl
1125with_perl_options
1126with_umem
1127with_libstdc
1128with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001129with_x
cristy3ed852e2009-09-05 21:47:34 +00001130with_zlib
1131with_autotrace
1132with_dps
1133with_djvu
cristy430a7312010-01-21 20:44:04 +00001134with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001135with_fftw
1136with_fpx
1137with_fontconfig
1138with_freetype
1139with_gslib
1140with_fontpath
1141with_gs_font_dir
1142with_gvc
1143with_jbig
1144with_jpeg
1145with_jp2
1146with_lcms
cristy71203402010-06-18 13:12:03 +00001147with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001148with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001149with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001150with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001151with_pango
cristy3ed852e2009-09-05 21:47:34 +00001152with_png
1153with_rsvg
1154with_tiff
cristyb1860752011-03-14 00:27:46 +00001155with_webp
cristy3ed852e2009-09-05 21:47:34 +00001156with_windows_font_dir
1157with_wmf
1158with_xml
1159'
1160 ac_precious_vars='build_alias
1161host_alias
1162target_alias
1163CC
1164CFLAGS
1165LDFLAGS
1166LIBS
1167CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001168CPP
cristy3ed852e2009-09-05 21:47:34 +00001169CXX
1170CXXFLAGS
1171CCC
cristy73bd4a52010-10-05 11:24:23 +00001172PKG_CONFIG
1173CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001174XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001175AUTOTRACE_CFLAGS
1176AUTOTRACE_LIBS
1177FONTCONFIG_CFLAGS
1178FONTCONFIG_LIBS
1179GVC_CFLAGS
1180GVC_LIBS
1181LQR_CFLAGS
1182LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001183LZMA_CFLAGS
1184LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001185OPENEXR_CFLAGS
1186OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001187PANGO_CFLAGS
1188PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001189RSVG_CFLAGS
1190RSVG_LIBS
1191CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001192CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001193
1194
1195# Initialize some variables set by options.
1196ac_init_help=
1197ac_init_version=false
1198ac_unrecognized_opts=
1199ac_unrecognized_sep=
1200# The variables have the same names as the options, with
1201# dashes changed to underlines.
1202cache_file=/dev/null
1203exec_prefix=NONE
1204no_create=
1205no_recursion=
1206prefix=NONE
1207program_prefix=NONE
1208program_suffix=NONE
1209program_transform_name=s,x,x,
1210silent=
1211site=
1212srcdir=
1213verbose=
1214x_includes=NONE
1215x_libraries=NONE
1216
1217# Installation directory options.
1218# These are left unexpanded so users can "make install exec_prefix=/foo"
1219# and all the variables that are supposed to be based on exec_prefix
1220# by default will actually change.
1221# Use braces instead of parens because sh, perl, etc. also accept them.
1222# (The list follows the same order as the GNU Coding Standards.)
1223bindir='${exec_prefix}/bin'
1224sbindir='${exec_prefix}/sbin'
1225libexecdir='${exec_prefix}/libexec'
1226datarootdir='${prefix}/share'
1227datadir='${datarootdir}'
1228sysconfdir='${prefix}/etc'
1229sharedstatedir='${prefix}/com'
1230localstatedir='${prefix}/var'
1231includedir='${prefix}/include'
1232oldincludedir='/usr/include'
1233docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1234infodir='${datarootdir}/info'
1235htmldir='${docdir}'
1236dvidir='${docdir}'
1237pdfdir='${docdir}'
1238psdir='${docdir}'
1239libdir='${exec_prefix}/lib'
1240localedir='${datarootdir}/locale'
1241mandir='${datarootdir}/man'
1242
1243ac_prev=
1244ac_dashdash=
1245for ac_option
1246do
1247 # If the previous option needs an argument, assign it.
1248 if test -n "$ac_prev"; then
1249 eval $ac_prev=\$ac_option
1250 ac_prev=
1251 continue
1252 fi
1253
1254 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001255 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1256 *=) ac_optarg= ;;
1257 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001258 esac
1259
1260 # Accept the important Cygnus configure options, so we can diagnose typos.
1261
1262 case $ac_dashdash$ac_option in
1263 --)
1264 ac_dashdash=yes ;;
1265
1266 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1267 ac_prev=bindir ;;
1268 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1269 bindir=$ac_optarg ;;
1270
1271 -build | --build | --buil | --bui | --bu)
1272 ac_prev=build_alias ;;
1273 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1274 build_alias=$ac_optarg ;;
1275
1276 -cache-file | --cache-file | --cache-fil | --cache-fi \
1277 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1278 ac_prev=cache_file ;;
1279 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1280 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1281 cache_file=$ac_optarg ;;
1282
1283 --config-cache | -C)
1284 cache_file=config.cache ;;
1285
1286 -datadir | --datadir | --datadi | --datad)
1287 ac_prev=datadir ;;
1288 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1289 datadir=$ac_optarg ;;
1290
1291 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1292 | --dataroo | --dataro | --datar)
1293 ac_prev=datarootdir ;;
1294 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1295 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1296 datarootdir=$ac_optarg ;;
1297
1298 -disable-* | --disable-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001302 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1306 *"
1307"enable_$ac_useropt"
1308"*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval enable_$ac_useropt=no ;;
1313
1314 -docdir | --docdir | --docdi | --doc | --do)
1315 ac_prev=docdir ;;
1316 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1317 docdir=$ac_optarg ;;
1318
1319 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1320 ac_prev=dvidir ;;
1321 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1322 dvidir=$ac_optarg ;;
1323
1324 -enable-* | --enable-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001328 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333"enable_$ac_useropt"
1334"*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval enable_$ac_useropt=\$ac_optarg ;;
1339
1340 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1341 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1342 | --exec | --exe | --ex)
1343 ac_prev=exec_prefix ;;
1344 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1345 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1346 | --exec=* | --exe=* | --ex=*)
1347 exec_prefix=$ac_optarg ;;
1348
1349 -gas | --gas | --ga | --g)
1350 # Obsolete; use --with-gas.
1351 with_gas=yes ;;
1352
1353 -help | --help | --hel | --he | -h)
1354 ac_init_help=long ;;
1355 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1356 ac_init_help=recursive ;;
1357 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1358 ac_init_help=short ;;
1359
1360 -host | --host | --hos | --ho)
1361 ac_prev=host_alias ;;
1362 -host=* | --host=* | --hos=* | --ho=*)
1363 host_alias=$ac_optarg ;;
1364
1365 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1366 ac_prev=htmldir ;;
1367 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1368 | --ht=*)
1369 htmldir=$ac_optarg ;;
1370
1371 -includedir | --includedir | --includedi | --included | --include \
1372 | --includ | --inclu | --incl | --inc)
1373 ac_prev=includedir ;;
1374 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1375 | --includ=* | --inclu=* | --incl=* | --inc=*)
1376 includedir=$ac_optarg ;;
1377
1378 -infodir | --infodir | --infodi | --infod | --info | --inf)
1379 ac_prev=infodir ;;
1380 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1381 infodir=$ac_optarg ;;
1382
1383 -libdir | --libdir | --libdi | --libd)
1384 ac_prev=libdir ;;
1385 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1386 libdir=$ac_optarg ;;
1387
1388 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1389 | --libexe | --libex | --libe)
1390 ac_prev=libexecdir ;;
1391 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1392 | --libexe=* | --libex=* | --libe=*)
1393 libexecdir=$ac_optarg ;;
1394
1395 -localedir | --localedir | --localedi | --localed | --locale)
1396 ac_prev=localedir ;;
1397 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1398 localedir=$ac_optarg ;;
1399
1400 -localstatedir | --localstatedir | --localstatedi | --localstated \
1401 | --localstate | --localstat | --localsta | --localst | --locals)
1402 ac_prev=localstatedir ;;
1403 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1404 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1405 localstatedir=$ac_optarg ;;
1406
1407 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1408 ac_prev=mandir ;;
1409 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1410 mandir=$ac_optarg ;;
1411
1412 -nfp | --nfp | --nf)
1413 # Obsolete; use --without-fp.
1414 with_fp=no ;;
1415
1416 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1417 | --no-cr | --no-c | -n)
1418 no_create=yes ;;
1419
1420 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1421 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1422 no_recursion=yes ;;
1423
1424 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1425 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1426 | --oldin | --oldi | --old | --ol | --o)
1427 ac_prev=oldincludedir ;;
1428 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1429 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1430 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1431 oldincludedir=$ac_optarg ;;
1432
1433 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1434 ac_prev=prefix ;;
1435 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1436 prefix=$ac_optarg ;;
1437
1438 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1439 | --program-pre | --program-pr | --program-p)
1440 ac_prev=program_prefix ;;
1441 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1442 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1443 program_prefix=$ac_optarg ;;
1444
1445 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1446 | --program-suf | --program-su | --program-s)
1447 ac_prev=program_suffix ;;
1448 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1449 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1450 program_suffix=$ac_optarg ;;
1451
1452 -program-transform-name | --program-transform-name \
1453 | --program-transform-nam | --program-transform-na \
1454 | --program-transform-n | --program-transform- \
1455 | --program-transform | --program-transfor \
1456 | --program-transfo | --program-transf \
1457 | --program-trans | --program-tran \
1458 | --progr-tra | --program-tr | --program-t)
1459 ac_prev=program_transform_name ;;
1460 -program-transform-name=* | --program-transform-name=* \
1461 | --program-transform-nam=* | --program-transform-na=* \
1462 | --program-transform-n=* | --program-transform-=* \
1463 | --program-transform=* | --program-transfor=* \
1464 | --program-transfo=* | --program-transf=* \
1465 | --program-trans=* | --program-tran=* \
1466 | --progr-tra=* | --program-tr=* | --program-t=*)
1467 program_transform_name=$ac_optarg ;;
1468
1469 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1470 ac_prev=pdfdir ;;
1471 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1472 pdfdir=$ac_optarg ;;
1473
1474 -psdir | --psdir | --psdi | --psd | --ps)
1475 ac_prev=psdir ;;
1476 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1477 psdir=$ac_optarg ;;
1478
1479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1480 | -silent | --silent | --silen | --sile | --sil)
1481 silent=yes ;;
1482
1483 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1484 ac_prev=sbindir ;;
1485 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1486 | --sbi=* | --sb=*)
1487 sbindir=$ac_optarg ;;
1488
1489 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1490 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1491 | --sharedst | --shareds | --shared | --share | --shar \
1492 | --sha | --sh)
1493 ac_prev=sharedstatedir ;;
1494 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1495 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1496 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1497 | --sha=* | --sh=*)
1498 sharedstatedir=$ac_optarg ;;
1499
1500 -site | --site | --sit)
1501 ac_prev=site ;;
1502 -site=* | --site=* | --sit=*)
1503 site=$ac_optarg ;;
1504
1505 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1506 ac_prev=srcdir ;;
1507 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1508 srcdir=$ac_optarg ;;
1509
1510 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1511 | --syscon | --sysco | --sysc | --sys | --sy)
1512 ac_prev=sysconfdir ;;
1513 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1514 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1515 sysconfdir=$ac_optarg ;;
1516
1517 -target | --target | --targe | --targ | --tar | --ta | --t)
1518 ac_prev=target_alias ;;
1519 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1520 target_alias=$ac_optarg ;;
1521
1522 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1523 verbose=yes ;;
1524
1525 -version | --version | --versio | --versi | --vers | -V)
1526 ac_init_version=: ;;
1527
1528 -with-* | --with-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001532 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537"with_$ac_useropt"
1538"*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval with_$ac_useropt=\$ac_optarg ;;
1543
1544 -without-* | --without-*)
1545 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1546 # Reject names that are not valid shell variable names.
1547 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001548 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001549 ac_useropt_orig=$ac_useropt
1550 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1551 case $ac_user_opts in
1552 *"
1553"with_$ac_useropt"
1554"*) ;;
1555 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1556 ac_unrecognized_sep=', ';;
1557 esac
1558 eval with_$ac_useropt=no ;;
1559
1560 --x)
1561 # Obsolete; use --with-x.
1562 with_x=yes ;;
1563
1564 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1565 | --x-incl | --x-inc | --x-in | --x-i)
1566 ac_prev=x_includes ;;
1567 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1568 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1569 x_includes=$ac_optarg ;;
1570
1571 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1572 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1573 ac_prev=x_libraries ;;
1574 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1575 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1576 x_libraries=$ac_optarg ;;
1577
cristy98dddb52010-11-04 00:30:15 +00001578 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1579Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001580 ;;
1581
1582 *=*)
1583 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1584 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001585 case $ac_envvar in #(
1586 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001587 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001588 esac
cristy3ed852e2009-09-05 21:47:34 +00001589 eval $ac_envvar=\$ac_optarg
1590 export $ac_envvar ;;
1591
1592 *)
1593 # FIXME: should be removed in autoconf 3.0.
1594 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1595 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1596 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001597 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001598 ;;
1599
1600 esac
1601done
1602
1603if test -n "$ac_prev"; then
1604 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001605 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001606fi
1607
1608if test -n "$ac_unrecognized_opts"; then
1609 case $enable_option_checking in
1610 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001611 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001612 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1613 esac
1614fi
1615
1616# Check all directory arguments for consistency.
1617for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1618 datadir sysconfdir sharedstatedir localstatedir includedir \
1619 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1620 libdir localedir mandir
1621do
1622 eval ac_val=\$$ac_var
1623 # Remove trailing slashes.
1624 case $ac_val in
1625 */ )
1626 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1627 eval $ac_var=\$ac_val;;
1628 esac
1629 # Be sure to have absolute directory names.
1630 case $ac_val in
1631 [\\/$]* | ?:[\\/]* ) continue;;
1632 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1633 esac
cristy98dddb52010-11-04 00:30:15 +00001634 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001635done
1636
1637# There might be people who depend on the old broken behavior: `$host'
1638# used to hold the argument of --host etc.
1639# FIXME: To remove some day.
1640build=$build_alias
1641host=$host_alias
1642target=$target_alias
1643
1644# FIXME: To remove some day.
1645if test "x$host_alias" != x; then
1646 if test "x$build_alias" = x; then
1647 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001648 elif test "x$build_alias" != "x$host_alias"; then
1649 cross_compiling=yes
1650 fi
1651fi
1652
1653ac_tool_prefix=
1654test -n "$host_alias" && ac_tool_prefix=$host_alias-
1655
1656test "$silent" = yes && exec 6>/dev/null
1657
1658
1659ac_pwd=`pwd` && test -n "$ac_pwd" &&
1660ac_ls_di=`ls -di .` &&
1661ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001663test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001664 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001665
1666
1667# Find the source files, if location was not specified.
1668if test -z "$srcdir"; then
1669 ac_srcdir_defaulted=yes
1670 # Try the directory containing this script, then the parent directory.
1671 ac_confdir=`$as_dirname -- "$as_myself" ||
1672$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1673 X"$as_myself" : 'X\(//\)[^/]' \| \
1674 X"$as_myself" : 'X\(//\)$' \| \
1675 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1676$as_echo X"$as_myself" |
1677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1678 s//\1/
1679 q
1680 }
1681 /^X\(\/\/\)[^/].*/{
1682 s//\1/
1683 q
1684 }
1685 /^X\(\/\/\)$/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\).*/{
1690 s//\1/
1691 q
1692 }
1693 s/.*/./; q'`
1694 srcdir=$ac_confdir
1695 if test ! -r "$srcdir/$ac_unique_file"; then
1696 srcdir=..
1697 fi
1698else
1699 ac_srcdir_defaulted=no
1700fi
1701if test ! -r "$srcdir/$ac_unique_file"; then
1702 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001703 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001704fi
1705ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1706ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001707 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001708 pwd)`
1709# When building in place, set srcdir=.
1710if test "$ac_abs_confdir" = "$ac_pwd"; then
1711 srcdir=.
1712fi
1713# Remove unnecessary trailing slashes from srcdir.
1714# Double slashes in file names in object file debugging info
1715# mess up M-x gdb in Emacs.
1716case $srcdir in
1717*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1718esac
1719for ac_var in $ac_precious_vars; do
1720 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1721 eval ac_env_${ac_var}_value=\$${ac_var}
1722 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1723 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1724done
1725
1726#
1727# Report the --help message.
1728#
1729if test "$ac_init_help" = "long"; then
1730 # Omit some internal or obsolete options to make the list less imposing.
1731 # This message is too long to be a string in the A/UX 3.1 sh.
1732 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001733\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001734
1735Usage: $0 [OPTION]... [VAR=VALUE]...
1736
1737To assign environment variables (e.g., CC, CFLAGS...), specify them as
1738VAR=VALUE. See below for descriptions of some of the useful variables.
1739
1740Defaults for the options are specified in brackets.
1741
1742Configuration:
1743 -h, --help display this help and exit
1744 --help=short display options specific to this package
1745 --help=recursive display the short help of all the included packages
1746 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001747 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001748 --cache-file=FILE cache test results in FILE [disabled]
1749 -C, --config-cache alias for \`--cache-file=config.cache'
1750 -n, --no-create do not create output files
1751 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1752
1753Installation directories:
1754 --prefix=PREFIX install architecture-independent files in PREFIX
1755 [$ac_default_prefix]
1756 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1757 [PREFIX]
1758
1759By default, \`make install' will install all the files in
1760\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1761an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1762for instance \`--prefix=\$HOME'.
1763
1764For better control, use the options below.
1765
1766Fine tuning of the installation directories:
1767 --bindir=DIR user executables [EPREFIX/bin]
1768 --sbindir=DIR system admin executables [EPREFIX/sbin]
1769 --libexecdir=DIR program executables [EPREFIX/libexec]
1770 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1771 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1772 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1773 --libdir=DIR object code libraries [EPREFIX/lib]
1774 --includedir=DIR C header files [PREFIX/include]
1775 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1776 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1777 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1778 --infodir=DIR info documentation [DATAROOTDIR/info]
1779 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1780 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001781 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001782 --htmldir=DIR html documentation [DOCDIR]
1783 --dvidir=DIR dvi documentation [DOCDIR]
1784 --pdfdir=DIR pdf documentation [DOCDIR]
1785 --psdir=DIR ps documentation [DOCDIR]
1786_ACEOF
1787
1788 cat <<\_ACEOF
1789
cristy73bd4a52010-10-05 11:24:23 +00001790Program names:
1791 --program-prefix=PREFIX prepend PREFIX to installed program names
1792 --program-suffix=SUFFIX append SUFFIX to installed program names
1793 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1794
cristy3ed852e2009-09-05 21:47:34 +00001795X features:
1796 --x-includes=DIR X include files are in DIR
1797 --x-libraries=DIR X library files are in DIR
1798
1799System types:
1800 --build=BUILD configure for building on BUILD [guessed]
1801 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1802 --target=TARGET configure for building compilers for TARGET [HOST]
1803_ACEOF
1804fi
1805
1806if test -n "$ac_init_help"; then
1807 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001808 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001809 esac
1810 cat <<\_ACEOF
1811
1812Optional Features:
1813 --disable-option-checking ignore unrecognized --enable/--with options
1814 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1815 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001816 --enable-silent-rules less verbose build output (undo: "make V=1")
1817 --disable-silent-rules verbose build output (undo: "make V=0")
1818 --enable-dependency-tracking
1819 do not reject slow dependency extractors
1820 --disable-dependency-tracking
1821 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001822 --enable-bounds-checking
1823 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001824 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001825 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001826 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001827 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-shared[=PKGS] build shared libraries [default=yes]
1830 --enable-static[=PKGS] build static libraries [default=yes]
1831 --enable-fast-install[=PKGS]
1832 optimize for fast installation [default=yes]
1833 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001834 --enable-delegate-build look for delegate libraries in build directory
1835 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001836 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001837 --disable-installed Formally install ImageMagick under PREFIX
1838 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001839 --enable-zero-configuration
1840 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001841 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001842 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001843 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001844 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001845 --enable-maintainer-mode
1846 enable make rules and dependencies not useful (and
1847 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001848 --enable-ccmalloc enable 'ccmalloc' memory debug support
1849 --enable-efence enable 'efence' memory debug support
1850 --enable-prof enable 'prof' profiling support
1851 --enable-gprof enable 'gprof' profiling support
1852 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001853 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001854 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001855
1856Optional Packages:
1857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001859 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001860 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001861 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1862 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001863 --includearch-dir=DIR ARCH specific include directory
1864 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001865 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001866 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001867 both]
cristyda16f162011-02-19 23:52:17 +00001868 --with-sysroot=DIR Search for dependent libraries within DIR
1869 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001870 --with-modules enable building dynamically loadable modules
1871 --with-method-prefix=PREFIX
1872 prefix MagickCore API methods
1873 --with-quantum-depth=DEPTH
1874 number of bits in a pixel quantum (default 16)
1875 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1876 memory)
1877 --with-frozenpaths freeze delegate paths
1878 --without-magick-plus-plus
1879 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001880 --with-package-release-name=NAME
1881 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001882 --with-perl enable build/install of PerlMagick
1883 --with-perl-options=OPTIONS
1884 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001885 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001886 --with-umem enable umem memory allocation library support
1887 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1888 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001889 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-zlib disable ZLIB support
1891 --with-autotrace enable autotrace support
1892 --without-dps disable Display Postscript support
1893 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001894 --with-dejavu-font-dir=DIR
1895 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-fftw disable FFTW support
1897 --without-fpx disable FlashPIX support
1898 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001899 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001900 --without-gslib enable Ghostscript library support
1901 --with-fontpath=DIR prepend to default font search path
1902 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001903 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001904 --without-jbig disable JBIG support
1905 --without-jpeg disable JPEG support
1906 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001907 --without-lcms disable lcms (v1.1X) support
1908 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001909 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001910 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001911 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001912 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001914 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001916 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-windows-font-dir=DIR
1918 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001919 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-xml disable XML support
1921
1922Some influential environment variables:
1923 CC C compiler command
1924 CFLAGS C compiler flags
1925 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1926 nonstandard directory <lib dir>
1927 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001928 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001929 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001930 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001931 CXX C++ compiler command
1932 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001933 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001934 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001935 XMKMF Path to xmkmf, Makefile generator for X Window System
1936 AUTOTRACE_CFLAGS
1937 C compiler flags for AUTOTRACE, overriding pkg-config
1938 AUTOTRACE_LIBS
1939 linker flags for AUTOTRACE, overriding pkg-config
1940 FONTCONFIG_CFLAGS
1941 C compiler flags for FONTCONFIG, overriding pkg-config
1942 FONTCONFIG_LIBS
1943 linker flags for FONTCONFIG, overriding pkg-config
1944 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1945 GVC_LIBS linker flags for GVC, overriding pkg-config
1946 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1947 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001948 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1949 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001950 OPENEXR_CFLAGS
1951 C compiler flags for OPENEXR, overriding pkg-config
1952 OPENEXR_LIBS
1953 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001954 PANGO_CFLAGS
1955 C compiler flags for PANGO, overriding pkg-config
1956 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001957 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1958 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1959 CAIRO_SVG_CFLAGS
1960 C compiler flags for CAIRO_SVG, overriding pkg-config
1961 CAIRO_SVG_LIBS
1962 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001963
1964Use these variables to override the choices made by `configure' or to help
1965it to find libraries and programs with nonstandard names/locations.
1966
1967Report bugs to <http://www.imagemagick.org>.
1968_ACEOF
1969ac_status=$?
1970fi
1971
1972if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977 continue
1978 ac_builddir=.
1979
1980case "$ac_dir" in
1981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982*)
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989 esac ;;
1990esac
1991ac_abs_top_builddir=$ac_pwd
1992ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993# for backward compatibility:
1994ac_top_builddir=$ac_top_build_prefix
1995
1996case $srcdir in
1997 .) # We are building in place.
1998 ac_srcdir=.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2005 *) # Relative name.
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009esac
2010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2020 else
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022 fi || ac_status=$?
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2024 done
2025fi
2026
2027test -n "$ac_init_help" && exit $ac_status
2028if $ac_init_version; then
2029 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002030ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002031generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002032
cristy14fefe52012-05-21 00:59:18 +00002033Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002034This configure script is free software; the Free Software Foundation
2035gives unlimited permission to copy, distribute and modify it.
2036_ACEOF
2037 exit
2038fi
cristy8b350f62009-11-15 23:12:43 +00002039
2040## ------------------------ ##
2041## Autoconf initialization. ##
2042## ------------------------ ##
2043
2044# ac_fn_c_try_compile LINENO
2045# --------------------------
2046# Try to compile conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_c_try_compile ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext
2051 if { { ac_try="$ac_compile"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2070 ac_retval=0
2071else
2072 $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076fi
cristyda16f162011-02-19 23:52:17 +00002077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002078 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002079
2080} # ac_fn_c_try_compile
2081
cristy95646052009-11-28 23:05:30 +00002082# ac_fn_c_try_cpp LINENO
2083# ----------------------
2084# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085ac_fn_c_try_cpp ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
2093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094$as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002103 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 }; then :
2107 ac_retval=0
2108else
2109 $as_echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=1
2113fi
cristyda16f162011-02-19 23:52:17 +00002114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002115 as_fn_set_status $ac_retval
2116
2117} # ac_fn_c_try_cpp
2118
cristy8b350f62009-11-15 23:12:43 +00002119# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120# -------------------------------------------------------
2121# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122# the include files in INCLUDES and setting the cache variable VAR
2123# accordingly.
2124ac_fn_c_check_header_mongrel ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002127 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002130if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002131 $as_echo_n "(cached) " >&6
2132fi
2133eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136else
2137 # Is the header compilable?
2138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139$as_echo_n "checking $2 usability... " >&6; }
2140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143#include <$2>
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147else
2148 ac_header_compiler=no
2149fi
2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152$as_echo "$ac_header_compiler" >&6; }
2153
2154# Is the header present?
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156$as_echo_n "checking $2 presence... " >&6; }
2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159#include <$2>
2160_ACEOF
2161if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163else
2164 ac_header_preproc=no
2165fi
cristyda16f162011-02-19 23:52:17 +00002166rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168$as_echo "$ac_header_preproc" >&6; }
2169
2170# So? What about this header?
2171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ;;
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002189( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002190## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002191## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002192 ) | sed "s/^/$as_me: WARNING: /" >&2
2193 ;;
2194esac
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002197if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=\$ac_header_compiler"
2201fi
2202eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204$as_echo "$ac_res" >&6; }
2205fi
cristyda16f162011-02-19 23:52:17 +00002206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002207
2208} # ac_fn_c_check_header_mongrel
2209
2210# ac_fn_c_try_run LINENO
2211# ----------------------
2212# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213# that executables *can* be run.
2214ac_fn_c_try_run ()
2215{
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_link"
2218case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221esac
2222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223$as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_link") 2>&5
2225 ac_status=$?
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228 { { case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_try") 2>&5
2235 ac_status=$?
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; }; }; then :
2238 ac_retval=0
2239else
2240 $as_echo "$as_me: program exited with status $ac_status" >&5
2241 $as_echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 ac_retval=$ac_status
2245fi
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002248 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002249
2250} # ac_fn_c_try_run
2251
2252# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2253# -------------------------------------------------------
2254# Tests whether HEADER exists and can be compiled using the include files in
2255# INCLUDES, setting the cache variable VAR accordingly.
2256ac_fn_c_check_header_compile ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002261if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002262 $as_echo_n "(cached) " >&6
2263else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h. */
2266$4
2267#include <$2>
2268_ACEOF
2269if ac_fn_c_try_compile "$LINENO"; then :
2270 eval "$3=yes"
2271else
2272 eval "$3=no"
2273fi
2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275fi
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002280
2281} # ac_fn_c_check_header_compile
2282
cristya0b81c32010-01-22 02:54:33 +00002283# ac_fn_cxx_try_compile LINENO
2284# ----------------------------
2285# Try to compile conftest.$ac_ext, and return whether this succeeded.
2286ac_fn_cxx_try_compile ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2303 fi
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_cxx_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2309 ac_retval=0
2310else
2311 $as_echo "$as_me: failed program was:" >&5
2312sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 ac_retval=1
2315fi
cristyda16f162011-02-19 23:52:17 +00002316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002317 as_fn_set_status $ac_retval
2318
2319} # ac_fn_cxx_try_compile
2320
cristy8b350f62009-11-15 23:12:43 +00002321# ac_fn_c_try_link LINENO
2322# -----------------------
2323# Try to link conftest.$ac_ext, and return whether this succeeded.
2324ac_fn_c_try_link ()
2325{
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 rm -f conftest.$ac_objext conftest$ac_exeext
2328 if { { ac_try="$ac_link"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334$as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_link") 2>conftest.err
2336 ac_status=$?
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2341 fi
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && {
2344 test -z "$ac_c_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest$ac_exeext && {
2347 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002348 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002349 }; then :
2350 ac_retval=0
2351else
2352 $as_echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 ac_retval=1
2356fi
2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359 # interfere with the next link command; also delete a directory that is
2360 # left behind by Apple's compiler. We do this before executing the actions.
2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002363 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002364
2365} # ac_fn_c_try_link
2366
cristy73bd4a52010-10-05 11:24:23 +00002367# ac_fn_c_check_func LINENO FUNC VAR
2368# ----------------------------------
2369# Tests whether FUNC exists, setting the cache variable VAR accordingly
2370ac_fn_c_check_func ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002375if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2382#define $2 innocuous_$2
2383
2384/* System header to define __stub macros and hopefully few prototypes,
2385 which can conflict with char $2 (); below.
2386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2387 <limits.h> exists even on freestanding compilers. */
2388
2389#ifdef __STDC__
2390# include <limits.h>
2391#else
2392# include <assert.h>
2393#endif
2394
2395#undef $2
2396
2397/* Override any GCC internal prototype to avoid an error.
2398 Use char because int might match the return type of a GCC
2399 builtin and then its argument prototype would still apply. */
2400#ifdef __cplusplus
2401extern "C"
2402#endif
2403char $2 ();
2404/* The GNU C library defines this for functions which it implements
2405 to always fail with ENOSYS. Some functions are actually named
2406 something starting with __ and the normal name is an alias. */
2407#if defined __stub_$2 || defined __stub___$2
2408choke me
2409#endif
2410
2411int
2412main ()
2413{
2414return $2 ();
2415 ;
2416 return 0;
2417}
2418_ACEOF
2419if ac_fn_c_try_link "$LINENO"; then :
2420 eval "$3=yes"
2421else
2422 eval "$3=no"
2423fi
2424rm -f core conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
2426fi
2427eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002431
2432} # ac_fn_c_check_func
2433
2434# ac_fn_cxx_try_cpp LINENO
2435# ------------------------
2436# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437ac_fn_cxx_try_cpp ()
2438{
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if { { ac_try="$ac_cpp conftest.$ac_ext"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446$as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002455 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2457 test ! -s conftest.err
2458 }; then :
2459 ac_retval=0
2460else
2461 $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_retval=1
2465fi
cristyda16f162011-02-19 23:52:17 +00002466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002467 as_fn_set_status $ac_retval
2468
2469} # ac_fn_cxx_try_cpp
2470
2471# ac_fn_cxx_try_link LINENO
2472# -------------------------
2473# Try to link conftest.$ac_ext, and return whether this succeeded.
2474ac_fn_cxx_try_link ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 rm -f conftest.$ac_objext conftest$ac_exeext
2478 if { { ac_try="$ac_link"
2479case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484$as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_link") 2>conftest.err
2486 ac_status=$?
2487 if test -s conftest.err; then
2488 grep -v '^ *+' conftest.err >conftest.er1
2489 cat conftest.er1 >&5
2490 mv -f conftest.er1 conftest.err
2491 fi
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; } && {
2494 test -z "$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2496 } && test -s conftest$ac_exeext && {
2497 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002498 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002499 }; then :
2500 ac_retval=0
2501else
2502 $as_echo "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=1
2506fi
2507 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2508 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2509 # interfere with the next link command; also delete a directory that is
2510 # left behind by Apple's compiler. We do this before executing the actions.
2511 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_link
2516
cristy8b350f62009-11-15 23:12:43 +00002517# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518# -------------------------------------------
2519# Tests whether TYPE exists after having included INCLUDES, setting cache
2520# variable VAR accordingly.
2521ac_fn_c_check_type ()
2522{
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002526if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002527 $as_echo_n "(cached) " >&6
2528else
2529 eval "$3=no"
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531/* end confdefs.h. */
2532$4
2533int
2534main ()
2535{
2536if (sizeof ($2))
2537 return 0;
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof (($2)))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556
2557else
2558 eval "$3=yes"
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563fi
2564eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002568
2569} # ac_fn_c_check_type
2570
cristy92703d82010-04-26 00:18:18 +00002571# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2572# ----------------------------------------------------
2573# Tries to find if the field MEMBER exists in type AGGR, after including
2574# INCLUDES, setting cache variable VAR accordingly.
2575ac_fn_c_check_member ()
2576{
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2579$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002580if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002581 $as_echo_n "(cached) " >&6
2582else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$5
2586int
2587main ()
2588{
2589static $2 ac_aggr;
2590if (ac_aggr.$3)
2591return 0;
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$4=yes"
2598else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h. */
2601$5
2602int
2603main ()
2604{
2605static $2 ac_aggr;
2606if (sizeof ac_aggr.$3)
2607return 0;
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$4=yes"
2614else
2615 eval "$4=no"
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620fi
2621eval ac_res=\$$4
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002625
2626} # ac_fn_c_check_member
2627
cristy5eef09f2012-10-16 12:08:28 +00002628# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2629# ---------------------------------------------
2630# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2631# accordingly.
2632ac_fn_c_check_decl ()
2633{
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 as_decl_name=`echo $2|sed 's/ *(.*//'`
2636 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2638$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2639if eval \${$3+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641else
2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643/* end confdefs.h. */
2644$4
2645int
2646main ()
2647{
2648#ifndef $as_decl_name
2649#ifdef __cplusplus
2650 (void) $as_decl_use;
2651#else
2652 (void) $as_decl_name;
2653#endif
2654#endif
2655
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"; then :
2661 eval "$3=yes"
2662else
2663 eval "$3=no"
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$3
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671
2672} # ac_fn_c_check_decl
2673
cristy501c8042011-05-26 17:46:28 +00002674# ac_fn_c_find_intX_t LINENO BITS VAR
2675# -----------------------------------
2676# Finds a signed integer type with width BITS, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_find_intX_t ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2682$as_echo_n "checking for int$2_t... " >&6; }
2683if eval \${$3+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685else
2686 eval "$3=no"
2687 # Order is important - never check a type that is potentially smaller
2688 # than half of the expected target width.
2689 for ac_type in int$2_t 'int' 'long int' \
2690 'long long int' 'short int' 'signed char'; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692/* end confdefs.h. */
2693$ac_includes_default
2694 enum { N = $2 / 2 - 1 };
2695int
2696main ()
2697{
2698static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002699test_array [0] = 0;
2700return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708/* end confdefs.h. */
2709$ac_includes_default
2710 enum { N = $2 / 2 - 1 };
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2715 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002716test_array [0] = 0;
2717return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_compile "$LINENO"; then :
2724
2725else
2726 case $ac_type in #(
2727 int$2_t) :
2728 eval "$3=yes" ;; #(
2729 *) :
2730 eval "$3=\$ac_type" ;;
2731esac
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734fi
2735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if eval test \"x\$"$3"\" = x"no"; then :
2737
2738else
2739 break
2740fi
2741 done
2742fi
2743eval ac_res=\$$3
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745$as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747
2748} # ac_fn_c_find_intX_t
2749
2750# ac_fn_c_find_uintX_t LINENO BITS VAR
2751# ------------------------------------
2752# Finds an unsigned integer type with width BITS, setting cache variable VAR
2753# accordingly.
2754ac_fn_c_find_uintX_t ()
2755{
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2758$as_echo_n "checking for uint$2_t... " >&6; }
2759if eval \${$3+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761else
2762 eval "$3=no"
2763 # Order is important - never check a type that is potentially smaller
2764 # than half of the expected target width.
2765 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2766 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768/* end confdefs.h. */
2769$ac_includes_default
2770int
2771main ()
2772{
2773static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002774test_array [0] = 0;
2775return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782 case $ac_type in #(
2783 uint$2_t) :
2784 eval "$3=yes" ;; #(
2785 *) :
2786 eval "$3=\$ac_type" ;;
2787esac
2788fi
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 if eval test \"x\$"$3"\" = x"no"; then :
2791
2792else
2793 break
2794fi
2795 done
2796fi
2797eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799$as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801
2802} # ac_fn_c_find_uintX_t
2803
cristy8b350f62009-11-15 23:12:43 +00002804# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2805# --------------------------------------------
2806# Tries to find the compile-time value of EXPR in a program that includes
2807# INCLUDES, setting VAR accordingly. Returns whether the value could be
2808# computed
2809ac_fn_c_compute_int ()
2810{
2811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812 if test "$cross_compiling" = yes; then
2813 # Depending upon the size, compute the lo and hi bounds.
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817int
2818main ()
2819{
2820static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002821test_array [0] = 0;
2822return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002823
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=0 ac_mid=0
2830 while :; do
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h. */
2833$4
2834int
2835main ()
2836{
2837static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002838test_array [0] = 0;
2839return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002840
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845if ac_fn_c_try_compile "$LINENO"; then :
2846 ac_hi=$ac_mid; break
2847else
2848 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2849 if test $ac_lo -le $ac_mid; then
2850 ac_lo= ac_hi=
2851 break
2852 fi
2853 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2854fi
2855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 done
2857else
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859/* end confdefs.h. */
2860$4
2861int
2862main ()
2863{
2864static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002865test_array [0] = 0;
2866return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002867
2868 ;
2869 return 0;
2870}
2871_ACEOF
2872if ac_fn_c_try_compile "$LINENO"; then :
2873 ac_hi=-1 ac_mid=-1
2874 while :; do
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876/* end confdefs.h. */
2877$4
2878int
2879main ()
2880{
2881static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002882test_array [0] = 0;
2883return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_lo=$ac_mid; break
2891else
2892 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2893 if test $ac_mid -le $ac_hi; then
2894 ac_lo= ac_hi=
2895 break
2896 fi
2897 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901else
2902 ac_lo= ac_hi=
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907# Binary search between lo and hi bounds.
2908while test "x$ac_lo" != "x$ac_hi"; do
2909 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002917test_array [0] = 0;
2918return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_hi=$ac_mid
2926else
2927 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930done
2931case $ac_lo in #((
2932?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2933'') ac_retval=1 ;;
2934esac
2935 else
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937/* end confdefs.h. */
2938$4
2939static long int longval () { return $2; }
2940static unsigned long int ulongval () { return $2; }
2941#include <stdio.h>
2942#include <stdlib.h>
2943int
2944main ()
2945{
2946
2947 FILE *f = fopen ("conftest.val", "w");
2948 if (! f)
2949 return 1;
2950 if (($2) < 0)
2951 {
2952 long int i = longval ();
2953 if (i != ($2))
2954 return 1;
2955 fprintf (f, "%ld", i);
2956 }
2957 else
2958 {
2959 unsigned long int i = ulongval ();
2960 if (i != ($2))
2961 return 1;
2962 fprintf (f, "%lu", i);
2963 }
2964 /* Do not output a trailing newline, as this causes \r\n confusion
2965 on some platforms. */
2966 return ferror (f) || fclose (f) != 0;
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_run "$LINENO"; then :
2973 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2974else
2975 ac_retval=1
2976fi
2977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2978 conftest.$ac_objext conftest.beam conftest.$ac_ext
2979rm -f conftest.val
2980
2981 fi
cristyda16f162011-02-19 23:52:17 +00002982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002983 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002984
2985} # ac_fn_c_compute_int
2986
2987# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2988# ---------------------------------------------------------
2989# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2990# the include files in INCLUDES and setting the cache variable VAR
2991# accordingly.
2992ac_fn_cxx_check_header_mongrel ()
2993{
2994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002995 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2997$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002998if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002999 $as_echo_n "(cached) " >&6
3000fi
3001eval ac_res=\$$3
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3003$as_echo "$ac_res" >&6; }
3004else
3005 # Is the header compilable?
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3007$as_echo_n "checking $2 usability... " >&6; }
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010$4
3011#include <$2>
3012_ACEOF
3013if ac_fn_cxx_try_compile "$LINENO"; then :
3014 ac_header_compiler=yes
3015else
3016 ac_header_compiler=no
3017fi
3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3020$as_echo "$ac_header_compiler" >&6; }
3021
3022# Is the header present?
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3024$as_echo_n "checking $2 presence... " >&6; }
3025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h. */
3027#include <$2>
3028_ACEOF
3029if ac_fn_cxx_try_cpp "$LINENO"; then :
3030 ac_header_preproc=yes
3031else
3032 ac_header_preproc=no
3033fi
cristyda16f162011-02-19 23:52:17 +00003034rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3036$as_echo "$ac_header_preproc" >&6; }
3037
3038# So? What about this header?
3039case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3040 yes:no: )
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3042$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3045 ;;
3046 no:yes:* )
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3048$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3050$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3052$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3054$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3056$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003057( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003058## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003059## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003060 ) | sed "s/^/$as_me: WARNING: /" >&2
3061 ;;
3062esac
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3064$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003065if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003066 $as_echo_n "(cached) " >&6
3067else
3068 eval "$3=\$ac_header_compiler"
3069fi
3070eval ac_res=\$$3
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3072$as_echo "$ac_res" >&6; }
3073fi
cristyda16f162011-02-19 23:52:17 +00003074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003075
3076} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003077cat >config.log <<_ACEOF
3078This file contains any messages produced by compilers while
3079running configure, to aid debugging if configure makes a mistake.
3080
cristy29eb34e2011-10-16 00:46:08 +00003081It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003082generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003083
3084 $ $0 $@
3085
3086_ACEOF
3087exec 5>>config.log
3088{
3089cat <<_ASUNAME
3090## --------- ##
3091## Platform. ##
3092## --------- ##
3093
3094hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3095uname -m = `(uname -m) 2>/dev/null || echo unknown`
3096uname -r = `(uname -r) 2>/dev/null || echo unknown`
3097uname -s = `(uname -s) 2>/dev/null || echo unknown`
3098uname -v = `(uname -v) 2>/dev/null || echo unknown`
3099
3100/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3101/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3102
3103/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3104/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3105/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3106/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3107/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3108/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3109/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3110
3111_ASUNAME
3112
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003118 $as_echo "PATH: $as_dir"
3119 done
cristy3ed852e2009-09-05 21:47:34 +00003120IFS=$as_save_IFS
3121
3122} >&5
3123
3124cat >&5 <<_ACEOF
3125
3126
3127## ----------- ##
3128## Core tests. ##
3129## ----------- ##
3130
3131_ACEOF
3132
3133
3134# Keep a trace of the command line.
3135# Strip out --no-create and --no-recursion so they do not pile up.
3136# Strip out --silent because we don't want to record it for future runs.
3137# Also quote any args containing shell meta-characters.
3138# Make two passes to allow for proper duplicate-argument suppression.
3139ac_configure_args=
3140ac_configure_args0=
3141ac_configure_args1=
3142ac_must_keep_next=false
3143for ac_pass in 1 2
3144do
3145 for ac_arg
3146 do
3147 case $ac_arg in
3148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3150 | -silent | --silent | --silen | --sile | --sil)
3151 continue ;;
3152 *\'*)
3153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 esac
3155 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003157 2)
cristy8b350f62009-11-15 23:12:43 +00003158 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003159 if test $ac_must_keep_next = true; then
3160 ac_must_keep_next=false # Got value, back to normal.
3161 else
3162 case $ac_arg in
3163 *=* | --config-cache | -C | -disable-* | --disable-* \
3164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3166 | -with-* | --with-* | -without-* | --without-* | --x)
3167 case "$ac_configure_args0 " in
3168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3169 esac
3170 ;;
3171 -* ) ac_must_keep_next=true ;;
3172 esac
3173 fi
cristy8b350f62009-11-15 23:12:43 +00003174 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003175 ;;
3176 esac
3177 done
3178done
cristy8b350f62009-11-15 23:12:43 +00003179{ ac_configure_args0=; unset ac_configure_args0;}
3180{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003181
3182# When interrupted or exit'd, cleanup temporary files, and complete
3183# config.log. We remove comments because anyway the quotes in there
3184# would cause problems or look ugly.
3185# WARNING: Use '\'' to represent an apostrophe within the trap.
3186# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3187trap 'exit_status=$?
3188 # Save into config.log some information that might help in debugging.
3189 {
3190 echo
3191
cristy98dddb52010-11-04 00:30:15 +00003192 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003193## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003194## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003195 echo
3196 # The following way of writing the cache mishandles newlines in values,
3197(
3198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3199 eval ac_val=\$$ac_var
3200 case $ac_val in #(
3201 *${as_nl}*)
3202 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3205 esac
3206 case $ac_var in #(
3207 _ | IFS | as_nl) ;; #(
3208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003209 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003210 esac ;;
3211 esac
3212 done
3213 (set) 2>&1 |
3214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3215 *${as_nl}ac_space=\ *)
3216 sed -n \
3217 "s/'\''/'\''\\\\'\'''\''/g;
3218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3219 ;; #(
3220 *)
3221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3222 ;;
3223 esac |
3224 sort
3225)
3226 echo
3227
cristy98dddb52010-11-04 00:30:15 +00003228 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003229## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003230## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003231 echo
3232 for ac_var in $ac_subst_vars
3233 do
3234 eval ac_val=\$$ac_var
3235 case $ac_val in
3236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3237 esac
3238 $as_echo "$ac_var='\''$ac_val'\''"
3239 done | sort
3240 echo
3241
3242 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003243 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003244## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003245## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003246 echo
3247 for ac_var in $ac_subst_files
3248 do
3249 eval ac_val=\$$ac_var
3250 case $ac_val in
3251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3252 esac
3253 $as_echo "$ac_var='\''$ac_val'\''"
3254 done | sort
3255 echo
3256 fi
3257
3258 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003259 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003260## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003261## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003262 echo
3263 cat confdefs.h
3264 echo
3265 fi
3266 test "$ac_signal" != 0 &&
3267 $as_echo "$as_me: caught signal $ac_signal"
3268 $as_echo "$as_me: exit $exit_status"
3269 } >&5
3270 rm -f core *.core core.conftest.* &&
3271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3272 exit $exit_status
3273' 0
3274for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003276done
3277ac_signal=0
3278
3279# confdefs.h avoids OS command line length limits that DEFS can exceed.
3280rm -f -r conftest* confdefs.h
3281
cristy8b350f62009-11-15 23:12:43 +00003282$as_echo "/* confdefs.h */" > confdefs.h
3283
cristy3ed852e2009-09-05 21:47:34 +00003284# Predefined preprocessor variables.
3285
3286cat >>confdefs.h <<_ACEOF
3287#define PACKAGE_NAME "$PACKAGE_NAME"
3288_ACEOF
3289
cristy3ed852e2009-09-05 21:47:34 +00003290cat >>confdefs.h <<_ACEOF
3291#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3292_ACEOF
3293
cristy3ed852e2009-09-05 21:47:34 +00003294cat >>confdefs.h <<_ACEOF
3295#define PACKAGE_VERSION "$PACKAGE_VERSION"
3296_ACEOF
3297
cristy3ed852e2009-09-05 21:47:34 +00003298cat >>confdefs.h <<_ACEOF
3299#define PACKAGE_STRING "$PACKAGE_STRING"
3300_ACEOF
3301
cristy3ed852e2009-09-05 21:47:34 +00003302cat >>confdefs.h <<_ACEOF
3303#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3304_ACEOF
3305
cristy8b350f62009-11-15 23:12:43 +00003306cat >>confdefs.h <<_ACEOF
3307#define PACKAGE_URL "$PACKAGE_URL"
3308_ACEOF
3309
cristy3ed852e2009-09-05 21:47:34 +00003310
3311# Let the site file select an alternate cache file if it wants to.
3312# Prefer an explicitly selected file to automatically selected ones.
3313ac_site_file1=NONE
3314ac_site_file2=NONE
3315if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003316 # We do not want a PATH search for config.site.
3317 case $CONFIG_SITE in #((
3318 -*) ac_site_file1=./$CONFIG_SITE;;
3319 */*) ac_site_file1=$CONFIG_SITE;;
3320 *) ac_site_file1=./$CONFIG_SITE;;
3321 esac
cristy3ed852e2009-09-05 21:47:34 +00003322elif test "x$prefix" != xNONE; then
3323 ac_site_file1=$prefix/share/config.site
3324 ac_site_file2=$prefix/etc/config.site
3325else
3326 ac_site_file1=$ac_default_prefix/share/config.site
3327 ac_site_file2=$ac_default_prefix/etc/config.site
3328fi
3329for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3330do
3331 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003334$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3335 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003336 . "$ac_site_file" \
3337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339as_fn_error $? "failed to load site script $ac_site_file
3340See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003341 fi
3342done
3343
3344if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003345 # Some versions of bash will fail to source /dev/null (special files
3346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003349$as_echo "$as_me: loading cache $cache_file" >&6;}
3350 case $cache_file in
3351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3352 *) . "./$cache_file";;
3353 esac
3354 fi
3355else
cristy8b350f62009-11-15 23:12:43 +00003356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo "$as_me: creating cache $cache_file" >&6;}
3358 >$cache_file
3359fi
3360
cristycd4c5312009-11-22 01:19:08 +00003361as_fn_append ac_header_list " stdlib.h"
3362as_fn_append ac_header_list " unistd.h"
3363as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003364# Check that the precious variables saved in the cache have kept the same
3365# value.
3366ac_cache_corrupted=false
3367for ac_var in $ac_precious_vars; do
3368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3369 eval ac_new_set=\$ac_env_${ac_var}_set
3370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3371 eval ac_new_val=\$ac_env_${ac_var}_value
3372 case $ac_old_set,$ac_new_set in
3373 set,)
cristy8b350f62009-11-15 23:12:43 +00003374 { $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 +00003375$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3376 ac_cache_corrupted=: ;;
3377 ,set)
cristy8b350f62009-11-15 23:12:43 +00003378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003379$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3380 ac_cache_corrupted=: ;;
3381 ,);;
3382 *)
3383 if test "x$ac_old_val" != "x$ac_new_val"; then
3384 # differences in whitespace do not lead to failure.
3385 ac_old_val_w=`echo x $ac_old_val`
3386 ac_new_val_w=`echo x $ac_new_val`
3387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003389$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3390 ac_cache_corrupted=:
3391 else
cristy8b350f62009-11-15 23:12:43 +00003392 { $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 +00003393$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3394 eval $ac_var=\$ac_old_val
3395 fi
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003399$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3400 fi;;
3401 esac
3402 # Pass precious variables to config.status.
3403 if test "$ac_new_set" = set; then
3404 case $ac_new_val in
3405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3406 *) ac_arg=$ac_var=$ac_new_val ;;
3407 esac
3408 case " $ac_configure_args " in
3409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003411 esac
3412 fi
3413done
3414if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003418$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003420fi
cristy8b350f62009-11-15 23:12:43 +00003421## -------------------- ##
3422## Main body of script. ##
3423## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003424
3425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
3432
3433ac_aux_dir=
3434for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003435 if test -f "$ac_dir/install-sh"; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/install-sh -c"
3438 break
3439 elif test -f "$ac_dir/install.sh"; then
3440 ac_aux_dir=$ac_dir
3441 ac_install_sh="$ac_aux_dir/install.sh -c"
3442 break
3443 elif test -f "$ac_dir/shtool"; then
3444 ac_aux_dir=$ac_dir
3445 ac_install_sh="$ac_aux_dir/shtool install -c"
3446 break
3447 fi
cristy3ed852e2009-09-05 21:47:34 +00003448done
3449if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003450 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003451fi
3452
3453# These three variables are undocumented and unsupported,
3454# and are intended to be withdrawn in a future Autoconf release.
3455# They can cause serious problems if a builder's source tree is in a directory
3456# whose full name contains unusual characters.
3457ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3458ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3459ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3460
3461
3462
3463
3464ac_config_headers="$ac_config_headers config/config.h"
3465
cristy24fc1fe2010-10-23 21:13:01 +00003466
cristy4c08aed2011-07-01 19:47:50 +00003467ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003468
cristy2df32802012-09-17 01:15:28 +00003469ac_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 +00003470
3471
3472#
3473# Save initial user-tunable values
3474#
3475USER_LIBS=$LIBS
3476for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3477 eval isset=\${$var+set}
3478 if test "$isset" = 'set'; then
3479 eval val=$`echo $var`
3480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3481 fi
3482done
3483
3484
3485CONFIGURE_ARGS="$0 ${ac_configure_args}"
3486
3487
3488# Source file containing package/library versioning information.
3489. ${srcdir}/version.sh
3490
cristy15a88782010-01-31 23:24:49 +00003491echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003492# Make sure we can run config.sub.
3493$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003494 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003498if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 ac_build_alias=$build_alias
3502test "x$ac_build_alias" = x &&
3503 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3504test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003508
3509fi
cristy8b350f62009-11-15 23:12:43 +00003510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003511$as_echo "$ac_cv_build" >&6; }
3512case $ac_cv_build in
3513*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003514*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003515esac
3516build=$ac_cv_build
3517ac_save_IFS=$IFS; IFS='-'
3518set x $ac_cv_build
3519shift
3520build_cpu=$1
3521build_vendor=$2
3522shift; shift
3523# Remember, the first character of IFS is used to create $*,
3524# except with old shells:
3525build_os=$*
3526IFS=$ac_save_IFS
3527case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3528
3529
cristy8b350f62009-11-15 23:12:43 +00003530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003531$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003532if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003533 $as_echo_n "(cached) " >&6
3534else
3535 if test "x$host_alias" = x; then
3536 ac_cv_host=$ac_cv_build
3537else
3538 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003540fi
3541
3542fi
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo "$ac_cv_host" >&6; }
3545case $ac_cv_host in
3546*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003547*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003548esac
3549host=$ac_cv_host
3550ac_save_IFS=$IFS; IFS='-'
3551set x $ac_cv_host
3552shift
3553host_cpu=$1
3554host_vendor=$2
3555shift; shift
3556# Remember, the first character of IFS is used to create $*,
3557# except with old shells:
3558host_os=$*
3559IFS=$ac_save_IFS
3560case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3561
3562
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003565if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 if test "x$target_alias" = x; then
3569 ac_cv_target=$ac_cv_host
3570else
3571 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003572 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003573fi
3574
3575fi
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo "$ac_cv_target" >&6; }
3578case $ac_cv_target in
3579*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003580*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003581esac
3582target=$ac_cv_target
3583ac_save_IFS=$IFS; IFS='-'
3584set x $ac_cv_target
3585shift
3586target_cpu=$1
3587target_vendor=$2
3588shift; shift
3589# Remember, the first character of IFS is used to create $*,
3590# except with old shells:
3591target_os=$*
3592IFS=$ac_save_IFS
3593case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3594
3595
3596# The aliases save the names the user supplied, while $host etc.
3597# will get canonicalized.
3598test -n "$target_alias" &&
3599 test "$program_prefix$program_suffix$program_transform_name" = \
3600 NONENONEs,x,x, &&
3601 program_prefix=${target_alias}-
3602
cristy837d6dc2010-02-27 01:16:57 +00003603
3604
3605
cristy8be34142012-06-17 14:07:18 +00003606
cristy19615b82011-04-13 20:02:01 +00003607MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003608
3609
cristy27d53d62012-07-29 23:30:07 +00003610cat >>confdefs.h <<_ACEOF
3611#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3612_ACEOF
3613
3614
cristy19615b82011-04-13 20:02:01 +00003615MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003616
3617
cristy27d53d62012-07-29 23:30:07 +00003618cat >>confdefs.h <<_ACEOF
3619#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3620_ACEOF
3621
3622
cristy19615b82011-04-13 20:02:01 +00003623MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003624
3625
cristy27d53d62012-07-29 23:30:07 +00003626cat >>confdefs.h <<_ACEOF
3627#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3628_ACEOF
3629
3630
cristy3ed852e2009-09-05 21:47:34 +00003631# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003632MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3633
3634MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3635
cristy5eef09f2012-10-16 12:08:28 +00003636MAGICK_SVN_REVISION=9640M
cristyd694ca32011-03-27 21:42:54 +00003637
cristy3ed852e2009-09-05 21:47:34 +00003638
3639
3640# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3642$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003643# Reject unsafe characters in $srcdir or the absolute working directory
3644# name. Accept space and tab only in the latter.
3645am_lf='
3646'
3647case `pwd` in
3648 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003649 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003650esac
3651case $srcdir in
3652 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003653 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003654esac
cristy3ed852e2009-09-05 21:47:34 +00003655
cristyc0890a62012-07-19 00:18:20 +00003656# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003657# arguments. Must try -L first in case configure is actually a
3658# symlink; some systems play weird games with the mod time of symlinks
3659# (eg FreeBSD returns the mod time of the symlink's containing
3660# directory).
3661if (
cristyc0890a62012-07-19 00:18:20 +00003662 am_has_slept=no
3663 for am_try in 1 2; do
3664 echo "timestamp, slept: $am_has_slept" > conftest.file
3665 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3666 if test "$*" = "X"; then
3667 # -L didn't work.
3668 set X `ls -t "$srcdir/configure" conftest.file`
3669 fi
3670 if test "$*" != "X $srcdir/configure conftest.file" \
3671 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003672
cristyc0890a62012-07-19 00:18:20 +00003673 # If neither matched, then we have a broken ls. This can happen
3674 # if, for instance, CONFIG_SHELL is bash and it inherits a
3675 # broken ls alias from the environment. This has actually
3676 # happened. Such a system could not be considered "sane".
3677 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3678 alias in your environment" "$LINENO" 5
3679 fi
3680 if test "$2" = conftest.file || test $am_try -eq 2; then
3681 break
3682 fi
3683 # Just in case.
3684 sleep 1
3685 am_has_slept=yes
3686 done
cristy73bd4a52010-10-05 11:24:23 +00003687 test "$2" = conftest.file
3688 )
3689then
3690 # Ok.
3691 :
3692else
cristy98dddb52010-11-04 00:30:15 +00003693 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003694Check your system clock" "$LINENO" 5
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3697$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003698# If we didn't sleep, we still need to ensure time stamps of config.status and
3699# generated files are strictly newer.
3700am_sleep_pid=
3701if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3702 ( sleep 1 ) &
3703 am_sleep_pid=$!
3704fi
cristy73bd4a52010-10-05 11:24:23 +00003705
cristyc0890a62012-07-19 00:18:20 +00003706rm -f conftest.file
3707
3708
3709am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003710
3711# Find a good install program. We prefer a C program (faster),
3712# so one script is as good as another. But avoid the broken or
3713# incompatible versions:
3714# SysV /etc/install, /usr/sbin/install
3715# SunOS /usr/etc/install
3716# IRIX /sbin/install
3717# AIX /bin/install
3718# AmigaOS /C/install, which installs bootblocks on floppy discs
3719# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3720# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3721# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3722# OS/2's system install, which has a completely different semantic
3723# ./install, which can be erroneously created by make from ./install.sh.
3724# Reject install programs that cannot install multiple files.
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3726$as_echo_n "checking for a BSD-compatible install... " >&6; }
3727if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003728if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003729 $as_echo_n "(cached) " >&6
3730else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732for as_dir in $PATH
3733do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 # Account for people who put trailing slashes in PATH elements.
3737case $as_dir/ in #((
3738 ./ | .// | /[cC]/* | \
3739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3741 /usr/ucb/* ) ;;
3742 *)
3743 # OSF1 and SCO ODT 3.0 have their own names for install.
3744 # Don't use installbsd from OSF since it installs stuff as root
3745 # by default.
3746 for ac_prog in ginstall scoinst install; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003748 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003749 if test $ac_prog = install &&
3750 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3751 # AIX install. It has an incompatible calling convention.
3752 :
3753 elif test $ac_prog = install &&
3754 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3755 # program-specific install script used by HP pwplus--don't use.
3756 :
3757 else
3758 rm -rf conftest.one conftest.two conftest.dir
3759 echo one > conftest.one
3760 echo two > conftest.two
3761 mkdir conftest.dir
3762 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3763 test -s conftest.one && test -s conftest.two &&
3764 test -s conftest.dir/conftest.one &&
3765 test -s conftest.dir/conftest.two
3766 then
3767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3768 break 3
3769 fi
3770 fi
3771 fi
3772 done
3773 done
3774 ;;
3775esac
3776
3777 done
3778IFS=$as_save_IFS
3779
3780rm -rf conftest.one conftest.two conftest.dir
3781
3782fi
3783 if test "${ac_cv_path_install+set}" = set; then
3784 INSTALL=$ac_cv_path_install
3785 else
3786 # As a last resort, use the slow shell script. Don't cache a
3787 # value for INSTALL within a source directory, because that will
3788 # break other packages using the cache if that directory is
3789 # removed, or if the value is a relative name.
3790 INSTALL=$ac_install_sh
3791 fi
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3794$as_echo "$INSTALL" >&6; }
3795
3796# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3797# It thinks the first close brace ends the variable substitution.
3798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3799
3800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3801
3802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3803
3804test "$program_prefix" != NONE &&
3805 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3806# Use a double $ so make ignores it.
3807test "$program_suffix" != NONE &&
3808 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3809# Double any \ or $.
3810# By default was `s,x,x', remove it if useless.
3811ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3812program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3813
3814# expand $ac_aux_dir to an absolute path
3815am_aux_dir=`cd $ac_aux_dir && pwd`
3816
3817if test x"${MISSING+set}" != xset; then
3818 case $am_aux_dir in
3819 *\ * | *\ *)
3820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3821 *)
3822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3823 esac
3824fi
3825# Use eval to expand $SHELL
3826if eval "$MISSING --run true"; then
3827 am_missing_run="$MISSING --run "
3828else
3829 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3831$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003832fi
3833
3834if test x"${install_sh}" != xset; then
3835 case $am_aux_dir in
3836 *\ * | *\ *)
3837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3838 *)
3839 install_sh="\${SHELL} $am_aux_dir/install-sh"
3840 esac
3841fi
3842
cristyc0890a62012-07-19 00:18:20 +00003843# Installed binaries are usually stripped using 'strip' when the user
3844# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003845# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003846# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003847if test "$cross_compiling" != no; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}strip; ac_word=$2
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003853if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003854 $as_echo_n "(cached) " >&6
3855else
3856 if test -n "$STRIP"; then
3857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871 done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876STRIP=$ac_cv_prog_STRIP
3877if test -n "$STRIP"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3879$as_echo "$STRIP" >&6; }
3880else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886fi
3887if test -z "$ac_cv_prog_STRIP"; then
3888 ac_ct_STRIP=$STRIP
3889 # Extract the first word of "strip", so it can be a program name with args.
3890set dummy strip; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003893if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003894 $as_echo_n "(cached) " >&6
3895else
3896 if test -n "$ac_ct_STRIP"; then
3897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003906 ac_cv_prog_ac_ct_STRIP="strip"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911 done
3912IFS=$as_save_IFS
3913
3914fi
3915fi
3916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3917if test -n "$ac_ct_STRIP"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3919$as_echo "$ac_ct_STRIP" >&6; }
3920else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923fi
3924
3925 if test "x$ac_ct_STRIP" = x; then
3926 STRIP=":"
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 STRIP=$ac_ct_STRIP
3935 fi
3936else
3937 STRIP="$ac_cv_prog_STRIP"
3938fi
3939
3940fi
3941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3944$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3945if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003946 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003947 $as_echo_n "(cached) " >&6
3948else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in mkdir gmkdir; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3958 'mkdir (GNU coreutils) '* | \
3959 'mkdir (coreutils) '* | \
3960 'mkdir (fileutils) '4.1*)
3961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3962 break 3;;
3963 esac
3964 done
3965 done
3966 done
3967IFS=$as_save_IFS
3968
3969fi
3970
3971 test -d ./--version && rmdir ./--version
3972 if test "${ac_cv_path_mkdir+set}" = set; then
3973 MKDIR_P="$ac_cv_path_mkdir -p"
3974 else
3975 # As a last resort, use the slow shell script. Don't cache a
3976 # value for MKDIR_P within a source directory, because that will
3977 # break other packages using the cache if that directory is
3978 # removed, or if the value is a relative name.
3979 MKDIR_P="$ac_install_sh -d"
3980 fi
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3983$as_echo "$MKDIR_P" >&6; }
3984
cristy73bd4a52010-10-05 11:24:23 +00003985for ac_prog in gawk mawk nawk awk
3986do
3987 # Extract the first word of "$ac_prog", so it can be a program name with args.
3988set dummy $ac_prog; ac_word=$2
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003991if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003992 $as_echo_n "(cached) " >&6
3993else
3994 if test -n "$AWK"; then
3995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004004 ac_cv_prog_AWK="$ac_prog"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009 done
4010IFS=$as_save_IFS
4011
4012fi
4013fi
4014AWK=$ac_cv_prog_AWK
4015if test -n "$AWK"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4017$as_echo "$AWK" >&6; }
4018else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020$as_echo "no" >&6; }
4021fi
4022
4023
4024 test -n "$AWK" && break
4025done
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4028$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4029set x ${MAKE-make}
4030ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004031if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004032 $as_echo_n "(cached) " >&6
4033else
4034 cat >conftest.make <<\_ACEOF
4035SHELL = /bin/sh
4036all:
4037 @echo '@@@%%%=$(MAKE)=@@@%%%'
4038_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004039# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004040case `${MAKE-make} -f conftest.make 2>/dev/null` in
4041 *@@@%%%=?*=@@@%%%*)
4042 eval ac_cv_prog_make_${ac_make}_set=yes;;
4043 *)
4044 eval ac_cv_prog_make_${ac_make}_set=no;;
4045esac
4046rm -f conftest.make
4047fi
4048if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050$as_echo "yes" >&6; }
4051 SET_MAKE=
4052else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
4055 SET_MAKE="MAKE=${MAKE-make}"
4056fi
4057
4058rm -rf .tst 2>/dev/null
4059mkdir .tst 2>/dev/null
4060if test -d .tst; then
4061 am__leading_dot=.
4062else
4063 am__leading_dot=_
4064fi
4065rmdir .tst 2>/dev/null
4066
cristya448bd22011-10-14 12:38:13 +00004067# Check whether --enable-silent-rules was given.
4068if test "${enable_silent_rules+set}" = set; then :
4069 enableval=$enable_silent_rules;
4070fi
4071
cristyc0890a62012-07-19 00:18:20 +00004072case $enable_silent_rules in # (((
4073 yes) AM_DEFAULT_VERBOSITY=0;;
4074 no) AM_DEFAULT_VERBOSITY=1;;
4075 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004076esac
cristyc3fb77b2012-02-06 01:49:41 +00004077am_make=${MAKE-make}
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4079$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4080if ${am_cv_make_support_nested_variables+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082else
4083 if $as_echo 'TRUE=$(BAR$(V))
4084BAR0=false
4085BAR1=true
4086V=1
4087am__doit:
4088 @$(TRUE)
4089.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4090 am_cv_make_support_nested_variables=yes
4091else
4092 am_cv_make_support_nested_variables=no
4093fi
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4096$as_echo "$am_cv_make_support_nested_variables" >&6; }
4097if test $am_cv_make_support_nested_variables = yes; then
4098 AM_V='$(V)'
4099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4100else
4101 AM_V=$AM_DEFAULT_VERBOSITY
4102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4103fi
cristya448bd22011-10-14 12:38:13 +00004104AM_BACKSLASH='\'
4105
cristy73bd4a52010-10-05 11:24:23 +00004106if test "`cd $srcdir && pwd`" != "`pwd`"; then
4107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4108 # is not polluted with repeated "-I."
4109 am__isrc=' -I$(srcdir)'
4110 # test to see if srcdir already configured
4111 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004113 fi
4114fi
4115
4116# test whether we have cygpath
4117if test -z "$CYGPATH_W"; then
4118 if (cygpath --version) >/dev/null 2>/dev/null; then
4119 CYGPATH_W='cygpath -w'
4120 else
4121 CYGPATH_W=echo
4122 fi
4123fi
4124
4125
4126# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004127 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004128 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004129
4130
cristya448bd22011-10-14 12:38:13 +00004131cat >>confdefs.h <<_ACEOF
4132#define PACKAGE "$PACKAGE"
4133_ACEOF
4134
4135
4136cat >>confdefs.h <<_ACEOF
4137#define VERSION "$VERSION"
4138_ACEOF
4139
cristy73bd4a52010-10-05 11:24:23 +00004140# Some tools Automake needs.
4141
4142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4143
4144
4145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4146
4147
4148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4149
4150
4151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4152
4153
4154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4155
cristyc0890a62012-07-19 00:18:20 +00004156# For better backward compatibility. To be removed once Automake 1.9.x
4157# dies out for good. For more background, see:
4158# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4159# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4160mkdir_p='$(MKDIR_P)'
4161
cristy73bd4a52010-10-05 11:24:23 +00004162# We need awk for the "check" target. The system "awk" is bad on
4163# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004164# Always define AMTAR for backward compatibility. Yes, it's still used
4165# in the wild :-( We should find a proper way to deprecate it ...
4166AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004167
cristyc3fb77b2012-02-06 01:49:41 +00004168am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004169
4170
4171
4172
4173
cristy3ed852e2009-09-05 21:47:34 +00004174
4175# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004176# Check whether --enable-silent-rules was given.
4177if test "${enable_silent_rules+set}" = set; then :
4178 enableval=$enable_silent_rules;
4179fi
4180
cristyc0890a62012-07-19 00:18:20 +00004181case $enable_silent_rules in # (((
4182 yes) AM_DEFAULT_VERBOSITY=0;;
4183 no) AM_DEFAULT_VERBOSITY=1;;
4184 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004185esac
cristyc3fb77b2012-02-06 01:49:41 +00004186am_make=${MAKE-make}
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4188$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4189if ${am_cv_make_support_nested_variables+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 if $as_echo 'TRUE=$(BAR$(V))
4193BAR0=false
4194BAR1=true
4195V=1
4196am__doit:
4197 @$(TRUE)
4198.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4199 am_cv_make_support_nested_variables=yes
4200else
4201 am_cv_make_support_nested_variables=no
4202fi
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4205$as_echo "$am_cv_make_support_nested_variables" >&6; }
4206if test $am_cv_make_support_nested_variables = yes; then
4207 AM_V='$(V)'
4208 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4209else
4210 AM_V=$AM_DEFAULT_VERBOSITY
4211 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4212fi
cristy73bd4a52010-10-05 11:24:23 +00004213AM_BACKSLASH='\'
4214
cristy3ed852e2009-09-05 21:47:34 +00004215
4216MAGICK_LIB_VERSION="0x"
4217if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4218 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4219fi
4220MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4221if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4222 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4223fi
4224MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4225if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4226 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4227fi
4228MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4229
4230
4231# Definition used to define MagickLibVersionText in version.h
4232MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4233
4234
4235# Definition used to define MagickLibVersionNumber in version.h
4236MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4237
4238
4239# Regenerate config.status if ChangeLog or version.sh is updated.
4240CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4241
4242
4243PERLMAINCC=$CC
4244
4245MAGICK_CFLAGS=''
4246MAGICK_CPPFLAGS=$CPPFLAGS_USER
4247MAGICK_PCFLAGS=$CPPFLAGS_USER
4248MAGICK_LDFLAGS=''
4249MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004250MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004251
4252#
4253# Evaluate shell variable equivalents to Makefile directory variables
4254#
4255if test "x$prefix" = xNONE; then
4256 prefix=$ac_default_prefix
4257fi
4258# Let make expand exec_prefix.
4259if test "x$exec_prefix" = xNONE; then
4260 exec_prefix='${prefix}'
4261fi
4262
4263#
4264eval "eval PREFIX_DIR=${prefix}"
4265
4266eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4267
4268eval "eval BIN_DIR=$bindir"
4269
4270eval "eval SBIN_DIR=$sbindir"
4271
4272eval "eval LIBEXEC_DIR=$libexecdir"
4273
4274eval "eval DATA_DIR=$datadir"
4275
cristy4e65ec22012-04-08 01:33:27 +00004276eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004277
cristy3ed852e2009-09-05 21:47:34 +00004278eval "eval SYSCONF_DIR=$sysconfdir"
4279
4280eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4281
4282eval "eval LOCALSTATE_DIR=$localstatedir"
4283
4284eval "eval LIB_DIR=$libdir"
4285
4286eval "eval INCLUDE_DIR=$includedir"
4287
4288eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4289
4290eval "eval INFO_DIR=$infodir"
4291
4292eval "eval MAN_DIR=$mandir"
4293
4294
4295# Get full paths to source and build directories
4296srcdirfull="`cd $srcdir && pwd`"
4297builddir="`pwd`"
4298
4299#
4300# Compute variables useful for running uninstalled software.
4301#
4302MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4303MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4304MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4305MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4306DIRSEP=':'
4307case "${build_os}" in
4308 mingw* )
4309 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4310 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4311 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4312 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4313 DIRSEP=';'
4314 ;;
4315esac
4316case "${host_os}" in
4317 mingw* )
4318 DIRSEP=';'
4319 ;;
4320esac
4321
4322
4323
4324
4325
4326
cristya0b81c32010-01-22 02:54:33 +00004327
4328#
4329# Enable OS features.
4330#
cristy73bd4a52010-10-05 11:24:23 +00004331DEPDIR="${am__leading_dot}deps"
4332
4333ac_config_commands="$ac_config_commands depfiles"
4334
4335
4336am_make=${MAKE-make}
4337cat > confinc << 'END'
4338am__doit:
4339 @echo this is the am__doit target
4340.PHONY: am__doit
4341END
4342# If we don't find an include directive, just comment out the code.
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4344$as_echo_n "checking for style of include used by $am_make... " >&6; }
4345am__include="#"
4346am__quote=
4347_am_result=none
4348# First try GNU make style include.
4349echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004350# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004351case `$am_make -s -f confmf 2> /dev/null` in #(
4352*the\ am__doit\ target*)
4353 am__include=include
4354 am__quote=
4355 _am_result=GNU
4356 ;;
4357esac
4358# Now try BSD make style include.
4359if test "$am__include" = "#"; then
4360 echo '.include "confinc"' > confmf
4361 case `$am_make -s -f confmf 2> /dev/null` in #(
4362 *the\ am__doit\ target*)
4363 am__include=.include
4364 am__quote="\""
4365 _am_result=BSD
4366 ;;
4367 esac
4368fi
4369
4370
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4372$as_echo "$_am_result" >&6; }
4373rm -f confinc confmf
4374
4375# Check whether --enable-dependency-tracking was given.
4376if test "${enable_dependency_tracking+set}" = set; then :
4377 enableval=$enable_dependency_tracking;
4378fi
4379
4380if test "x$enable_dependency_tracking" != xno; then
4381 am_depcomp="$ac_aux_dir/depcomp"
4382 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004383 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004384fi
4385 if test "x$enable_dependency_tracking" != xno; then
4386 AMDEP_TRUE=
4387 AMDEP_FALSE='#'
4388else
4389 AMDEP_TRUE='#'
4390 AMDEP_FALSE=
4391fi
4392
4393
cristy3ed852e2009-09-05 21:47:34 +00004394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399if test -n "$ac_tool_prefix"; then
4400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4401set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004404if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004405 $as_echo_n "(cached) " >&6
4406else
4407 if test -n "$CC"; then
4408 ac_cv_prog_CC="$CC" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004419 break 2
4420 fi
4421done
cristy8b350f62009-11-15 23:12:43 +00004422 done
cristy3ed852e2009-09-05 21:47:34 +00004423IFS=$as_save_IFS
4424
4425fi
4426fi
4427CC=$ac_cv_prog_CC
4428if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004430$as_echo "$CC" >&6; }
4431else
cristy8b350f62009-11-15 23:12:43 +00004432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433$as_echo "no" >&6; }
4434fi
4435
4436
4437fi
4438if test -z "$ac_cv_prog_CC"; then
4439 ac_ct_CC=$CC
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004444if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004445 $as_echo_n "(cached) " >&6
4446else
4447 if test -n "$ac_ct_CC"; then
4448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004457 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 break 2
4460 fi
4461done
cristy8b350f62009-11-15 23:12:43 +00004462 done
cristy3ed852e2009-09-05 21:47:34 +00004463IFS=$as_save_IFS
4464
4465fi
4466fi
4467ac_ct_CC=$ac_cv_prog_ac_ct_CC
4468if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo "$ac_ct_CC" >&6; }
4471else
cristy8b350f62009-11-15 23:12:43 +00004472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004473$as_echo "no" >&6; }
4474fi
4475
4476 if test "x$ac_ct_CC" = x; then
4477 CC=""
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480yes:)
cristy8b350f62009-11-15 23:12:43 +00004481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483ac_tool_warned=yes ;;
4484esac
4485 CC=$ac_ct_CC
4486 fi
4487else
4488 CC="$ac_cv_prog_CC"
4489fi
4490
4491if test -z "$CC"; then
4492 if test -n "$ac_tool_prefix"; then
4493 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4494set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004497if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004498 $as_echo_n "(cached) " >&6
4499else
4500 if test -n "$CC"; then
4501 ac_cv_prog_CC="$CC" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004508 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004510 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004512 break 2
4513 fi
4514done
cristy8b350f62009-11-15 23:12:43 +00004515 done
cristy3ed852e2009-09-05 21:47:34 +00004516IFS=$as_save_IFS
4517
4518fi
4519fi
4520CC=$ac_cv_prog_CC
4521if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "$CC" >&6; }
4524else
cristy8b350f62009-11-15 23:12:43 +00004525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "no" >&6; }
4527fi
4528
4529
4530 fi
4531fi
4532if test -z "$CC"; then
4533 # Extract the first word of "cc", so it can be a program name with args.
4534set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004537if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004538 $as_echo_n "(cached) " >&6
4539else
4540 if test -n "$CC"; then
4541 ac_cv_prog_CC="$CC" # Let the user override the test.
4542else
4543 ac_prog_rejected=no
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004551 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4552 ac_prog_rejected=yes
4553 continue
4554 fi
4555 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004557 break 2
4558 fi
4559done
cristy8b350f62009-11-15 23:12:43 +00004560 done
cristy3ed852e2009-09-05 21:47:34 +00004561IFS=$as_save_IFS
4562
4563if test $ac_prog_rejected = yes; then
4564 # We found a bogon in the path, so make sure we never use it.
4565 set dummy $ac_cv_prog_CC
4566 shift
4567 if test $# != 0; then
4568 # We chose a different compiler from the bogus one.
4569 # However, it has the same basename, so the bogon will be chosen
4570 # first if we set CC to just the basename; use the full file name.
4571 shift
4572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4573 fi
4574fi
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "$CC" >&6; }
4581else
cristy8b350f62009-11-15 23:12:43 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "no" >&6; }
4584fi
4585
4586
4587fi
4588if test -z "$CC"; then
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in cl.exe
4591 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004596if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$CC"; then
4600 ac_cv_prog_CC="$CC" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004611 break 2
4612 fi
4613done
cristy8b350f62009-11-15 23:12:43 +00004614 done
cristy3ed852e2009-09-05 21:47:34 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619CC=$ac_cv_prog_CC
4620if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004622$as_echo "$CC" >&6; }
4623else
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "no" >&6; }
4626fi
4627
4628
4629 test -n "$CC" && break
4630 done
4631fi
4632if test -z "$CC"; then
4633 ac_ct_CC=$CC
4634 for ac_prog in cl.exe
4635do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004640if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_CC"; then
4644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004653 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 break 2
4656 fi
4657done
cristy8b350f62009-11-15 23:12:43 +00004658 done
cristy3ed852e2009-09-05 21:47:34 +00004659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_CC=$ac_cv_prog_ac_ct_CC
4664if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_ct_CC" >&6; }
4667else
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "no" >&6; }
4670fi
4671
4672
4673 test -n "$ac_ct_CC" && break
4674done
4675
4676 if test "x$ac_ct_CC" = x; then
4677 CC=""
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680yes:)
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683ac_tool_warned=yes ;;
4684esac
4685 CC=$ac_ct_CC
4686 fi
4687fi
4688
4689fi
4690
4691
cristy8b350f62009-11-15 23:12:43 +00004692test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004694as_fn_error $? "no acceptable C compiler found in \$PATH
4695See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004696
4697# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004698$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699set X $ac_compile
4700ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004701for ac_option in --version -v -V -qversion; do
4702 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004703case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706esac
cristy8b350f62009-11-15 23:12:43 +00004707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4708$as_echo "$ac_try_echo"; } >&5
4709 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004710 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004711 if test -s conftest.err; then
4712 sed '10a\
4713... rest of stderr output deleted ...
4714 10q' conftest.err >conftest.er1
4715 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004716 fi
cristycd4c5312009-11-22 01:19:08 +00004717 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720done
cristy3ed852e2009-09-05 21:47:34 +00004721
cristy8b350f62009-11-15 23:12:43 +00004722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004723/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004724
cristy3ed852e2009-09-05 21:47:34 +00004725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004734ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004735# Try to create an executable without -o first, disregard a.out.
4736# It will help us diagnose broken compilers, and finding out an intuition
4737# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4739$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004740ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4741
4742# The possible output files:
4743ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4744
4745ac_rmfiles=
4746for ac_file in $ac_files
4747do
4748 case $ac_file in
4749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4750 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4751 esac
4752done
4753rm -f $ac_rmfiles
4754
cristy8b350f62009-11-15 23:12:43 +00004755if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004756case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759esac
cristy8b350f62009-11-15 23:12:43 +00004760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4761$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004762 (eval "$ac_link_default") 2>&5
4763 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4765 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004766 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4767# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4768# in a Makefile. We should not override ac_cv_exeext if it was cached,
4769# so that the user can short-circuit this test for compilers unknown to
4770# Autoconf.
4771for ac_file in $ac_files ''
4772do
4773 test -f "$ac_file" || continue
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4776 ;;
4777 [ab].out )
4778 # We found the default executable, but exeext='' is most
4779 # certainly right.
4780 break;;
4781 *.* )
cristy8b350f62009-11-15 23:12:43 +00004782 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004783 then :; else
4784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4785 fi
4786 # We set ac_cv_exeext here because the later test for it is not
4787 # safe: cross compilers may not add the suffix if given an `-o'
4788 # argument, so we may need to know it at that point already.
4789 # Even if this section looks crufty: it has the advantage of
4790 # actually working.
4791 break;;
4792 * )
4793 break;;
4794 esac
4795done
4796test "$ac_cv_exeext" = no && ac_cv_exeext=
4797
4798else
4799 ac_file=''
4800fi
cristy8b350f62009-11-15 23:12:43 +00004801if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004805sed 's/^/| /' conftest.$ac_ext >&5
4806
cristy8b350f62009-11-15 23:12:43 +00004807{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004809as_fn_error 77 "C compiler cannot create executables
4810See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4813$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004814fi
cristycd4c5312009-11-22 01:19:08 +00004815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4816$as_echo_n "checking for C compiler default output file name... " >&6; }
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4818$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004819ac_exeext=$ac_cv_exeext
4820
cristycd4c5312009-11-22 01:19:08 +00004821rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004822ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004825if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
cristy8b350f62009-11-15 23:12:43 +00004830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004832 (eval "$ac_link") 2>&5
4833 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4835 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4837# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4838# work properly (i.e., refer to `conftest.exe'), while it won't with
4839# `rm'.
4840for ac_file in conftest.exe conftest conftest.*; do
4841 test -f "$ac_file" || continue
4842 case $ac_file in
4843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4845 break;;
4846 * ) break;;
4847 esac
4848done
4849else
cristy8b350f62009-11-15 23:12:43 +00004850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004852as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4853See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004854fi
cristycd4c5312009-11-22 01:19:08 +00004855rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo "$ac_cv_exeext" >&6; }
4858
4859rm -f conftest.$ac_ext
4860EXEEXT=$ac_cv_exeext
4861ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h. */
4864#include <stdio.h>
4865int
4866main ()
4867{
4868FILE *f = fopen ("conftest.out", "w");
4869 return ferror (f) || fclose (f) != 0;
4870
4871 ;
4872 return 0;
4873}
4874_ACEOF
4875ac_clean_files="$ac_clean_files conftest.out"
4876# Check that the compiler produces executables we can run. If not, either
4877# the compiler is broken, or we cross compile.
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4879$as_echo_n "checking whether we are cross compiling... " >&6; }
4880if test "$cross_compiling" != yes; then
4881 { { ac_try="$ac_link"
4882case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885esac
4886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4887$as_echo "$ac_try_echo"; } >&5
4888 (eval "$ac_link") 2>&5
4889 ac_status=$?
4890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4891 test $ac_status = 0; }
4892 if { ac_try='./conftest$ac_cv_exeext'
4893 { { case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896esac
4897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898$as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_try") 2>&5
4900 ac_status=$?
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; }; then
4903 cross_compiling=no
4904 else
4905 if test "$cross_compiling" = maybe; then
4906 cross_compiling=yes
4907 else
4908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004910as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004911If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004912See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004913 fi
4914 fi
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4917$as_echo "$cross_compiling" >&6; }
4918
4919rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4920ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004922$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004923if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 $as_echo_n "(cached) " >&6
4925else
cristy8b350f62009-11-15 23:12:43 +00004926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932
4933 ;
4934 return 0;
4935}
4936_ACEOF
4937rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004938if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
cristy8b350f62009-11-15 23:12:43 +00004943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004945 (eval "$ac_compile") 2>&5
4946 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004949 for ac_file in conftest.o conftest.obj conftest.*; do
4950 test -f "$ac_file" || continue;
4951 case $ac_file in
4952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4954 break;;
4955 esac
4956done
4957else
4958 $as_echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
cristy8b350f62009-11-15 23:12:43 +00004961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004963as_fn_error $? "cannot compute suffix of object files: cannot compile
4964See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004965fi
cristy3ed852e2009-09-05 21:47:34 +00004966rm -f conftest.$ac_cv_objext conftest.$ac_ext
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo "$ac_cv_objext" >&6; }
4970OBJEXT=$ac_cv_objext
4971ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004973$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004974if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004975 $as_echo_n "(cached) " >&6
4976else
cristy8b350f62009-11-15 23:12:43 +00004977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004978/* end confdefs.h. */
4979
4980int
4981main ()
4982{
4983#ifndef __GNUC__
4984 choke me
4985#endif
4986
4987 ;
4988 return 0;
4989}
4990_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004991if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 ac_compiler_gnu=yes
4993else
cristy8b350f62009-11-15 23:12:43 +00004994 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004995fi
cristy3ed852e2009-09-05 21:47:34 +00004996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997ac_cv_c_compiler_gnu=$ac_compiler_gnu
4998
4999fi
cristy8b350f62009-11-15 23:12:43 +00005000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005001$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5002if test $ac_compiler_gnu = yes; then
5003 GCC=yes
5004else
5005 GCC=
5006fi
5007ac_test_CFLAGS=${CFLAGS+set}
5008ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005011if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005012 $as_echo_n "(cached) " >&6
5013else
5014 ac_save_c_werror_flag=$ac_c_werror_flag
5015 ac_c_werror_flag=yes
5016 ac_cv_prog_cc_g=no
5017 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005019/* end confdefs.h. */
5020
5021int
5022main ()
5023{
5024
5025 ;
5026 return 0;
5027}
5028_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005029if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005030 ac_cv_prog_cc_g=yes
5031else
cristy8b350f62009-11-15 23:12:43 +00005032 CFLAGS=""
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005034/* end confdefs.h. */
5035
5036int
5037main ()
5038{
5039
5040 ;
5041 return 0;
5042}
5043_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005044if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005045
cristy8b350f62009-11-15 23:12:43 +00005046else
5047 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005048 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005050/* end confdefs.h. */
5051
5052int
5053main ()
5054{
5055
5056 ;
5057 return 0;
5058}
5059_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005061 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005062fi
cristy3ed852e2009-09-05 21:47:34 +00005063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
cristy3ed852e2009-09-05 21:47:34 +00005065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
cristy3ed852e2009-09-05 21:47:34 +00005067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5069fi
cristy8b350f62009-11-15 23:12:43 +00005070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005071$as_echo "$ac_cv_prog_cc_g" >&6; }
5072if test "$ac_test_CFLAGS" = set; then
5073 CFLAGS=$ac_save_CFLAGS
5074elif test $ac_cv_prog_cc_g = yes; then
5075 if test "$GCC" = yes; then
5076 CFLAGS="-g -O2"
5077 else
5078 CFLAGS="-g"
5079 fi
5080else
5081 if test "$GCC" = yes; then
5082 CFLAGS="-O2"
5083 else
5084 CFLAGS=
5085 fi
5086fi
cristy8b350f62009-11-15 23:12:43 +00005087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005088$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005089if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005090 $as_echo_n "(cached) " >&6
5091else
5092 ac_cv_prog_cc_c89=no
5093ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005095/* end confdefs.h. */
5096#include <stdarg.h>
5097#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005098struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5100struct buf { int x; };
5101FILE * (*rcsopen) (struct buf *, struct stat *, int);
5102static char *e (p, i)
5103 char **p;
5104 int i;
5105{
5106 return p[i];
5107}
5108static char *f (char * (*g) (char **, int), char **p, ...)
5109{
5110 char *s;
5111 va_list v;
5112 va_start (v,p);
5113 s = g (p, va_arg (v,int));
5114 va_end (v);
5115 return s;
5116}
5117
5118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5119 function prototypes and stuff, but not '\xHH' hex character constants.
5120 These don't provoke an error unfortunately, instead are silently treated
5121 as 'x'. The following induces an error, until -std is added to get
5122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5123 array size at least. It's necessary to write '\x00'==0 to get something
5124 that's true only with -std. */
5125int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5126
5127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5128 inside strings and character constants. */
5129#define FOO(x) 'x'
5130int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5131
5132int test (int i, double x);
5133struct s1 {int (*f) (int a);};
5134struct s2 {int (*f) (double a);};
5135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5136int argc;
5137char **argv;
5138int
5139main ()
5140{
5141return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5142 ;
5143 return 0;
5144}
5145_ACEOF
5146for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5148do
5149 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005150 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005151 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005152fi
cristy3ed852e2009-09-05 21:47:34 +00005153rm -f core conftest.err conftest.$ac_objext
5154 test "x$ac_cv_prog_cc_c89" != "xno" && break
5155done
5156rm -f conftest.$ac_ext
5157CC=$ac_save_CC
5158
5159fi
5160# AC_CACHE_VAL
5161case "x$ac_cv_prog_cc_c89" in
5162 x)
cristy8b350f62009-11-15 23:12:43 +00005163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005164$as_echo "none needed" >&6; } ;;
5165 xno)
cristy8b350f62009-11-15 23:12:43 +00005166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005167$as_echo "unsupported" >&6; } ;;
5168 *)
5169 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005171$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5172esac
cristy8b350f62009-11-15 23:12:43 +00005173if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005174
cristy8b350f62009-11-15 23:12:43 +00005175fi
cristy3ed852e2009-09-05 21:47:34 +00005176
5177ac_ext=c
5178ac_cpp='$CPP $CPPFLAGS'
5179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005182
cristy73bd4a52010-10-05 11:24:23 +00005183depcc="$CC" am_compiler_list=
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5186$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005187if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005188 $as_echo_n "(cached) " >&6
5189else
5190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5191 # We make a subdir and do the tests there. Otherwise we can end up
5192 # making bogus files that we don't know about and never remove. For
5193 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005194 # making a dummy file named 'D' -- because '-MD' means "put the output
5195 # in D".
cristy7247bba2012-02-05 16:37:27 +00005196 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005197 mkdir conftest.dir
5198 # Copy depcomp to subdir because otherwise we won't find it if we're
5199 # using a relative directory.
5200 cp "$am_depcomp" conftest.dir
5201 cd conftest.dir
5202 # We will build objects and dependencies in a subdirectory because
5203 # it helps to detect inapplicable dependency modes. For instance
5204 # both Tru64's cc and ICC support -MD to output dependencies as a
5205 # side effect of compilation, but ICC will put the dependencies in
5206 # the current directory while Tru64 will put them in the object
5207 # directory.
5208 mkdir sub
5209
5210 am_cv_CC_dependencies_compiler_type=none
5211 if test "$am_compiler_list" = ""; then
5212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5213 fi
5214 am__universal=false
5215 case " $depcc " in #(
5216 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5217 esac
5218
5219 for depmode in $am_compiler_list; do
5220 # Setup a source with many dependencies, because some compilers
5221 # like to wrap large dependency lists on column 80 (with \), and
5222 # we should not choose a depcomp mode which is confused by this.
5223 #
5224 # We need to recreate these files for each test, as the compiler may
5225 # overwrite some of them when testing with obscure command lines.
5226 # This happens at least with the AIX C compiler.
5227 : > sub/conftest.c
5228 for i in 1 2 3 4 5 6; do
5229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5231 # Solaris 10 /bin/sh.
5232 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005233 done
5234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5235
cristyc0890a62012-07-19 00:18:20 +00005236 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005237 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005238 # handle '-M -o', and we need to detect this. Also, some Intel
5239 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005240 am__obj=sub/conftest.${OBJEXT-o}
5241 am__minus_obj="-o $am__obj"
5242 case $depmode in
5243 gcc)
5244 # This depmode causes a compiler race in universal mode.
5245 test "$am__universal" = false || continue
5246 ;;
5247 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005248 # After this tag, mechanisms are not by side-effect, so they'll
5249 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005250 if test "x$enable_dependency_tracking" = xyes; then
5251 continue
5252 else
5253 break
5254 fi
5255 ;;
cristy7247bba2012-02-05 16:37:27 +00005256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005257 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005258 # not run yet. These depmodes are late enough in the game, and
5259 # so weak that their functioning should not be impacted.
5260 am__obj=conftest.${OBJEXT-o}
5261 am__minus_obj=
5262 ;;
5263 none) break ;;
5264 esac
5265 if depmode=$depmode \
5266 source=sub/conftest.c object=$am__obj \
5267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5269 >/dev/null 2>conftest.err &&
5270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5274 # icc doesn't choke on unknown options, it will just issue warnings
5275 # or remarks (even with -Werror). So we grep stderr for any message
5276 # that says an option was ignored or not supported.
5277 # When given -MP, icc 7.0 and 7.1 complain thusly:
5278 # icc: Command line warning: ignoring option '-M'; no argument required
5279 # The diagnosis changed in icc 8.0:
5280 # icc: Command line remark: option '-MP' not supported
5281 if (grep 'ignoring option' conftest.err ||
5282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5283 am_cv_CC_dependencies_compiler_type=$depmode
5284 break
5285 fi
5286 fi
5287 done
5288
5289 cd ..
5290 rm -rf conftest.dir
5291else
5292 am_cv_CC_dependencies_compiler_type=none
5293fi
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5297$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5299
5300 if
5301 test "x$enable_dependency_tracking" != xno \
5302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5303 am__fastdepCC_TRUE=
5304 am__fastdepCC_FALSE='#'
5305else
5306 am__fastdepCC_TRUE='#'
5307 am__fastdepCC_FALSE=
5308fi
5309
5310
cristy3ed852e2009-09-05 21:47:34 +00005311
cristya0b81c32010-01-22 02:54:33 +00005312ac_ext=c
5313ac_cpp='$CPP $CPPFLAGS'
5314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5318$as_echo_n "checking how to run the C preprocessor... " >&6; }
5319# On Suns, sometimes $CPP names a directory.
5320if test -n "$CPP" && test -d "$CPP"; then
5321 CPP=
5322fi
5323if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005324 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005325 $as_echo_n "(cached) " >&6
5326else
5327 # Double quotes because CPP needs to be expanded
5328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5329 do
5330 ac_preproc_ok=false
5331for ac_c_preproc_warn_flag in '' yes
5332do
5333 # Use a header file that comes with gcc, so configuring glibc
5334 # with a fresh cross-compiler works.
5335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336 # <limits.h> exists even on freestanding compilers.
5337 # On the NeXT, cc -E runs the code through the compiler's parser,
5338 # not just through cpp. "Syntax error" is here to catch this case.
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h. */
5341#ifdef __STDC__
5342# include <limits.h>
5343#else
5344# include <assert.h>
5345#endif
5346 Syntax error
5347_ACEOF
5348if ac_fn_c_try_cpp "$LINENO"; then :
5349
5350else
5351 # Broken: fails on valid input.
5352continue
5353fi
cristyda16f162011-02-19 23:52:17 +00005354rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005355
5356 # OK, works on sane cases. Now check whether nonexistent headers
5357 # can be detected and how.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359/* end confdefs.h. */
5360#include <ac_nonexistent.h>
5361_ACEOF
5362if ac_fn_c_try_cpp "$LINENO"; then :
5363 # Broken: success on invalid input.
5364continue
5365else
5366 # Passes both tests.
5367ac_preproc_ok=:
5368break
5369fi
cristyda16f162011-02-19 23:52:17 +00005370rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005371
5372done
5373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005374rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005375if $ac_preproc_ok; then :
5376 break
5377fi
5378
5379 done
5380 ac_cv_prog_CPP=$CPP
5381
5382fi
5383 CPP=$ac_cv_prog_CPP
5384else
5385 ac_cv_prog_CPP=$CPP
5386fi
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5388$as_echo "$CPP" >&6; }
5389ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h. */
5400#ifdef __STDC__
5401# include <limits.h>
5402#else
5403# include <assert.h>
5404#endif
5405 Syntax error
5406_ACEOF
5407if ac_fn_c_try_cpp "$LINENO"; then :
5408
5409else
5410 # Broken: fails on valid input.
5411continue
5412fi
cristyda16f162011-02-19 23:52:17 +00005413rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005414
5415 # OK, works on sane cases. Now check whether nonexistent headers
5416 # can be detected and how.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h. */
5419#include <ac_nonexistent.h>
5420_ACEOF
5421if ac_fn_c_try_cpp "$LINENO"; then :
5422 # Broken: success on invalid input.
5423continue
5424else
5425 # Passes both tests.
5426ac_preproc_ok=:
5427break
5428fi
cristyda16f162011-02-19 23:52:17 +00005429rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005430
5431done
5432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005433rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005434if $ac_preproc_ok; then :
5435
5436else
5437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005439as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5440See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005441fi
5442
5443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5451$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005452if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005453 $as_echo_n "(cached) " >&6
5454else
5455 if test -z "$GREP"; then
5456 ac_path_GREP_found=false
5457 # Loop through the user's path and test for each of PROGNAME-LIST
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_prog in grep ggrep; do
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005466 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005467# Check for GNU ac_path_GREP and select it if it is found.
5468 # Check for GNU $ac_path_GREP
5469case `"$ac_path_GREP" --version 2>&1` in
5470*GNU*)
5471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5472*)
5473 ac_count=0
5474 $as_echo_n 0123456789 >"conftest.in"
5475 while :
5476 do
5477 cat "conftest.in" "conftest.in" >"conftest.tmp"
5478 mv "conftest.tmp" "conftest.in"
5479 cp "conftest.in" "conftest.nl"
5480 $as_echo 'GREP' >> "conftest.nl"
5481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5483 as_fn_arith $ac_count + 1 && ac_count=$as_val
5484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5485 # Best one so far, save it but keep looking for a better one
5486 ac_cv_path_GREP="$ac_path_GREP"
5487 ac_path_GREP_max=$ac_count
5488 fi
5489 # 10*(2^10) chars as input seems more than enough
5490 test $ac_count -gt 10 && break
5491 done
5492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493esac
5494
5495 $ac_path_GREP_found && break 3
5496 done
5497 done
5498 done
5499IFS=$as_save_IFS
5500 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005501 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005502 fi
5503else
5504 ac_cv_path_GREP=$GREP
5505fi
5506
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5509$as_echo "$ac_cv_path_GREP" >&6; }
5510 GREP="$ac_cv_path_GREP"
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5514$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005515if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005516 $as_echo_n "(cached) " >&6
5517else
5518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5519 then ac_cv_path_EGREP="$GREP -E"
5520 else
5521 if test -z "$EGREP"; then
5522 ac_path_EGREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_prog in egrep; do
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005532 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005533# Check for GNU ac_path_EGREP and select it if it is found.
5534 # Check for GNU $ac_path_EGREP
5535case `"$ac_path_EGREP" --version 2>&1` in
5536*GNU*)
5537 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5538*)
5539 ac_count=0
5540 $as_echo_n 0123456789 >"conftest.in"
5541 while :
5542 do
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'EGREP' >> "conftest.nl"
5547 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549 as_fn_arith $ac_count + 1 && ac_count=$as_val
5550 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_EGREP="$ac_path_EGREP"
5553 ac_path_EGREP_max=$ac_count
5554 fi
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5557 done
5558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5559esac
5560
5561 $ac_path_EGREP_found && break 3
5562 done
5563 done
5564 done
5565IFS=$as_save_IFS
5566 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005567 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005568 fi
5569else
5570 ac_cv_path_EGREP=$EGREP
5571fi
5572
5573 fi
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5576$as_echo "$ac_cv_path_EGREP" >&6; }
5577 EGREP="$ac_cv_path_EGREP"
5578
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5581$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005582if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005583 $as_echo_n "(cached) " >&6
5584else
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587#include <stdlib.h>
5588#include <stdarg.h>
5589#include <string.h>
5590#include <float.h>
5591
5592int
5593main ()
5594{
5595
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_cv_header_stdc=yes
5602else
5603 ac_cv_header_stdc=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606
5607if test $ac_cv_header_stdc = yes; then
5608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#include <string.h>
5612
5613_ACEOF
5614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "memchr" >/dev/null 2>&1; then :
5616
5617else
5618 ac_cv_header_stdc=no
5619fi
5620rm -f conftest*
5621
5622fi
5623
5624if test $ac_cv_header_stdc = yes; then
5625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628#include <stdlib.h>
5629
5630_ACEOF
5631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5632 $EGREP "free" >/dev/null 2>&1; then :
5633
5634else
5635 ac_cv_header_stdc=no
5636fi
5637rm -f conftest*
5638
5639fi
5640
5641if test $ac_cv_header_stdc = yes; then
5642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5643 if test "$cross_compiling" = yes; then :
5644 :
5645else
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648#include <ctype.h>
5649#include <stdlib.h>
5650#if ((' ' & 0x0FF) == 0x020)
5651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5653#else
5654# define ISLOWER(c) \
5655 (('a' <= (c) && (c) <= 'i') \
5656 || ('j' <= (c) && (c) <= 'r') \
5657 || ('s' <= (c) && (c) <= 'z'))
5658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5659#endif
5660
5661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5662int
5663main ()
5664{
5665 int i;
5666 for (i = 0; i < 256; i++)
5667 if (XOR (islower (i), ISLOWER (i))
5668 || toupper (i) != TOUPPER (i))
5669 return 2;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_run "$LINENO"; then :
5674
5675else
5676 ac_cv_header_stdc=no
5677fi
5678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5679 conftest.$ac_objext conftest.beam conftest.$ac_ext
5680fi
5681
5682fi
5683fi
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5685$as_echo "$ac_cv_header_stdc" >&6; }
5686if test $ac_cv_header_stdc = yes; then
5687
5688$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5689
5690fi
5691
5692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5694 inttypes.h stdint.h unistd.h
5695do :
5696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5698"
cristy98dddb52010-11-04 00:30:15 +00005699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005700 cat >>confdefs.h <<_ACEOF
5701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5702_ACEOF
5703
5704fi
5705
5706done
5707
5708
5709
5710 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 +00005711if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005712 MINIX=yes
5713else
5714 MINIX=
5715fi
5716
5717
5718 if test "$MINIX" = yes; then
5719
5720$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5721
5722
5723$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5724
5725
5726$as_echo "#define _MINIX 1" >>confdefs.h
5727
5728 fi
5729
5730
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5732$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005733if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005734 $as_echo_n "(cached) " >&6
5735else
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738
cristy14fefe52012-05-21 00:59:18 +00005739# define __EXTENSIONS__ 1
5740 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005741int
5742main ()
5743{
5744
5745 ;
5746 return 0;
5747}
5748_ACEOF
5749if ac_fn_c_try_compile "$LINENO"; then :
5750 ac_cv_safe_to_define___extensions__=yes
5751else
5752 ac_cv_safe_to_define___extensions__=no
5753fi
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5757$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5758 test $ac_cv_safe_to_define___extensions__ = yes &&
5759 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5760
5761 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5762
5763 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5764
5765 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5766
5767 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5768
5769
5770
5771# Check for programs
5772ac_ext=c
5773ac_cpp='$CPP $CPPFLAGS'
5774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776ac_compiler_gnu=$ac_cv_c_compiler_gnu
5777if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}gcc; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005782if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$CC"; then
5786 ac_cv_prog_CC="$CC" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803fi
5804fi
5805CC=$ac_cv_prog_CC
5806if test -n "$CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5808$as_echo "$CC" >&6; }
5809else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812fi
5813
5814
5815fi
5816if test -z "$ac_cv_prog_CC"; then
5817 ac_ct_CC=$CC
5818 # Extract the first word of "gcc", so it can be a program name with args.
5819set dummy gcc; ac_word=$2
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005822if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005823 $as_echo_n "(cached) " >&6
5824else
5825 if test -n "$ac_ct_CC"; then
5826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5827else
5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829for as_dir in $PATH
5830do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005835 ac_cv_prog_ac_ct_CC="gcc"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839done
5840 done
5841IFS=$as_save_IFS
5842
5843fi
5844fi
5845ac_ct_CC=$ac_cv_prog_ac_ct_CC
5846if test -n "$ac_ct_CC"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5848$as_echo "$ac_ct_CC" >&6; }
5849else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851$as_echo "no" >&6; }
5852fi
5853
5854 if test "x$ac_ct_CC" = x; then
5855 CC=""
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858yes:)
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861ac_tool_warned=yes ;;
5862esac
5863 CC=$ac_ct_CC
5864 fi
5865else
5866 CC="$ac_cv_prog_CC"
5867fi
5868
5869if test -z "$CC"; then
5870 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5872set dummy ${ac_tool_prefix}cc; ac_word=$2
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005875if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$CC"; then
5879 ac_cv_prog_CC="$CC" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005888 ac_cv_prog_CC="${ac_tool_prefix}cc"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893 done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898CC=$ac_cv_prog_CC
5899if test -n "$CC"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5901$as_echo "$CC" >&6; }
5902else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907
5908 fi
5909fi
5910if test -z "$CC"; then
5911 # Extract the first word of "cc", so it can be a program name with args.
5912set dummy cc; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005915if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005916 $as_echo_n "(cached) " >&6
5917else
5918 if test -n "$CC"; then
5919 ac_cv_prog_CC="$CC" # Let the user override the test.
5920else
5921 ac_prog_rejected=no
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5930 ac_prog_rejected=yes
5931 continue
5932 fi
5933 ac_cv_prog_CC="cc"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941if test $ac_prog_rejected = yes; then
5942 # We found a bogon in the path, so make sure we never use it.
5943 set dummy $ac_cv_prog_CC
5944 shift
5945 if test $# != 0; then
5946 # We chose a different compiler from the bogus one.
5947 # However, it has the same basename, so the bogon will be chosen
5948 # first if we set CC to just the basename; use the full file name.
5949 shift
5950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5951 fi
5952fi
5953fi
5954fi
5955CC=$ac_cv_prog_CC
5956if test -n "$CC"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5958$as_echo "$CC" >&6; }
5959else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961$as_echo "no" >&6; }
5962fi
5963
5964
5965fi
5966if test -z "$CC"; then
5967 if test -n "$ac_tool_prefix"; then
5968 for ac_prog in cl.exe
5969 do
5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005974if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$CC"; then
5978 ac_cv_prog_CC="$CC" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992 done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997CC=$ac_cv_prog_CC
5998if test -n "$CC"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6000$as_echo "$CC" >&6; }
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007 test -n "$CC" && break
6008 done
6009fi
6010if test -z "$CC"; then
6011 ac_ct_CC=$CC
6012 for ac_prog in cl.exe
6013do
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015set dummy $ac_prog; ac_word=$2
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006018if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006019 $as_echo_n "(cached) " >&6
6020else
6021 if test -n "$ac_ct_CC"; then
6022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006031 ac_cv_prog_ac_ct_CC="$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036 done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041ac_ct_CC=$ac_cv_prog_ac_ct_CC
6042if test -n "$ac_ct_CC"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6044$as_echo "$ac_ct_CC" >&6; }
6045else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047$as_echo "no" >&6; }
6048fi
6049
6050
6051 test -n "$ac_ct_CC" && break
6052done
6053
6054 if test "x$ac_ct_CC" = x; then
6055 CC=""
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061ac_tool_warned=yes ;;
6062esac
6063 CC=$ac_ct_CC
6064 fi
6065fi
6066
6067fi
6068
6069
6070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006072as_fn_error $? "no acceptable C compiler found in \$PATH
6073See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006074
6075# Provide some information about the compiler.
6076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6077set X $ac_compile
6078ac_compiler=$2
6079for ac_option in --version -v -V -qversion; do
6080 { { ac_try="$ac_compiler $ac_option >&5"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6086$as_echo "$ac_try_echo"; } >&5
6087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6088 ac_status=$?
6089 if test -s conftest.err; then
6090 sed '10a\
6091... rest of stderr output deleted ...
6092 10q' conftest.err >conftest.er1
6093 cat conftest.er1 >&5
6094 fi
6095 rm -f conftest.er1 conftest.err
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }
6098done
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6101$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006102if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006103 $as_echo_n "(cached) " >&6
6104else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h. */
6107
6108int
6109main ()
6110{
6111#ifndef __GNUC__
6112 choke me
6113#endif
6114
6115 ;
6116 return 0;
6117}
6118_ACEOF
6119if ac_fn_c_try_compile "$LINENO"; then :
6120 ac_compiler_gnu=yes
6121else
6122 ac_compiler_gnu=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125ac_cv_c_compiler_gnu=$ac_compiler_gnu
6126
6127fi
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6129$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6130if test $ac_compiler_gnu = yes; then
6131 GCC=yes
6132else
6133 GCC=
6134fi
6135ac_test_CFLAGS=${CFLAGS+set}
6136ac_save_CFLAGS=$CFLAGS
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6138$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006139if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 ac_save_c_werror_flag=$ac_c_werror_flag
6143 ac_c_werror_flag=yes
6144 ac_cv_prog_cc_g=no
6145 CFLAGS="-g"
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h. */
6148
6149int
6150main ()
6151{
6152
6153 ;
6154 return 0;
6155}
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158 ac_cv_prog_cc_g=yes
6159else
6160 CFLAGS=""
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164int
6165main ()
6166{
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172if ac_fn_c_try_compile "$LINENO"; then :
6173
6174else
6175 ac_c_werror_flag=$ac_save_c_werror_flag
6176 CFLAGS="-g"
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178/* end confdefs.h. */
6179
6180int
6181main ()
6182{
6183
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189 ac_cv_prog_cc_g=yes
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 ac_c_werror_flag=$ac_save_c_werror_flag
6197fi
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6199$as_echo "$ac_cv_prog_cc_g" >&6; }
6200if test "$ac_test_CFLAGS" = set; then
6201 CFLAGS=$ac_save_CFLAGS
6202elif test $ac_cv_prog_cc_g = yes; then
6203 if test "$GCC" = yes; then
6204 CFLAGS="-g -O2"
6205 else
6206 CFLAGS="-g"
6207 fi
6208else
6209 if test "$GCC" = yes; then
6210 CFLAGS="-O2"
6211 else
6212 CFLAGS=
6213 fi
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6216$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006217if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006218 $as_echo_n "(cached) " >&6
6219else
6220 ac_cv_prog_cc_c89=no
6221ac_save_CC=$CC
6222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h. */
6224#include <stdarg.h>
6225#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006226struct stat;
cristya0b81c32010-01-22 02:54:33 +00006227/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6228struct buf { int x; };
6229FILE * (*rcsopen) (struct buf *, struct stat *, int);
6230static char *e (p, i)
6231 char **p;
6232 int i;
6233{
6234 return p[i];
6235}
6236static char *f (char * (*g) (char **, int), char **p, ...)
6237{
6238 char *s;
6239 va_list v;
6240 va_start (v,p);
6241 s = g (p, va_arg (v,int));
6242 va_end (v);
6243 return s;
6244}
6245
6246/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6247 function prototypes and stuff, but not '\xHH' hex character constants.
6248 These don't provoke an error unfortunately, instead are silently treated
6249 as 'x'. The following induces an error, until -std is added to get
6250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6251 array size at least. It's necessary to write '\x00'==0 to get something
6252 that's true only with -std. */
6253int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6254
6255/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6256 inside strings and character constants. */
6257#define FOO(x) 'x'
6258int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6259
6260int test (int i, double x);
6261struct s1 {int (*f) (int a);};
6262struct s2 {int (*f) (double a);};
6263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6264int argc;
6265char **argv;
6266int
6267main ()
6268{
6269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6276do
6277 CC="$ac_save_CC $ac_arg"
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 ac_cv_prog_cc_c89=$ac_arg
6280fi
6281rm -f core conftest.err conftest.$ac_objext
6282 test "x$ac_cv_prog_cc_c89" != "xno" && break
6283done
6284rm -f conftest.$ac_ext
6285CC=$ac_save_CC
6286
6287fi
6288# AC_CACHE_VAL
6289case "x$ac_cv_prog_cc_c89" in
6290 x)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6292$as_echo "none needed" >&6; } ;;
6293 xno)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6295$as_echo "unsupported" >&6; } ;;
6296 *)
6297 CC="$CC $ac_cv_prog_cc_c89"
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6299$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6300esac
6301if test "x$ac_cv_prog_cc_c89" != xno; then :
6302
6303fi
6304
6305ac_ext=c
6306ac_cpp='$CPP $CPPFLAGS'
6307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309ac_compiler_gnu=$ac_cv_c_compiler_gnu
6310
cristy73bd4a52010-10-05 11:24:23 +00006311depcc="$CC" am_compiler_list=
6312
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6314$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006315if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006316 $as_echo_n "(cached) " >&6
6317else
6318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6319 # We make a subdir and do the tests there. Otherwise we can end up
6320 # making bogus files that we don't know about and never remove. For
6321 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006322 # making a dummy file named 'D' -- because '-MD' means "put the output
6323 # in D".
cristy7247bba2012-02-05 16:37:27 +00006324 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006325 mkdir conftest.dir
6326 # Copy depcomp to subdir because otherwise we won't find it if we're
6327 # using a relative directory.
6328 cp "$am_depcomp" conftest.dir
6329 cd conftest.dir
6330 # We will build objects and dependencies in a subdirectory because
6331 # it helps to detect inapplicable dependency modes. For instance
6332 # both Tru64's cc and ICC support -MD to output dependencies as a
6333 # side effect of compilation, but ICC will put the dependencies in
6334 # the current directory while Tru64 will put them in the object
6335 # directory.
6336 mkdir sub
6337
6338 am_cv_CC_dependencies_compiler_type=none
6339 if test "$am_compiler_list" = ""; then
6340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6341 fi
6342 am__universal=false
6343 case " $depcc " in #(
6344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6345 esac
6346
6347 for depmode in $am_compiler_list; do
6348 # Setup a source with many dependencies, because some compilers
6349 # like to wrap large dependency lists on column 80 (with \), and
6350 # we should not choose a depcomp mode which is confused by this.
6351 #
6352 # We need to recreate these files for each test, as the compiler may
6353 # overwrite some of them when testing with obscure command lines.
6354 # This happens at least with the AIX C compiler.
6355 : > sub/conftest.c
6356 for i in 1 2 3 4 5 6; do
6357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006358 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6359 # Solaris 10 /bin/sh.
6360 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006361 done
6362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6363
cristyc0890a62012-07-19 00:18:20 +00006364 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006365 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006366 # handle '-M -o', and we need to detect this. Also, some Intel
6367 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006368 am__obj=sub/conftest.${OBJEXT-o}
6369 am__minus_obj="-o $am__obj"
6370 case $depmode in
6371 gcc)
6372 # This depmode causes a compiler race in universal mode.
6373 test "$am__universal" = false || continue
6374 ;;
6375 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006376 # After this tag, mechanisms are not by side-effect, so they'll
6377 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006378 if test "x$enable_dependency_tracking" = xyes; then
6379 continue
6380 else
6381 break
6382 fi
6383 ;;
cristy7247bba2012-02-05 16:37:27 +00006384 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006385 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006386 # not run yet. These depmodes are late enough in the game, and
6387 # so weak that their functioning should not be impacted.
6388 am__obj=conftest.${OBJEXT-o}
6389 am__minus_obj=
6390 ;;
6391 none) break ;;
6392 esac
6393 if depmode=$depmode \
6394 source=sub/conftest.c object=$am__obj \
6395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6397 >/dev/null 2>conftest.err &&
6398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6402 # icc doesn't choke on unknown options, it will just issue warnings
6403 # or remarks (even with -Werror). So we grep stderr for any message
6404 # that says an option was ignored or not supported.
6405 # When given -MP, icc 7.0 and 7.1 complain thusly:
6406 # icc: Command line warning: ignoring option '-M'; no argument required
6407 # The diagnosis changed in icc 8.0:
6408 # icc: Command line remark: option '-MP' not supported
6409 if (grep 'ignoring option' conftest.err ||
6410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6411 am_cv_CC_dependencies_compiler_type=$depmode
6412 break
6413 fi
6414 fi
6415 done
6416
6417 cd ..
6418 rm -rf conftest.dir
6419else
6420 am_cv_CC_dependencies_compiler_type=none
6421fi
6422
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6425$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6426CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6427
6428 if
6429 test "x$enable_dependency_tracking" != xno \
6430 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6431 am__fastdepCC_TRUE=
6432 am__fastdepCC_FALSE='#'
6433else
6434 am__fastdepCC_TRUE='#'
6435 am__fastdepCC_FALSE=
6436fi
6437
6438
cristy95646052009-11-28 23:05:30 +00006439ac_ext=cpp
6440ac_cpp='$CXXCPP $CPPFLAGS'
6441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6444if test -z "$CXX"; then
6445 if test -n "$CCC"; then
6446 CXX=$CCC
6447 else
6448 if test -n "$ac_tool_prefix"; then
6449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6450 do
6451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006455if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006456 $as_echo_n "(cached) " >&6
6457else
6458 if test -n "$CXX"; then
6459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006468 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472done
6473 done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478CXX=$ac_cv_prog_CXX
6479if test -n "$CXX"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6481$as_echo "$CXX" >&6; }
6482else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488 test -n "$CXX" && break
6489 done
6490fi
6491if test -z "$CXX"; then
6492 ac_ct_CXX=$CXX
6493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6494do
6495 # Extract the first word of "$ac_prog", so it can be a program name with args.
6496set dummy $ac_prog; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006499if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$ac_ct_CXX"; then
6503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006512 ac_cv_prog_ac_ct_CXX="$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6523if test -n "$ac_ct_CXX"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6525$as_echo "$ac_ct_CXX" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531
6532 test -n "$ac_ct_CXX" && break
6533done
6534
6535 if test "x$ac_ct_CXX" = x; then
6536 CXX="g++"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544 CXX=$ac_ct_CXX
6545 fi
6546fi
6547
6548 fi
6549fi
6550# Provide some information about the compiler.
6551$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6552set X $ac_compile
6553ac_compiler=$2
6554for ac_option in --version -v -V -qversion; do
6555 { { ac_try="$ac_compiler $ac_option >&5"
6556case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559esac
6560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6561$as_echo "$ac_try_echo"; } >&5
6562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6563 ac_status=$?
6564 if test -s conftest.err; then
6565 sed '10a\
6566... rest of stderr output deleted ...
6567 10q' conftest.err >conftest.er1
6568 cat conftest.er1 >&5
6569 fi
6570 rm -f conftest.er1 conftest.err
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }
6573done
6574
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6576$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006577if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006578 $as_echo_n "(cached) " >&6
6579else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h. */
6582
6583int
6584main ()
6585{
6586#ifndef __GNUC__
6587 choke me
6588#endif
6589
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594if ac_fn_cxx_try_compile "$LINENO"; then :
6595 ac_compiler_gnu=yes
6596else
6597 ac_compiler_gnu=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6601
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6604$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6605if test $ac_compiler_gnu = yes; then
6606 GXX=yes
6607else
6608 GXX=
6609fi
6610ac_test_CXXFLAGS=${CXXFLAGS+set}
6611ac_save_CXXFLAGS=$CXXFLAGS
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6613$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006614if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006615 $as_echo_n "(cached) " >&6
6616else
6617 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6618 ac_cxx_werror_flag=yes
6619 ac_cv_prog_cxx_g=no
6620 CXXFLAGS="-g"
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h. */
6623
6624int
6625main ()
6626{
6627
6628 ;
6629 return 0;
6630}
6631_ACEOF
6632if ac_fn_cxx_try_compile "$LINENO"; then :
6633 ac_cv_prog_cxx_g=yes
6634else
6635 CXXFLAGS=""
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h. */
6638
6639int
6640main ()
6641{
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647if ac_fn_cxx_try_compile "$LINENO"; then :
6648
6649else
6650 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6651 CXXFLAGS="-g"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
6663if ac_fn_cxx_try_compile "$LINENO"; then :
6664 ac_cv_prog_cxx_g=yes
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669fi
6670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6674$as_echo "$ac_cv_prog_cxx_g" >&6; }
6675if test "$ac_test_CXXFLAGS" = set; then
6676 CXXFLAGS=$ac_save_CXXFLAGS
6677elif test $ac_cv_prog_cxx_g = yes; then
6678 if test "$GXX" = yes; then
6679 CXXFLAGS="-g -O2"
6680 else
6681 CXXFLAGS="-g"
6682 fi
6683else
6684 if test "$GXX" = yes; then
6685 CXXFLAGS="-O2"
6686 else
6687 CXXFLAGS=
6688 fi
6689fi
6690ac_ext=c
6691ac_cpp='$CPP $CPPFLAGS'
6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6694ac_compiler_gnu=$ac_cv_c_compiler_gnu
6695
cristy73bd4a52010-10-05 11:24:23 +00006696depcc="$CXX" am_compiler_list=
6697
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6699$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006700if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006701 $as_echo_n "(cached) " >&6
6702else
6703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6704 # We make a subdir and do the tests there. Otherwise we can end up
6705 # making bogus files that we don't know about and never remove. For
6706 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006707 # making a dummy file named 'D' -- because '-MD' means "put the output
6708 # in D".
cristy7247bba2012-02-05 16:37:27 +00006709 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006710 mkdir conftest.dir
6711 # Copy depcomp to subdir because otherwise we won't find it if we're
6712 # using a relative directory.
6713 cp "$am_depcomp" conftest.dir
6714 cd conftest.dir
6715 # We will build objects and dependencies in a subdirectory because
6716 # it helps to detect inapplicable dependency modes. For instance
6717 # both Tru64's cc and ICC support -MD to output dependencies as a
6718 # side effect of compilation, but ICC will put the dependencies in
6719 # the current directory while Tru64 will put them in the object
6720 # directory.
6721 mkdir sub
6722
6723 am_cv_CXX_dependencies_compiler_type=none
6724 if test "$am_compiler_list" = ""; then
6725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6726 fi
6727 am__universal=false
6728 case " $depcc " in #(
6729 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6730 esac
6731
6732 for depmode in $am_compiler_list; do
6733 # Setup a source with many dependencies, because some compilers
6734 # like to wrap large dependency lists on column 80 (with \), and
6735 # we should not choose a depcomp mode which is confused by this.
6736 #
6737 # We need to recreate these files for each test, as the compiler may
6738 # overwrite some of them when testing with obscure command lines.
6739 # This happens at least with the AIX C compiler.
6740 : > sub/conftest.c
6741 for i in 1 2 3 4 5 6; do
6742 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006743 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6744 # Solaris 10 /bin/sh.
6745 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006746 done
6747 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6748
cristyc0890a62012-07-19 00:18:20 +00006749 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006750 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006751 # handle '-M -o', and we need to detect this. Also, some Intel
6752 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006753 am__obj=sub/conftest.${OBJEXT-o}
6754 am__minus_obj="-o $am__obj"
6755 case $depmode in
6756 gcc)
6757 # This depmode causes a compiler race in universal mode.
6758 test "$am__universal" = false || continue
6759 ;;
6760 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006761 # After this tag, mechanisms are not by side-effect, so they'll
6762 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006763 if test "x$enable_dependency_tracking" = xyes; then
6764 continue
6765 else
6766 break
6767 fi
6768 ;;
cristy7247bba2012-02-05 16:37:27 +00006769 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006770 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006771 # not run yet. These depmodes are late enough in the game, and
6772 # so weak that their functioning should not be impacted.
6773 am__obj=conftest.${OBJEXT-o}
6774 am__minus_obj=
6775 ;;
6776 none) break ;;
6777 esac
6778 if depmode=$depmode \
6779 source=sub/conftest.c object=$am__obj \
6780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6781 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6782 >/dev/null 2>conftest.err &&
6783 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6785 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6787 # icc doesn't choke on unknown options, it will just issue warnings
6788 # or remarks (even with -Werror). So we grep stderr for any message
6789 # that says an option was ignored or not supported.
6790 # When given -MP, icc 7.0 and 7.1 complain thusly:
6791 # icc: Command line warning: ignoring option '-M'; no argument required
6792 # The diagnosis changed in icc 8.0:
6793 # icc: Command line remark: option '-MP' not supported
6794 if (grep 'ignoring option' conftest.err ||
6795 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6796 am_cv_CXX_dependencies_compiler_type=$depmode
6797 break
6798 fi
6799 fi
6800 done
6801
6802 cd ..
6803 rm -rf conftest.dir
6804else
6805 am_cv_CXX_dependencies_compiler_type=none
6806fi
6807
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6810$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6811CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6812
6813 if
6814 test "x$enable_dependency_tracking" != xno \
6815 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6816 am__fastdepCXX_TRUE=
6817 am__fastdepCXX_FALSE='#'
6818else
6819 am__fastdepCXX_TRUE='#'
6820 am__fastdepCXX_FALSE=
6821fi
6822
6823
cristy8b350f62009-11-15 23:12:43 +00006824 case $ac_cv_prog_cc_stdc in #(
6825 no) :
6826 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6827 *) :
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006830if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006831 $as_echo_n "(cached) " >&6
6832else
6833 ac_cv_prog_cc_c99=no
6834ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006836/* end confdefs.h. */
6837#include <stdarg.h>
6838#include <stdbool.h>
6839#include <stdlib.h>
6840#include <wchar.h>
6841#include <stdio.h>
6842
6843// Check varargs macros. These examples are taken from C99 6.10.3.5.
6844#define debug(...) fprintf (stderr, __VA_ARGS__)
6845#define showlist(...) puts (#__VA_ARGS__)
6846#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6847static void
6848test_varargs_macros (void)
6849{
6850 int x = 1234;
6851 int y = 5678;
6852 debug ("Flag");
6853 debug ("X = %d\n", x);
6854 showlist (The first, second, and third items.);
6855 report (x>y, "x is %d but y is %d", x, y);
6856}
6857
6858// Check long long types.
6859#define BIG64 18446744073709551615ull
6860#define BIG32 4294967295ul
6861#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6862#if !BIG_OK
6863 your preprocessor is broken;
6864#endif
6865#if BIG_OK
6866#else
6867 your preprocessor is broken;
6868#endif
6869static long long int bignum = -9223372036854775807LL;
6870static unsigned long long int ubignum = BIG64;
6871
6872struct incomplete_array
6873{
6874 int datasize;
6875 double data[];
6876};
6877
6878struct named_init {
6879 int number;
6880 const wchar_t *name;
6881 double average;
6882};
6883
6884typedef const char *ccp;
6885
6886static inline int
6887test_restrict (ccp restrict text)
6888{
6889 // See if C++-style comments work.
6890 // Iterate through items via the restricted pointer.
6891 // Also check for declarations in for loops.
6892 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6893 continue;
6894 return 0;
6895}
6896
6897// Check varargs and va_copy.
6898static void
6899test_varargs (const char *format, ...)
6900{
6901 va_list args;
6902 va_start (args, format);
6903 va_list args_copy;
6904 va_copy (args_copy, args);
6905
6906 const char *str;
6907 int number;
6908 float fnumber;
6909
6910 while (*format)
6911 {
6912 switch (*format++)
6913 {
6914 case 's': // string
6915 str = va_arg (args_copy, const char *);
6916 break;
6917 case 'd': // int
6918 number = va_arg (args_copy, int);
6919 break;
6920 case 'f': // float
6921 fnumber = va_arg (args_copy, double);
6922 break;
6923 default:
6924 break;
6925 }
6926 }
6927 va_end (args_copy);
6928 va_end (args);
6929}
6930
6931int
6932main ()
6933{
6934
6935 // Check bool.
6936 _Bool success = false;
6937
6938 // Check restrict.
6939 if (test_restrict ("String literal") == 0)
6940 success = true;
6941 char *restrict newvar = "Another string";
6942
6943 // Check varargs.
6944 test_varargs ("s, d' f .", "string", 65, 34.234);
6945 test_varargs_macros ();
6946
6947 // Check flexible array members.
6948 struct incomplete_array *ia =
6949 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6950 ia->datasize = 10;
6951 for (int i = 0; i < ia->datasize; ++i)
6952 ia->data[i] = i * 1.234;
6953
6954 // Check named initializers.
6955 struct named_init ni = {
6956 .number = 34,
6957 .name = L"Test wide string",
6958 .average = 543.34343,
6959 };
6960
6961 ni.number = 58;
6962
6963 int dynamic_array[ni.number];
6964 dynamic_array[ni.number - 1] = 543;
6965
6966 // work around unused variable warnings
6967 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6968 || dynamic_array[ni.number - 1] != 543);
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006974for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006975do
6976 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006977 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006978 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006979fi
cristy3ed852e2009-09-05 21:47:34 +00006980rm -f core conftest.err conftest.$ac_objext
6981 test "x$ac_cv_prog_cc_c99" != "xno" && break
6982done
6983rm -f conftest.$ac_ext
6984CC=$ac_save_CC
6985
6986fi
6987# AC_CACHE_VAL
6988case "x$ac_cv_prog_cc_c99" in
6989 x)
cristy8b350f62009-11-15 23:12:43 +00006990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006991$as_echo "none needed" >&6; } ;;
6992 xno)
cristy8b350f62009-11-15 23:12:43 +00006993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "unsupported" >&6; } ;;
6995 *)
6996 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006998$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6999esac
cristy8b350f62009-11-15 23:12:43 +00007000if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7002else
cristy8b350f62009-11-15 23:12:43 +00007003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007005if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007006 $as_echo_n "(cached) " >&6
7007else
7008 ac_cv_prog_cc_c89=no
7009ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007011/* end confdefs.h. */
7012#include <stdarg.h>
7013#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007014struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7016struct buf { int x; };
7017FILE * (*rcsopen) (struct buf *, struct stat *, int);
7018static char *e (p, i)
7019 char **p;
7020 int i;
7021{
7022 return p[i];
7023}
7024static char *f (char * (*g) (char **, int), char **p, ...)
7025{
7026 char *s;
7027 va_list v;
7028 va_start (v,p);
7029 s = g (p, va_arg (v,int));
7030 va_end (v);
7031 return s;
7032}
7033
7034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7035 function prototypes and stuff, but not '\xHH' hex character constants.
7036 These don't provoke an error unfortunately, instead are silently treated
7037 as 'x'. The following induces an error, until -std is added to get
7038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7039 array size at least. It's necessary to write '\x00'==0 to get something
7040 that's true only with -std. */
7041int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7042
7043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7044 inside strings and character constants. */
7045#define FOO(x) 'x'
7046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7047
7048int test (int i, double x);
7049struct s1 {int (*f) (int a);};
7050struct s2 {int (*f) (double a);};
7051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7052int argc;
7053char **argv;
7054int
7055main ()
7056{
7057return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7058 ;
7059 return 0;
7060}
7061_ACEOF
7062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7064do
7065 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007066 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007067 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007068fi
cristy3ed852e2009-09-05 21:47:34 +00007069rm -f core conftest.err conftest.$ac_objext
7070 test "x$ac_cv_prog_cc_c89" != "xno" && break
7071done
7072rm -f conftest.$ac_ext
7073CC=$ac_save_CC
7074
7075fi
7076# AC_CACHE_VAL
7077case "x$ac_cv_prog_cc_c89" in
7078 x)
cristy8b350f62009-11-15 23:12:43 +00007079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007080$as_echo "none needed" >&6; } ;;
7081 xno)
cristy8b350f62009-11-15 23:12:43 +00007082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007083$as_echo "unsupported" >&6; } ;;
7084 *)
7085 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7088esac
cristy8b350f62009-11-15 23:12:43 +00007089if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7091else
7092 ac_cv_prog_cc_stdc=no
7093fi
7094
cristy3ed852e2009-09-05 21:47:34 +00007095fi
cristy3ed852e2009-09-05 21:47:34 +00007096 ;;
7097esac
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102fi
7103
cristy8b350f62009-11-15 23:12:43 +00007104 case $ac_cv_prog_cc_stdc in #(
7105 no) :
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7107$as_echo "unsupported" >&6; } ;; #(
7108 '') :
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7110$as_echo "none needed" >&6; } ;; #(
7111 *) :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007113$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7114esac
7115
cristy3ed852e2009-09-05 21:47:34 +00007116ac_ext=c
7117ac_cpp='$CPP $CPPFLAGS'
7118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007122$as_echo_n "checking how to run the C preprocessor... " >&6; }
7123# On Suns, sometimes $CPP names a directory.
7124if test -n "$CPP" && test -d "$CPP"; then
7125 CPP=
7126fi
7127if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007128 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007129 $as_echo_n "(cached) " >&6
7130else
7131 # Double quotes because CPP needs to be expanded
7132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7133 do
7134 ac_preproc_ok=false
7135for ac_c_preproc_warn_flag in '' yes
7136do
7137 # Use a header file that comes with gcc, so configuring glibc
7138 # with a fresh cross-compiler works.
7139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140 # <limits.h> exists even on freestanding compilers.
7141 # On the NeXT, cc -E runs the code through the compiler's parser,
7142 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007144/* end confdefs.h. */
7145#ifdef __STDC__
7146# include <limits.h>
7147#else
7148# include <assert.h>
7149#endif
7150 Syntax error
7151_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007152if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007153
cristy8b350f62009-11-15 23:12:43 +00007154else
cristy3ed852e2009-09-05 21:47:34 +00007155 # Broken: fails on valid input.
7156continue
7157fi
cristyda16f162011-02-19 23:52:17 +00007158rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007159
7160 # OK, works on sane cases. Now check whether nonexistent headers
7161 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007163/* end confdefs.h. */
7164#include <ac_nonexistent.h>
7165_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007166if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007167 # Broken: success on invalid input.
7168continue
7169else
cristy3ed852e2009-09-05 21:47:34 +00007170 # Passes both tests.
7171ac_preproc_ok=:
7172break
7173fi
cristyda16f162011-02-19 23:52:17 +00007174rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007175
7176done
7177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007178rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007179if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007180 break
7181fi
7182
7183 done
7184 ac_cv_prog_CPP=$CPP
7185
7186fi
7187 CPP=$ac_cv_prog_CPP
7188else
7189 ac_cv_prog_CPP=$CPP
7190fi
cristy8b350f62009-11-15 23:12:43 +00007191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007192$as_echo "$CPP" >&6; }
7193ac_preproc_ok=false
7194for ac_c_preproc_warn_flag in '' yes
7195do
7196 # Use a header file that comes with gcc, so configuring glibc
7197 # with a fresh cross-compiler works.
7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 # <limits.h> exists even on freestanding compilers.
7200 # On the NeXT, cc -E runs the code through the compiler's parser,
7201 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007203/* end confdefs.h. */
7204#ifdef __STDC__
7205# include <limits.h>
7206#else
7207# include <assert.h>
7208#endif
7209 Syntax error
7210_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007211if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007212
cristy8b350f62009-11-15 23:12:43 +00007213else
cristy3ed852e2009-09-05 21:47:34 +00007214 # Broken: fails on valid input.
7215continue
7216fi
cristyda16f162011-02-19 23:52:17 +00007217rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007218
7219 # OK, works on sane cases. Now check whether nonexistent headers
7220 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007222/* end confdefs.h. */
7223#include <ac_nonexistent.h>
7224_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007225if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007226 # Broken: success on invalid input.
7227continue
7228else
cristy3ed852e2009-09-05 21:47:34 +00007229 # Passes both tests.
7230ac_preproc_ok=:
7231break
7232fi
cristyda16f162011-02-19 23:52:17 +00007233rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007234
7235done
7236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007237rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007238if $ac_preproc_ok; then :
7239
cristy3ed852e2009-09-05 21:47:34 +00007240else
cristy8b350f62009-11-15 23:12:43 +00007241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007243as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7244See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007245fi
7246
7247ac_ext=c
7248ac_cpp='$CPP $CPPFLAGS'
7249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
cristy73bd4a52010-10-05 11:24:23 +00007253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7254$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007255if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007256 $as_echo_n "(cached) " >&6
7257else
7258 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7259 for ac_i in 1 2 3 4 5 6 7; do
7260 ac_script="$ac_script$as_nl$ac_script"
7261 done
7262 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7263 { ac_script=; unset ac_script;}
7264 if test -z "$SED"; then
7265 ac_path_SED_found=false
7266 # Loop through the user's path and test for each of PROGNAME-LIST
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_prog in sed gsed; do
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007275 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007276# Check for GNU ac_path_SED and select it if it is found.
7277 # Check for GNU $ac_path_SED
7278case `"$ac_path_SED" --version 2>&1` in
7279*GNU*)
7280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7281*)
7282 ac_count=0
7283 $as_echo_n 0123456789 >"conftest.in"
7284 while :
7285 do
7286 cat "conftest.in" "conftest.in" >"conftest.tmp"
7287 mv "conftest.tmp" "conftest.in"
7288 cp "conftest.in" "conftest.nl"
7289 $as_echo '' >> "conftest.nl"
7290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7292 as_fn_arith $ac_count + 1 && ac_count=$as_val
7293 if test $ac_count -gt ${ac_path_SED_max-0}; then
7294 # Best one so far, save it but keep looking for a better one
7295 ac_cv_path_SED="$ac_path_SED"
7296 ac_path_SED_max=$ac_count
7297 fi
7298 # 10*(2^10) chars as input seems more than enough
7299 test $ac_count -gt 10 && break
7300 done
7301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7302esac
7303
7304 $ac_path_SED_found && break 3
7305 done
7306 done
7307 done
7308IFS=$as_save_IFS
7309 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007310 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007311 fi
7312else
7313 ac_cv_path_SED=$SED
7314fi
7315
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7318$as_echo "$ac_cv_path_SED" >&6; }
7319 SED="$ac_cv_path_SED"
7320 rm -f conftest.sed
7321
7322test -z "$SED" && SED=sed
7323Xsed="$SED -e 1s/^X//"
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7336$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007337if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007338 $as_echo_n "(cached) " >&6
7339else
7340 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7341 then ac_cv_path_FGREP="$GREP -F"
7342 else
7343 if test -z "$FGREP"; then
7344 ac_path_FGREP_found=false
7345 # Loop through the user's path and test for each of PROGNAME-LIST
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_prog in fgrep; do
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007354 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007355# Check for GNU ac_path_FGREP and select it if it is found.
7356 # Check for GNU $ac_path_FGREP
7357case `"$ac_path_FGREP" --version 2>&1` in
7358*GNU*)
7359 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7360*)
7361 ac_count=0
7362 $as_echo_n 0123456789 >"conftest.in"
7363 while :
7364 do
7365 cat "conftest.in" "conftest.in" >"conftest.tmp"
7366 mv "conftest.tmp" "conftest.in"
7367 cp "conftest.in" "conftest.nl"
7368 $as_echo 'FGREP' >> "conftest.nl"
7369 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7371 as_fn_arith $ac_count + 1 && ac_count=$as_val
7372 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7373 # Best one so far, save it but keep looking for a better one
7374 ac_cv_path_FGREP="$ac_path_FGREP"
7375 ac_path_FGREP_max=$ac_count
7376 fi
7377 # 10*(2^10) chars as input seems more than enough
7378 test $ac_count -gt 10 && break
7379 done
7380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7381esac
7382
7383 $ac_path_FGREP_found && break 3
7384 done
7385 done
7386 done
7387IFS=$as_save_IFS
7388 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007389 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007390 fi
7391else
7392 ac_cv_path_FGREP=$FGREP
7393fi
7394
7395 fi
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7398$as_echo "$ac_cv_path_FGREP" >&6; }
7399 FGREP="$ac_cv_path_FGREP"
7400
7401
7402test -z "$GREP" && GREP=grep
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
cristy0c60a692010-11-04 01:09:47 +00007420ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7421ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7423
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7425$as_echo_n "checking how to print strings... " >&6; }
7426# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007427if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007428 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7429 ECHO='print -r --'
7430elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7431 ECHO='printf %s\n'
7432else
7433 # Use this function as a fallback that always works.
7434 func_fallback_echo ()
7435 {
7436 eval 'cat <<_LTECHO_EOF
7437$1
7438_LTECHO_EOF'
7439 }
7440 ECHO='func_fallback_echo'
7441fi
7442
7443# func_echo_all arg...
7444# Invoke $ECHO with all args, space-separated.
7445func_echo_all ()
7446{
7447 $ECHO ""
7448}
7449
7450case "$ECHO" in
7451 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7452$as_echo "printf" >&6; } ;;
7453 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7454$as_echo "print -r" >&6; } ;;
7455 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7456$as_echo "cat" >&6; } ;;
7457esac
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
cristy73bd4a52010-10-05 11:24:23 +00007472
7473
7474# Check whether --with-gnu-ld was given.
7475if test "${with_gnu_ld+set}" = set; then :
7476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7477else
7478 with_gnu_ld=no
7479fi
7480
7481ac_prog=ld
7482if test "$GCC" = yes; then
7483 # Check if gcc -print-prog-name=ld gives a path.
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7485$as_echo_n "checking for ld used by $CC... " >&6; }
7486 case $host in
7487 *-*-mingw*)
7488 # gcc leaves a trailing carriage return which upsets mingw
7489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7490 *)
7491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7492 esac
7493 case $ac_prog in
7494 # Accept absolute paths.
7495 [\\/]* | ?:[\\/]*)
7496 re_direlt='/[^/][^/]*/\.\./'
7497 # Canonicalize the pathname of ld
7498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7501 done
7502 test -z "$LD" && LD="$ac_prog"
7503 ;;
7504 "")
7505 # If it fails, then pretend we aren't using GCC.
7506 ac_prog=ld
7507 ;;
7508 *)
7509 # If it is relative, then search for the first ld in PATH.
7510 with_gnu_ld=unknown
7511 ;;
7512 esac
7513elif test "$with_gnu_ld" = yes; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7515$as_echo_n "checking for GNU ld... " >&6; }
7516else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7518$as_echo_n "checking for non-GNU ld... " >&6; }
7519fi
cristyda16f162011-02-19 23:52:17 +00007520if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007521 $as_echo_n "(cached) " >&6
7522else
7523 if test -z "$LD"; then
7524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7525 for ac_dir in $PATH; do
7526 IFS="$lt_save_ifs"
7527 test -z "$ac_dir" && ac_dir=.
7528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7529 lt_cv_path_LD="$ac_dir/$ac_prog"
7530 # Check to see if the program is GNU ld. I'd rather use --version,
7531 # but apparently some variants of GNU ld only accept -v.
7532 # Break only if it was the GNU/non-GNU ld that we prefer.
7533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7534 *GNU* | *'with BFD'*)
7535 test "$with_gnu_ld" != no && break
7536 ;;
7537 *)
7538 test "$with_gnu_ld" != yes && break
7539 ;;
7540 esac
7541 fi
7542 done
7543 IFS="$lt_save_ifs"
7544else
7545 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7546fi
7547fi
7548
7549LD="$lt_cv_path_LD"
7550if test -n "$LD"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7552$as_echo "$LD" >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
cristy98dddb52010-11-04 00:30:15 +00007557test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7559$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007560if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007561 $as_echo_n "(cached) " >&6
7562else
7563 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7564case `$LD -v 2>&1 </dev/null` in
7565*GNU* | *'with BFD'*)
7566 lt_cv_prog_gnu_ld=yes
7567 ;;
7568*)
7569 lt_cv_prog_gnu_ld=no
7570 ;;
7571esac
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7574$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7575with_gnu_ld=$lt_cv_prog_gnu_ld
7576
7577
7578
7579
7580
7581
7582
7583
7584
cristy3ed852e2009-09-05 21:47:34 +00007585
cristy837d6dc2010-02-27 01:16:57 +00007586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7587$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007588if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007589 $as_echo_n "(cached) " >&6
7590else
7591 ac_cv_prog_cc_c99=no
7592ac_save_CC=$CC
7593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h. */
7595#include <stdarg.h>
7596#include <stdbool.h>
7597#include <stdlib.h>
7598#include <wchar.h>
7599#include <stdio.h>
7600
7601// Check varargs macros. These examples are taken from C99 6.10.3.5.
7602#define debug(...) fprintf (stderr, __VA_ARGS__)
7603#define showlist(...) puts (#__VA_ARGS__)
7604#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7605static void
7606test_varargs_macros (void)
7607{
7608 int x = 1234;
7609 int y = 5678;
7610 debug ("Flag");
7611 debug ("X = %d\n", x);
7612 showlist (The first, second, and third items.);
7613 report (x>y, "x is %d but y is %d", x, y);
7614}
7615
7616// Check long long types.
7617#define BIG64 18446744073709551615ull
7618#define BIG32 4294967295ul
7619#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7620#if !BIG_OK
7621 your preprocessor is broken;
7622#endif
7623#if BIG_OK
7624#else
7625 your preprocessor is broken;
7626#endif
7627static long long int bignum = -9223372036854775807LL;
7628static unsigned long long int ubignum = BIG64;
7629
7630struct incomplete_array
7631{
7632 int datasize;
7633 double data[];
7634};
7635
7636struct named_init {
7637 int number;
7638 const wchar_t *name;
7639 double average;
7640};
7641
7642typedef const char *ccp;
7643
7644static inline int
7645test_restrict (ccp restrict text)
7646{
7647 // See if C++-style comments work.
7648 // Iterate through items via the restricted pointer.
7649 // Also check for declarations in for loops.
7650 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7651 continue;
7652 return 0;
7653}
7654
7655// Check varargs and va_copy.
7656static void
7657test_varargs (const char *format, ...)
7658{
7659 va_list args;
7660 va_start (args, format);
7661 va_list args_copy;
7662 va_copy (args_copy, args);
7663
7664 const char *str;
7665 int number;
7666 float fnumber;
7667
7668 while (*format)
7669 {
7670 switch (*format++)
7671 {
7672 case 's': // string
7673 str = va_arg (args_copy, const char *);
7674 break;
7675 case 'd': // int
7676 number = va_arg (args_copy, int);
7677 break;
7678 case 'f': // float
7679 fnumber = va_arg (args_copy, double);
7680 break;
7681 default:
7682 break;
7683 }
7684 }
7685 va_end (args_copy);
7686 va_end (args);
7687}
7688
7689int
7690main ()
7691{
7692
7693 // Check bool.
7694 _Bool success = false;
7695
7696 // Check restrict.
7697 if (test_restrict ("String literal") == 0)
7698 success = true;
7699 char *restrict newvar = "Another string";
7700
7701 // Check varargs.
7702 test_varargs ("s, d' f .", "string", 65, 34.234);
7703 test_varargs_macros ();
7704
7705 // Check flexible array members.
7706 struct incomplete_array *ia =
7707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7708 ia->datasize = 10;
7709 for (int i = 0; i < ia->datasize; ++i)
7710 ia->data[i] = i * 1.234;
7711
7712 // Check named initializers.
7713 struct named_init ni = {
7714 .number = 34,
7715 .name = L"Test wide string",
7716 .average = 543.34343,
7717 };
7718
7719 ni.number = 58;
7720
7721 int dynamic_array[ni.number];
7722 dynamic_array[ni.number - 1] = 543;
7723
7724 // work around unused variable warnings
7725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7726 || dynamic_array[ni.number - 1] != 543);
7727
7728 ;
7729 return 0;
7730}
7731_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007732for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007733do
7734 CC="$ac_save_CC $ac_arg"
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 ac_cv_prog_cc_c99=$ac_arg
7737fi
7738rm -f core conftest.err conftest.$ac_objext
7739 test "x$ac_cv_prog_cc_c99" != "xno" && break
7740done
7741rm -f conftest.$ac_ext
7742CC=$ac_save_CC
7743
7744fi
7745# AC_CACHE_VAL
7746case "x$ac_cv_prog_cc_c99" in
7747 x)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7749$as_echo "none needed" >&6; } ;;
7750 xno)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7752$as_echo "unsupported" >&6; } ;;
7753 *)
7754 CC="$CC $ac_cv_prog_cc_c99"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7756$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7757esac
7758if test "x$ac_cv_prog_cc_c99" != xno; then :
7759
7760fi
7761
7762
cristy73bd4a52010-10-05 11:24:23 +00007763if test "x$CC" != xcc; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7765$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7766else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7768$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7769fi
7770set dummy $CC; ac_cc=`$as_echo "$2" |
7771 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007772if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007773 $as_echo_n "(cached) " >&6
7774else
cristy73bd4a52010-10-05 11:24:23 +00007775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776/* end confdefs.h. */
7777
7778int
7779main ()
7780{
7781
7782 ;
7783 return 0;
7784}
7785_ACEOF
7786# Make sure it works both with $CC and with simple cc.
7787# We do the test twice because some compilers refuse to overwrite an
7788# existing .o file with -o, though they will create one.
7789ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7790rm -f conftest2.*
7791if { { case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794esac
7795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7796$as_echo "$ac_try_echo"; } >&5
7797 (eval "$ac_try") 2>&5
7798 ac_status=$?
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; } &&
7801 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7806$as_echo "$ac_try_echo"; } >&5
7807 (eval "$ac_try") 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; };
7811then
7812 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7813 if test "x$CC" != xcc; then
7814 # Test first that cc exists at all.
7815 if { ac_try='cc -c conftest.$ac_ext >&5'
7816 { { case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819esac
7820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7821$as_echo "$ac_try_echo"; } >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; }; then
7826 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7827 rm -f conftest2.*
7828 if { { case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7833$as_echo "$ac_try_echo"; } >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; } &&
7838 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
7842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7843$as_echo "$ac_try_echo"; } >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; };
7848 then
7849 # cc works too.
7850 :
7851 else
7852 # cc exists but doesn't like -o.
7853 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7854 fi
7855 fi
7856 fi
7857else
7858 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7859fi
7860rm -f core conftest*
7861
7862fi
7863if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865$as_echo "yes" >&6; }
7866else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869
7870$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7871
7872fi
7873
7874# FIXME: we rely on the cache variable name because
7875# there is no other way.
7876set dummy $CC
7877am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7878eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7879if test "$am_t" != yes; then
7880 # Losing compiler, so override with the script.
7881 # FIXME: It is wrong to rewrite CC.
7882 # But if we don't then we get into trouble of one sort or another.
7883 # A longer-term fix would be to have automake use am__CC in this case,
7884 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7885 CC="$am_aux_dir/compile $CC"
7886fi
7887
7888
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7890$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007891if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007892 $as_echo_n "(cached) " >&6
7893else
7894 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007895 ac_ext=c
7896ac_cpp='$CPP $CPPFLAGS'
7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 ac_save_CFLAGS="$CFLAGS"
7902for 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" #
7903do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h. */
7906
7907int
7908main ()
7909{
cristy24fc1fe2010-10-23 21:13:01 +00007910
cristy73bd4a52010-10-05 11:24:23 +00007911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919done
7920 CFLAGS="$ac_save_CFLAGS"
7921 ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7930$as_echo "$ac_cv_cflags_warn_all" >&6; }
7931case ".$ac_cv_cflags_warn_all" in
7932 .ok|.ok,*) ;;
7933 .|.no|.no,*)
7934 ;;
7935 *)
7936 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7937 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7938 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7939 ac_status=$?
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; }
7942 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7943 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7944 ac_status=$?
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; }
7947 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7948 fi
7949 ;;
nicolas6237c462010-10-05 06:11:49 +00007950esac
cristy3ed852e2009-09-05 21:47:34 +00007951
cristy568c2d42012-07-27 01:41:20 +00007952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7953$as_echo_n "checking for C compiler vendor... " >&6; }
7954if ${ax_cv_c_compiler_vendor+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956else
7957 # note: don't check for gcc first since some other compilers define __GNUC__
7958 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7959 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7960 pathscale: __PATHCC__,__PATHSCALE__
7961 clang: __clang__
7962 gnu: __GNUC__
7963 sun: __SUNPRO_C,__SUNPRO_CC
7964 hp: __HP_cc,__HP_aCC
7965 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7966 borland: __BORLANDC__,__TURBOC__
7967 comeau: __COMO__
7968 cray: _CRAYC
7969 kai: __KCC
7970 lcc: __LCC__
7971 sgi: __sgi,sgi
7972 microsoft: _MSC_VER
7973 metrowerks: __MWERKS__
7974 watcom: __WATCOMC__
7975 portland: __PGI
7976 unknown: UNKNOWN"
7977 for ventest in $vendors; do
7978 case $ventest in
7979 *:) vendor=$ventest; continue ;;
7980 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7981 esac
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h. */
7984
7985int
7986main ()
7987{
7988
7989 #if !($vencpp)
7990 thisisanerror;
7991 #endif
7992
7993 ;
7994 return 0;
7995}
7996_ACEOF
7997if ac_fn_c_try_compile "$LINENO"; then :
7998 break
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 done
8002 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8003
8004fi
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8006$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8007
cristya0b81c32010-01-22 02:54:33 +00008008
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8010$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8011set x ${MAKE-make}
8012ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008013if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008014 $as_echo_n "(cached) " >&6
8015else
8016 cat >conftest.make <<\_ACEOF
8017SHELL = /bin/sh
8018all:
8019 @echo '@@@%%%=$(MAKE)=@@@%%%'
8020_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008021# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008022case `${MAKE-make} -f conftest.make 2>/dev/null` in
8023 *@@@%%%=?*=@@@%%%*)
8024 eval ac_cv_prog_make_${ac_make}_set=yes;;
8025 *)
8026 eval ac_cv_prog_make_${ac_make}_set=no;;
8027esac
8028rm -f conftest.make
8029fi
8030if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032$as_echo "yes" >&6; }
8033 SET_MAKE=
8034else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
8037 SET_MAKE="MAKE=${MAKE-make}"
8038fi
8039
cristy8b350f62009-11-15 23:12:43 +00008040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008041$as_echo_n "checking whether ln -s works... " >&6; }
8042LN_S=$as_ln_s
8043if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008045$as_echo "yes" >&6; }
8046else
cristy8b350f62009-11-15 23:12:43 +00008047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008048$as_echo "no, using $LN_S" >&6; }
8049fi
8050
cristybc556452012-08-17 19:44:03 +00008051for ac_prog in gawk mawk nawk awk
8052do
8053 # Extract the first word of "$ac_prog", so it can be a program name with args.
8054set dummy $ac_prog; ac_word=$2
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056$as_echo_n "checking for $ac_word... " >&6; }
8057if ${ac_cv_prog_AWK+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 if test -n "$AWK"; then
8061 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8062else
8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064for as_dir in $PATH
8065do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_prog_AWK="$ac_prog"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8073 fi
8074done
8075 done
8076IFS=$as_save_IFS
8077
8078fi
8079fi
8080AWK=$ac_cv_prog_AWK
8081if test -n "$AWK"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8083$as_echo "$AWK" >&6; }
8084else
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086$as_echo "no" >&6; }
8087fi
8088
8089
8090 test -n "$AWK" && break
8091done
8092
cristy73bd4a52010-10-05 11:24:23 +00008093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8094$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8095
8096# Check whether --with-dmalloc was given.
8097if test "${with_dmalloc+set}" = set; then :
8098 withval=$with_dmalloc; if test "$withval" = yes; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100$as_echo "yes" >&6; }
8101
8102$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8103
8104 LIBS="$LIBS -ldmalloc"
8105 LDFLAGS="$LDFLAGS -g"
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113fi
8114
8115
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8118$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008119if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008120 $as_echo_n "(cached) " >&6
8121else
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h. */
8124#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008125 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008126 static void
8127 foo(void) {
8128 exit(1);
8129 }
8130
8131int
8132main ()
8133{
8134
8135 ;
8136 return 0;
8137}
8138_ACEOF
8139if ac_fn_c_try_compile "$LINENO"; then :
8140 ax_cv___attribute__=yes
8141else
8142 ax_cv___attribute__=no
8143
8144fi
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146
8147fi
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8149$as_echo "$ax_cv___attribute__" >&6; }
8150 if test "$ax_cv___attribute__" = "yes"; then
8151
8152$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8153
8154 fi
8155
8156
8157
cristy37110d62012-03-01 18:38:20 +00008158
8159
8160# Check whether --with-gcc-arch was given.
8161if test "${with_gcc_arch+set}" = set; then :
8162 withval=$with_gcc_arch; ax_gcc_arch=$withval
8163else
cristya32d1812012-03-02 19:24:21 +00008164 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008165fi
8166
8167
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8169$as_echo_n "checking for gcc architecture flag... " >&6; }
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8171$as_echo "" >&6; }
8172if ${ax_cv_gcc_archflag+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174else
8175
8176ax_cv_gcc_archflag="unknown"
8177
8178if test "$GCC" = yes; then
8179
8180if test "x$ax_gcc_arch" = xyes; then
8181ax_gcc_arch=""
8182if test "$cross_compiling" = no; then
8183case $host_cpu in
8184 i[3456]86*|x86_64*) # use cpuid codes
8185
8186ac_ext=c
8187ac_cpp='$CPP $CPPFLAGS'
8188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8190ac_compiler_gnu=$ac_cv_c_compiler_gnu
8191
8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8193$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8194if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196else
8197 if test "$cross_compiling" = yes; then :
8198 ax_cv_gcc_x86_cpuid_0=unknown
8199else
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h. */
8202#include <stdio.h>
8203int
8204main ()
8205{
8206
8207 int op = 0, eax, ebx, ecx, edx;
8208 FILE *f;
8209 __asm__("cpuid"
8210 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8211 : "a" (op));
8212 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8213 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8214 fclose(f);
8215 return 0;
8216
8217 ;
8218 return 0;
8219}
8220_ACEOF
8221if ac_fn_c_try_run "$LINENO"; then :
8222 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8223else
8224 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8225fi
8226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8227 conftest.$ac_objext conftest.beam conftest.$ac_ext
8228fi
8229
8230fi
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8232$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239
8240
8241ac_ext=c
8242ac_cpp='$CPP $CPPFLAGS'
8243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245ac_compiler_gnu=$ac_cv_c_compiler_gnu
8246
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8248$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8249if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251else
8252 if test "$cross_compiling" = yes; then :
8253 ax_cv_gcc_x86_cpuid_1=unknown
8254else
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256/* end confdefs.h. */
8257#include <stdio.h>
8258int
8259main ()
8260{
8261
8262 int op = 1, eax, ebx, ecx, edx;
8263 FILE *f;
8264 __asm__("cpuid"
8265 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8266 : "a" (op));
8267 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8268 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8269 fclose(f);
8270 return 0;
8271
8272 ;
8273 return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_run "$LINENO"; then :
8277 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8278else
8279 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8280fi
8281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8282 conftest.$ac_objext conftest.beam conftest.$ac_ext
8283fi
8284
8285fi
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8287$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8288ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294
8295 case $ax_cv_gcc_x86_cpuid_0 in
8296 *:756e6547:*:*) # Intel
8297 case $ax_cv_gcc_x86_cpuid_1 in
8298 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8299 *5??:*:*:*) ax_gcc_arch=pentium ;;
8300 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8301 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8302 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8303 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8304 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8305 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8306 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8307 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8308 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8309 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8310 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8311 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8312 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8313 case $host_cpu in
8314 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8315 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8316 esac ;;
8317 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8318 esac ;;
8319 *:68747541:*:*) # AMD
8320 case $ax_cv_gcc_x86_cpuid_1 in
8321 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8322 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8323 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8324 *60?:*:*:*) ax_gcc_arch=k7 ;;
8325 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8326 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8327 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8328 *6[68a]?:*:*:*)
8329
8330ac_ext=c
8331ac_cpp='$CPP $CPPFLAGS'
8332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334ac_compiler_gnu=$ac_cv_c_compiler_gnu
8335
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8337$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8338if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340else
8341 if test "$cross_compiling" = yes; then :
8342 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8343else
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345/* end confdefs.h. */
8346#include <stdio.h>
8347int
8348main ()
8349{
8350
8351 int op = 0x80000006, eax, ebx, ecx, edx;
8352 FILE *f;
8353 __asm__("cpuid"
8354 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8355 : "a" (op));
8356 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8357 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8358 fclose(f);
8359 return 0;
8360
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365if ac_fn_c_try_run "$LINENO"; then :
8366 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8367else
8368 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8369fi
8370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
8372fi
8373
8374fi
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8376$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8377ac_ext=c
8378ac_cpp='$CPP $CPPFLAGS'
8379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8381ac_compiler_gnu=$ac_cv_c_compiler_gnu
8382
8383 # L2 cache size
8384 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8385 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8386 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8387 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8388 esac ;;
8389 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8390 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8391 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8392 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8393 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8394 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8395 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8396 esac ;;
8397 *:746e6543:*:*) # IDT
8398 case $ax_cv_gcc_x86_cpuid_1 in
8399 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8400 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8401 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8402 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8403 esac ;;
8404 esac
8405 if test x"$ax_gcc_arch" = x; then # fallback
8406 case $host_cpu in
8407 i586*) ax_gcc_arch=pentium ;;
8408 i686*) ax_gcc_arch=pentiumpro ;;
8409 esac
8410 fi
8411 ;;
8412
8413 sparc*)
8414 # Extract the first word of "prtdiag", so it can be a program name with args.
8415set dummy prtdiag; ac_word=$2
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417$as_echo_n "checking for $ac_word... " >&6; }
8418if ${ac_cv_path_PRTDIAG+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420else
8421 case $PRTDIAG in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8428for as_dir in $as_dummy
8429do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008434 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438done
8439 done
8440IFS=$as_save_IFS
8441
8442 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8443 ;;
8444esac
8445fi
8446PRTDIAG=$ac_cv_path_PRTDIAG
8447if test -n "$PRTDIAG"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8449$as_echo "$PRTDIAG" >&6; }
8450else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452$as_echo "no" >&6; }
8453fi
8454
8455
8456 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`
8457 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8458 case $cputype in
8459 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8460 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8461 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8462 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8463 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8464 *cypress*) ax_gcc_arch=cypress ;;
8465 esac ;;
8466
8467 alphaev5) ax_gcc_arch=ev5 ;;
8468 alphaev56) ax_gcc_arch=ev56 ;;
8469 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8470 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8471 alphaev6) ax_gcc_arch=ev6 ;;
8472 alphaev67) ax_gcc_arch=ev67 ;;
8473 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8474 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8475 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8476 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8477
8478 powerpc*)
8479 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`
8480 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8481 case $cputype in
8482 *750*) ax_gcc_arch="750 G3" ;;
8483 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8484 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8485 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8486 *970*) ax_gcc_arch="970 G5 power4";;
8487 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8488 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8489 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8490 *) ax_gcc_arch=$cputype ;;
8491 esac
8492 ax_gcc_arch="$ax_gcc_arch powerpc"
8493 ;;
8494esac
8495fi # not cross-compiling
8496fi # guess arch
8497
8498if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8499for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008500 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008501 flags="-mtune=$arch"
8502 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8503 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8504 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8505 else
8506 flags="-march=$arch -mcpu=$arch -m$arch"
8507 fi
8508 for flag in $flags; do
8509 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8511$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8512if eval \${$as_CACHEVAR+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514else
8515
8516 ax_check_save_flags=$CFLAGS
8517 CFLAGS="$CFLAGS $flag"
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h. */
8520
8521int
8522main ()
8523{
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_compile "$LINENO"; then :
8530 eval "$as_CACHEVAR=yes"
8531else
8532 eval "$as_CACHEVAR=no"
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 CFLAGS=$ax_check_save_flags
8536fi
8537eval ac_res=\$$as_CACHEVAR
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8539$as_echo "$ac_res" >&6; }
8540if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8541 ax_cv_gcc_archflag=$flag; break
8542else
8543 :
8544fi
8545
8546 done
8547 test "x$ax_cv_gcc_archflag" = xunknown || break
8548done
8549fi
8550
8551fi # $GCC=yes
8552
8553fi
8554
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8556$as_echo_n "checking for gcc architecture flag... " >&6; }
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8558$as_echo "$ax_cv_gcc_archflag" >&6; }
8559if test "x$ax_cv_gcc_archflag" = xunknown; then
8560 :
8561else
8562 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8563fi
8564
8565
8566
cristy73bd4a52010-10-05 11:24:23 +00008567if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8568 if test -n "$ac_tool_prefix"; then
8569 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8570set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008573if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008574 $as_echo_n "(cached) " >&6
8575else
8576 case $PKG_CONFIG in
8577 [\\/]* | ?:[\\/]*)
8578 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008588 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592done
8593 done
8594IFS=$as_save_IFS
8595
8596 ;;
8597esac
8598fi
8599PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8600if test -n "$PKG_CONFIG"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8602$as_echo "$PKG_CONFIG" >&6; }
8603else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
8606fi
8607
8608
8609fi
8610if test -z "$ac_cv_path_PKG_CONFIG"; then
8611 ac_pt_PKG_CONFIG=$PKG_CONFIG
8612 # Extract the first word of "pkg-config", so it can be a program name with args.
8613set dummy pkg-config; ac_word=$2
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008616if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008617 $as_echo_n "(cached) " >&6
8618else
8619 case $ac_pt_PKG_CONFIG in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8622 ;;
8623 *)
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008631 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636 done
8637IFS=$as_save_IFS
8638
8639 ;;
8640esac
8641fi
8642ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8643if test -n "$ac_pt_PKG_CONFIG"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8645$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8646else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
8649fi
8650
8651 if test "x$ac_pt_PKG_CONFIG" = x; then
8652 PKG_CONFIG=""
8653 else
8654 case $cross_compiling:$ac_tool_warned in
8655yes:)
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658ac_tool_warned=yes ;;
8659esac
8660 PKG_CONFIG=$ac_pt_PKG_CONFIG
8661 fi
8662else
8663 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8664fi
8665
8666fi
8667if test -n "$PKG_CONFIG"; then
8668 _pkg_min_version=0.9.0
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8670$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8671 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8673$as_echo "yes" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
8677 PKG_CONFIG=""
8678 fi
8679
8680fi
cristy3ed852e2009-09-05 21:47:34 +00008681
8682#
cristy3ed852e2009-09-05 21:47:34 +00008683# Enable run-time checking.
8684#
8685# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008686if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008687 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8688else
8689 enable_bounds_checking='no'
8690fi
8691
8692
8693if test "$enable_bounds_checking" = yes; then
8694
cristy8b350f62009-11-15 23:12:43 +00008695$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008696
8697fi
8698
8699#
8700# Tests for Windows
8701#
8702
8703
8704
8705GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008706native_win32_build='no'
8707cygwin_build='no'
8708case "${host_os}" in
8709 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008710 cygwin_build='yes'
8711 GDI32_LIBS='-lgdi32'
8712 ;;
8713 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008714 native_win32_build='yes'
8715 GDI32_LIBS='-lgdi32'
8716 ;;
8717esac
8718if test "${GDI32_LIBS}x" != 'x'; then
8719
cristy8b350f62009-11-15 23:12:43 +00008720$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008721
8722fi
8723
cristy73bd4a52010-10-05 11:24:23 +00008724 if test "${GDI32_LIBS}x" != 'x' ; then
8725 WINGDI32_DELEGATE_TRUE=
8726 WINGDI32_DELEGATE_FALSE='#'
8727else
8728 WINGDI32_DELEGATE_TRUE='#'
8729 WINGDI32_DELEGATE_FALSE=
8730fi
8731
8732 if test "${native_win32_build}" = 'yes' ; then
8733 WIN32_NATIVE_BUILD_TRUE=
8734 WIN32_NATIVE_BUILD_FALSE='#'
8735else
8736 WIN32_NATIVE_BUILD_TRUE='#'
8737 WIN32_NATIVE_BUILD_FALSE=
8738fi
8739
8740 if test "${cygwin_build}" = 'yes' ; then
8741 CYGWIN_BUILD_TRUE=
8742 CYGWIN_BUILD_FALSE='#'
8743else
8744 CYGWIN_BUILD_TRUE='#'
8745 CYGWIN_BUILD_FALSE=
8746fi
8747
8748 if test "x${CC}" = 'xcl.exe' ; then
8749 USING_CL_TRUE=
8750 USING_CL_FALSE='#'
8751else
8752 USING_CL_TRUE='#'
8753 USING_CL_FALSE=
8754fi
8755
cristy3ed852e2009-09-05 21:47:34 +00008756
8757WinPathScript="${srcdirfull}/winpath.sh"
8758
8759
8760#
8761# Compiler flags tweaks
8762#
8763if test "${GCC}" != "yes"; then
8764 case "${host}" in
8765 *-*-hpux* )
8766 # aCC: HP ANSI C++ B3910B A.03.34
8767 CFLAGS="${CFLAGS} -Wp,-H30000"
8768 if test -n "${CXXFLAGS}"; then
8769 CXXFLAGS='-AA'
8770 else
8771 CXXFLAGS="${CXXFLAGS} -AA"
8772 fi
8773 ;;
8774 *-dec-osf5.* )
8775 # Compaq alphaev68-dec-osf5.1 compiler
8776 if test -n "${CXXFLAGS}"; then
8777 CXXFLAGS='-std strict_ansi -noimplicit_include'
8778 else
8779 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8780 fi
8781 esac
8782fi
8783
8784# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008786$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008787if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008788 $as_echo_n "(cached) " >&6
8789else
8790
8791im_cv_ld_lazyload='none'
8792case "${host}" in
8793 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8794 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8795 im_cv_ld_lazyload='-Wl,-zlazyload'
8796 fi
8797 ;;
8798esac
8799
8800fi
cristy8b350f62009-11-15 23:12:43 +00008801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008802$as_echo "$im_cv_ld_lazyload" >&6; }
8803if test "${im_cv_ld_lazyload}" != 'none' ; then
8804 if test -z "${LDFLAGS}" ; then
8805 LDFLAGS="${im_cv_ld_lazyload}"
8806 else
8807 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8808 fi
8809fi
8810
8811case "$host" in
8812*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008813 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008814if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008815 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8816else
8817 build_osxuniversal=no
8818fi
8819
8820
8821 if test "${build_osxuniversal}" != no ; then
8822 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008823 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008824Please re-run configure with these options:
8825 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008826 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008827 fi
8828 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8829 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8830 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8831 fi
8832 ;;
8833esac
8834
cristy0151ae12011-10-28 16:32:29 +00008835#
8836# ARCH specific include directory
8837#
8838
cristy670aa3c2011-11-03 00:54:00 +00008839# Check whether --with-includearch-dir was given.
8840if test "${with_includearch_dir+set}" = set; then :
8841 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008842else
cristy670aa3c2011-11-03 00:54:00 +00008843 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008844fi
8845
8846
cristy670aa3c2011-11-03 00:54:00 +00008847eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008848
cristy0151ae12011-10-28 16:32:29 +00008849
8850#
8851# ARCH specific configuration directory
8852#
8853
cristy670aa3c2011-11-03 00:54:00 +00008854# Check whether --with-sharearch-dir was given.
8855if test "${with_sharearch_dir+set}" = set; then :
8856 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008857else
cristy408ebcd2011-11-14 01:36:57 +00008858 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008859fi
8860
8861
cristy670aa3c2011-11-03 00:54:00 +00008862eval "eval SHAREARCH_DIR=$sharearch_dir"
8863SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008864
cristy0151ae12011-10-28 16:32:29 +00008865
8866#
cristy3ed852e2009-09-05 21:47:34 +00008867# Enable support for threads
8868
8869# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008870if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008871 withval=$with_threads; with_threads=$withval
8872else
8873 with_threads='yes'
8874fi
8875
8876
8877have_threads=no
8878if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008879
8880
cristy73bd4a52010-10-05 11:24:23 +00008881ac_ext=c
8882ac_cpp='$CPP $CPPFLAGS'
8883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887ax_pthread_ok=no
8888
8889# We used to check for pthread.h first, but this fails if pthread.h
8890# requires special compiler flags (e.g. on True64 or Sequent).
8891# It gets checked for in the link test anyway.
8892
8893# First of all, check if the user has set any of the PTHREAD_LIBS,
8894# etcetera environment variables, and if threads linking works using
8895# them:
8896if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8897 save_CFLAGS="$CFLAGS"
8898 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8899 save_LIBS="$LIBS"
8900 LIBS="$PTHREAD_LIBS $LIBS"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8902$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h. */
8905
8906/* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
8909#ifdef __cplusplus
8910extern "C"
8911#endif
8912char pthread_join ();
8913int
8914main ()
8915{
8916return pthread_join ();
8917 ;
8918 return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"; then :
8922 ax_pthread_ok=yes
8923fi
8924rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8927$as_echo "$ax_pthread_ok" >&6; }
8928 if test x"$ax_pthread_ok" = xno; then
8929 PTHREAD_LIBS=""
8930 PTHREAD_CFLAGS=""
8931 fi
8932 LIBS="$save_LIBS"
8933 CFLAGS="$save_CFLAGS"
8934fi
8935
8936# We must check for the threads library under a number of different
8937# names; the ordering is very important because some systems
8938# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8939# libraries is broken (non-POSIX).
8940
8941# Create a list of thread flags to try. Items starting with a "-" are
8942# C compiler flags, and other items are library names, except for "none"
8943# which indicates that we try without any flags at all, and "pthread-config"
8944# which is a program returning the flags for the Pth emulation library.
8945
cristy18307f12011-12-30 01:20:16 +00008946ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008947
8948# The ordering *is* (sometimes) important. Some notes on the
8949# individual items follow:
8950
8951# pthreads: AIX (must check this before -lpthread)
8952# none: in case threads are in libc; should be tried before -Kthread and
8953# other compiler flags to prevent continual compiler warnings
8954# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8955# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8956# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8957# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8958# -pthreads: Solaris/gcc
8959# -mthreads: Mingw32/gcc, Lynx/gcc
8960# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8961# doesn't hurt to check since this sometimes defines pthreads too;
8962# also defines -D_REENTRANT)
8963# ... -mt is also the pthreads flag for HP/aCC
8964# pthread: Linux, etcetera
8965# --thread-safe: KAI C++
8966# pthread-config: use pthread-config program (for GNU Pth library)
8967
8968case "${host_cpu}-${host_os}" in
8969 *solaris*)
8970
8971 # On Solaris (at least, for some versions), libc contains stubbed
8972 # (non-functional) versions of the pthreads routines, so link-based
8973 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8974 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8975 # a function called by this macro, so we could check for that, but
8976 # who knows whether they'll stub that too in a future libc.) So,
8977 # we'll just look for -pthreads and -lpthread first:
8978
8979 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8980 ;;
8981
cristya316db12011-10-24 00:49:45 +00008982 *-darwin*)
8983 ax_pthread_flags="-pthread $ax_pthread_flags"
8984 ;;
cristy73bd4a52010-10-05 11:24:23 +00008985esac
8986
8987if test x"$ax_pthread_ok" = xno; then
8988for flag in $ax_pthread_flags; do
8989
8990 case $flag in
8991 none)
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8993$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8994 ;;
8995
8996 -*)
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8998$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8999 PTHREAD_CFLAGS="$flag"
9000 ;;
9001
cristya316db12011-10-24 00:49:45 +00009002 pthread-config)
9003 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009004set dummy pthread-config; ac_word=$2
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009007if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009008 $as_echo_n "(cached) " >&6
9009else
9010 if test -n "$ax_pthread_config"; then
9011 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9012else
9013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014for as_dir in $PATH
9015do
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009020 ac_cv_prog_ax_pthread_config="yes"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9023 fi
9024done
9025 done
9026IFS=$as_save_IFS
9027
9028 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9029fi
9030fi
9031ax_pthread_config=$ac_cv_prog_ax_pthread_config
9032if test -n "$ax_pthread_config"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9034$as_echo "$ax_pthread_config" >&6; }
9035else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037$as_echo "no" >&6; }
9038fi
9039
9040
cristya316db12011-10-24 00:49:45 +00009041 if test x"$ax_pthread_config" = xno; then continue; fi
9042 PTHREAD_CFLAGS="`pthread-config --cflags`"
9043 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9044 ;;
cristy73bd4a52010-10-05 11:24:23 +00009045
9046 *)
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9048$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9049 PTHREAD_LIBS="-l$flag"
9050 ;;
9051 esac
9052
9053 save_LIBS="$LIBS"
9054 save_CFLAGS="$CFLAGS"
9055 LIBS="$PTHREAD_LIBS $LIBS"
9056 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9057
9058 # Check for various functions. We must include pthread.h,
9059 # since some functions may be macros. (On the Sequent, we
9060 # need a special flag -Kthread to make this header compile.)
9061 # We check for pthread_join because it is in -lpthread on IRIX
9062 # while pthread_create is in libc. We check for pthread_attr_init
9063 # due to DEC craziness with -lpthreads. We check for
9064 # pthread_cleanup_push because it is one of the few pthread
9065 # functions on Solaris that doesn't have a non-functional libc stub.
9066 # We try pthread_create on general principles.
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h. */
9069#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009070 static void routine(void *a) { a = 0; }
9071 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009072int
9073main ()
9074{
9075pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009076 pthread_create(&th, 0, start_routine, 0);
9077 pthread_join(th, 0);
9078 pthread_attr_init(&attr);
9079 pthread_cleanup_push(routine, 0);
9080 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009081 ;
9082 return 0;
9083}
9084_ACEOF
9085if ac_fn_c_try_link "$LINENO"; then :
9086 ax_pthread_ok=yes
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090
9091 LIBS="$save_LIBS"
9092 CFLAGS="$save_CFLAGS"
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9095$as_echo "$ax_pthread_ok" >&6; }
9096 if test "x$ax_pthread_ok" = xyes; then
9097 break;
9098 fi
9099
9100 PTHREAD_LIBS=""
9101 PTHREAD_CFLAGS=""
9102done
9103fi
9104
9105# Various other checks:
9106if test "x$ax_pthread_ok" = xyes; then
9107 save_LIBS="$LIBS"
9108 LIBS="$PTHREAD_LIBS $LIBS"
9109 save_CFLAGS="$CFLAGS"
9110 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9111
9112 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009114$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009115 attr_name=unknown
9116 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009118/* end confdefs.h. */
9119#include <pthread.h>
9120int
9121main ()
9122{
cristya316db12011-10-24 00:49:45 +00009123int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009124 ;
9125 return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129 attr_name=$attr; break
9130fi
9131rm -f core conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009133 done
cristy73bd4a52010-10-05 11:24:23 +00009134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9135$as_echo "$attr_name" >&6; }
9136 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9137
9138cat >>confdefs.h <<_ACEOF
9139#define PTHREAD_CREATE_JOINABLE $attr_name
9140_ACEOF
9141
9142 fi
9143
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9145$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9146 flag=no
9147 case "${host_cpu}-${host_os}" in
9148 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9149 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9150 esac
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9152$as_echo "${flag}" >&6; }
9153 if test "x$flag" != xno; then
9154 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9155 fi
9156
cristya316db12011-10-24 00:49:45 +00009157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9158$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9159if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161else
9162
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h. */
9165
9166 #include <pthread.h>
9167int
9168main ()
9169{
9170int i = PTHREAD_PRIO_INHERIT;
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176 ax_cv_PTHREAD_PRIO_INHERIT=yes
9177else
9178 ax_cv_PTHREAD_PRIO_INHERIT=no
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9185$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9186 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9187
9188$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9189
9190fi
9191
cristy73bd4a52010-10-05 11:24:23 +00009192 LIBS="$save_LIBS"
9193 CFLAGS="$save_CFLAGS"
9194
9195 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009196 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009197 for ac_prog in xlc_r cc_r
9198do
9199 # Extract the first word of "$ac_prog", so it can be a program name with args.
9200set dummy $ac_prog; ac_word=$2
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009203if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009204 $as_echo_n "(cached) " >&6
9205else
9206 if test -n "$PTHREAD_CC"; then
9207 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9208else
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009216 ac_cv_prog_PTHREAD_CC="$ac_prog"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220done
9221 done
9222IFS=$as_save_IFS
9223
9224fi
9225fi
9226PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9227if test -n "$PTHREAD_CC"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9229$as_echo "$PTHREAD_CC" >&6; }
9230else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
9233fi
9234
9235
9236 test -n "$PTHREAD_CC" && break
9237done
9238test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9239
9240 else
9241 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009242 fi
cristy73bd4a52010-10-05 11:24:23 +00009243else
9244 PTHREAD_CC="$CC"
9245fi
9246
9247
9248
9249
9250
9251# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9252if test x"$ax_pthread_ok" = xyes; then
9253
9254$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9255
9256 :
9257else
9258 ax_pthread_ok=no
9259
9260fi
9261ac_ext=c
9262ac_cpp='$CPP $CPPFLAGS'
9263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9265ac_compiler_gnu=$ac_cv_c_compiler_gnu
9266
9267
cristy7acf8fb2010-09-23 19:58:53 +00009268 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009269 have_threads=yes
9270 DEF_THREAD="$PTHREAD_CFLAGS"
9271 CFLAGS="$CFLAGS $DEF_THREAD"
9272 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9273 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009274 { $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 +00009275$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9276 CC="$PTHREAD_CC"
9277 fi
cristy55bf91c2010-09-24 00:29:41 +00009278
9279$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9280
cristy3ed852e2009-09-05 21:47:34 +00009281 fi
9282fi
9283
9284# Enable support for OpenMP
9285if test "$have_threads" != 'yes'; then
9286 ac_cv_prog_c_openmp=unsupported
9287fi
9288
9289 OPENMP_CFLAGS=
9290 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009291if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009292 enableval=$enable_openmp;
9293fi
9294
9295 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009297$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009298if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009299 $as_echo_n "(cached) " >&6
9300else
cristy8b350f62009-11-15 23:12:43 +00009301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009303
9304#ifndef _OPENMP
9305 choke me
9306#endif
9307#include <omp.h>
9308int main () { return omp_get_num_threads (); }
9309
9310_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009312 ac_cv_prog_c_openmp='none needed'
9313else
cristy8b350f62009-11-15 23:12:43 +00009314 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009315 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9316 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009317 ac_save_CFLAGS=$CFLAGS
9318 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009321
9322#ifndef _OPENMP
9323 choke me
9324#endif
9325#include <omp.h>
9326int main () { return omp_get_num_threads (); }
9327
9328_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009330 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009331fi
cristy8b350f62009-11-15 23:12:43 +00009332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009334 CFLAGS=$ac_save_CFLAGS
9335 if test "$ac_cv_prog_c_openmp" != unsupported; then
9336 break
9337 fi
9338 done
9339fi
cristy8b350f62009-11-15 23:12:43 +00009340rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009342fi
cristy8b350f62009-11-15 23:12:43 +00009343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009344$as_echo "$ac_cv_prog_c_openmp" >&6; }
9345 case $ac_cv_prog_c_openmp in #(
9346 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009347 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009348 *)
cristy8b350f62009-11-15 23:12:43 +00009349 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009350 esac
9351 fi
9352
9353
9354CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9355MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9356
cristy391f1ce2010-09-09 17:23:28 +00009357if test "$enable_openmp" != no; then
9358 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9359 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9360 fi
9361fi
cristy3ed852e2009-09-05 21:47:34 +00009362
cristy736173a2009-09-20 21:18:22 +00009363# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009364
9365
cristy73bd4a52010-10-05 11:24:23 +00009366ac_ext=c
9367ac_cpp='$CPP $CPPFLAGS'
9368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370ac_compiler_gnu=$ac_cv_c_compiler_gnu
9371
9372ax_pthread_ok=no
9373
9374# We used to check for pthread.h first, but this fails if pthread.h
9375# requires special compiler flags (e.g. on True64 or Sequent).
9376# It gets checked for in the link test anyway.
9377
9378# First of all, check if the user has set any of the PTHREAD_LIBS,
9379# etcetera environment variables, and if threads linking works using
9380# them:
9381if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9382 save_CFLAGS="$CFLAGS"
9383 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9384 save_LIBS="$LIBS"
9385 LIBS="$PTHREAD_LIBS $LIBS"
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9387$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h. */
9390
9391/* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9394#ifdef __cplusplus
9395extern "C"
9396#endif
9397char pthread_join ();
9398int
9399main ()
9400{
9401return pthread_join ();
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407 ax_pthread_ok=yes
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9412$as_echo "$ax_pthread_ok" >&6; }
9413 if test x"$ax_pthread_ok" = xno; then
9414 PTHREAD_LIBS=""
9415 PTHREAD_CFLAGS=""
9416 fi
9417 LIBS="$save_LIBS"
9418 CFLAGS="$save_CFLAGS"
9419fi
9420
9421# We must check for the threads library under a number of different
9422# names; the ordering is very important because some systems
9423# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9424# libraries is broken (non-POSIX).
9425
9426# Create a list of thread flags to try. Items starting with a "-" are
9427# C compiler flags, and other items are library names, except for "none"
9428# which indicates that we try without any flags at all, and "pthread-config"
9429# which is a program returning the flags for the Pth emulation library.
9430
cristy18307f12011-12-30 01:20:16 +00009431ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009432
9433# The ordering *is* (sometimes) important. Some notes on the
9434# individual items follow:
9435
9436# pthreads: AIX (must check this before -lpthread)
9437# none: in case threads are in libc; should be tried before -Kthread and
9438# other compiler flags to prevent continual compiler warnings
9439# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9440# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9441# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9442# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9443# -pthreads: Solaris/gcc
9444# -mthreads: Mingw32/gcc, Lynx/gcc
9445# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9446# doesn't hurt to check since this sometimes defines pthreads too;
9447# also defines -D_REENTRANT)
9448# ... -mt is also the pthreads flag for HP/aCC
9449# pthread: Linux, etcetera
9450# --thread-safe: KAI C++
9451# pthread-config: use pthread-config program (for GNU Pth library)
9452
9453case "${host_cpu}-${host_os}" in
9454 *solaris*)
9455
9456 # On Solaris (at least, for some versions), libc contains stubbed
9457 # (non-functional) versions of the pthreads routines, so link-based
9458 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9459 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9460 # a function called by this macro, so we could check for that, but
9461 # who knows whether they'll stub that too in a future libc.) So,
9462 # we'll just look for -pthreads and -lpthread first:
9463
9464 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9465 ;;
9466
cristya316db12011-10-24 00:49:45 +00009467 *-darwin*)
9468 ax_pthread_flags="-pthread $ax_pthread_flags"
9469 ;;
cristy73bd4a52010-10-05 11:24:23 +00009470esac
9471
9472if test x"$ax_pthread_ok" = xno; then
9473for flag in $ax_pthread_flags; do
9474
9475 case $flag in
9476 none)
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9478$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9479 ;;
9480
9481 -*)
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9483$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9484 PTHREAD_CFLAGS="$flag"
9485 ;;
9486
cristya316db12011-10-24 00:49:45 +00009487 pthread-config)
9488 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009489set dummy pthread-config; ac_word=$2
9490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009492if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009493 $as_echo_n "(cached) " >&6
9494else
9495 if test -n "$ax_pthread_config"; then
9496 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9497else
9498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499for as_dir in $PATH
9500do
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009505 ac_cv_prog_ax_pthread_config="yes"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9508 fi
9509done
9510 done
9511IFS=$as_save_IFS
9512
9513 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9514fi
9515fi
9516ax_pthread_config=$ac_cv_prog_ax_pthread_config
9517if test -n "$ax_pthread_config"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9519$as_echo "$ax_pthread_config" >&6; }
9520else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
9523fi
9524
9525
cristya316db12011-10-24 00:49:45 +00009526 if test x"$ax_pthread_config" = xno; then continue; fi
9527 PTHREAD_CFLAGS="`pthread-config --cflags`"
9528 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9529 ;;
cristy73bd4a52010-10-05 11:24:23 +00009530
9531 *)
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9533$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9534 PTHREAD_LIBS="-l$flag"
9535 ;;
9536 esac
9537
9538 save_LIBS="$LIBS"
9539 save_CFLAGS="$CFLAGS"
9540 LIBS="$PTHREAD_LIBS $LIBS"
9541 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9542
9543 # Check for various functions. We must include pthread.h,
9544 # since some functions may be macros. (On the Sequent, we
9545 # need a special flag -Kthread to make this header compile.)
9546 # We check for pthread_join because it is in -lpthread on IRIX
9547 # while pthread_create is in libc. We check for pthread_attr_init
9548 # due to DEC craziness with -lpthreads. We check for
9549 # pthread_cleanup_push because it is one of the few pthread
9550 # functions on Solaris that doesn't have a non-functional libc stub.
9551 # We try pthread_create on general principles.
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
9554#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009555 static void routine(void *a) { a = 0; }
9556 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009557int
9558main ()
9559{
9560pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009561 pthread_create(&th, 0, start_routine, 0);
9562 pthread_join(th, 0);
9563 pthread_attr_init(&attr);
9564 pthread_cleanup_push(routine, 0);
9565 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009566 ;
9567 return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571 ax_pthread_ok=yes
9572fi
9573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575
9576 LIBS="$save_LIBS"
9577 CFLAGS="$save_CFLAGS"
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9580$as_echo "$ax_pthread_ok" >&6; }
9581 if test "x$ax_pthread_ok" = xyes; then
9582 break;
9583 fi
9584
9585 PTHREAD_LIBS=""
9586 PTHREAD_CFLAGS=""
9587done
9588fi
9589
9590# Various other checks:
9591if test "x$ax_pthread_ok" = xyes; then
9592 save_LIBS="$LIBS"
9593 LIBS="$PTHREAD_LIBS $LIBS"
9594 save_CFLAGS="$CFLAGS"
9595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9596
9597 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009599$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009600 attr_name=unknown
9601 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009603/* end confdefs.h. */
9604#include <pthread.h>
9605int
9606main ()
9607{
cristya316db12011-10-24 00:49:45 +00009608int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009609 ;
9610 return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614 attr_name=$attr; break
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009618 done
cristy73bd4a52010-10-05 11:24:23 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9620$as_echo "$attr_name" >&6; }
9621 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9622
9623cat >>confdefs.h <<_ACEOF
9624#define PTHREAD_CREATE_JOINABLE $attr_name
9625_ACEOF
9626
9627 fi
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9630$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9631 flag=no
9632 case "${host_cpu}-${host_os}" in
9633 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9634 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9635 esac
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9637$as_echo "${flag}" >&6; }
9638 if test "x$flag" != xno; then
9639 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9640 fi
9641
cristya316db12011-10-24 00:49:45 +00009642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9643$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9644if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646else
9647
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h. */
9650
9651 #include <pthread.h>
9652int
9653main ()
9654{
9655int i = PTHREAD_PRIO_INHERIT;
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660if ac_fn_c_try_link "$LINENO"; then :
9661 ax_cv_PTHREAD_PRIO_INHERIT=yes
9662else
9663 ax_cv_PTHREAD_PRIO_INHERIT=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9670$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9671 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9672
9673$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9674
9675fi
9676
cristy73bd4a52010-10-05 11:24:23 +00009677 LIBS="$save_LIBS"
9678 CFLAGS="$save_CFLAGS"
9679
9680 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009681 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009682 for ac_prog in xlc_r cc_r
9683do
9684 # Extract the first word of "$ac_prog", so it can be a program name with args.
9685set dummy $ac_prog; ac_word=$2
9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009688if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009689 $as_echo_n "(cached) " >&6
9690else
9691 if test -n "$PTHREAD_CC"; then
9692 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9693else
9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695for as_dir in $PATH
9696do
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009701 ac_cv_prog_PTHREAD_CC="$ac_prog"
9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9704 fi
9705done
9706 done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9712if test -n "$PTHREAD_CC"; then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9714$as_echo "$PTHREAD_CC" >&6; }
9715else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717$as_echo "no" >&6; }
9718fi
9719
9720
9721 test -n "$PTHREAD_CC" && break
9722done
9723test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9724
9725 else
9726 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009727 fi
cristy73bd4a52010-10-05 11:24:23 +00009728else
9729 PTHREAD_CC="$CC"
9730fi
9731
9732
9733
9734
9735
9736# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9737if test x"$ax_pthread_ok" = xyes; then
9738
9739$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9740
9741 :
9742else
9743 ax_pthread_ok=no
9744
9745fi
9746ac_ext=c
9747ac_cpp='$CPP $CPPFLAGS'
9748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751
9752
9753
9754# Check whether --enable-opencl was given.
9755if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009756 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009757else
cristy48794642012-09-02 15:19:08 +00009758 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009759fi
9760
9761
cristy48794642012-09-02 15:19:08 +00009762if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009763 ac_ext=c
9764ac_cpp='$CPP $CPPFLAGS'
9765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9767ac_compiler_gnu=$ac_cv_c_compiler_gnu
9768
cristy75314cc2012-09-15 23:08:29 +00009769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9770$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9771if ${ax_cv_c_compiler_ms+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h. */
9776
9777int
9778main ()
9779{
9780#ifndef _MSC_VER
9781 choke me
9782#endif
9783
9784 ;
9785 return 0;
9786}
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"; then :
9789 ax_compiler_ms=yes
9790else
9791 ax_compiler_ms=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794ax_cv_c_compiler_ms=$ax_compiler_ms
9795
9796fi
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9798$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009799 if test X$ax_compiler_ms = Xno; then :
9800 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9801fi
9802
9803 ax_save_CPPFLAGS=$CPPFLAGS
9804 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9805 for ac_header in CL/cl.h OpenCL/cl.h
9806do :
9807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009810 cat >>confdefs.h <<_ACEOF
9811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812_ACEOF
9813
9814fi
9815
9816done
9817
9818 CPPFLAGS=$ax_save_CPPFLAGS
9819
9820 for ac_header in windows.h
9821do :
9822 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009823if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009824 cat >>confdefs.h <<_ACEOF
9825#define HAVE_WINDOWS_H 1
9826_ACEOF
9827
9828fi
9829
9830done
9831
9832
9833
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9836$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009837if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009838 $as_echo_n "(cached) " >&6
9839else
9840 ax_cv_check_cl_libcl=no
9841 case $host_cpu in
9842 x86_64) ax_check_cl_libdir=lib64 ;;
9843 *) ax_check_cl_libdir=lib ;;
9844 esac
9845 ax_save_CPPFLAGS=$CPPFLAGS
9846 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9847 ax_save_LIBS=$LIBS
9848 LIBS=""
9849 ax_check_libs="-lOpenCL -lCL -lclparser"
9850 for ax_lib in $ax_check_libs; do
9851 if test X$ax_compiler_ms = Xyes; then :
9852 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9853else
9854 ax_try_lib=$ax_lib
9855fi
9856 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h. */
9859
9860 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9861 # include <windows.h>
9862 # endif
9863 # ifdef HAVE_CL_CL_H
9864 # include <CL/cl.h>
9865 # elif defined(HAVE_OPENCL_CL_H)
9866 # include <OpenCL/cl.h>
9867 # else
9868 # error no CL.h
9869 # endif
9870int
9871main ()
9872{
9873clCreateContextFromType(0,0,0,0,0)
9874 ;
9875 return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_link "$LINENO"; then :
9879 ax_cv_check_cl_libcl=$ax_try_lib; break
9880else
9881 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"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883/* end confdefs.h. */
9884
9885 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9886 # include <windows.h>
9887 # endif
9888 # ifdef HAVE_CL_CL_H
9889 # include <CL/cl.h>
9890 # elif defined(HAVE_OPENCL_CL_H)
9891 # include <OpenCL/cl.h>
9892 # else
9893 # error no CL.h
9894 # endif
9895int
9896main ()
9897{
9898clCreateContextFromType(0,0,0,0,0)
9899 ;
9900 return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9905else
cristy78c5a0c2010-12-04 20:00:59 +00009906 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 +00009907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908/* end confdefs.h. */
9909
9910 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9911 # include <windows.h>
9912 # endif
9913 # ifdef HAVE_CL_CL_H
9914 # include <CL/cl.h>
9915 # elif defined(HAVE_OPENCL_CL_H)
9916 # include <OpenCL/cl.h>
9917 # else
9918 # error no CL.h
9919 # endif
9920int
9921main ()
9922{
9923clCreateContextFromType(0,0,0,0,0)
9924 ;
9925 return 0;
9926}
9927_ACEOF
9928if ac_fn_c_try_link "$LINENO"; then :
9929 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9930fi
9931rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933fi
9934rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936fi
9937rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 done
9940
cristyc3f8b8e2011-12-22 14:55:16 +00009941 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009942 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h. */
9945
9946 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9947 # include <windows.h>
9948 # endif
9949 # ifdef HAVE_CL_CL_H
9950 # include <CL/cl.h>
9951 # elif defined(HAVE_OPENCL_CL_H)
9952 # include <OpenCL/cl.h>
9953 # else
9954 # error no CL.h
9955 # endif
9956int
9957main ()
9958{
9959clCreateContextFromType(0,0,0,0,0)
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964if ac_fn_c_try_link "$LINENO"; then :
9965 ax_cv_check_cl_libcl=$LIBS
9966fi
9967rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969fi
9970
9971 LIBS=$ax_save_LIBS
9972 CPPFLAGS=$ax_save_CPPFLAGS
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9975$as_echo "$ax_cv_check_cl_libcl" >&6; }
9976
9977 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9978 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9979else
9980 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9981$as_echo "#define _OPENCL 1" >>confdefs.h
9982
9983fi
9984 ac_ext=c
9985ac_cpp='$CPP $CPPFLAGS'
9986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9988ac_compiler_gnu=$ac_cv_c_compiler_gnu
9989
9990fi
9991
9992
9993
9994
cristyc7083c12009-10-14 03:16:55 +00009995CFLAGS="$CL_CFLAGS $CFLAGS"
9996LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009997
cristy391f1ce2010-09-09 17:23:28 +00009998if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009999 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010000 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10001 fi
cristyfd9dcd42010-08-08 18:07:02 +000010002fi
cristy2e8b51d2009-10-17 18:26:15 +000010003
cristy3ed852e2009-09-05 21:47:34 +000010004########
10005#
10006# Check for large file support
10007#
10008########
10009# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010010if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010011 enableval=$enable_largefile;
10012fi
10013
10014if test "$enable_largefile" != no; then
10015
cristy8b350f62009-11-15 23:12:43 +000010016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010018if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010019 $as_echo_n "(cached) " >&6
10020else
10021 ac_cv_sys_largefile_CC=no
10022 if test "$GCC" != yes; then
10023 ac_save_CC=$CC
10024 while :; do
10025 # IRIX 6.2 and later do not support large files by default,
10026 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010028/* end confdefs.h. */
10029#include <sys/types.h>
10030 /* Check that off_t can represent 2**63 - 1 correctly.
10031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10032 since some C++ compilers masquerading as C compilers
10033 incorrectly reject 9223372036854775807. */
10034#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10036 && LARGE_OFF_T % 2147483647 == 1)
10037 ? 1 : -1];
10038int
10039main ()
10040{
10041
10042 ;
10043 return 0;
10044}
10045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010046 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 break
cristy3ed852e2009-09-05 21:47:34 +000010048fi
cristy3ed852e2009-09-05 21:47:34 +000010049rm -f core conftest.err conftest.$ac_objext
10050 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010051 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010052 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010053fi
cristy3ed852e2009-09-05 21:47:34 +000010054rm -f core conftest.err conftest.$ac_objext
10055 break
10056 done
10057 CC=$ac_save_CC
10058 rm -f conftest.$ac_ext
10059 fi
10060fi
cristy8b350f62009-11-15 23:12:43 +000010061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010062$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10063 if test "$ac_cv_sys_largefile_CC" != no; then
10064 CC=$CC$ac_cv_sys_largefile_CC
10065 fi
10066
cristy8b350f62009-11-15 23:12:43 +000010067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010068$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010069if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010070 $as_echo_n "(cached) " >&6
10071else
10072 while :; do
cristy8b350f62009-11-15 23:12:43 +000010073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010074/* end confdefs.h. */
10075#include <sys/types.h>
10076 /* Check that off_t can represent 2**63 - 1 correctly.
10077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10078 since some C++ compilers masquerading as C compilers
10079 incorrectly reject 9223372036854775807. */
10080#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10082 && LARGE_OFF_T % 2147483647 == 1)
10083 ? 1 : -1];
10084int
10085main ()
10086{
10087
10088 ;
10089 return 0;
10090}
10091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010092if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010093 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010094fi
cristy3ed852e2009-09-05 21:47:34 +000010095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010097/* end confdefs.h. */
10098#define _FILE_OFFSET_BITS 64
10099#include <sys/types.h>
10100 /* Check that off_t can represent 2**63 - 1 correctly.
10101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10102 since some C++ compilers masquerading as C compilers
10103 incorrectly reject 9223372036854775807. */
10104#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10106 && LARGE_OFF_T % 2147483647 == 1)
10107 ? 1 : -1];
10108int
10109main ()
10110{
10111
10112 ;
10113 return 0;
10114}
10115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010117 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010118fi
cristy3ed852e2009-09-05 21:47:34 +000010119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 ac_cv_sys_file_offset_bits=unknown
10121 break
10122done
10123fi
cristy8b350f62009-11-15 23:12:43 +000010124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010125$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10126case $ac_cv_sys_file_offset_bits in #(
10127 no | unknown) ;;
10128 *)
10129cat >>confdefs.h <<_ACEOF
10130#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10131_ACEOF
10132;;
10133esac
10134rm -rf conftest*
10135 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010137$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010138if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010139 $as_echo_n "(cached) " >&6
10140else
10141 while :; do
cristy8b350f62009-11-15 23:12:43 +000010142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010143/* end confdefs.h. */
10144#include <sys/types.h>
10145 /* Check that off_t can represent 2**63 - 1 correctly.
10146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10147 since some C++ compilers masquerading as C compilers
10148 incorrectly reject 9223372036854775807. */
10149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10151 && LARGE_OFF_T % 2147483647 == 1)
10152 ? 1 : -1];
10153int
10154main ()
10155{
10156
10157 ;
10158 return 0;
10159}
10160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010161if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010162 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010163fi
cristy3ed852e2009-09-05 21:47:34 +000010164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010166/* end confdefs.h. */
10167#define _LARGE_FILES 1
10168#include <sys/types.h>
10169 /* Check that off_t can represent 2**63 - 1 correctly.
10170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10171 since some C++ compilers masquerading as C compilers
10172 incorrectly reject 9223372036854775807. */
10173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10175 && LARGE_OFF_T % 2147483647 == 1)
10176 ? 1 : -1];
10177int
10178main ()
10179{
10180
10181 ;
10182 return 0;
10183}
10184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010185if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010186 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010187fi
cristy3ed852e2009-09-05 21:47:34 +000010188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10189 ac_cv_sys_large_files=unknown
10190 break
10191done
10192fi
cristy8b350f62009-11-15 23:12:43 +000010193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010194$as_echo "$ac_cv_sys_large_files" >&6; }
10195case $ac_cv_sys_large_files in #(
10196 no | unknown) ;;
10197 *)
10198cat >>confdefs.h <<_ACEOF
10199#define _LARGE_FILES $ac_cv_sys_large_files
10200_ACEOF
10201;;
10202esac
10203rm -rf conftest*
10204 fi
cristy14fefe52012-05-21 00:59:18 +000010205
10206
cristy3ed852e2009-09-05 21:47:34 +000010207fi
10208
cristy8b350f62009-11-15 23:12:43 +000010209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010210$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010211if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010212 $as_echo_n "(cached) " >&6
10213else
10214 while :; do
cristy8b350f62009-11-15 23:12:43 +000010215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010216/* end confdefs.h. */
10217#include <sys/types.h> /* for off_t */
10218 #include <stdio.h>
10219int
10220main ()
10221{
10222int (*fp) (FILE *, off_t, int) = fseeko;
10223 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10224 ;
10225 return 0;
10226}
10227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010229 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010230fi
cristy8b350f62009-11-15 23:12:43 +000010231rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010234/* end confdefs.h. */
10235#define _LARGEFILE_SOURCE 1
10236#include <sys/types.h> /* for off_t */
10237 #include <stdio.h>
10238int
10239main ()
10240{
10241int (*fp) (FILE *, off_t, int) = fseeko;
10242 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10243 ;
10244 return 0;
10245}
10246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010248 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010249fi
cristy8b350f62009-11-15 23:12:43 +000010250rm -f core conftest.err conftest.$ac_objext \
10251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010252 ac_cv_sys_largefile_source=unknown
10253 break
10254done
10255fi
cristy8b350f62009-11-15 23:12:43 +000010256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010257$as_echo "$ac_cv_sys_largefile_source" >&6; }
10258case $ac_cv_sys_largefile_source in #(
10259 no | unknown) ;;
10260 *)
10261cat >>confdefs.h <<_ACEOF
10262#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10263_ACEOF
10264;;
10265esac
10266rm -rf conftest*
10267
10268# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10269# in glibc 2.1.3, but that breaks too many other things.
10270# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10271if test $ac_cv_sys_largefile_source != unknown; then
10272
cristy8b350f62009-11-15 23:12:43 +000010273$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010274
10275fi
10276
10277LFS_CPPFLAGS=''
10278if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010279 case $ac_cv_sys_file_offset_bits in
10280 no)
10281 # nothing to do here as the host supports LFS fine
10282 ;;
10283 unknown)
cristy8b350f62009-11-15 23:12:43 +000010284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010285$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010286 if test "$cross_compiling" = yes; then :
10287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010289as_fn_error $? "cannot run test program while cross compiling
10290See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010291else
cristy8b350f62009-11-15 23:12:43 +000010292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010294#include <unistd.h>
10295 main () {
10296 exit(!(sizeof(off_t) == 8));
10297 }
cristyda16f162011-02-19 23:52:17 +000010298int
10299main ()
10300{
10301
10302 ;
10303 return 0;
10304}
cristy3ed852e2009-09-05 21:47:34 +000010305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010306if ac_fn_c_try_run "$LINENO"; then :
10307 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010308
cristy09b53e12011-10-14 12:47:22 +000010309 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10310$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010311else
cristy09b53e12011-10-14 12:47:22 +000010312 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10313$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010314fi
cristy8b350f62009-11-15 23:12:43 +000010315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10316 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010317fi
10318
cristyc1e0cc12011-09-21 16:41:16 +000010319 ;;
10320 *)
10321 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10322 ;;
10323 esac
cristy3ed852e2009-09-05 21:47:34 +000010324 if test "$ac_cv_sys_large_files" != 'no'; then
10325 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10326 fi
10327 if test "$ac_cv_sys_largefile_source" != 'no'; then
10328 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10329 fi
10330fi
10331
10332
cristy3ed852e2009-09-05 21:47:34 +000010333# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010334enable_dlopen=yes
10335
10336
10337
10338case `pwd` in
10339 *\ * | *\ *)
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10341$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10342esac
10343
10344
10345
cristy99bd5232011-12-07 14:38:20 +000010346macro_version='2.4.2'
10347macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361ltmain="$ac_aux_dir/ltmain.sh"
10362
cristy0c60a692010-11-04 01:09:47 +000010363# Backslashify metacharacters that are still active within
10364# double-quoted strings.
10365sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10366
10367# Same as above, but do not quote variable references.
10368double_quote_subst='s/\(["`\\]\)/\\\1/g'
10369
10370# Sed substitution to delay expansion of an escaped shell variable in a
10371# double_quote_subst'ed string.
10372delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10373
10374# Sed substitution to delay expansion of an escaped single quote.
10375delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10376
10377# Sed substitution to avoid accidental globbing in evaled expressions
10378no_glob_subst='s/\*/\\\*/g'
10379
cristy73bd4a52010-10-05 11:24:23 +000010380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10381$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010382if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010383 $as_echo_n "(cached) " >&6
10384else
10385 if test -n "$NM"; then
10386 # Let the user override the test.
10387 lt_cv_path_NM="$NM"
10388else
10389 lt_nm_to_check="${ac_tool_prefix}nm"
10390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10391 lt_nm_to_check="$lt_nm_to_check nm"
10392 fi
10393 for lt_tmp_nm in $lt_nm_to_check; do
10394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10396 IFS="$lt_save_ifs"
10397 test -z "$ac_dir" && ac_dir=.
10398 tmp_nm="$ac_dir/$lt_tmp_nm"
10399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10400 # Check to see if the nm accepts a BSD-compat flag.
10401 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10402 # nm: unknown option "B" ignored
10403 # Tru64's nm complains that /dev/null is an invalid object file
10404 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10405 */dev/null* | *'Invalid file or object type'*)
10406 lt_cv_path_NM="$tmp_nm -B"
10407 break
10408 ;;
10409 *)
10410 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10411 */dev/null*)
10412 lt_cv_path_NM="$tmp_nm -p"
10413 break
10414 ;;
10415 *)
10416 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10417 continue # so that we can try to find one that supports BSD flags
10418 ;;
10419 esac
10420 ;;
10421 esac
10422 fi
10423 done
10424 IFS="$lt_save_ifs"
10425 done
10426 : ${lt_cv_path_NM=no}
10427fi
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10430$as_echo "$lt_cv_path_NM" >&6; }
10431if test "$lt_cv_path_NM" != "no"; then
10432 NM="$lt_cv_path_NM"
10433else
10434 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010435 if test -n "$DUMPBIN"; then :
10436 # Let the user override the test.
10437 else
10438 if test -n "$ac_tool_prefix"; then
10439 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010440 do
10441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010445if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010446 $as_echo_n "(cached) " >&6
10447else
10448 if test -n "$DUMPBIN"; then
10449 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010458 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463 done
10464IFS=$as_save_IFS
10465
10466fi
10467fi
10468DUMPBIN=$ac_cv_prog_DUMPBIN
10469if test -n "$DUMPBIN"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10471$as_echo "$DUMPBIN" >&6; }
10472else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
10475fi
10476
10477
10478 test -n "$DUMPBIN" && break
10479 done
10480fi
10481if test -z "$DUMPBIN"; then
10482 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010483 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010484do
10485 # Extract the first word of "$ac_prog", so it can be a program name with args.
10486set dummy $ac_prog; ac_word=$2
10487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010489if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010490 $as_echo_n "(cached) " >&6
10491else
10492 if test -n "$ac_ct_DUMPBIN"; then
10493 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10494else
10495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496for as_dir in $PATH
10497do
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010502 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10505 fi
10506done
10507 done
10508IFS=$as_save_IFS
10509
10510fi
10511fi
10512ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10513if test -n "$ac_ct_DUMPBIN"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10515$as_echo "$ac_ct_DUMPBIN" >&6; }
10516else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518$as_echo "no" >&6; }
10519fi
10520
10521
10522 test -n "$ac_ct_DUMPBIN" && break
10523done
10524
10525 if test "x$ac_ct_DUMPBIN" = x; then
10526 DUMPBIN=":"
10527 else
10528 case $cross_compiling:$ac_tool_warned in
10529yes:)
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532ac_tool_warned=yes ;;
10533esac
10534 DUMPBIN=$ac_ct_DUMPBIN
10535 fi
10536fi
10537
cristy0c60a692010-11-04 01:09:47 +000010538 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10539 *COFF*)
10540 DUMPBIN="$DUMPBIN -symbols"
10541 ;;
10542 *)
10543 DUMPBIN=:
10544 ;;
10545 esac
10546 fi
cristy73bd4a52010-10-05 11:24:23 +000010547
10548 if test "$DUMPBIN" != ":"; then
10549 NM="$DUMPBIN"
10550 fi
10551fi
10552test -z "$NM" && NM=nm
10553
10554
10555
10556
10557
10558
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10560$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010561if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010562 $as_echo_n "(cached) " >&6
10563else
10564 lt_cv_nm_interface="BSD nm"
10565 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010566 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010567 (eval "$ac_compile" 2>conftest.err)
10568 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010569 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010570 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10571 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010572 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010573 cat conftest.out >&5
10574 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10575 lt_cv_nm_interface="MS dumpbin"
10576 fi
10577 rm -f conftest*
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10580$as_echo "$lt_cv_nm_interface" >&6; }
10581
10582# find the maximum length of command line arguments
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10584$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010585if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010586 $as_echo_n "(cached) " >&6
10587else
10588 i=0
10589 teststring="ABCD"
10590
10591 case $build_os in
10592 msdosdjgpp*)
10593 # On DJGPP, this test can blow up pretty badly due to problems in libc
10594 # (any single argument exceeding 2000 bytes causes a buffer overrun
10595 # during glob expansion). Even if it were fixed, the result of this
10596 # check would be larger than it should be.
10597 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10598 ;;
10599
10600 gnu*)
10601 # Under GNU Hurd, this test is not required because there is
10602 # no limit to the length of command line arguments.
10603 # Libtool will interpret -1 as no limit whatsoever
10604 lt_cv_sys_max_cmd_len=-1;
10605 ;;
10606
10607 cygwin* | mingw* | cegcc*)
10608 # On Win9x/ME, this test blows up -- it succeeds, but takes
10609 # about 5 minutes as the teststring grows exponentially.
10610 # Worse, since 9x/ME are not pre-emptively multitasking,
10611 # you end up with a "frozen" computer, even though with patience
10612 # the test eventually succeeds (with a max line length of 256k).
10613 # Instead, let's just punt: use the minimum linelength reported by
10614 # all of the supported platforms: 8192 (on NT/2K/XP).
10615 lt_cv_sys_max_cmd_len=8192;
10616 ;;
10617
cristy0c60a692010-11-04 01:09:47 +000010618 mint*)
10619 # On MiNT this can take a long time and run out of memory.
10620 lt_cv_sys_max_cmd_len=8192;
10621 ;;
10622
cristy73bd4a52010-10-05 11:24:23 +000010623 amigaos*)
10624 # On AmigaOS with pdksh, this test takes hours, literally.
10625 # So we just punt and use a minimum line length of 8192.
10626 lt_cv_sys_max_cmd_len=8192;
10627 ;;
10628
10629 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10630 # This has been around since 386BSD, at least. Likely further.
10631 if test -x /sbin/sysctl; then
10632 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10633 elif test -x /usr/sbin/sysctl; then
10634 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10635 else
10636 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10637 fi
10638 # And add a safety zone
10639 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10641 ;;
10642
10643 interix*)
10644 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10645 lt_cv_sys_max_cmd_len=196608
10646 ;;
10647
cristy99bd5232011-12-07 14:38:20 +000010648 os2*)
10649 # The test takes a long time on OS/2.
10650 lt_cv_sys_max_cmd_len=8192
10651 ;;
10652
cristy73bd4a52010-10-05 11:24:23 +000010653 osf*)
10654 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10655 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10656 # nice to cause kernel panics so lets avoid the loop below.
10657 # First set a reasonable default.
10658 lt_cv_sys_max_cmd_len=16384
10659 #
10660 if test -x /sbin/sysconfig; then
10661 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10662 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10663 esac
10664 fi
10665 ;;
10666 sco3.2v5*)
10667 lt_cv_sys_max_cmd_len=102400
10668 ;;
10669 sysv5* | sco5v6* | sysv4.2uw2*)
10670 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10671 if test -n "$kargmax"; then
10672 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10673 else
10674 lt_cv_sys_max_cmd_len=32768
10675 fi
10676 ;;
10677 *)
10678 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10679 if test -n "$lt_cv_sys_max_cmd_len"; then
10680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10682 else
10683 # Make teststring a little bigger before we do anything with it.
10684 # a 1K string should be a reasonable start.
10685 for i in 1 2 3 4 5 6 7 8 ; do
10686 teststring=$teststring$teststring
10687 done
10688 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10689 # If test is not a shell built-in, we'll probably end up computing a
10690 # maximum length that is only half of the actual maximum length, but
10691 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010692 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010693 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010694 test $i != 17 # 1/2 MB should be enough
10695 do
10696 i=`expr $i + 1`
10697 teststring=$teststring$teststring
10698 done
10699 # Only check the string length outside the loop.
10700 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10701 teststring=
10702 # Add a significant safety factor because C++ compilers can tack on
10703 # massive amounts of additional arguments before passing them to the
10704 # linker. It appears as though 1/2 is a usable value.
10705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10706 fi
10707 ;;
10708 esac
10709
10710fi
10711
10712if test -n $lt_cv_sys_max_cmd_len ; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10714$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10715else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10717$as_echo "none" >&6; }
10718fi
10719max_cmd_len=$lt_cv_sys_max_cmd_len
10720
10721
10722
10723
10724
10725
10726: ${CP="cp -f"}
10727: ${MV="mv -f"}
10728: ${RM="rm -f"}
10729
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10731$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10732# Try some XSI features
10733xsi_shell=no
10734( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010735 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10736 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010737 && eval 'test $(( 1 + 1 )) -eq 2 \
10738 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10739 && xsi_shell=yes
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10741$as_echo "$xsi_shell" >&6; }
10742
10743
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10745$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10746lt_shell_append=no
10747( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10748 >/dev/null 2>&1 \
10749 && lt_shell_append=yes
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10751$as_echo "$lt_shell_append" >&6; }
10752
10753
10754if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10755 lt_unset=unset
10756else
10757 lt_unset=false
10758fi
10759
10760
10761
10762
10763
10764# test EBCDIC or ASCII
10765case `echo X|tr X '\101'` in
10766 A) # ASCII based system
10767 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10768 lt_SP2NL='tr \040 \012'
10769 lt_NL2SP='tr \015\012 \040\040'
10770 ;;
10771 *) # EBCDIC based system
10772 lt_SP2NL='tr \100 \n'
10773 lt_NL2SP='tr \r\n \100\100'
10774 ;;
10775esac
10776
10777
10778
10779
10780
10781
10782
10783
10784
cristyda16f162011-02-19 23:52:17 +000010785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10786$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10787if ${lt_cv_to_host_file_cmd+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789else
10790 case $host in
10791 *-*-mingw* )
10792 case $build in
10793 *-*-mingw* ) # actually msys
10794 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10795 ;;
10796 *-*-cygwin* )
10797 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10798 ;;
10799 * ) # otherwise, assume *nix
10800 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10801 ;;
10802 esac
10803 ;;
10804 *-*-cygwin* )
10805 case $build in
10806 *-*-mingw* ) # actually msys
10807 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10808 ;;
10809 *-*-cygwin* )
10810 lt_cv_to_host_file_cmd=func_convert_file_noop
10811 ;;
10812 * ) # otherwise, assume *nix
10813 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10814 ;;
10815 esac
10816 ;;
10817 * ) # unhandled hosts (and "normal" native builds)
10818 lt_cv_to_host_file_cmd=func_convert_file_noop
10819 ;;
10820esac
10821
10822fi
10823
10824to_host_file_cmd=$lt_cv_to_host_file_cmd
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10826$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10827
10828
10829
10830
10831
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10833$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10834if ${lt_cv_to_tool_file_cmd+:} false; then :
10835 $as_echo_n "(cached) " >&6
10836else
10837 #assume ordinary cross tools, or native build.
10838lt_cv_to_tool_file_cmd=func_convert_file_noop
10839case $host in
10840 *-*-mingw* )
10841 case $build in
10842 *-*-mingw* ) # actually msys
10843 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10844 ;;
10845 esac
10846 ;;
10847esac
10848
10849fi
10850
10851to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10853$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10854
10855
10856
10857
10858
cristy73bd4a52010-10-05 11:24:23 +000010859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10860$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010861if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010862 $as_echo_n "(cached) " >&6
10863else
10864 lt_cv_ld_reload_flag='-r'
10865fi
10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10867$as_echo "$lt_cv_ld_reload_flag" >&6; }
10868reload_flag=$lt_cv_ld_reload_flag
10869case $reload_flag in
10870"" | " "*) ;;
10871*) reload_flag=" $reload_flag" ;;
10872esac
10873reload_cmds='$LD$reload_flag -o $output$reload_objs'
10874case $host_os in
cristyda16f162011-02-19 23:52:17 +000010875 cygwin* | mingw* | pw32* | cegcc*)
10876 if test "$GCC" != yes; then
10877 reload_cmds=false
10878 fi
10879 ;;
cristy73bd4a52010-10-05 11:24:23 +000010880 darwin*)
10881 if test "$GCC" = yes; then
10882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10883 else
10884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10885 fi
10886 ;;
10887esac
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897if test -n "$ac_tool_prefix"; then
10898 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10899set dummy ${ac_tool_prefix}objdump; ac_word=$2
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010902if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010903 $as_echo_n "(cached) " >&6
10904else
10905 if test -n "$OBJDUMP"; then
10906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10907else
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919done
10920 done
10921IFS=$as_save_IFS
10922
10923fi
10924fi
10925OBJDUMP=$ac_cv_prog_OBJDUMP
10926if test -n "$OBJDUMP"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10928$as_echo "$OBJDUMP" >&6; }
10929else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
10932fi
10933
10934
10935fi
10936if test -z "$ac_cv_prog_OBJDUMP"; then
10937 ac_ct_OBJDUMP=$OBJDUMP
10938 # Extract the first word of "objdump", so it can be a program name with args.
10939set dummy objdump; ac_word=$2
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010942if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010943 $as_echo_n "(cached) " >&6
10944else
10945 if test -n "$ac_ct_OBJDUMP"; then
10946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10947else
10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949for as_dir in $PATH
10950do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010955 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959done
10960 done
10961IFS=$as_save_IFS
10962
10963fi
10964fi
10965ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10966if test -n "$ac_ct_OBJDUMP"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10968$as_echo "$ac_ct_OBJDUMP" >&6; }
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974 if test "x$ac_ct_OBJDUMP" = x; then
10975 OBJDUMP="false"
10976 else
10977 case $cross_compiling:$ac_tool_warned in
10978yes:)
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10981ac_tool_warned=yes ;;
10982esac
10983 OBJDUMP=$ac_ct_OBJDUMP
10984 fi
10985else
10986 OBJDUMP="$ac_cv_prog_OBJDUMP"
10987fi
10988
10989test -z "$OBJDUMP" && OBJDUMP=objdump
10990
10991
10992
10993
10994
10995
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10997$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010998if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010999 $as_echo_n "(cached) " >&6
11000else
11001 lt_cv_file_magic_cmd='$MAGIC_CMD'
11002lt_cv_file_magic_test_file=
11003lt_cv_deplibs_check_method='unknown'
11004# Need to set the preceding variable on all platforms that support
11005# interlibrary dependencies.
11006# 'none' -- dependencies not supported.
11007# `unknown' -- same as none, but documents that we really don't know.
11008# 'pass_all' -- all dependencies passed with no checks.
11009# 'test_compile' -- check by making test program.
11010# 'file_magic [[regex]]' -- check by looking for files in library path
11011# which responds to the $file_magic_cmd with a given extended regex.
11012# If you have `file' or equivalent on your system and you're not sure
11013# whether `pass_all' will *always* work, you probably want this one.
11014
11015case $host_os in
11016aix[4-9]*)
11017 lt_cv_deplibs_check_method=pass_all
11018 ;;
11019
11020beos*)
11021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
11024bsdi[45]*)
11025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11026 lt_cv_file_magic_cmd='/usr/bin/file -L'
11027 lt_cv_file_magic_test_file=/shlib/libc.so
11028 ;;
11029
11030cygwin*)
11031 # func_win32_libid is a shell function defined in ltmain.sh
11032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11033 lt_cv_file_magic_cmd='func_win32_libid'
11034 ;;
11035
11036mingw* | pw32*)
11037 # Base MSYS/MinGW do not provide the 'file' command needed by
11038 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11039 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011040 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11041 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11043 lt_cv_file_magic_cmd='func_win32_libid'
11044 else
cristy0c60a692010-11-04 01:09:47 +000011045 # Keep this pattern in sync with the one in func_win32_libid.
11046 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 +000011047 lt_cv_file_magic_cmd='$OBJDUMP -f'
11048 fi
11049 ;;
11050
cristy0c60a692010-11-04 01:09:47 +000011051cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011052 # use the weaker test based on 'objdump'. See mingw*.
11053 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11054 lt_cv_file_magic_cmd='$OBJDUMP -f'
11055 ;;
11056
11057darwin* | rhapsody*)
11058 lt_cv_deplibs_check_method=pass_all
11059 ;;
11060
11061freebsd* | dragonfly*)
11062 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11063 case $host_cpu in
11064 i*86 )
11065 # Not sure whether the presence of OpenBSD here was a mistake.
11066 # Let's accept both of them until this is cleared up.
11067 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11068 lt_cv_file_magic_cmd=/usr/bin/file
11069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11070 ;;
11071 esac
11072 else
11073 lt_cv_deplibs_check_method=pass_all
11074 fi
11075 ;;
11076
11077gnu*)
11078 lt_cv_deplibs_check_method=pass_all
11079 ;;
11080
cristy0c60a692010-11-04 01:09:47 +000011081haiku*)
11082 lt_cv_deplibs_check_method=pass_all
11083 ;;
11084
cristy73bd4a52010-10-05 11:24:23 +000011085hpux10.20* | hpux11*)
11086 lt_cv_file_magic_cmd=/usr/bin/file
11087 case $host_cpu in
11088 ia64*)
11089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11090 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11091 ;;
11092 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011093 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 +000011094 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11095 ;;
11096 *)
cristy0c60a692010-11-04 01:09:47 +000011097 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 +000011098 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11099 ;;
11100 esac
11101 ;;
11102
11103interix[3-9]*)
11104 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11106 ;;
11107
11108irix5* | irix6* | nonstopux*)
11109 case $LD in
11110 *-32|*"-32 ") libmagic=32-bit;;
11111 *-n32|*"-n32 ") libmagic=N32;;
11112 *-64|*"-64 ") libmagic=64-bit;;
11113 *) libmagic=never-match;;
11114 esac
11115 lt_cv_deplibs_check_method=pass_all
11116 ;;
11117
cristy99bd5232011-12-07 14:38:20 +000011118# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011119linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011120 lt_cv_deplibs_check_method=pass_all
11121 ;;
11122
11123netbsd*)
11124 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11126 else
11127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11128 fi
11129 ;;
11130
11131newos6*)
11132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11133 lt_cv_file_magic_cmd=/usr/bin/file
11134 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11135 ;;
11136
11137*nto* | *qnx*)
11138 lt_cv_deplibs_check_method=pass_all
11139 ;;
11140
11141openbsd*)
11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11144 else
11145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11146 fi
11147 ;;
11148
11149osf3* | osf4* | osf5*)
11150 lt_cv_deplibs_check_method=pass_all
11151 ;;
11152
11153rdos*)
11154 lt_cv_deplibs_check_method=pass_all
11155 ;;
11156
11157solaris*)
11158 lt_cv_deplibs_check_method=pass_all
11159 ;;
11160
11161sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11162 lt_cv_deplibs_check_method=pass_all
11163 ;;
11164
11165sysv4 | sysv4.3*)
11166 case $host_vendor in
11167 motorola)
11168 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]'
11169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11170 ;;
11171 ncr)
11172 lt_cv_deplibs_check_method=pass_all
11173 ;;
11174 sequent)
11175 lt_cv_file_magic_cmd='/bin/file'
11176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11177 ;;
11178 sni)
11179 lt_cv_file_magic_cmd='/bin/file'
11180 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11181 lt_cv_file_magic_test_file=/lib/libc.so
11182 ;;
11183 siemens)
11184 lt_cv_deplibs_check_method=pass_all
11185 ;;
11186 pc)
11187 lt_cv_deplibs_check_method=pass_all
11188 ;;
11189 esac
11190 ;;
11191
11192tpf*)
11193 lt_cv_deplibs_check_method=pass_all
11194 ;;
11195esac
11196
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11199$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011200
11201file_magic_glob=
11202want_nocaseglob=no
11203if test "$build" = "$host"; then
11204 case $host_os in
11205 mingw* | pw32*)
11206 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11207 want_nocaseglob=yes
11208 else
11209 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11210 fi
11211 ;;
11212 esac
11213fi
11214
cristy73bd4a52010-10-05 11:24:23 +000011215file_magic_cmd=$lt_cv_file_magic_cmd
11216deplibs_check_method=$lt_cv_deplibs_check_method
11217test -z "$deplibs_check_method" && deplibs_check_method=unknown
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
cristyda16f162011-02-19 23:52:17 +000011230
11231
11232
11233
11234
11235
11236
11237
11238
11239
cristy73bd4a52010-10-05 11:24:23 +000011240if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11242set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011245if ${ac_cv_prog_DLLTOOL+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247else
11248 if test -n "$DLLTOOL"; then
11249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011258 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262done
11263 done
11264IFS=$as_save_IFS
11265
11266fi
11267fi
11268DLLTOOL=$ac_cv_prog_DLLTOOL
11269if test -n "$DLLTOOL"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11271$as_echo "$DLLTOOL" >&6; }
11272else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
11275fi
11276
11277
11278fi
11279if test -z "$ac_cv_prog_DLLTOOL"; then
11280 ac_ct_DLLTOOL=$DLLTOOL
11281 # Extract the first word of "dlltool", so it can be a program name with args.
11282set dummy dlltool; ac_word=$2
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287else
11288 if test -n "$ac_ct_DLLTOOL"; then
11289 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11290else
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011298 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11301 fi
11302done
11303 done
11304IFS=$as_save_IFS
11305
11306fi
11307fi
11308ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11309if test -n "$ac_ct_DLLTOOL"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11311$as_echo "$ac_ct_DLLTOOL" >&6; }
11312else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315fi
11316
11317 if test "x$ac_ct_DLLTOOL" = x; then
11318 DLLTOOL="false"
11319 else
11320 case $cross_compiling:$ac_tool_warned in
11321yes:)
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11324ac_tool_warned=yes ;;
11325esac
11326 DLLTOOL=$ac_ct_DLLTOOL
11327 fi
11328else
11329 DLLTOOL="$ac_cv_prog_DLLTOOL"
11330fi
11331
11332test -z "$DLLTOOL" && DLLTOOL=dlltool
11333
11334
11335
11336
11337
11338
11339
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11341$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11342if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344else
11345 lt_cv_sharedlib_from_linklib_cmd='unknown'
11346
11347case $host_os in
11348cygwin* | mingw* | pw32* | cegcc*)
11349 # two different shell functions defined in ltmain.sh
11350 # decide which to use based on capabilities of $DLLTOOL
11351 case `$DLLTOOL --help 2>&1` in
11352 *--identify-strict*)
11353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11354 ;;
11355 *)
11356 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11357 ;;
11358 esac
11359 ;;
11360*)
11361 # fallback: assume linklib IS sharedlib
11362 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11363 ;;
11364esac
11365
11366fi
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11368$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11369sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11370test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11371
11372
11373
11374
11375
11376
11377
11378if test -n "$ac_tool_prefix"; then
11379 for ac_prog in ar
11380 do
11381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11382set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
11385if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011386 $as_echo_n "(cached) " >&6
11387else
11388 if test -n "$AR"; then
11389 ac_cv_prog_AR="$AR" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011398 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402done
11403 done
11404IFS=$as_save_IFS
11405
11406fi
11407fi
11408AR=$ac_cv_prog_AR
11409if test -n "$AR"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11411$as_echo "$AR" >&6; }
11412else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
11415fi
11416
11417
cristyda16f162011-02-19 23:52:17 +000011418 test -n "$AR" && break
11419 done
cristy73bd4a52010-10-05 11:24:23 +000011420fi
cristyda16f162011-02-19 23:52:17 +000011421if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011422 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011423 for ac_prog in ar
11424do
11425 # Extract the first word of "$ac_prog", so it can be a program name with args.
11426set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011429if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011430 $as_echo_n "(cached) " >&6
11431else
11432 if test -n "$ac_ct_AR"; then
11433 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011442 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447 done
11448IFS=$as_save_IFS
11449
11450fi
11451fi
11452ac_ct_AR=$ac_cv_prog_ac_ct_AR
11453if test -n "$ac_ct_AR"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11455$as_echo "$ac_ct_AR" >&6; }
11456else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
cristyda16f162011-02-19 23:52:17 +000011461
11462 test -n "$ac_ct_AR" && break
11463done
11464
cristy73bd4a52010-10-05 11:24:23 +000011465 if test "x$ac_ct_AR" = x; then
11466 AR="false"
11467 else
11468 case $cross_compiling:$ac_tool_warned in
11469yes:)
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11472ac_tool_warned=yes ;;
11473esac
11474 AR=$ac_ct_AR
11475 fi
cristy73bd4a52010-10-05 11:24:23 +000011476fi
11477
cristyda16f162011-02-19 23:52:17 +000011478: ${AR=ar}
11479: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
cristyda16f162011-02-19 23:52:17 +000011491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11492$as_echo_n "checking for archiver @FILE support... " >&6; }
11493if ${lt_cv_ar_at_file+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495else
11496 lt_cv_ar_at_file=no
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498/* end confdefs.h. */
11499
11500int
11501main ()
11502{
11503
11504 ;
11505 return 0;
11506}
11507_ACEOF
11508if ac_fn_c_try_compile "$LINENO"; then :
11509 echo conftest.$ac_objext > conftest.lst
11510 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11512 (eval $lt_ar_try) 2>&5
11513 ac_status=$?
11514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515 test $ac_status = 0; }
11516 if test "$ac_status" -eq 0; then
11517 # Ensure the archiver fails upon bogus file names.
11518 rm -f conftest.$ac_objext libconftest.a
11519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11520 (eval $lt_ar_try) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11523 test $ac_status = 0; }
11524 if test "$ac_status" -ne 0; then
11525 lt_cv_ar_at_file=@
11526 fi
11527 fi
11528 rm -f conftest.* libconftest.a
11529
11530fi
11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532
11533fi
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11535$as_echo "$lt_cv_ar_at_file" >&6; }
11536
11537if test "x$lt_cv_ar_at_file" = xno; then
11538 archiver_list_spec=
11539else
11540 archiver_list_spec=$lt_cv_ar_at_file
11541fi
11542
11543
11544
11545
11546
11547
11548
cristy73bd4a52010-10-05 11:24:23 +000011549if test -n "$ac_tool_prefix"; then
11550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11551set dummy ${ac_tool_prefix}strip; ac_word=$2
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011554if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011555 $as_echo_n "(cached) " >&6
11556else
11557 if test -n "$STRIP"; then
11558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11559else
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11570 fi
11571done
11572 done
11573IFS=$as_save_IFS
11574
11575fi
11576fi
11577STRIP=$ac_cv_prog_STRIP
11578if test -n "$STRIP"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11580$as_echo "$STRIP" >&6; }
11581else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
11584fi
11585
11586
11587fi
11588if test -z "$ac_cv_prog_STRIP"; then
11589 ac_ct_STRIP=$STRIP
11590 # Extract the first word of "strip", so it can be a program name with args.
11591set dummy strip; ac_word=$2
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011594if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 if test -n "$ac_ct_STRIP"; then
11598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11599else
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011607 ac_cv_prog_ac_ct_STRIP="strip"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612 done
11613IFS=$as_save_IFS
11614
11615fi
11616fi
11617ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11618if test -n "$ac_ct_STRIP"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11620$as_echo "$ac_ct_STRIP" >&6; }
11621else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
11624fi
11625
11626 if test "x$ac_ct_STRIP" = x; then
11627 STRIP=":"
11628 else
11629 case $cross_compiling:$ac_tool_warned in
11630yes:)
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633ac_tool_warned=yes ;;
11634esac
11635 STRIP=$ac_ct_STRIP
11636 fi
11637else
11638 STRIP="$ac_cv_prog_STRIP"
11639fi
11640
11641test -z "$STRIP" && STRIP=:
11642
11643
11644
11645
11646
11647
11648if test -n "$ac_tool_prefix"; then
11649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011653if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011654 $as_echo_n "(cached) " >&6
11655else
11656 if test -n "$RANLIB"; then
11657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671 done
11672IFS=$as_save_IFS
11673
11674fi
11675fi
11676RANLIB=$ac_cv_prog_RANLIB
11677if test -n "$RANLIB"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11679$as_echo "$RANLIB" >&6; }
11680else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682$as_echo "no" >&6; }
11683fi
11684
11685
11686fi
11687if test -z "$ac_cv_prog_RANLIB"; then
11688 ac_ct_RANLIB=$RANLIB
11689 # Extract the first word of "ranlib", so it can be a program name with args.
11690set dummy ranlib; ac_word=$2
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011693if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011694 $as_echo_n "(cached) " >&6
11695else
11696 if test -n "$ac_ct_RANLIB"; then
11697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11698else
11699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011706 ac_cv_prog_ac_ct_RANLIB="ranlib"
11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11708 break 2
11709 fi
11710done
11711 done
11712IFS=$as_save_IFS
11713
11714fi
11715fi
11716ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11717if test -n "$ac_ct_RANLIB"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11719$as_echo "$ac_ct_RANLIB" >&6; }
11720else
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722$as_echo "no" >&6; }
11723fi
11724
11725 if test "x$ac_ct_RANLIB" = x; then
11726 RANLIB=":"
11727 else
11728 case $cross_compiling:$ac_tool_warned in
11729yes:)
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11732ac_tool_warned=yes ;;
11733esac
11734 RANLIB=$ac_ct_RANLIB
11735 fi
11736else
11737 RANLIB="$ac_cv_prog_RANLIB"
11738fi
11739
11740test -z "$RANLIB" && RANLIB=:
11741
11742
11743
11744
11745
11746
11747# Determine commands to create old-style static archives.
11748old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11749old_postinstall_cmds='chmod 644 $oldlib'
11750old_postuninstall_cmds=
11751
11752if test -n "$RANLIB"; then
11753 case $host_os in
11754 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011756 ;;
11757 *)
cristy99bd5232011-12-07 14:38:20 +000011758 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011759 ;;
11760 esac
cristy99bd5232011-12-07 14:38:20 +000011761 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011762fi
11763
cristy0c60a692010-11-04 01:09:47 +000011764case $host_os in
11765 darwin*)
11766 lock_old_archive_extraction=yes ;;
11767 *)
11768 lock_old_archive_extraction=no ;;
11769esac
11770
11771
11772
11773
11774
11775
cristy73bd4a52010-10-05 11:24:23 +000011776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809# If no C compiler was specified, use CC.
11810LTCC=${LTCC-"$CC"}
11811
11812# If no C compiler flags were specified, use CFLAGS.
11813LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11814
11815# Allow CC to be a program name with arguments.
11816compiler=$CC
11817
11818
11819# Check for command to grab the raw symbol name followed by C symbol from nm.
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11821$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011822if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011823 $as_echo_n "(cached) " >&6
11824else
11825
11826# These are sane defaults that work on at least a few old systems.
11827# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11828
11829# Character class describing NM global symbol codes.
11830symcode='[BCDEGRST]'
11831
11832# Regexp to match symbols that can be accessed directly from C.
11833sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11834
11835# Define system-specific variables.
11836case $host_os in
11837aix*)
11838 symcode='[BCDT]'
11839 ;;
11840cygwin* | mingw* | pw32* | cegcc*)
11841 symcode='[ABCDGISTW]'
11842 ;;
11843hpux*)
11844 if test "$host_cpu" = ia64; then
11845 symcode='[ABCDEGRST]'
11846 fi
11847 ;;
11848irix* | nonstopux*)
11849 symcode='[BCDEGRST]'
11850 ;;
11851osf*)
11852 symcode='[BCDEGQRST]'
11853 ;;
11854solaris*)
11855 symcode='[BDRT]'
11856 ;;
11857sco3.2v5*)
11858 symcode='[DT]'
11859 ;;
11860sysv4.2uw2*)
11861 symcode='[DT]'
11862 ;;
11863sysv5* | sco5v6* | unixware* | OpenUNIX*)
11864 symcode='[ABDT]'
11865 ;;
11866sysv4)
11867 symcode='[DFNSTU]'
11868 ;;
11869esac
11870
11871# If we're using GNU nm, then use its standard symbol codes.
11872case `$NM -V 2>&1` in
11873*GNU* | *'with BFD'*)
11874 symcode='[ABCDGIRSTW]' ;;
11875esac
11876
11877# Transform an extracted symbol line into a proper C declaration.
11878# Some systems (esp. on ia64) link data and code symbols differently,
11879# so use this general approach.
11880lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11881
11882# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011883lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11884lt_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 +000011885
11886# Handle CRLF in mingw tool chain
11887opt_cr=
11888case $build_os in
11889mingw*)
11890 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11891 ;;
11892esac
11893
11894# Try without a prefix underscore, then with it.
11895for ac_symprfx in "" "_"; do
11896
11897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11898 symxfrm="\\1 $ac_symprfx\\2 \\2"
11899
11900 # Write the raw and C identifiers.
11901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11902 # Fake it for dumpbin and say T for any non-static function
11903 # and D for any global variable.
11904 # Also find C++ and __fastcall symbols from MSVC++,
11905 # which start with @ or ?.
11906 lt_cv_sys_global_symbol_pipe="$AWK '"\
11907" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011908" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011909" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11910" \$ 0!~/External *\|/{next};"\
11911" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11912" {if(hide[section]) next};"\
11913" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11914" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11915" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11916" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11917" ' prfx=^$ac_symprfx"
11918 else
11919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11920 fi
cristyda16f162011-02-19 23:52:17 +000011921 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011922
11923 # Check to see that the pipe works correctly.
11924 pipe_works=no
11925
11926 rm -f conftest*
11927 cat > conftest.$ac_ext <<_LT_EOF
11928#ifdef __cplusplus
11929extern "C" {
11930#endif
11931char nm_test_var;
11932void nm_test_func(void);
11933void nm_test_func(void){}
11934#ifdef __cplusplus
11935}
11936#endif
11937int main(){nm_test_var='a';nm_test_func();return(0);}
11938_LT_EOF
11939
11940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11941 (eval $ac_compile) 2>&5
11942 ac_status=$?
11943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11944 test $ac_status = 0; }; then
11945 # Now try to grab the symbols.
11946 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11948 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011949 ac_status=$?
11950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11951 test $ac_status = 0; } && test -s "$nlist"; then
11952 # Try sorting and uniquifying the output.
11953 if sort "$nlist" | uniq > "$nlist"T; then
11954 mv -f "$nlist"T "$nlist"
11955 else
11956 rm -f "$nlist"T
11957 fi
11958
11959 # Make sure that we snagged all the symbols we need.
11960 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11961 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11962 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011963/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11964#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11965/* DATA imports from DLLs on WIN32 con't be const, because runtime
11966 relocations are performed -- see ld's documentation on pseudo-relocs. */
11967# define LT_DLSYM_CONST
11968#elif defined(__osf__)
11969/* This system does not cope well with relocations in const data. */
11970# define LT_DLSYM_CONST
11971#else
11972# define LT_DLSYM_CONST const
11973#endif
11974
cristy73bd4a52010-10-05 11:24:23 +000011975#ifdef __cplusplus
11976extern "C" {
11977#endif
11978
11979_LT_EOF
11980 # Now generate the symbol file.
11981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11982
11983 cat <<_LT_EOF >> conftest.$ac_ext
11984
11985/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011986LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011987 const char *name;
11988 void *address;
11989}
11990lt__PROGRAM__LTX_preloaded_symbols[] =
11991{
11992 { "@PROGRAM@", (void *) 0 },
11993_LT_EOF
11994 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11995 cat <<\_LT_EOF >> conftest.$ac_ext
11996 {0, (void *) 0}
11997};
11998
11999/* This works around a problem in FreeBSD linker */
12000#ifdef FREEBSD_WORKAROUND
12001static const void *lt_preloaded_setup() {
12002 return lt__PROGRAM__LTX_preloaded_symbols;
12003}
12004#endif
12005
12006#ifdef __cplusplus
12007}
12008#endif
12009_LT_EOF
12010 # Now try linking the two files.
12011 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012012 lt_globsym_save_LIBS=$LIBS
12013 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012014 LIBS="conftstm.$ac_objext"
12015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12017 (eval $ac_link) 2>&5
12018 ac_status=$?
12019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12021 pipe_works=yes
12022 fi
cristyda16f162011-02-19 23:52:17 +000012023 LIBS=$lt_globsym_save_LIBS
12024 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012025 else
12026 echo "cannot find nm_test_func in $nlist" >&5
12027 fi
12028 else
12029 echo "cannot find nm_test_var in $nlist" >&5
12030 fi
12031 else
12032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12033 fi
12034 else
12035 echo "$progname: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 fi
12038 rm -rf conftest* conftst*
12039
12040 # Do not use the global_symbol_pipe unless it works.
12041 if test "$pipe_works" = yes; then
12042 break
12043 else
12044 lt_cv_sys_global_symbol_pipe=
12045 fi
12046done
12047
12048fi
12049
12050if test -z "$lt_cv_sys_global_symbol_pipe"; then
12051 lt_cv_sys_global_symbol_to_cdecl=
12052fi
12053if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12055$as_echo "failed" >&6; }
12056else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12058$as_echo "ok" >&6; }
12059fi
12060
cristyda16f162011-02-19 23:52:17 +000012061# Response file support.
12062if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12063 nm_file_list_spec='@'
12064elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12065 nm_file_list_spec='@'
12066fi
cristy73bd4a52010-10-05 11:24:23 +000012067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
cristyda16f162011-02-19 23:52:17 +000012088
12089
12090
12091
12092
12093
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12095$as_echo_n "checking for sysroot... " >&6; }
12096
12097# Check whether --with-sysroot was given.
12098if test "${with_sysroot+set}" = set; then :
12099 withval=$with_sysroot;
12100else
12101 with_sysroot=no
12102fi
12103
12104
12105lt_sysroot=
12106case ${with_sysroot} in #(
12107 yes)
12108 if test "$GCC" = yes; then
12109 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12110 fi
12111 ;; #(
12112 /*)
12113 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12114 ;; #(
12115 no|'')
12116 ;; #(
12117 *)
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12119$as_echo "${with_sysroot}" >&6; }
12120 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12121 ;;
12122esac
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12125$as_echo "${lt_sysroot:-no}" >&6; }
12126
12127
12128
12129
12130
cristy73bd4a52010-10-05 11:24:23 +000012131# Check whether --enable-libtool-lock was given.
12132if test "${enable_libtool_lock+set}" = set; then :
12133 enableval=$enable_libtool_lock;
12134fi
12135
12136test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12137
12138# Some flags need to be propagated to the compiler or linker for good
12139# libtool support.
12140case $host in
12141ia64-*-hpux*)
12142 # Find out which ABI we are using.
12143 echo 'int i;' > conftest.$ac_ext
12144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12145 (eval $ac_compile) 2>&5
12146 ac_status=$?
12147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12148 test $ac_status = 0; }; then
12149 case `/usr/bin/file conftest.$ac_objext` in
12150 *ELF-32*)
12151 HPUX_IA64_MODE="32"
12152 ;;
12153 *ELF-64*)
12154 HPUX_IA64_MODE="64"
12155 ;;
12156 esac
12157 fi
12158 rm -rf conftest*
12159 ;;
12160*-*-irix6*)
12161 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012162 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12164 (eval $ac_compile) 2>&5
12165 ac_status=$?
12166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12167 test $ac_status = 0; }; then
12168 if test "$lt_cv_prog_gnu_ld" = yes; then
12169 case `/usr/bin/file conftest.$ac_objext` in
12170 *32-bit*)
12171 LD="${LD-ld} -melf32bsmip"
12172 ;;
12173 *N32*)
12174 LD="${LD-ld} -melf32bmipn32"
12175 ;;
12176 *64-bit*)
12177 LD="${LD-ld} -melf64bmip"
12178 ;;
12179 esac
12180 else
12181 case `/usr/bin/file conftest.$ac_objext` in
12182 *32-bit*)
12183 LD="${LD-ld} -32"
12184 ;;
12185 *N32*)
12186 LD="${LD-ld} -n32"
12187 ;;
12188 *64-bit*)
12189 LD="${LD-ld} -64"
12190 ;;
12191 esac
12192 fi
12193 fi
12194 rm -rf conftest*
12195 ;;
12196
12197x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12198s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12199 # Find out which ABI we are using.
12200 echo 'int i;' > conftest.$ac_ext
12201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12202 (eval $ac_compile) 2>&5
12203 ac_status=$?
12204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12205 test $ac_status = 0; }; then
12206 case `/usr/bin/file conftest.o` in
12207 *32-bit*)
12208 case $host in
12209 x86_64-*kfreebsd*-gnu)
12210 LD="${LD-ld} -m elf_i386_fbsd"
12211 ;;
12212 x86_64-*linux*)
12213 LD="${LD-ld} -m elf_i386"
12214 ;;
12215 ppc64-*linux*|powerpc64-*linux*)
12216 LD="${LD-ld} -m elf32ppclinux"
12217 ;;
12218 s390x-*linux*)
12219 LD="${LD-ld} -m elf_s390"
12220 ;;
12221 sparc64-*linux*)
12222 LD="${LD-ld} -m elf32_sparc"
12223 ;;
12224 esac
12225 ;;
12226 *64-bit*)
12227 case $host in
12228 x86_64-*kfreebsd*-gnu)
12229 LD="${LD-ld} -m elf_x86_64_fbsd"
12230 ;;
12231 x86_64-*linux*)
12232 LD="${LD-ld} -m elf_x86_64"
12233 ;;
12234 ppc*-*linux*|powerpc*-*linux*)
12235 LD="${LD-ld} -m elf64ppc"
12236 ;;
12237 s390*-*linux*|s390*-*tpf*)
12238 LD="${LD-ld} -m elf64_s390"
12239 ;;
12240 sparc*-*linux*)
12241 LD="${LD-ld} -m elf64_sparc"
12242 ;;
12243 esac
12244 ;;
12245 esac
12246 fi
12247 rm -rf conftest*
12248 ;;
12249
12250*-*-sco3.2v5*)
12251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12252 SAVE_CFLAGS="$CFLAGS"
12253 CFLAGS="$CFLAGS -belf"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12255$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012256if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012257 $as_echo_n "(cached) " >&6
12258else
12259 ac_ext=c
12260ac_cpp='$CPP $CPPFLAGS'
12261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263ac_compiler_gnu=$ac_cv_c_compiler_gnu
12264
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h. */
12267
12268int
12269main ()
12270{
12271
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276if ac_fn_c_try_link "$LINENO"; then :
12277 lt_cv_cc_needs_belf=yes
12278else
12279 lt_cv_cc_needs_belf=no
12280fi
12281rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 ac_ext=c
12284ac_cpp='$CPP $CPPFLAGS'
12285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12287ac_compiler_gnu=$ac_cv_c_compiler_gnu
12288
12289fi
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12291$as_echo "$lt_cv_cc_needs_belf" >&6; }
12292 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12294 CFLAGS="$SAVE_CFLAGS"
12295 fi
12296 ;;
cristy99bd5232011-12-07 14:38:20 +000012297*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012298 # Find out which ABI we are using.
12299 echo 'int i;' > conftest.$ac_ext
12300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12301 (eval $ac_compile) 2>&5
12302 ac_status=$?
12303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12304 test $ac_status = 0; }; then
12305 case `/usr/bin/file conftest.o` in
12306 *64-bit*)
12307 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012308 yes*)
12309 case $host in
12310 i?86-*-solaris*)
12311 LD="${LD-ld} -m elf_x86_64"
12312 ;;
12313 sparc*-*-solaris*)
12314 LD="${LD-ld} -m elf64_sparc"
12315 ;;
12316 esac
12317 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12318 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12319 LD="${LD-ld}_sol2"
12320 fi
12321 ;;
cristy73bd4a52010-10-05 11:24:23 +000012322 *)
12323 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12324 LD="${LD-ld} -64"
12325 fi
12326 ;;
12327 esac
12328 ;;
12329 esac
12330 fi
12331 rm -rf conftest*
12332 ;;
12333esac
12334
12335need_locks="$enable_libtool_lock"
12336
cristyda16f162011-02-19 23:52:17 +000012337if test -n "$ac_tool_prefix"; then
12338 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12339set dummy ${ac_tool_prefix}mt; ac_word=$2
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341$as_echo_n "checking for $ac_word... " >&6; }
12342if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344else
12345 if test -n "$MANIFEST_TOOL"; then
12346 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12347else
12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012355 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12358 fi
12359done
12360 done
12361IFS=$as_save_IFS
12362
12363fi
12364fi
12365MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12366if test -n "$MANIFEST_TOOL"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12368$as_echo "$MANIFEST_TOOL" >&6; }
12369else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374
12375fi
12376if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12377 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12378 # Extract the first word of "mt", so it can be a program name with args.
12379set dummy mt; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384else
12385 if test -n "$ac_ct_MANIFEST_TOOL"; then
12386 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391 IFS=$as_save_IFS
12392 test -z "$as_dir" && as_dir=.
12393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012395 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397 break 2
12398 fi
12399done
12400 done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12406if test -n "$ac_ct_MANIFEST_TOOL"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12408$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12409else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12415 MANIFEST_TOOL=":"
12416 else
12417 case $cross_compiling:$ac_tool_warned in
12418yes:)
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12421ac_tool_warned=yes ;;
12422esac
12423 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12424 fi
12425else
12426 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12427fi
12428
12429test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12431$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12432if ${lt_cv_path_mainfest_tool+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434else
12435 lt_cv_path_mainfest_tool=no
12436 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12437 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12438 cat conftest.err >&5
12439 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12440 lt_cv_path_mainfest_tool=yes
12441 fi
12442 rm -f conftest*
12443fi
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12445$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12446if test "x$lt_cv_path_mainfest_tool" != xyes; then
12447 MANIFEST_TOOL=:
12448fi
12449
12450
12451
12452
12453
cristy73bd4a52010-10-05 11:24:23 +000012454
12455 case $host_os in
12456 rhapsody* | darwin*)
12457 if test -n "$ac_tool_prefix"; then
12458 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12459set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012462if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012463 $as_echo_n "(cached) " >&6
12464else
12465 if test -n "$DSYMUTIL"; then
12466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12467else
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012475 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479done
12480 done
12481IFS=$as_save_IFS
12482
12483fi
12484fi
12485DSYMUTIL=$ac_cv_prog_DSYMUTIL
12486if test -n "$DSYMUTIL"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12488$as_echo "$DSYMUTIL" >&6; }
12489else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492fi
12493
12494
12495fi
12496if test -z "$ac_cv_prog_DSYMUTIL"; then
12497 ac_ct_DSYMUTIL=$DSYMUTIL
12498 # Extract the first word of "dsymutil", so it can be a program name with args.
12499set dummy dsymutil; ac_word=$2
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 if test -n "$ac_ct_DSYMUTIL"; then
12506 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012515 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520 done
12521IFS=$as_save_IFS
12522
12523fi
12524fi
12525ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12526if test -n "$ac_ct_DSYMUTIL"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12528$as_echo "$ac_ct_DSYMUTIL" >&6; }
12529else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532fi
12533
12534 if test "x$ac_ct_DSYMUTIL" = x; then
12535 DSYMUTIL=":"
12536 else
12537 case $cross_compiling:$ac_tool_warned in
12538yes:)
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12541ac_tool_warned=yes ;;
12542esac
12543 DSYMUTIL=$ac_ct_DSYMUTIL
12544 fi
12545else
12546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12547fi
12548
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12551set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$NMEDIT"; then
12558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012567 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577NMEDIT=$ac_cv_prog_NMEDIT
12578if test -n "$NMEDIT"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12580$as_echo "$NMEDIT" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586
12587fi
12588if test -z "$ac_cv_prog_NMEDIT"; then
12589 ac_ct_NMEDIT=$NMEDIT
12590 # Extract the first word of "nmedit", so it can be a program name with args.
12591set dummy nmedit; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$ac_ct_NMEDIT"; then
12598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012607 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12618if test -n "$ac_ct_NMEDIT"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12620$as_echo "$ac_ct_NMEDIT" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626 if test "x$ac_ct_NMEDIT" = x; then
12627 NMEDIT=":"
12628 else
12629 case $cross_compiling:$ac_tool_warned in
12630yes:)
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12633ac_tool_warned=yes ;;
12634esac
12635 NMEDIT=$ac_ct_NMEDIT
12636 fi
12637else
12638 NMEDIT="$ac_cv_prog_NMEDIT"
12639fi
12640
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12643set dummy ${ac_tool_prefix}lipo; ac_word=$2
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012646if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012647 $as_echo_n "(cached) " >&6
12648else
12649 if test -n "$LIPO"; then
12650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12651else
12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653for as_dir in $PATH
12654do
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012659 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12662 fi
12663done
12664 done
12665IFS=$as_save_IFS
12666
12667fi
12668fi
12669LIPO=$ac_cv_prog_LIPO
12670if test -n "$LIPO"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12672$as_echo "$LIPO" >&6; }
12673else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678
12679fi
12680if test -z "$ac_cv_prog_LIPO"; then
12681 ac_ct_LIPO=$LIPO
12682 # Extract the first word of "lipo", so it can be a program name with args.
12683set dummy lipo; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$ac_ct_LIPO"; then
12690 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012699 ac_cv_prog_ac_ct_LIPO="lipo"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12710if test -n "$ac_ct_LIPO"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12712$as_echo "$ac_ct_LIPO" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718 if test "x$ac_ct_LIPO" = x; then
12719 LIPO=":"
12720 else
12721 case $cross_compiling:$ac_tool_warned in
12722yes:)
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12725ac_tool_warned=yes ;;
12726esac
12727 LIPO=$ac_ct_LIPO
12728 fi
12729else
12730 LIPO="$ac_cv_prog_LIPO"
12731fi
12732
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12735set dummy ${ac_tool_prefix}otool; ac_word=$2
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012738if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012739 $as_echo_n "(cached) " >&6
12740else
12741 if test -n "$OTOOL"; then
12742 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12743else
12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745for as_dir in $PATH
12746do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755done
12756 done
12757IFS=$as_save_IFS
12758
12759fi
12760fi
12761OTOOL=$ac_cv_prog_OTOOL
12762if test -n "$OTOOL"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12764$as_echo "$OTOOL" >&6; }
12765else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768fi
12769
12770
12771fi
12772if test -z "$ac_cv_prog_OTOOL"; then
12773 ac_ct_OTOOL=$OTOOL
12774 # Extract the first word of "otool", so it can be a program name with args.
12775set dummy otool; ac_word=$2
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012778if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 if test -n "$ac_ct_OTOOL"; then
12782 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012791 ac_cv_prog_ac_ct_OTOOL="otool"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795done
12796 done
12797IFS=$as_save_IFS
12798
12799fi
12800fi
12801ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12802if test -n "$ac_ct_OTOOL"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12804$as_echo "$ac_ct_OTOOL" >&6; }
12805else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
12808fi
12809
12810 if test "x$ac_ct_OTOOL" = x; then
12811 OTOOL=":"
12812 else
12813 case $cross_compiling:$ac_tool_warned in
12814yes:)
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12817ac_tool_warned=yes ;;
12818esac
12819 OTOOL=$ac_ct_OTOOL
12820 fi
12821else
12822 OTOOL="$ac_cv_prog_OTOOL"
12823fi
12824
12825 if test -n "$ac_tool_prefix"; then
12826 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12827set dummy ${ac_tool_prefix}otool64; ac_word=$2
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012830if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012831 $as_echo_n "(cached) " >&6
12832else
12833 if test -n "$OTOOL64"; then
12834 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12835else
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012843 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848 done
12849IFS=$as_save_IFS
12850
12851fi
12852fi
12853OTOOL64=$ac_cv_prog_OTOOL64
12854if test -n "$OTOOL64"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12856$as_echo "$OTOOL64" >&6; }
12857else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
12860fi
12861
12862
12863fi
12864if test -z "$ac_cv_prog_OTOOL64"; then
12865 ac_ct_OTOOL64=$OTOOL64
12866 # Extract the first word of "otool64", so it can be a program name with args.
12867set dummy otool64; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012870if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012871 $as_echo_n "(cached) " >&6
12872else
12873 if test -n "$ac_ct_OTOOL64"; then
12874 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012883 ac_cv_prog_ac_ct_OTOOL64="otool64"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12894if test -n "$ac_ct_OTOOL64"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12896$as_echo "$ac_ct_OTOOL64" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902 if test "x$ac_ct_OTOOL64" = x; then
12903 OTOOL64=":"
12904 else
12905 case $cross_compiling:$ac_tool_warned in
12906yes:)
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909ac_tool_warned=yes ;;
12910esac
12911 OTOOL64=$ac_ct_OTOOL64
12912 fi
12913else
12914 OTOOL64="$ac_cv_prog_OTOOL64"
12915fi
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12944$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012945if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012946 $as_echo_n "(cached) " >&6
12947else
12948 lt_cv_apple_cc_single_mod=no
12949 if test -z "${LT_MULTI_MODULE}"; then
12950 # By default we will add the -single_module flag. You can override
12951 # by either setting the environment variable LT_MULTI_MODULE
12952 # non-empty at configure time, or by adding -multi_module to the
12953 # link flags.
12954 rm -rf libconftest.dylib*
12955 echo "int foo(void){return 1;}" > conftest.c
12956 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12957-dynamiclib -Wl,-single_module conftest.c" >&5
12958 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12959 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12960 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012961 # If there is a non-empty error log, and "single_module"
12962 # appears in it, assume the flag caused a linker warning
12963 if test -s conftest.err && $GREP single_module conftest.err; then
12964 cat conftest.err >&5
12965 # Otherwise, if the output was created with a 0 exit code from
12966 # the compiler, it worked.
12967 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012968 lt_cv_apple_cc_single_mod=yes
12969 else
12970 cat conftest.err >&5
12971 fi
12972 rm -rf libconftest.dylib*
12973 rm -f conftest.*
12974 fi
12975fi
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12977$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012978
cristy73bd4a52010-10-05 11:24:23 +000012979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12980$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012981if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_ld_exported_symbols_list=no
12985 save_LDFLAGS=$LDFLAGS
12986 echo "_main" > conftest.sym
12987 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h. */
12990
12991int
12992main ()
12993{
12994
12995 ;
12996 return 0;
12997}
12998_ACEOF
12999if ac_fn_c_try_link "$LINENO"; then :
13000 lt_cv_ld_exported_symbols_list=yes
13001else
13002 lt_cv_ld_exported_symbols_list=no
13003fi
13004rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006 LDFLAGS="$save_LDFLAGS"
13007
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13010$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013011
cristy0c60a692010-11-04 01:09:47 +000013012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13013$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013014if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013015 $as_echo_n "(cached) " >&6
13016else
13017 lt_cv_ld_force_load=no
13018 cat > conftest.c << _LT_EOF
13019int forced_loaded() { return 2;}
13020_LT_EOF
13021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13023 echo "$AR cru libconftest.a conftest.o" >&5
13024 $AR cru libconftest.a conftest.o 2>&5
13025 echo "$RANLIB libconftest.a" >&5
13026 $RANLIB libconftest.a 2>&5
13027 cat > conftest.c << _LT_EOF
13028int main() { return 0;}
13029_LT_EOF
13030 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13032 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013033 if test -s conftest.err && $GREP force_load conftest.err; then
13034 cat conftest.err >&5
13035 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013036 lt_cv_ld_force_load=yes
13037 else
13038 cat conftest.err >&5
13039 fi
13040 rm -f conftest.err libconftest.a conftest conftest.c
13041 rm -rf conftest.dSYM
13042
13043fi
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13045$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013046 case $host_os in
13047 rhapsody* | darwin1.[012])
13048 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13049 darwin1.*)
13050 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13051 darwin*) # darwin 5.x on
13052 # if running on 10.5 or later, the deployment target defaults
13053 # to the OS version, if on x86, and 10.4, the deployment
13054 # target defaults to 10.4. Don't you love it?
13055 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13056 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13058 10.[012]*)
13059 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13060 10.*)
13061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13062 esac
13063 ;;
13064 esac
13065 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13066 _lt_dar_single_mod='$single_module'
13067 fi
13068 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13069 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13070 else
13071 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13072 fi
cristy0c60a692010-11-04 01:09:47 +000013073 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013074 _lt_dsymutil='~$DSYMUTIL $lib || :'
13075 else
13076 _lt_dsymutil=
13077 fi
13078 ;;
13079 esac
13080
13081for ac_header in dlfcn.h
13082do :
13083 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13084"
cristyda16f162011-02-19 23:52:17 +000013085if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013086 cat >>confdefs.h <<_ACEOF
13087#define HAVE_DLFCN_H 1
13088_ACEOF
13089
13090fi
13091
13092done
13093
13094
13095
cristy73bd4a52010-10-05 11:24:23 +000013096
cristyda16f162011-02-19 23:52:17 +000013097func_stripname_cnf ()
13098{
13099 case ${2} in
13100 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13101 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13102 esac
13103} # func_stripname_cnf
13104
13105
13106
cristy73bd4a52010-10-05 11:24:23 +000013107
13108
13109# Set options
13110enable_win32_dll=yes
13111
13112case $host in
cristy0c60a692010-11-04 01:09:47 +000013113*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013114 if test -n "$ac_tool_prefix"; then
13115 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13116set dummy ${ac_tool_prefix}as; ac_word=$2
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013119if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013120 $as_echo_n "(cached) " >&6
13121else
13122 if test -n "$AS"; then
13123 ac_cv_prog_AS="$AS" # Let the user override the test.
13124else
13125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126for as_dir in $PATH
13127do
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013132 ac_cv_prog_AS="${ac_tool_prefix}as"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13135 fi
13136done
13137 done
13138IFS=$as_save_IFS
13139
13140fi
13141fi
13142AS=$ac_cv_prog_AS
13143if test -n "$AS"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13145$as_echo "$AS" >&6; }
13146else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
13149fi
13150
13151
13152fi
13153if test -z "$ac_cv_prog_AS"; then
13154 ac_ct_AS=$AS
13155 # Extract the first word of "as", so it can be a program name with args.
13156set dummy as; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013159if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$ac_ct_AS"; then
13163 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013172 ac_cv_prog_ac_ct_AS="as"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182ac_ct_AS=$ac_cv_prog_ac_ct_AS
13183if test -n "$ac_ct_AS"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13185$as_echo "$ac_ct_AS" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191 if test "x$ac_ct_AS" = x; then
13192 AS="false"
13193 else
13194 case $cross_compiling:$ac_tool_warned in
13195yes:)
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13198ac_tool_warned=yes ;;
13199esac
13200 AS=$ac_ct_AS
13201 fi
13202else
13203 AS="$ac_cv_prog_AS"
13204fi
13205
13206 if test -n "$ac_tool_prefix"; then
13207 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13208set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013211if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013212 $as_echo_n "(cached) " >&6
13213else
13214 if test -n "$DLLTOOL"; then
13215 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13216else
13217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218for as_dir in $PATH
13219do
13220 IFS=$as_save_IFS
13221 test -z "$as_dir" && as_dir=.
13222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013224 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 break 2
13227 fi
13228done
13229 done
13230IFS=$as_save_IFS
13231
13232fi
13233fi
13234DLLTOOL=$ac_cv_prog_DLLTOOL
13235if test -n "$DLLTOOL"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13237$as_echo "$DLLTOOL" >&6; }
13238else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240$as_echo "no" >&6; }
13241fi
13242
13243
13244fi
13245if test -z "$ac_cv_prog_DLLTOOL"; then
13246 ac_ct_DLLTOOL=$DLLTOOL
13247 # Extract the first word of "dlltool", so it can be a program name with args.
13248set dummy dlltool; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$ac_ct_DLLTOOL"; then
13255 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13275if test -n "$ac_ct_DLLTOOL"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13277$as_echo "$ac_ct_DLLTOOL" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283 if test "x$ac_ct_DLLTOOL" = x; then
13284 DLLTOOL="false"
13285 else
13286 case $cross_compiling:$ac_tool_warned in
13287yes:)
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13290ac_tool_warned=yes ;;
13291esac
13292 DLLTOOL=$ac_ct_DLLTOOL
13293 fi
13294else
13295 DLLTOOL="$ac_cv_prog_DLLTOOL"
13296fi
13297
13298 if test -n "$ac_tool_prefix"; then
13299 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13300set dummy ${ac_tool_prefix}objdump; ac_word=$2
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013303if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013304 $as_echo_n "(cached) " >&6
13305else
13306 if test -n "$OBJDUMP"; then
13307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13308else
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013316 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320done
13321 done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326OBJDUMP=$ac_cv_prog_OBJDUMP
13327if test -n "$OBJDUMP"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13329$as_echo "$OBJDUMP" >&6; }
13330else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334
13335
13336fi
13337if test -z "$ac_cv_prog_OBJDUMP"; then
13338 ac_ct_OBJDUMP=$OBJDUMP
13339 # Extract the first word of "objdump", so it can be a program name with args.
13340set dummy objdump; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$ac_ct_OBJDUMP"; then
13347 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13367if test -n "$ac_ct_OBJDUMP"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13369$as_echo "$ac_ct_OBJDUMP" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375 if test "x$ac_ct_OBJDUMP" = x; then
13376 OBJDUMP="false"
13377 else
13378 case $cross_compiling:$ac_tool_warned in
13379yes:)
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13382ac_tool_warned=yes ;;
13383esac
13384 OBJDUMP=$ac_ct_OBJDUMP
13385 fi
13386else
13387 OBJDUMP="$ac_cv_prog_OBJDUMP"
13388fi
13389
13390 ;;
13391esac
13392
13393test -z "$AS" && AS=as
13394
13395
13396
13397
13398
13399test -z "$DLLTOOL" && DLLTOOL=dlltool
13400
13401
13402
13403
13404
13405test -z "$OBJDUMP" && OBJDUMP=objdump
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415 # Check whether --enable-shared was given.
13416if test "${enable_shared+set}" = set; then :
13417 enableval=$enable_shared; p=${PACKAGE-default}
13418 case $enableval in
13419 yes) enable_shared=yes ;;
13420 no) enable_shared=no ;;
13421 *)
13422 enable_shared=no
13423 # Look at the argument we got. We use all the common list separators.
13424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13425 for pkg in $enableval; do
13426 IFS="$lt_save_ifs"
13427 if test "X$pkg" = "X$p"; then
13428 enable_shared=yes
13429 fi
13430 done
13431 IFS="$lt_save_ifs"
13432 ;;
13433 esac
13434else
13435 enable_shared=yes
13436fi
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446 # Check whether --enable-static was given.
13447if test "${enable_static+set}" = set; then :
13448 enableval=$enable_static; p=${PACKAGE-default}
13449 case $enableval in
13450 yes) enable_static=yes ;;
13451 no) enable_static=no ;;
13452 *)
13453 enable_static=no
13454 # Look at the argument we got. We use all the common list separators.
13455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13456 for pkg in $enableval; do
13457 IFS="$lt_save_ifs"
13458 if test "X$pkg" = "X$p"; then
13459 enable_static=yes
13460 fi
13461 done
13462 IFS="$lt_save_ifs"
13463 ;;
13464 esac
13465else
13466 enable_static=yes
13467fi
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478# Check whether --with-pic was given.
13479if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013480 withval=$with_pic; lt_p=${PACKAGE-default}
13481 case $withval in
13482 yes|no) pic_mode=$withval ;;
13483 *)
13484 pic_mode=default
13485 # Look at the argument we got. We use all the common list separators.
13486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13487 for lt_pkg in $withval; do
13488 IFS="$lt_save_ifs"
13489 if test "X$lt_pkg" = "X$lt_p"; then
13490 pic_mode=yes
13491 fi
13492 done
13493 IFS="$lt_save_ifs"
13494 ;;
13495 esac
cristy73bd4a52010-10-05 11:24:23 +000013496else
13497 pic_mode=default
13498fi
13499
13500
13501test -z "$pic_mode" && pic_mode=default
13502
13503
13504
13505
13506
13507
13508
13509 # Check whether --enable-fast-install was given.
13510if test "${enable_fast_install+set}" = set; then :
13511 enableval=$enable_fast_install; p=${PACKAGE-default}
13512 case $enableval in
13513 yes) enable_fast_install=yes ;;
13514 no) enable_fast_install=no ;;
13515 *)
13516 enable_fast_install=no
13517 # Look at the argument we got. We use all the common list separators.
13518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13519 for pkg in $enableval; do
13520 IFS="$lt_save_ifs"
13521 if test "X$pkg" = "X$p"; then
13522 enable_fast_install=yes
13523 fi
13524 done
13525 IFS="$lt_save_ifs"
13526 ;;
13527 esac
13528else
13529 enable_fast_install=yes
13530fi
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542# This can be used to rebuild libtool when needed
13543LIBTOOL_DEPS="$ltmain"
13544
13545# Always use our own libtool.
13546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
cristy0c60a692010-11-04 01:09:47 +000013572
cristy99bd5232011-12-07 14:38:20 +000013573
13574
13575
13576
cristy73bd4a52010-10-05 11:24:23 +000013577test -z "$LN_S" && LN_S="ln -s"
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592if test -n "${ZSH_VERSION+set}" ; then
13593 setopt NO_GLOB_SUBST
13594fi
13595
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13597$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013598if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013599 $as_echo_n "(cached) " >&6
13600else
13601 rm -f .libs 2>/dev/null
13602mkdir .libs 2>/dev/null
13603if test -d .libs; then
13604 lt_cv_objdir=.libs
13605else
13606 # MS-DOS does not allow filenames that begin with a dot.
13607 lt_cv_objdir=_libs
13608fi
13609rmdir .libs 2>/dev/null
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13612$as_echo "$lt_cv_objdir" >&6; }
13613objdir=$lt_cv_objdir
13614
13615
13616
13617
13618
13619cat >>confdefs.h <<_ACEOF
13620#define LT_OBJDIR "$lt_cv_objdir/"
13621_ACEOF
13622
13623
13624
13625
cristy73bd4a52010-10-05 11:24:23 +000013626case $host_os in
13627aix3*)
13628 # AIX sometimes has problems with the GCC collect2 program. For some
13629 # reason, if we set the COLLECT_NAMES environment variable, the problems
13630 # vanish in a puff of smoke.
13631 if test "X${COLLECT_NAMES+set}" != Xset; then
13632 COLLECT_NAMES=
13633 export COLLECT_NAMES
13634 fi
13635 ;;
13636esac
13637
cristy73bd4a52010-10-05 11:24:23 +000013638# Global variables:
13639ofile=libtool
13640can_build_shared=yes
13641
13642# All known linkers require a `.a' archive for static linking (except MSVC,
13643# which needs '.lib').
13644libext=a
13645
13646with_gnu_ld="$lt_cv_prog_gnu_ld"
13647
13648old_CC="$CC"
13649old_CFLAGS="$CFLAGS"
13650
13651# Set sane defaults for various variables
13652test -z "$CC" && CC=cc
13653test -z "$LTCC" && LTCC=$CC
13654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13655test -z "$LD" && LD=ld
13656test -z "$ac_objext" && ac_objext=o
13657
13658for cc_temp in $compiler""; do
13659 case $cc_temp in
13660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13662 \-*) ;;
13663 *) break;;
13664 esac
13665done
cristy0c60a692010-11-04 01:09:47 +000013666cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013667
13668
13669# Only perform the check for file, if the check method requires it
13670test -z "$MAGIC_CMD" && MAGIC_CMD=file
13671case $deplibs_check_method in
13672file_magic*)
13673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13675$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013676if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013677 $as_echo_n "(cached) " >&6
13678else
13679 case $MAGIC_CMD in
13680[\\/*] | ?:[\\/]*)
13681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13682 ;;
13683*)
13684 lt_save_MAGIC_CMD="$MAGIC_CMD"
13685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13687 for ac_dir in $ac_dummy; do
13688 IFS="$lt_save_ifs"
13689 test -z "$ac_dir" && ac_dir=.
13690 if test -f $ac_dir/${ac_tool_prefix}file; then
13691 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13692 if test -n "$file_magic_test_file"; then
13693 case $deplibs_check_method in
13694 "file_magic "*)
13695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13698 $EGREP "$file_magic_regex" > /dev/null; then
13699 :
13700 else
13701 cat <<_LT_EOF 1>&2
13702
13703*** Warning: the command libtool uses to detect shared libraries,
13704*** $file_magic_cmd, produces output that libtool cannot recognize.
13705*** The result is that libtool may fail to recognize shared libraries
13706*** as such. This will affect the creation of libtool libraries that
13707*** depend on shared libraries, but programs linked with such libtool
13708*** libraries will work regardless of this problem. Nevertheless, you
13709*** may want to report the problem to your system manager and/or to
13710*** bug-libtool@gnu.org
13711
13712_LT_EOF
13713 fi ;;
13714 esac
13715 fi
13716 break
13717 fi
13718 done
13719 IFS="$lt_save_ifs"
13720 MAGIC_CMD="$lt_save_MAGIC_CMD"
13721 ;;
13722esac
13723fi
13724
13725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13726if test -n "$MAGIC_CMD"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13728$as_echo "$MAGIC_CMD" >&6; }
13729else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
13732fi
13733
13734
13735
13736
13737
13738if test -z "$lt_cv_path_MAGIC_CMD"; then
13739 if test -n "$ac_tool_prefix"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13741$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013742if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013743 $as_echo_n "(cached) " >&6
13744else
13745 case $MAGIC_CMD in
13746[\\/*] | ?:[\\/]*)
13747 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13748 ;;
13749*)
13750 lt_save_MAGIC_CMD="$MAGIC_CMD"
13751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13752 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13753 for ac_dir in $ac_dummy; do
13754 IFS="$lt_save_ifs"
13755 test -z "$ac_dir" && ac_dir=.
13756 if test -f $ac_dir/file; then
13757 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13758 if test -n "$file_magic_test_file"; then
13759 case $deplibs_check_method in
13760 "file_magic "*)
13761 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13762 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13763 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13764 $EGREP "$file_magic_regex" > /dev/null; then
13765 :
13766 else
13767 cat <<_LT_EOF 1>&2
13768
13769*** Warning: the command libtool uses to detect shared libraries,
13770*** $file_magic_cmd, produces output that libtool cannot recognize.
13771*** The result is that libtool may fail to recognize shared libraries
13772*** as such. This will affect the creation of libtool libraries that
13773*** depend on shared libraries, but programs linked with such libtool
13774*** libraries will work regardless of this problem. Nevertheless, you
13775*** may want to report the problem to your system manager and/or to
13776*** bug-libtool@gnu.org
13777
13778_LT_EOF
13779 fi ;;
13780 esac
13781 fi
13782 break
13783 fi
13784 done
13785 IFS="$lt_save_ifs"
13786 MAGIC_CMD="$lt_save_MAGIC_CMD"
13787 ;;
13788esac
13789fi
13790
13791MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13792if test -n "$MAGIC_CMD"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13794$as_echo "$MAGIC_CMD" >&6; }
13795else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797$as_echo "no" >&6; }
13798fi
13799
13800
13801 else
13802 MAGIC_CMD=:
13803 fi
13804fi
13805
13806 fi
13807 ;;
13808esac
13809
13810# Use C for the default configuration in the libtool script
13811
13812lt_save_CC="$CC"
13813ac_ext=c
13814ac_cpp='$CPP $CPPFLAGS'
13815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13817ac_compiler_gnu=$ac_cv_c_compiler_gnu
13818
13819
13820# Source file extension for C test sources.
13821ac_ext=c
13822
13823# Object file extension for compiled C test sources.
13824objext=o
13825objext=$objext
13826
13827# Code to be used in simple compile tests
13828lt_simple_compile_test_code="int some_variable = 0;"
13829
13830# Code to be used in simple link tests
13831lt_simple_link_test_code='int main(){return(0);}'
13832
13833
13834
13835
13836
13837
13838
13839# If no C compiler was specified, use CC.
13840LTCC=${LTCC-"$CC"}
13841
13842# If no C compiler flags were specified, use CFLAGS.
13843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13844
13845# Allow CC to be a program name with arguments.
13846compiler=$CC
13847
13848# Save the default compiler, since it gets overwritten when the other
13849# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13850compiler_DEFAULT=$CC
13851
13852# save warnings/boilerplate of simple test code
13853ac_outfile=conftest.$ac_objext
13854echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13856_lt_compiler_boilerplate=`cat conftest.err`
13857$RM conftest*
13858
13859ac_outfile=conftest.$ac_objext
13860echo "$lt_simple_link_test_code" >conftest.$ac_ext
13861eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13862_lt_linker_boilerplate=`cat conftest.err`
13863$RM -r conftest*
13864
13865
13866## CAVEAT EMPTOR:
13867## There is no encapsulation within the following macros, do not change
13868## the running order or otherwise move them around unless you know exactly
13869## what you are doing...
13870if test -n "$compiler"; then
13871
13872lt_prog_compiler_no_builtin_flag=
13873
13874if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013875 case $cc_basename in
13876 nvcc*)
13877 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13878 *)
13879 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13880 esac
cristy73bd4a52010-10-05 11:24:23 +000013881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13883$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013884if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013885 $as_echo_n "(cached) " >&6
13886else
13887 lt_cv_prog_compiler_rtti_exceptions=no
13888 ac_outfile=conftest.$ac_objext
13889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13890 lt_compiler_flag="-fno-rtti -fno-exceptions"
13891 # Insert the option either (1) after the last *FLAGS variable, or
13892 # (2) before a word containing "conftest.", or (3) at the end.
13893 # Note that $ac_compile itself does not contain backslashes and begins
13894 # with a dollar sign (not a hyphen), so the echo should work correctly.
13895 # The option is referenced via a variable to avoid confusing sed.
13896 lt_compile=`echo "$ac_compile" | $SED \
13897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13899 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013901 (eval "$lt_compile" 2>conftest.err)
13902 ac_status=$?
13903 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013905 if (exit $ac_status) && test -s "$ac_outfile"; then
13906 # The compiler can only warn and ignore the option if not recognized
13907 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13911 lt_cv_prog_compiler_rtti_exceptions=yes
13912 fi
13913 fi
13914 $RM conftest*
13915
13916fi
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13918$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13919
13920if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13921 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13922else
13923 :
13924fi
13925
13926fi
13927
13928
13929
13930
13931
13932
13933 lt_prog_compiler_wl=
13934lt_prog_compiler_pic=
13935lt_prog_compiler_static=
13936
cristy73bd4a52010-10-05 11:24:23 +000013937
13938 if test "$GCC" = yes; then
13939 lt_prog_compiler_wl='-Wl,'
13940 lt_prog_compiler_static='-static'
13941
13942 case $host_os in
13943 aix*)
13944 # All AIX code is PIC.
13945 if test "$host_cpu" = ia64; then
13946 # AIX 5 now supports IA64 processor
13947 lt_prog_compiler_static='-Bstatic'
13948 fi
13949 ;;
13950
13951 amigaos*)
13952 case $host_cpu in
13953 powerpc)
13954 # see comment about AmigaOS4 .so support
13955 lt_prog_compiler_pic='-fPIC'
13956 ;;
13957 m68k)
13958 # FIXME: we need at least 68020 code to build shared libraries, but
13959 # adding the `-m68020' flag to GCC prevents building anything better,
13960 # like `-m68040'.
13961 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13962 ;;
13963 esac
13964 ;;
13965
13966 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13967 # PIC is the default for these OSes.
13968 ;;
13969
13970 mingw* | cygwin* | pw32* | os2* | cegcc*)
13971 # This hack is so that the source file can tell whether it is being
13972 # built for inclusion in a dll (and should export symbols for example).
13973 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13974 # (--disable-auto-import) libraries
13975 lt_prog_compiler_pic='-DDLL_EXPORT'
13976 ;;
13977
13978 darwin* | rhapsody*)
13979 # PIC is the default on this platform
13980 # Common symbols not allowed in MH_DYLIB files
13981 lt_prog_compiler_pic='-fno-common'
13982 ;;
13983
cristy0c60a692010-11-04 01:09:47 +000013984 haiku*)
13985 # PIC is the default for Haiku.
13986 # The "-static" flag exists, but is broken.
13987 lt_prog_compiler_static=
13988 ;;
13989
cristy73bd4a52010-10-05 11:24:23 +000013990 hpux*)
13991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13993 # sets the default TLS model and affects inlining.
13994 case $host_cpu in
13995 hppa*64*)
13996 # +Z the default
13997 ;;
13998 *)
13999 lt_prog_compiler_pic='-fPIC'
14000 ;;
14001 esac
14002 ;;
14003
14004 interix[3-9]*)
14005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14006 # Instead, we relocate shared libraries at runtime.
14007 ;;
14008
14009 msdosdjgpp*)
14010 # Just because we use GCC doesn't mean we suddenly get shared libraries
14011 # on systems that don't support them.
14012 lt_prog_compiler_can_build_shared=no
14013 enable_shared=no
14014 ;;
14015
14016 *nto* | *qnx*)
14017 # QNX uses GNU C++, but need to define -shared option too, otherwise
14018 # it will coredump.
14019 lt_prog_compiler_pic='-fPIC -shared'
14020 ;;
14021
14022 sysv4*MP*)
14023 if test -d /usr/nec; then
14024 lt_prog_compiler_pic=-Kconform_pic
14025 fi
14026 ;;
14027
14028 *)
14029 lt_prog_compiler_pic='-fPIC'
14030 ;;
14031 esac
cristy0c60a692010-11-04 01:09:47 +000014032
14033 case $cc_basename in
14034 nvcc*) # Cuda Compiler Driver 2.2
14035 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014036 if test -n "$lt_prog_compiler_pic"; then
14037 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14038 fi
cristy0c60a692010-11-04 01:09:47 +000014039 ;;
14040 esac
cristy73bd4a52010-10-05 11:24:23 +000014041 else
14042 # PORTME Check for flag to pass linker flags through the system compiler.
14043 case $host_os in
14044 aix*)
14045 lt_prog_compiler_wl='-Wl,'
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 now supports IA64 processor
14048 lt_prog_compiler_static='-Bstatic'
14049 else
14050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14051 fi
14052 ;;
14053
14054 mingw* | cygwin* | pw32* | os2* | cegcc*)
14055 # This hack is so that the source file can tell whether it is being
14056 # built for inclusion in a dll (and should export symbols for example).
14057 lt_prog_compiler_pic='-DDLL_EXPORT'
14058 ;;
14059
14060 hpux9* | hpux10* | hpux11*)
14061 lt_prog_compiler_wl='-Wl,'
14062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14063 # not for PA HP-UX.
14064 case $host_cpu in
14065 hppa*64*|ia64*)
14066 # +Z the default
14067 ;;
14068 *)
14069 lt_prog_compiler_pic='+Z'
14070 ;;
14071 esac
14072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14073 lt_prog_compiler_static='${wl}-a ${wl}archive'
14074 ;;
14075
14076 irix5* | irix6* | nonstopux*)
14077 lt_prog_compiler_wl='-Wl,'
14078 # PIC (with -KPIC) is the default.
14079 lt_prog_compiler_static='-non_shared'
14080 ;;
14081
cristy0c60a692010-11-04 01:09:47 +000014082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014083 case $cc_basename in
14084 # old Intel for x86_64 which still supported -KPIC.
14085 ecc*)
14086 lt_prog_compiler_wl='-Wl,'
14087 lt_prog_compiler_pic='-KPIC'
14088 lt_prog_compiler_static='-static'
14089 ;;
14090 # icc used to be incompatible with GCC.
14091 # ICC 10 doesn't accept -KPIC any more.
14092 icc* | ifort*)
14093 lt_prog_compiler_wl='-Wl,'
14094 lt_prog_compiler_pic='-fPIC'
14095 lt_prog_compiler_static='-static'
14096 ;;
14097 # Lahey Fortran 8.1.
14098 lf95*)
14099 lt_prog_compiler_wl='-Wl,'
14100 lt_prog_compiler_pic='--shared'
14101 lt_prog_compiler_static='--static'
14102 ;;
cristyda16f162011-02-19 23:52:17 +000014103 nagfor*)
14104 # NAG Fortran compiler
14105 lt_prog_compiler_wl='-Wl,-Wl,,'
14106 lt_prog_compiler_pic='-PIC'
14107 lt_prog_compiler_static='-Bstatic'
14108 ;;
cristy0c60a692010-11-04 01:09:47 +000014109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014110 # Portland Group compilers (*not* the Pentium gcc compiler,
14111 # which looks to be a dead project)
14112 lt_prog_compiler_wl='-Wl,'
14113 lt_prog_compiler_pic='-fpic'
14114 lt_prog_compiler_static='-Bstatic'
14115 ;;
14116 ccc*)
14117 lt_prog_compiler_wl='-Wl,'
14118 # All Alpha code is PIC.
14119 lt_prog_compiler_static='-non_shared'
14120 ;;
cristy0c60a692010-11-04 01:09:47 +000014121 xl* | bgxl* | bgf* | mpixl*)
14122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014123 lt_prog_compiler_wl='-Wl,'
14124 lt_prog_compiler_pic='-qpic'
14125 lt_prog_compiler_static='-qstaticlink'
14126 ;;
14127 *)
14128 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014129 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14131 lt_prog_compiler_pic='-KPIC'
14132 lt_prog_compiler_static='-Bstatic'
14133 lt_prog_compiler_wl=''
14134 ;;
cristy99bd5232011-12-07 14:38:20 +000014135 *Sun\ F* | *Sun*Fortran*)
14136 lt_prog_compiler_pic='-KPIC'
14137 lt_prog_compiler_static='-Bstatic'
14138 lt_prog_compiler_wl='-Qoption ld '
14139 ;;
cristy73bd4a52010-10-05 11:24:23 +000014140 *Sun\ C*)
14141 # Sun C 5.9
14142 lt_prog_compiler_pic='-KPIC'
14143 lt_prog_compiler_static='-Bstatic'
14144 lt_prog_compiler_wl='-Wl,'
14145 ;;
cristy99bd5232011-12-07 14:38:20 +000014146 *Intel*\ [CF]*Compiler*)
14147 lt_prog_compiler_wl='-Wl,'
14148 lt_prog_compiler_pic='-fPIC'
14149 lt_prog_compiler_static='-static'
14150 ;;
14151 *Portland\ Group*)
14152 lt_prog_compiler_wl='-Wl,'
14153 lt_prog_compiler_pic='-fpic'
14154 lt_prog_compiler_static='-Bstatic'
14155 ;;
cristy73bd4a52010-10-05 11:24:23 +000014156 esac
14157 ;;
14158 esac
14159 ;;
14160
14161 newsos6)
14162 lt_prog_compiler_pic='-KPIC'
14163 lt_prog_compiler_static='-Bstatic'
14164 ;;
14165
14166 *nto* | *qnx*)
14167 # QNX uses GNU C++, but need to define -shared option too, otherwise
14168 # it will coredump.
14169 lt_prog_compiler_pic='-fPIC -shared'
14170 ;;
14171
14172 osf3* | osf4* | osf5*)
14173 lt_prog_compiler_wl='-Wl,'
14174 # All OSF/1 code is PIC.
14175 lt_prog_compiler_static='-non_shared'
14176 ;;
14177
14178 rdos*)
14179 lt_prog_compiler_static='-non_shared'
14180 ;;
14181
14182 solaris*)
14183 lt_prog_compiler_pic='-KPIC'
14184 lt_prog_compiler_static='-Bstatic'
14185 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014186 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014187 lt_prog_compiler_wl='-Qoption ld ';;
14188 *)
14189 lt_prog_compiler_wl='-Wl,';;
14190 esac
14191 ;;
14192
14193 sunos4*)
14194 lt_prog_compiler_wl='-Qoption ld '
14195 lt_prog_compiler_pic='-PIC'
14196 lt_prog_compiler_static='-Bstatic'
14197 ;;
14198
14199 sysv4 | sysv4.2uw2* | sysv4.3*)
14200 lt_prog_compiler_wl='-Wl,'
14201 lt_prog_compiler_pic='-KPIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 ;;
14204
14205 sysv4*MP*)
14206 if test -d /usr/nec ;then
14207 lt_prog_compiler_pic='-Kconform_pic'
14208 lt_prog_compiler_static='-Bstatic'
14209 fi
14210 ;;
14211
14212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14213 lt_prog_compiler_wl='-Wl,'
14214 lt_prog_compiler_pic='-KPIC'
14215 lt_prog_compiler_static='-Bstatic'
14216 ;;
14217
14218 unicos*)
14219 lt_prog_compiler_wl='-Wl,'
14220 lt_prog_compiler_can_build_shared=no
14221 ;;
14222
14223 uts4*)
14224 lt_prog_compiler_pic='-pic'
14225 lt_prog_compiler_static='-Bstatic'
14226 ;;
14227
14228 *)
14229 lt_prog_compiler_can_build_shared=no
14230 ;;
14231 esac
14232 fi
14233
14234case $host_os in
14235 # For platforms which do not support PIC, -DPIC is meaningless:
14236 *djgpp*)
14237 lt_prog_compiler_pic=
14238 ;;
14239 *)
14240 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14241 ;;
14242esac
cristy73bd4a52010-10-05 11:24:23 +000014243
cristyda16f162011-02-19 23:52:17 +000014244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14245$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14246if ${lt_cv_prog_compiler_pic+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248else
14249 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14250fi
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14252$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14253lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014254
14255#
14256# Check to make sure the PIC flag actually works.
14257#
14258if test -n "$lt_prog_compiler_pic"; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14260$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014261if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014262 $as_echo_n "(cached) " >&6
14263else
14264 lt_cv_prog_compiler_pic_works=no
14265 ac_outfile=conftest.$ac_objext
14266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14268 # Insert the option either (1) after the last *FLAGS variable, or
14269 # (2) before a word containing "conftest.", or (3) at the end.
14270 # Note that $ac_compile itself does not contain backslashes and begins
14271 # with a dollar sign (not a hyphen), so the echo should work correctly.
14272 # The option is referenced via a variable to avoid confusing sed.
14273 lt_compile=`echo "$ac_compile" | $SED \
14274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14276 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014278 (eval "$lt_compile" 2>conftest.err)
14279 ac_status=$?
14280 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014282 if (exit $ac_status) && test -s "$ac_outfile"; then
14283 # The compiler can only warn and ignore the option if not recognized
14284 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14288 lt_cv_prog_compiler_pic_works=yes
14289 fi
14290 fi
14291 $RM conftest*
14292
14293fi
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14295$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14296
14297if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14298 case $lt_prog_compiler_pic in
14299 "" | " "*) ;;
14300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14301 esac
14302else
14303 lt_prog_compiler_pic=
14304 lt_prog_compiler_can_build_shared=no
14305fi
14306
14307fi
14308
14309
14310
14311
14312
14313
cristyda16f162011-02-19 23:52:17 +000014314
14315
14316
14317
14318
cristy73bd4a52010-10-05 11:24:23 +000014319#
14320# Check to make sure the static flag actually works.
14321#
14322wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14324$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014325if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014326 $as_echo_n "(cached) " >&6
14327else
14328 lt_cv_prog_compiler_static_works=no
14329 save_LDFLAGS="$LDFLAGS"
14330 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14331 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14333 # The linker can only warn and ignore the option if not recognized
14334 # So say no if there are warnings
14335 if test -s conftest.err; then
14336 # Append any errors to the config.log.
14337 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14340 if diff conftest.exp conftest.er2 >/dev/null; then
14341 lt_cv_prog_compiler_static_works=yes
14342 fi
14343 else
14344 lt_cv_prog_compiler_static_works=yes
14345 fi
14346 fi
14347 $RM -r conftest*
14348 LDFLAGS="$save_LDFLAGS"
14349
14350fi
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14352$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14353
14354if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14355 :
14356else
14357 lt_prog_compiler_static=
14358fi
14359
14360
14361
14362
14363
14364
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14367$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014368if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014369 $as_echo_n "(cached) " >&6
14370else
14371 lt_cv_prog_compiler_c_o=no
14372 $RM -r conftest 2>/dev/null
14373 mkdir conftest
14374 cd conftest
14375 mkdir out
14376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14377
14378 lt_compiler_flag="-o out/conftest2.$ac_objext"
14379 # Insert the option either (1) after the last *FLAGS variable, or
14380 # (2) before a word containing "conftest.", or (3) at the end.
14381 # Note that $ac_compile itself does not contain backslashes and begins
14382 # with a dollar sign (not a hyphen), so the echo should work correctly.
14383 lt_compile=`echo "$ac_compile" | $SED \
14384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14386 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014388 (eval "$lt_compile" 2>out/conftest.err)
14389 ac_status=$?
14390 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14393 then
14394 # The compiler can only warn and ignore the option if not recognized
14395 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14399 lt_cv_prog_compiler_c_o=yes
14400 fi
14401 fi
14402 chmod u+w . 2>&5
14403 $RM conftest*
14404 # SGI C++ compiler will create directory out/ii_files/ for
14405 # template instantiation
14406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14407 $RM out/* && rmdir out
14408 cd ..
14409 $RM -r conftest
14410 $RM conftest*
14411
14412fi
14413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14414$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14415
14416
14417
14418
14419
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014423if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014424 $as_echo_n "(cached) " >&6
14425else
14426 lt_cv_prog_compiler_c_o=no
14427 $RM -r conftest 2>/dev/null
14428 mkdir conftest
14429 cd conftest
14430 mkdir out
14431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14432
14433 lt_compiler_flag="-o out/conftest2.$ac_objext"
14434 # Insert the option either (1) after the last *FLAGS variable, or
14435 # (2) before a word containing "conftest.", or (3) at the end.
14436 # Note that $ac_compile itself does not contain backslashes and begins
14437 # with a dollar sign (not a hyphen), so the echo should work correctly.
14438 lt_compile=`echo "$ac_compile" | $SED \
14439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14441 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014443 (eval "$lt_compile" 2>out/conftest.err)
14444 ac_status=$?
14445 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14448 then
14449 # The compiler can only warn and ignore the option if not recognized
14450 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14454 lt_cv_prog_compiler_c_o=yes
14455 fi
14456 fi
14457 chmod u+w . 2>&5
14458 $RM conftest*
14459 # SGI C++ compiler will create directory out/ii_files/ for
14460 # template instantiation
14461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14462 $RM out/* && rmdir out
14463 cd ..
14464 $RM -r conftest
14465 $RM conftest*
14466
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14470
14471
14472
14473
14474hard_links="nottested"
14475if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14476 # do not overwrite the value of need_locks provided by the user
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14478$as_echo_n "checking if we can lock with hard links... " >&6; }
14479 hard_links=yes
14480 $RM conftest*
14481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14482 touch conftest.a
14483 ln conftest.a conftest.b 2>&5 || hard_links=no
14484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14486$as_echo "$hard_links" >&6; }
14487 if test "$hard_links" = no; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14489$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14490 need_locks=warn
14491 fi
14492else
14493 need_locks=no
14494fi
14495
14496
14497
14498
14499
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14502$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14503
14504 runpath_var=
14505 allow_undefined_flag=
14506 always_export_symbols=no
14507 archive_cmds=
14508 archive_expsym_cmds=
14509 compiler_needs_object=no
14510 enable_shared_with_static_runtimes=no
14511 export_dynamic_flag_spec=
14512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14513 hardcode_automatic=no
14514 hardcode_direct=no
14515 hardcode_direct_absolute=no
14516 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014517 hardcode_libdir_separator=
14518 hardcode_minus_L=no
14519 hardcode_shlibpath_var=unsupported
14520 inherit_rpath=no
14521 link_all_deplibs=unknown
14522 module_cmds=
14523 module_expsym_cmds=
14524 old_archive_from_new_cmds=
14525 old_archive_from_expsyms_cmds=
14526 thread_safe_flag_spec=
14527 whole_archive_flag_spec=
14528 # include_expsyms should be a list of space-separated symbols to be *always*
14529 # included in the symbol list
14530 include_expsyms=
14531 # exclude_expsyms can be an extended regexp of symbols to exclude
14532 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14534 # as well as any symbol that contains `d'.
14535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14537 # platforms (ab)use it in PIC code, but their linkers get confused if
14538 # the symbol is explicitly referenced. Since portable code cannot
14539 # rely on this symbol name, it's probably fine to never include it in
14540 # preloaded symbol tables.
14541 # Exclude shared library initialization/finalization symbols.
14542 extract_expsyms_cmds=
14543
14544 case $host_os in
14545 cygwin* | mingw* | pw32* | cegcc*)
14546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14547 # When not using gcc, we currently assume that we are using
14548 # Microsoft Visual C++.
14549 if test "$GCC" != yes; then
14550 with_gnu_ld=no
14551 fi
14552 ;;
14553 interix*)
14554 # we just hope/assume this is gcc and not c89 (= MSVC++)
14555 with_gnu_ld=yes
14556 ;;
14557 openbsd*)
14558 with_gnu_ld=no
14559 ;;
14560 esac
14561
14562 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014563
14564 # On some targets, GNU ld is compatible enough with the native linker
14565 # that we're better off using the native interface for both.
14566 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014567 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014568 case $host_os in
14569 aix*)
14570 # The AIX port of GNU ld has always aspired to compatibility
14571 # with the native linker. However, as the warning in the GNU ld
14572 # block says, versions before 2.19.5* couldn't really create working
14573 # shared libraries, regardless of the interface used.
14574 case `$LD -v 2>&1` in
14575 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14576 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14577 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14578 *)
14579 lt_use_gnu_ld_interface=yes
14580 ;;
14581 esac
14582 ;;
14583 *)
14584 lt_use_gnu_ld_interface=yes
14585 ;;
14586 esac
14587 fi
14588
14589 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014590 # If archive_cmds runs LD, not CC, wlarc should be empty
14591 wlarc='${wl}'
14592
14593 # Set some defaults for GNU ld with shared library support. These
14594 # are reset later if shared libraries are not supported. Putting them
14595 # here allows them to be overridden if necessary.
14596 runpath_var=LD_RUN_PATH
14597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14598 export_dynamic_flag_spec='${wl}--export-dynamic'
14599 # ancient GNU ld didn't support --whole-archive et. al.
14600 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14602 else
14603 whole_archive_flag_spec=
14604 fi
14605 supports_anon_versioning=no
14606 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014607 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014608 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14609 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14610 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14611 *\ 2.11.*) ;; # other 2.11 versions
14612 *) supports_anon_versioning=yes ;;
14613 esac
14614
14615 # See if GNU ld supports shared libraries.
14616 case $host_os in
14617 aix[3-9]*)
14618 # On AIX/PPC, the GNU linker is very broken
14619 if test "$host_cpu" != ia64; then
14620 ld_shlibs=no
14621 cat <<_LT_EOF 1>&2
14622
cristy0c60a692010-11-04 01:09:47 +000014623*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014624*** to be unable to reliably create shared libraries on AIX.
14625*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014626*** really care for shared libraries, you may want to install binutils
14627*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14628*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014629
14630_LT_EOF
14631 fi
14632 ;;
14633
14634 amigaos*)
14635 case $host_cpu in
14636 powerpc)
14637 # see comment about AmigaOS4 .so support
14638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14639 archive_expsym_cmds=''
14640 ;;
14641 m68k)
14642 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)'
14643 hardcode_libdir_flag_spec='-L$libdir'
14644 hardcode_minus_L=yes
14645 ;;
14646 esac
14647 ;;
14648
14649 beos*)
14650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14651 allow_undefined_flag=unsupported
14652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14653 # support --undefined. This deserves some investigation. FIXME
14654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14655 else
14656 ld_shlibs=no
14657 fi
14658 ;;
14659
14660 cygwin* | mingw* | pw32* | cegcc*)
14661 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14662 # as there is no search path for DLLs.
14663 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014664 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014665 allow_undefined_flag=unsupported
14666 always_export_symbols=no
14667 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014668 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'
14669 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 +000014670
14671 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14673 # If the export-symbols file already is a .def file (1st line
14674 # is EXPORTS), use it as is; otherwise, prepend...
14675 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14676 cp $export_symbols $output_objdir/$soname.def;
14677 else
14678 echo EXPORTS > $output_objdir/$soname.def;
14679 cat $export_symbols >> $output_objdir/$soname.def;
14680 fi~
14681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14682 else
14683 ld_shlibs=no
14684 fi
14685 ;;
14686
cristy0c60a692010-11-04 01:09:47 +000014687 haiku*)
14688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689 link_all_deplibs=yes
14690 ;;
14691
cristy73bd4a52010-10-05 11:24:23 +000014692 interix[3-9]*)
14693 hardcode_direct=no
14694 hardcode_shlibpath_var=no
14695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14696 export_dynamic_flag_spec='${wl}-E'
14697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14698 # Instead, shared libraries are loaded at an image base (0x10000000 by
14699 # default) and relocated if they conflict, which is a slow very memory
14700 # consuming and fragmenting process. To avoid this, we pick a random,
14701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14704 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'
14705 ;;
14706
cristy0c60a692010-11-04 01:09:47 +000014707 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014708 tmp_diet=no
14709 if test "$host_os" = linux-dietlibc; then
14710 case $cc_basename in
14711 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14712 esac
14713 fi
14714 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14715 && test "$tmp_diet" = no
14716 then
cristyda16f162011-02-19 23:52:17 +000014717 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014718 tmp_sharedflag='-shared'
14719 case $cc_basename,$host_cpu in
14720 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014721 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 +000014722 tmp_addflag=' $pic_flag'
14723 ;;
cristy0c60a692010-11-04 01:09:47 +000014724 pgf77* | pgf90* | pgf95* | pgfortran*)
14725 # Portland Group f77 and f90 compilers
14726 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 +000014727 tmp_addflag=' $pic_flag -Mnomain' ;;
14728 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14729 tmp_addflag=' -i_dynamic' ;;
14730 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14731 tmp_addflag=' -i_dynamic -nofor_main' ;;
14732 ifc* | ifort*) # Intel Fortran compiler
14733 tmp_addflag=' -nofor_main' ;;
14734 lf95*) # Lahey Fortran 8.1
14735 whole_archive_flag_spec=
14736 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014737 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014738 tmp_sharedflag='-qmkshrobj'
14739 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014740 nvcc*) # Cuda Compiler Driver 2.2
14741 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'
14742 compiler_needs_object=yes
14743 ;;
cristy73bd4a52010-10-05 11:24:23 +000014744 esac
14745 case `$CC -V 2>&1 | sed 5q` in
14746 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014747 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 +000014748 compiler_needs_object=yes
14749 tmp_sharedflag='-G' ;;
14750 *Sun\ F*) # Sun Fortran 8.3
14751 tmp_sharedflag='-G' ;;
14752 esac
14753 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754
14755 if test "x$supports_anon_versioning" = xyes; then
14756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14758 echo "local: *; };" >> $output_objdir/$libname.ver~
14759 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14760 fi
14761
14762 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014763 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014764 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14765 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014767 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014768 if test "x$supports_anon_versioning" = xyes; then
14769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14771 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014772 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014773 fi
14774 ;;
14775 esac
14776 else
14777 ld_shlibs=no
14778 fi
14779 ;;
14780
14781 netbsd*)
14782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14783 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14784 wlarc=
14785 else
cristyda16f162011-02-19 23:52:17 +000014786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 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 +000014788 fi
14789 ;;
14790
14791 solaris*)
14792 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14793 ld_shlibs=no
14794 cat <<_LT_EOF 1>&2
14795
14796*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797*** create shared libraries on Solaris systems. Therefore, libtool
14798*** is disabling shared libraries support. We urge you to upgrade GNU
14799*** binutils to release 2.9.1 or newer. Another option is to modify
14800*** your PATH or compiler configuration so that the native linker is
14801*** used, and then restart.
14802
14803_LT_EOF
14804 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 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 +000014807 else
14808 ld_shlibs=no
14809 fi
14810 ;;
14811
14812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14813 case `$LD -v 2>&1` in
14814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14815 ld_shlibs=no
14816 cat <<_LT_EOF 1>&2
14817
14818*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14819*** reliably create shared libraries on SCO systems. Therefore, libtool
14820*** is disabling shared libraries support. We urge you to upgrade GNU
14821*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14822*** your PATH or compiler configuration so that the native linker is
14823*** used, and then restart.
14824
14825_LT_EOF
14826 ;;
14827 *)
14828 # For security reasons, it is highly recommended that you always
14829 # use absolute paths for naming shared libraries, and exclude the
14830 # DT_RUNPATH tag from executables and libraries. But doing so
14831 # requires that you compile everything twice, which is a pain.
14832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14836 else
14837 ld_shlibs=no
14838 fi
14839 ;;
14840 esac
14841 ;;
14842
14843 sunos4*)
14844 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14845 wlarc=
14846 hardcode_direct=yes
14847 hardcode_shlibpath_var=no
14848 ;;
14849
14850 *)
14851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14853 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 +000014854 else
14855 ld_shlibs=no
14856 fi
14857 ;;
14858 esac
14859
14860 if test "$ld_shlibs" = no; then
14861 runpath_var=
14862 hardcode_libdir_flag_spec=
14863 export_dynamic_flag_spec=
14864 whole_archive_flag_spec=
14865 fi
14866 else
14867 # PORTME fill in a description of your system's linker (not GNU ld)
14868 case $host_os in
14869 aix3*)
14870 allow_undefined_flag=unsupported
14871 always_export_symbols=yes
14872 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'
14873 # Note: this linker hardcodes the directories in LIBPATH if there
14874 # are no directories specified by -L.
14875 hardcode_minus_L=yes
14876 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14877 # Neither direct hardcoding nor static linking is supported with a
14878 # broken collect2.
14879 hardcode_direct=unsupported
14880 fi
14881 ;;
14882
14883 aix[4-9]*)
14884 if test "$host_cpu" = ia64; then
14885 # On IA64, the linker does run time linking by default, so we don't
14886 # have to do anything special.
14887 aix_use_runtimelinking=no
14888 exp_sym_flag='-Bexport'
14889 no_entry_flag=""
14890 else
14891 # If we're using GNU nm, then we don't want the "-C" option.
14892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014893 # Also, AIX nm treats weak defined symbols like other global
14894 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014895 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014896 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 +000014897 else
14898 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'
14899 fi
14900 aix_use_runtimelinking=no
14901
14902 # Test if we are trying to use run time linking or normal
14903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14904 # need to do runtime linking.
14905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14906 for ld_flag in $LDFLAGS; do
14907 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14908 aix_use_runtimelinking=yes
14909 break
14910 fi
14911 done
14912 ;;
14913 esac
14914
14915 exp_sym_flag='-bexport'
14916 no_entry_flag='-bnoentry'
14917 fi
14918
14919 # When large executables or shared objects are built, AIX ld can
14920 # have problems creating the table of contents. If linking a library
14921 # or program results in "error TOC overflow" add -mminimal-toc to
14922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14924
14925 archive_cmds=''
14926 hardcode_direct=yes
14927 hardcode_direct_absolute=yes
14928 hardcode_libdir_separator=':'
14929 link_all_deplibs=yes
14930 file_list_spec='${wl}-f,'
14931
14932 if test "$GCC" = yes; then
14933 case $host_os in aix4.[012]|aix4.[012].*)
14934 # We only want to do this on AIX 4.2 and lower, the check
14935 # below for broken collect2 doesn't work under 4.3+
14936 collect2name=`${CC} -print-prog-name=collect2`
14937 if test -f "$collect2name" &&
14938 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14939 then
14940 # We have reworked collect2
14941 :
14942 else
14943 # We have old collect2
14944 hardcode_direct=unsupported
14945 # It fails to find uninstalled libraries when the uninstalled
14946 # path is not listed in the libpath. Setting hardcode_minus_L
14947 # to unsupported forces relinking
14948 hardcode_minus_L=yes
14949 hardcode_libdir_flag_spec='-L$libdir'
14950 hardcode_libdir_separator=
14951 fi
14952 ;;
14953 esac
14954 shared_flag='-shared'
14955 if test "$aix_use_runtimelinking" = yes; then
14956 shared_flag="$shared_flag "'${wl}-G'
14957 fi
14958 else
14959 # not using gcc
14960 if test "$host_cpu" = ia64; then
14961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14962 # chokes on -Wl,-G. The following line is correct:
14963 shared_flag='-G'
14964 else
14965 if test "$aix_use_runtimelinking" = yes; then
14966 shared_flag='${wl}-G'
14967 else
14968 shared_flag='${wl}-bM:SRE'
14969 fi
14970 fi
14971 fi
14972
14973 export_dynamic_flag_spec='${wl}-bexpall'
14974 # It seems that -bexpall does not export symbols beginning with
14975 # underscore (_), so it is better to generate a list of symbols to export.
14976 always_export_symbols=yes
14977 if test "$aix_use_runtimelinking" = yes; then
14978 # Warning - without using the other runtime loading flags (-brtl),
14979 # -berok will link without error, but may produce a broken library.
14980 allow_undefined_flag='-berok'
14981 # Determine the default libpath from the value encoded in an
14982 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014983 if test "${lt_cv_aix_libpath+set}" = set; then
14984 aix_libpath=$lt_cv_aix_libpath
14985else
14986 if ${lt_cv_aix_libpath_+:} false; then :
14987 $as_echo_n "(cached) " >&6
14988else
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014990/* end confdefs.h. */
14991
14992int
14993main ()
14994{
14995
14996 ;
14997 return 0;
14998}
14999_ACEOF
15000if ac_fn_c_try_link "$LINENO"; then :
15001
cristyda16f162011-02-19 23:52:17 +000015002 lt_aix_libpath_sed='
15003 /Import File Strings/,/^$/ {
15004 /^0/ {
15005 s/^0 *\([^ ]*\) *$/\1/
15006 p
15007 }
15008 }'
15009 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15010 # Check for a 64-bit object if we didn't find anything.
15011 if test -z "$lt_cv_aix_libpath_"; then
15012 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013 fi
cristy73bd4a52010-10-05 11:24:23 +000015014fi
15015rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015017 if test -z "$lt_cv_aix_libpath_"; then
15018 lt_cv_aix_libpath_="/usr/lib:/lib"
15019 fi
15020
15021fi
15022
15023 aix_libpath=$lt_cv_aix_libpath_
15024fi
cristy73bd4a52010-10-05 11:24:23 +000015025
15026 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015027 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 +000015028 else
15029 if test "$host_cpu" = ia64; then
15030 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15031 allow_undefined_flag="-z nodefs"
15032 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"
15033 else
15034 # Determine the default libpath from the value encoded in an
15035 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015036 if test "${lt_cv_aix_libpath+set}" = set; then
15037 aix_libpath=$lt_cv_aix_libpath
15038else
15039 if ${lt_cv_aix_libpath_+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041else
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015043/* end confdefs.h. */
15044
15045int
15046main ()
15047{
15048
15049 ;
15050 return 0;
15051}
15052_ACEOF
15053if ac_fn_c_try_link "$LINENO"; then :
15054
cristyda16f162011-02-19 23:52:17 +000015055 lt_aix_libpath_sed='
15056 /Import File Strings/,/^$/ {
15057 /^0/ {
15058 s/^0 *\([^ ]*\) *$/\1/
15059 p
15060 }
15061 }'
15062 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15063 # Check for a 64-bit object if we didn't find anything.
15064 if test -z "$lt_cv_aix_libpath_"; then
15065 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15066 fi
cristy73bd4a52010-10-05 11:24:23 +000015067fi
15068rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015070 if test -z "$lt_cv_aix_libpath_"; then
15071 lt_cv_aix_libpath_="/usr/lib:/lib"
15072 fi
15073
15074fi
15075
15076 aix_libpath=$lt_cv_aix_libpath_
15077fi
cristy73bd4a52010-10-05 11:24:23 +000015078
15079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15080 # Warning - without using the other run time loading flags,
15081 # -berok will link without error, but may produce a broken library.
15082 no_undefined_flag=' ${wl}-bernotok'
15083 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015084 if test "$with_gnu_ld" = yes; then
15085 # We only use this code for GNU lds that support --whole-archive.
15086 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15087 else
15088 # Exported symbols can be pulled into shared objects from archives
15089 whole_archive_flag_spec='$convenience'
15090 fi
cristy73bd4a52010-10-05 11:24:23 +000015091 archive_cmds_need_lc=yes
15092 # This is similar to how AIX traditionally builds its shared libraries.
15093 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'
15094 fi
15095 fi
15096 ;;
15097
15098 amigaos*)
15099 case $host_cpu in
15100 powerpc)
15101 # see comment about AmigaOS4 .so support
15102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15103 archive_expsym_cmds=''
15104 ;;
15105 m68k)
15106 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)'
15107 hardcode_libdir_flag_spec='-L$libdir'
15108 hardcode_minus_L=yes
15109 ;;
15110 esac
15111 ;;
15112
15113 bsdi[45]*)
15114 export_dynamic_flag_spec=-rdynamic
15115 ;;
15116
15117 cygwin* | mingw* | pw32* | cegcc*)
15118 # When not using gcc, we currently assume that we are using
15119 # Microsoft Visual C++.
15120 # hardcode_libdir_flag_spec is actually meaningless, as there is
15121 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015122 case $cc_basename in
15123 cl*)
15124 # Native MSVC
15125 hardcode_libdir_flag_spec=' '
15126 allow_undefined_flag=unsupported
15127 always_export_symbols=yes
15128 file_list_spec='@'
15129 # Tell ltmain to make .lib files, not .a files.
15130 libext=lib
15131 # Tell ltmain to make .dll files, not .so files.
15132 shrext_cmds=".dll"
15133 # FIXME: Setting linknames here is a bad hack.
15134 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15135 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15136 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15137 else
15138 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15139 fi~
15140 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15141 linknames='
15142 # The linker will not automatically build a static lib if we build a DLL.
15143 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15144 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015145 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15147 # Don't use ranlib
15148 old_postinstall_cmds='chmod 644 $oldlib'
15149 postlink_cmds='lt_outputfile="@OUTPUT@"~
15150 lt_tool_outputfile="@TOOL_OUTPUT@"~
15151 case $lt_outputfile in
15152 *.exe|*.EXE) ;;
15153 *)
15154 lt_outputfile="$lt_outputfile.exe"
15155 lt_tool_outputfile="$lt_tool_outputfile.exe"
15156 ;;
15157 esac~
15158 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15159 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15160 $RM "$lt_outputfile.manifest";
15161 fi'
15162 ;;
15163 *)
15164 # Assume MSVC wrapper
15165 hardcode_libdir_flag_spec=' '
15166 allow_undefined_flag=unsupported
15167 # Tell ltmain to make .lib files, not .a files.
15168 libext=lib
15169 # Tell ltmain to make .dll files, not .so files.
15170 shrext_cmds=".dll"
15171 # FIXME: Setting linknames here is a bad hack.
15172 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15173 # The linker will automatically build a .lib file if we build a DLL.
15174 old_archive_from_new_cmds='true'
15175 # FIXME: Should let the user specify the lib program.
15176 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15177 enable_shared_with_static_runtimes=yes
15178 ;;
15179 esac
cristy73bd4a52010-10-05 11:24:23 +000015180 ;;
15181
15182 darwin* | rhapsody*)
15183
15184
15185 archive_cmds_need_lc=no
15186 hardcode_direct=no
15187 hardcode_automatic=yes
15188 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015189 if test "$lt_cv_ld_force_load" = "yes"; then
15190 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 +000015191
cristy0c60a692010-11-04 01:09:47 +000015192 else
15193 whole_archive_flag_spec=''
15194 fi
cristy73bd4a52010-10-05 11:24:23 +000015195 link_all_deplibs=yes
15196 allow_undefined_flag="$_lt_dar_allow_undefined"
15197 case $cc_basename in
15198 ifort*) _lt_dar_can_shared=yes ;;
15199 *) _lt_dar_can_shared=$GCC ;;
15200 esac
15201 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015202 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015203 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15204 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15205 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}"
15206 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}"
15207
15208 else
15209 ld_shlibs=no
15210 fi
15211
15212 ;;
15213
15214 dgux*)
15215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15216 hardcode_libdir_flag_spec='-L$libdir'
15217 hardcode_shlibpath_var=no
15218 ;;
15219
cristy73bd4a52010-10-05 11:24:23 +000015220 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15221 # support. Future versions do this automatically, but an explicit c++rt0.o
15222 # does not break anything, and helps significantly (at the cost of a little
15223 # extra space).
15224 freebsd2.2*)
15225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15226 hardcode_libdir_flag_spec='-R$libdir'
15227 hardcode_direct=yes
15228 hardcode_shlibpath_var=no
15229 ;;
15230
15231 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015232 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15234 hardcode_direct=yes
15235 hardcode_minus_L=yes
15236 hardcode_shlibpath_var=no
15237 ;;
15238
15239 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15240 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015242 hardcode_libdir_flag_spec='-R$libdir'
15243 hardcode_direct=yes
15244 hardcode_shlibpath_var=no
15245 ;;
15246
15247 hpux9*)
15248 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015249 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 +000015250 else
15251 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'
15252 fi
15253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15254 hardcode_libdir_separator=:
15255 hardcode_direct=yes
15256
15257 # hardcode_minus_L: Not really in the search PATH,
15258 # but as the default location of the library.
15259 hardcode_minus_L=yes
15260 export_dynamic_flag_spec='${wl}-E'
15261 ;;
15262
15263 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015264 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015265 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 +000015266 else
15267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15268 fi
15269 if test "$with_gnu_ld" = no; then
15270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015271 hardcode_libdir_separator=:
15272 hardcode_direct=yes
15273 hardcode_direct_absolute=yes
15274 export_dynamic_flag_spec='${wl}-E'
15275 # hardcode_minus_L: Not really in the search PATH,
15276 # but as the default location of the library.
15277 hardcode_minus_L=yes
15278 fi
15279 ;;
15280
15281 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015282 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015283 case $host_cpu in
15284 hppa*64*)
15285 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15286 ;;
15287 ia64*)
cristyda16f162011-02-19 23:52:17 +000015288 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015289 ;;
15290 *)
cristyda16f162011-02-19 23:52:17 +000015291 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 +000015292 ;;
15293 esac
15294 else
15295 case $host_cpu in
15296 hppa*64*)
15297 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15298 ;;
15299 ia64*)
15300 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15301 ;;
15302 *)
cristy0c60a692010-11-04 01:09:47 +000015303
15304 # Older versions of the 11.00 compiler do not understand -b yet
15305 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15307$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015308if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015309 $as_echo_n "(cached) " >&6
15310else
15311 lt_cv_prog_compiler__b=no
15312 save_LDFLAGS="$LDFLAGS"
15313 LDFLAGS="$LDFLAGS -b"
15314 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15315 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15316 # The linker can only warn and ignore the option if not recognized
15317 # So say no if there are warnings
15318 if test -s conftest.err; then
15319 # Append any errors to the config.log.
15320 cat conftest.err 1>&5
15321 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15323 if diff conftest.exp conftest.er2 >/dev/null; then
15324 lt_cv_prog_compiler__b=yes
15325 fi
15326 else
15327 lt_cv_prog_compiler__b=yes
15328 fi
15329 fi
15330 $RM -r conftest*
15331 LDFLAGS="$save_LDFLAGS"
15332
15333fi
15334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15335$as_echo "$lt_cv_prog_compiler__b" >&6; }
15336
15337if test x"$lt_cv_prog_compiler__b" = xyes; then
15338 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15339else
15340 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15341fi
15342
cristy73bd4a52010-10-05 11:24:23 +000015343 ;;
15344 esac
15345 fi
15346 if test "$with_gnu_ld" = no; then
15347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15348 hardcode_libdir_separator=:
15349
15350 case $host_cpu in
15351 hppa*64*|ia64*)
15352 hardcode_direct=no
15353 hardcode_shlibpath_var=no
15354 ;;
15355 *)
15356 hardcode_direct=yes
15357 hardcode_direct_absolute=yes
15358 export_dynamic_flag_spec='${wl}-E'
15359
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 ;;
15364 esac
15365 fi
15366 ;;
15367
15368 irix5* | irix6* | nonstopux*)
15369 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015370 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 +000015371 # Try to use the -exported_symbol ld option, if it does not
15372 # work, assume that -exports_file does not work either and
15373 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015374 # This should be the same for all languages, so no per-tag cache variable.
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15376$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15377if ${lt_cv_irix_exported_symbol+:} false; then :
15378 $as_echo_n "(cached) " >&6
15379else
15380 save_LDFLAGS="$LDFLAGS"
15381 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015383/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015384int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015385_ACEOF
15386if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015387 lt_cv_irix_exported_symbol=yes
15388else
15389 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015390fi
15391rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015393 LDFLAGS="$save_LDFLAGS"
15394fi
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15396$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15397 if test "$lt_cv_irix_exported_symbol" = yes; then
15398 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'
15399 fi
cristy73bd4a52010-10-05 11:24:23 +000015400 else
cristy0c60a692010-11-04 01:09:47 +000015401 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'
15402 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 +000015403 fi
15404 archive_cmds_need_lc='no'
15405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15406 hardcode_libdir_separator=:
15407 inherit_rpath=yes
15408 link_all_deplibs=yes
15409 ;;
15410
15411 netbsd*)
15412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15414 else
15415 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15416 fi
15417 hardcode_libdir_flag_spec='-R$libdir'
15418 hardcode_direct=yes
15419 hardcode_shlibpath_var=no
15420 ;;
15421
15422 newsos6)
15423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct=yes
15425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15426 hardcode_libdir_separator=:
15427 hardcode_shlibpath_var=no
15428 ;;
15429
15430 *nto* | *qnx*)
15431 ;;
15432
15433 openbsd*)
15434 if test -f /usr/libexec/ld.so; then
15435 hardcode_direct=yes
15436 hardcode_shlibpath_var=no
15437 hardcode_direct_absolute=yes
15438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15440 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15442 export_dynamic_flag_spec='${wl}-E'
15443 else
15444 case $host_os in
15445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15447 hardcode_libdir_flag_spec='-R$libdir'
15448 ;;
15449 *)
15450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15451 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15452 ;;
15453 esac
15454 fi
15455 else
15456 ld_shlibs=no
15457 fi
15458 ;;
15459
15460 os2*)
15461 hardcode_libdir_flag_spec='-L$libdir'
15462 hardcode_minus_L=yes
15463 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015464 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 +000015465 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15466 ;;
15467
15468 osf3*)
15469 if test "$GCC" = yes; then
15470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015471 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 +000015472 else
15473 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015474 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 +000015475 fi
15476 archive_cmds_need_lc='no'
15477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15478 hardcode_libdir_separator=:
15479 ;;
15480
15481 osf4* | osf5*) # as osf3* with the addition of -msym flag
15482 if test "$GCC" = yes; then
15483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015484 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 +000015485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15486 else
15487 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015488 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 +000015489 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 +000015490 $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 +000015491
15492 # Both c and cxx compiler support -rpath directly
15493 hardcode_libdir_flag_spec='-rpath $libdir'
15494 fi
15495 archive_cmds_need_lc='no'
15496 hardcode_libdir_separator=:
15497 ;;
15498
15499 solaris*)
15500 no_undefined_flag=' -z defs'
15501 if test "$GCC" = yes; then
15502 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015503 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 +000015504 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 +000015505 $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 +000015506 else
15507 case `$CC -V 2>&1` in
15508 *"Compilers 5.0"*)
15509 wlarc=''
15510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15513 ;;
15514 *)
15515 wlarc='${wl}'
15516 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15518 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15519 ;;
15520 esac
15521 fi
15522 hardcode_libdir_flag_spec='-R$libdir'
15523 hardcode_shlibpath_var=no
15524 case $host_os in
15525 solaris2.[0-5] | solaris2.[0-5].*) ;;
15526 *)
15527 # The compiler driver will combine and reorder linker options,
15528 # but understands `-z linker_flag'. GCC discards it without `$wl',
15529 # but is careful enough not to reorder.
15530 # Supported since Solaris 2.6 (maybe 2.5.1?)
15531 if test "$GCC" = yes; then
15532 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15533 else
15534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15535 fi
15536 ;;
15537 esac
15538 link_all_deplibs=yes
15539 ;;
15540
15541 sunos4*)
15542 if test "x$host_vendor" = xsequent; then
15543 # Use $CC to link under sequent, because it throws in some extra .o
15544 # files that make .init and .fini sections work.
15545 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546 else
15547 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15548 fi
15549 hardcode_libdir_flag_spec='-L$libdir'
15550 hardcode_direct=yes
15551 hardcode_minus_L=yes
15552 hardcode_shlibpath_var=no
15553 ;;
15554
15555 sysv4)
15556 case $host_vendor in
15557 sni)
15558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_direct=yes # is this really true???
15560 ;;
15561 siemens)
15562 ## LD is ld it makes a PLAMLIB
15563 ## CC just makes a GrossModule.
15564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15565 reload_cmds='$CC -r -o $output$reload_objs'
15566 hardcode_direct=no
15567 ;;
15568 motorola)
15569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15571 ;;
15572 esac
15573 runpath_var='LD_RUN_PATH'
15574 hardcode_shlibpath_var=no
15575 ;;
15576
15577 sysv4.3*)
15578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_shlibpath_var=no
15580 export_dynamic_flag_spec='-Bexport'
15581 ;;
15582
15583 sysv4*MP*)
15584 if test -d /usr/nec; then
15585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586 hardcode_shlibpath_var=no
15587 runpath_var=LD_RUN_PATH
15588 hardcode_runpath_var=yes
15589 ld_shlibs=yes
15590 fi
15591 ;;
15592
15593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15594 no_undefined_flag='${wl}-z,text'
15595 archive_cmds_need_lc=no
15596 hardcode_shlibpath_var=no
15597 runpath_var='LD_RUN_PATH'
15598
15599 if test "$GCC" = yes; then
15600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602 else
15603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605 fi
15606 ;;
15607
15608 sysv5* | sco3.2v5* | sco5v6*)
15609 # Note: We can NOT use -z defs as we might desire, because we do not
15610 # link with -lc, and that would cause any symbols used from libc to
15611 # always be unresolved, which means just about no library would
15612 # ever link correctly. If we're not using GNU ld we use -z text
15613 # though, which does catch some bad symbols but isn't as heavy-handed
15614 # as -z defs.
15615 no_undefined_flag='${wl}-z,text'
15616 allow_undefined_flag='${wl}-z,nodefs'
15617 archive_cmds_need_lc=no
15618 hardcode_shlibpath_var=no
15619 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15620 hardcode_libdir_separator=':'
15621 link_all_deplibs=yes
15622 export_dynamic_flag_spec='${wl}-Bexport'
15623 runpath_var='LD_RUN_PATH'
15624
15625 if test "$GCC" = yes; then
15626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15628 else
15629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631 fi
15632 ;;
15633
15634 uts4*)
15635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec='-L$libdir'
15637 hardcode_shlibpath_var=no
15638 ;;
15639
15640 *)
15641 ld_shlibs=no
15642 ;;
15643 esac
15644
15645 if test x$host_vendor = xsni; then
15646 case $host in
15647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15648 export_dynamic_flag_spec='${wl}-Blargedynsym'
15649 ;;
15650 esac
15651 fi
15652 fi
15653
15654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15655$as_echo "$ld_shlibs" >&6; }
15656test "$ld_shlibs" = no && can_build_shared=no
15657
15658with_gnu_ld=$with_gnu_ld
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674#
15675# Do we need to explicitly link libc?
15676#
15677case "x$archive_cmds_need_lc" in
15678x|xyes)
15679 # Assume -lc should be added
15680 archive_cmds_need_lc=yes
15681
15682 if test "$enable_shared" = yes && test "$GCC" = yes; then
15683 case $archive_cmds in
15684 *'~'*)
15685 # FIXME: we may have to deal with multi-command sequences.
15686 ;;
15687 '$CC '*)
15688 # Test whether the compiler implicitly links with -lc since on some
15689 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15690 # to ld, don't add -lc before -lgcc.
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15692$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015693if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015694 $as_echo_n "(cached) " >&6
15695else
15696 $RM conftest*
15697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015698
cristy0c60a692010-11-04 01:09:47 +000015699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015700 (eval $ac_compile) 2>&5
15701 ac_status=$?
15702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15703 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015704 soname=conftest
15705 lib=conftest
15706 libobjs=conftest.$ac_objext
15707 deplibs=
15708 wl=$lt_prog_compiler_wl
15709 pic_flag=$lt_prog_compiler_pic
15710 compiler_flags=-v
15711 linker_flags=-v
15712 verstring=
15713 output_objdir=.
15714 libname=conftest
15715 lt_save_allow_undefined_flag=$allow_undefined_flag
15716 allow_undefined_flag=
15717 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 +000015718 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15719 ac_status=$?
15720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15721 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015722 then
15723 lt_cv_archive_cmds_need_lc=no
15724 else
15725 lt_cv_archive_cmds_need_lc=yes
15726 fi
15727 allow_undefined_flag=$lt_save_allow_undefined_flag
15728 else
15729 cat conftest.err 1>&5
15730 fi
15731 $RM conftest*
15732
15733fi
15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15735$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15736 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015737 ;;
15738 esac
15739 fi
15740 ;;
15741esac
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
cristy73bd4a52010-10-05 11:24:23 +000015894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15895$as_echo_n "checking dynamic linker characteristics... " >&6; }
15896
15897if test "$GCC" = yes; then
15898 case $host_os in
15899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15900 *) lt_awk_arg="/^libraries:/" ;;
15901 esac
cristy0c60a692010-11-04 01:09:47 +000015902 case $host_os in
15903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15904 *) lt_sed_strip_eq="s,=/,/,g" ;;
15905 esac
15906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15907 case $lt_search_path_spec in
15908 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015909 # if the path contains ";" then we assume it to be the separator
15910 # otherwise default to the standard path separator (i.e. ":") - it is
15911 # assumed that no part of a normal pathname contains ";" but that should
15912 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15914 ;;
15915 *)
15916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15917 ;;
15918 esac
cristy73bd4a52010-10-05 11:24:23 +000015919 # Ok, now we have the path, separated by spaces, we can step through it
15920 # and add multilib dir if necessary.
15921 lt_tmp_lt_search_path_spec=
15922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15923 for lt_sys_path in $lt_search_path_spec; do
15924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15926 else
15927 test -d "$lt_sys_path" && \
15928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15929 fi
15930 done
cristy0c60a692010-11-04 01:09:47 +000015931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015932BEGIN {RS=" "; FS="/|\n";} {
15933 lt_foo="";
15934 lt_count=0;
15935 for (lt_i = NF; lt_i > 0; lt_i--) {
15936 if ($lt_i != "" && $lt_i != ".") {
15937 if ($lt_i == "..") {
15938 lt_count++;
15939 } else {
15940 if (lt_count == 0) {
15941 lt_foo="/" $lt_i lt_foo;
15942 } else {
15943 lt_count--;
15944 }
15945 }
15946 }
15947 }
15948 if (lt_foo != "") { lt_freq[lt_foo]++; }
15949 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15950}'`
cristy0c60a692010-11-04 01:09:47 +000015951 # AWK program above erroneously prepends '/' to C:/dos/paths
15952 # for these hosts.
15953 case $host_os in
15954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15955 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15956 esac
15957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015958else
15959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15960fi
15961library_names_spec=
15962libname_spec='lib$name'
15963soname_spec=
15964shrext_cmds=".so"
15965postinstall_cmds=
15966postuninstall_cmds=
15967finish_cmds=
15968finish_eval=
15969shlibpath_var=
15970shlibpath_overrides_runpath=unknown
15971version_type=none
15972dynamic_linker="$host_os ld.so"
15973sys_lib_dlsearch_path_spec="/lib /usr/lib"
15974need_lib_prefix=unknown
15975hardcode_into_libs=no
15976
15977# when you set need_version to no, make sure it does not cause -set_version
15978# flags to be left without arguments
15979need_version=unknown
15980
15981case $host_os in
15982aix3*)
cristy99bd5232011-12-07 14:38:20 +000015983 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15985 shlibpath_var=LIBPATH
15986
15987 # AIX 3 has no versioning support, so we append a major version to the name.
15988 soname_spec='${libname}${release}${shared_ext}$major'
15989 ;;
15990
15991aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015992 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015993 need_lib_prefix=no
15994 need_version=no
15995 hardcode_into_libs=yes
15996 if test "$host_cpu" = ia64; then
15997 # AIX 5 supports IA64
15998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15999 shlibpath_var=LD_LIBRARY_PATH
16000 else
16001 # With GCC up to 2.95.x, collect2 would create an import file
16002 # for dependence libraries. The import file would start with
16003 # the line `#! .'. This would cause the generated library to
16004 # depend on `.', always an invalid library. This was fixed in
16005 # development snapshots of GCC prior to 3.0.
16006 case $host_os in
16007 aix4 | aix4.[01] | aix4.[01].*)
16008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009 echo ' yes '
16010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16011 :
16012 else
16013 can_build_shared=no
16014 fi
16015 ;;
16016 esac
16017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16018 # soname into executable. Probably we can add versioning support to
16019 # collect2, so additional links can be useful in future.
16020 if test "$aix_use_runtimelinking" = yes; then
16021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16022 # instead of lib<name>.a to let people know that these are not
16023 # typical AIX shared libraries.
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 else
16026 # We preserve .a as extension for shared libraries through AIX4.2
16027 # and later when we are not doing run time linking.
16028 library_names_spec='${libname}${release}.a $libname.a'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 fi
16031 shlibpath_var=LIBPATH
16032 fi
16033 ;;
16034
16035amigaos*)
16036 case $host_cpu in
16037 powerpc)
16038 # Since July 2007 AmigaOS4 officially supports .so libraries.
16039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041 ;;
16042 m68k)
16043 library_names_spec='$libname.ixlibrary $libname.a'
16044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016045 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 +000016046 ;;
16047 esac
16048 ;;
16049
16050beos*)
16051 library_names_spec='${libname}${shared_ext}'
16052 dynamic_linker="$host_os ld.so"
16053 shlibpath_var=LIBRARY_PATH
16054 ;;
16055
16056bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016057 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016058 need_version=no
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16065 # the default ld.so.conf also contains /usr/contrib/lib and
16066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16067 # libtool to hard-code these into programs
16068 ;;
16069
16070cygwin* | mingw* | pw32* | cegcc*)
16071 version_type=windows
16072 shrext_cmds=".dll"
16073 need_version=no
16074 need_lib_prefix=no
16075
cristyda16f162011-02-19 23:52:17 +000016076 case $GCC,$cc_basename in
16077 yes,*)
16078 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016079 library_names_spec='$libname.dll.a'
16080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16081 postinstall_cmds='base_file=`basename \${file}`~
16082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16083 dldir=$destdir/`dirname \$dlpath`~
16084 test -d \$dldir || mkdir -p \$dldir~
16085 $install_prog $dir/$dlname \$dldir/$dlname~
16086 chmod a+x \$dldir/$dlname~
16087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16089 fi'
16090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16091 dlpath=$dir/\$dldll~
16092 $RM \$dlpath'
16093 shlibpath_overrides_runpath=yes
16094
16095 case $host_os in
16096 cygwin*)
16097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016099
16100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016101 ;;
16102 mingw* | cegcc*)
16103 # MinGW DLLs use traditional 'lib' prefix
16104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016105 ;;
16106 pw32*)
16107 # pw32 DLLs use 'pw' prefix rather than 'lib'
16108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16109 ;;
16110 esac
cristyda16f162011-02-19 23:52:17 +000016111 dynamic_linker='Win32 ld.exe'
16112 ;;
16113
16114 *,cl*)
16115 # Native MSVC
16116 libname_spec='$name'
16117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 library_names_spec='${libname}.dll.lib'
16119
16120 case $build_os in
16121 mingw*)
16122 sys_lib_search_path_spec=
16123 lt_save_ifs=$IFS
16124 IFS=';'
16125 for lt_path in $LIB
16126 do
16127 IFS=$lt_save_ifs
16128 # Let DOS variable expansion print the short 8.3 style file name.
16129 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16130 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16131 done
16132 IFS=$lt_save_ifs
16133 # Convert to MSYS style.
16134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16135 ;;
16136 cygwin*)
16137 # Convert to unix form, then to dos form, then back to unix form
16138 # but this time dos style (no spaces!) so that the unix form looks
16139 # like /cygdrive/c/PROGRA~1:/cygdr...
16140 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16141 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16142 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16143 ;;
16144 *)
16145 sys_lib_search_path_spec="$LIB"
16146 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16147 # It is most probably a Windows format PATH.
16148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16149 else
16150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16151 fi
16152 # FIXME: find the short name or the path components, as spaces are
16153 # common. (e.g. "Program Files" -> "PROGRA~1")
16154 ;;
16155 esac
16156
16157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16158 postinstall_cmds='base_file=`basename \${file}`~
16159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16160 dldir=$destdir/`dirname \$dlpath`~
16161 test -d \$dldir || mkdir -p \$dldir~
16162 $install_prog $dir/$dlname \$dldir/$dlname'
16163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16164 dlpath=$dir/\$dldll~
16165 $RM \$dlpath'
16166 shlibpath_overrides_runpath=yes
16167 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016168 ;;
16169
16170 *)
cristyda16f162011-02-19 23:52:17 +000016171 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016173 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016174 ;;
16175 esac
cristy73bd4a52010-10-05 11:24:23 +000016176 # FIXME: first we should search . and the directory the executable is in
16177 shlibpath_var=PATH
16178 ;;
16179
16180darwin* | rhapsody*)
16181 dynamic_linker="$host_os dyld"
16182 version_type=darwin
16183 need_lib_prefix=no
16184 need_version=no
16185 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16186 soname_spec='${libname}${release}${major}$shared_ext'
16187 shlibpath_overrides_runpath=yes
16188 shlibpath_var=DYLD_LIBRARY_PATH
16189 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16190
16191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16193 ;;
16194
16195dgux*)
cristy99bd5232011-12-07 14:38:20 +000016196 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 ;;
16203
cristy73bd4a52010-10-05 11:24:23 +000016204freebsd* | dragonfly*)
16205 # DragonFly does not have aout. When/if they implement a new
16206 # versioning mechanism, adjust this.
16207 if test -x /usr/bin/objformat; then
16208 objformat=`/usr/bin/objformat`
16209 else
16210 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016211 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016212 *) objformat=elf ;;
16213 esac
16214 fi
16215 version_type=freebsd-$objformat
16216 case $version_type in
16217 freebsd-elf*)
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219 need_version=no
16220 need_lib_prefix=no
16221 ;;
16222 freebsd-*)
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16224 need_version=yes
16225 ;;
16226 esac
16227 shlibpath_var=LD_LIBRARY_PATH
16228 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016229 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016230 shlibpath_overrides_runpath=yes
16231 ;;
16232 freebsd3.[01]* | freebsdelf3.[01]*)
16233 shlibpath_overrides_runpath=yes
16234 hardcode_into_libs=yes
16235 ;;
16236 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16237 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16238 shlibpath_overrides_runpath=no
16239 hardcode_into_libs=yes
16240 ;;
16241 *) # from 4.6 on, and DragonFly
16242 shlibpath_overrides_runpath=yes
16243 hardcode_into_libs=yes
16244 ;;
16245 esac
16246 ;;
16247
16248gnu*)
cristy99bd5232011-12-07 14:38:20 +000016249 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016250 need_lib_prefix=no
16251 need_version=no
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016255 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016256 hardcode_into_libs=yes
16257 ;;
16258
cristy0c60a692010-11-04 01:09:47 +000016259haiku*)
cristy99bd5232011-12-07 14:38:20 +000016260 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016261 need_lib_prefix=no
16262 need_version=no
16263 dynamic_linker="$host_os runtime_loader"
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 shlibpath_var=LIBRARY_PATH
16267 shlibpath_overrides_runpath=yes
16268 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16269 hardcode_into_libs=yes
16270 ;;
16271
cristy73bd4a52010-10-05 11:24:23 +000016272hpux9* | hpux10* | hpux11*)
16273 # Give a soname corresponding to the major version so that dld.sl refuses to
16274 # link against other versions.
16275 version_type=sunos
16276 need_lib_prefix=no
16277 need_version=no
16278 case $host_cpu in
16279 ia64*)
16280 shrext_cmds='.so'
16281 hardcode_into_libs=yes
16282 dynamic_linker="$host_os dld.so"
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 if test "X$HPUX_IA64_MODE" = X32; then
16288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16289 else
16290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16291 fi
16292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16293 ;;
16294 hppa*64*)
16295 shrext_cmds='.sl'
16296 hardcode_into_libs=yes
16297 dynamic_linker="$host_os dld.sl"
16298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16304 ;;
16305 *)
16306 shrext_cmds='.sl'
16307 dynamic_linker="$host_os dld.sl"
16308 shlibpath_var=SHLIB_PATH
16309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 ;;
16313 esac
cristy0c60a692010-11-04 01:09:47 +000016314 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016315 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016316 # or fails outright, so override atomically:
16317 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016318 ;;
16319
16320interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016321 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016322 need_lib_prefix=no
16323 need_version=no
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 shlibpath_overrides_runpath=no
16329 hardcode_into_libs=yes
16330 ;;
16331
16332irix5* | irix6* | nonstopux*)
16333 case $host_os in
16334 nonstopux*) version_type=nonstopux ;;
16335 *)
16336 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016337 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016338 else
16339 version_type=irix
16340 fi ;;
16341 esac
16342 need_lib_prefix=no
16343 need_version=no
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16346 case $host_os in
16347 irix5* | nonstopux*)
16348 libsuff= shlibsuff=
16349 ;;
16350 *)
16351 case $LD in # libtool.m4 will add one of these switches to LD
16352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16353 libsuff= shlibsuff= libmagic=32-bit;;
16354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16355 libsuff=32 shlibsuff=N32 libmagic=N32;;
16356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16357 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16358 *) libsuff= shlibsuff= libmagic=never-match;;
16359 esac
16360 ;;
16361 esac
16362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16363 shlibpath_overrides_runpath=no
16364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16366 hardcode_into_libs=yes
16367 ;;
16368
16369# No shared lib support for Linux oldld, aout, or coff.
16370linux*oldld* | linux*aout* | linux*coff*)
16371 dynamic_linker=no
16372 ;;
16373
cristy99bd5232011-12-07 14:38:20 +000016374# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016375linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016376 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016377 need_lib_prefix=no
16378 need_version=no
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016384
cristy73bd4a52010-10-05 11:24:23 +000016385 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016386 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016387 $as_echo_n "(cached) " >&6
16388else
16389 lt_cv_shlibpath_overrides_runpath=no
16390 save_LDFLAGS=$LDFLAGS
16391 save_libdir=$libdir
16392 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16393 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016395/* end confdefs.h. */
16396
16397int
16398main ()
16399{
16400
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405if ac_fn_c_try_link "$LINENO"; then :
16406 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016407 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016408fi
16409fi
16410rm -f core conftest.err conftest.$ac_objext \
16411 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016412 LDFLAGS=$save_LDFLAGS
16413 libdir=$save_libdir
16414
16415fi
16416
16417 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016418
16419 # This implies no fast_install, which is unacceptable.
16420 # Some rework will be needed to allow for fast_install
16421 # before this can be enabled.
16422 hardcode_into_libs=yes
16423
16424 # Add ABI-specific directories to the system library path.
16425 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16426
16427 # Append ld.so.conf contents to the search path
16428 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016429 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 +000016430 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016431
cristy73bd4a52010-10-05 11:24:23 +000016432 fi
16433
16434 # We used to test for /lib/ld.so.1 and disable shared libraries on
16435 # powerpc, because MkLinux only supported shared libraries with the
16436 # GNU dynamic linker. Since this was broken with cross compilers,
16437 # most powerpc-linux boxes support dynamic linking these days and
16438 # people can always --disable-shared, the test was removed, and we
16439 # assume the GNU/Linux dynamic linker is in use.
16440 dynamic_linker='GNU/Linux ld.so'
16441 ;;
16442
16443netbsd*)
16444 version_type=sunos
16445 need_lib_prefix=no
16446 need_version=no
16447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16450 dynamic_linker='NetBSD (a.out) ld.so'
16451 else
16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16453 soname_spec='${libname}${release}${shared_ext}$major'
16454 dynamic_linker='NetBSD ld.elf_so'
16455 fi
16456 shlibpath_var=LD_LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 hardcode_into_libs=yes
16459 ;;
16460
16461newsos6)
cristy99bd5232011-12-07 14:38:20 +000016462 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=yes
16466 ;;
16467
16468*nto* | *qnx*)
16469 version_type=qnx
16470 need_lib_prefix=no
16471 need_version=no
16472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473 soname_spec='${libname}${release}${shared_ext}$major'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=no
16476 hardcode_into_libs=yes
16477 dynamic_linker='ldqnx.so'
16478 ;;
16479
16480openbsd*)
16481 version_type=sunos
16482 sys_lib_dlsearch_path_spec="/usr/lib"
16483 need_lib_prefix=no
16484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16485 case $host_os in
16486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16487 *) need_version=no ;;
16488 esac
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16493 case $host_os in
16494 openbsd2.[89] | openbsd2.[89].*)
16495 shlibpath_overrides_runpath=no
16496 ;;
16497 *)
16498 shlibpath_overrides_runpath=yes
16499 ;;
16500 esac
16501 else
16502 shlibpath_overrides_runpath=yes
16503 fi
16504 ;;
16505
16506os2*)
16507 libname_spec='$name'
16508 shrext_cmds=".dll"
16509 need_lib_prefix=no
16510 library_names_spec='$libname${shared_ext} $libname.a'
16511 dynamic_linker='OS/2 ld.exe'
16512 shlibpath_var=LIBPATH
16513 ;;
16514
16515osf3* | osf4* | osf5*)
16516 version_type=osf
16517 need_lib_prefix=no
16518 need_version=no
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16524 ;;
16525
16526rdos*)
16527 dynamic_linker=no
16528 ;;
16529
16530solaris*)
cristy99bd5232011-12-07 14:38:20 +000016531 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 shlibpath_overrides_runpath=yes
16538 hardcode_into_libs=yes
16539 # ldd complains unless libraries are executable
16540 postinstall_cmds='chmod +x $lib'
16541 ;;
16542
16543sunos4*)
16544 version_type=sunos
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16547 shlibpath_var=LD_LIBRARY_PATH
16548 shlibpath_overrides_runpath=yes
16549 if test "$with_gnu_ld" = yes; then
16550 need_lib_prefix=no
16551 fi
16552 need_version=yes
16553 ;;
16554
16555sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016556 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016557 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 case $host_vendor in
16561 sni)
16562 shlibpath_overrides_runpath=no
16563 need_lib_prefix=no
16564 runpath_var=LD_RUN_PATH
16565 ;;
16566 siemens)
16567 need_lib_prefix=no
16568 ;;
16569 motorola)
16570 need_lib_prefix=no
16571 need_version=no
16572 shlibpath_overrides_runpath=no
16573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16574 ;;
16575 esac
16576 ;;
16577
16578sysv4*MP*)
16579 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016580 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16582 soname_spec='$libname${shared_ext}.$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 fi
16585 ;;
16586
16587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16588 version_type=freebsd-elf
16589 need_lib_prefix=no
16590 need_version=no
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16592 soname_spec='${libname}${release}${shared_ext}$major'
16593 shlibpath_var=LD_LIBRARY_PATH
16594 shlibpath_overrides_runpath=yes
16595 hardcode_into_libs=yes
16596 if test "$with_gnu_ld" = yes; then
16597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16598 else
16599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16600 case $host_os in
16601 sco3.2v5*)
16602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16603 ;;
16604 esac
16605 fi
16606 sys_lib_dlsearch_path_spec='/usr/lib'
16607 ;;
16608
16609tpf*)
16610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016611 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016612 need_lib_prefix=no
16613 need_version=no
16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16615 shlibpath_var=LD_LIBRARY_PATH
16616 shlibpath_overrides_runpath=no
16617 hardcode_into_libs=yes
16618 ;;
16619
16620uts4*)
cristy99bd5232011-12-07 14:38:20 +000016621 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 ;;
16626
16627*)
16628 dynamic_linker=no
16629 ;;
16630esac
16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16632$as_echo "$dynamic_linker" >&6; }
16633test "$dynamic_linker" = no && can_build_shared=no
16634
16635variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16636if test "$GCC" = yes; then
16637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16638fi
16639
16640if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16641 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16642fi
16643if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16644 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16645fi
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
cristy0c60a692010-11-04 01:09:47 +000016733
16734
16735
16736
16737
cristy73bd4a52010-10-05 11:24:23 +000016738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16739$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16740hardcode_action=
16741if test -n "$hardcode_libdir_flag_spec" ||
16742 test -n "$runpath_var" ||
16743 test "X$hardcode_automatic" = "Xyes" ; then
16744
16745 # We can hardcode non-existent directories.
16746 if test "$hardcode_direct" != no &&
16747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16748 # have to relink, otherwise we might link with an installed library
16749 # when we should be linking with a yet-to-be-installed one
16750 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16751 test "$hardcode_minus_L" != no; then
16752 # Linking always hardcodes the temporary library directory.
16753 hardcode_action=relink
16754 else
16755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16756 hardcode_action=immediate
16757 fi
16758else
16759 # We cannot hardcode anything, or else we can only hardcode existing
16760 # directories.
16761 hardcode_action=unsupported
16762fi
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16764$as_echo "$hardcode_action" >&6; }
16765
16766if test "$hardcode_action" = relink ||
16767 test "$inherit_rpath" = yes; then
16768 # Fast installation is not supported
16769 enable_fast_install=no
16770elif test "$shlibpath_overrides_runpath" = yes ||
16771 test "$enable_shared" = no; then
16772 # Fast installation is not necessary
16773 enable_fast_install=needless
16774fi
16775
16776
16777
16778
16779
16780
16781 if test "x$enable_dlopen" != xyes; then
16782 enable_dlopen=unknown
16783 enable_dlopen_self=unknown
16784 enable_dlopen_self_static=unknown
16785else
16786 lt_cv_dlopen=no
16787 lt_cv_dlopen_libs=
16788
16789 case $host_os in
16790 beos*)
16791 lt_cv_dlopen="load_add_on"
16792 lt_cv_dlopen_libs=
16793 lt_cv_dlopen_self=yes
16794 ;;
16795
16796 mingw* | pw32* | cegcc*)
16797 lt_cv_dlopen="LoadLibrary"
16798 lt_cv_dlopen_libs=
16799 ;;
16800
16801 cygwin*)
16802 lt_cv_dlopen="dlopen"
16803 lt_cv_dlopen_libs=
16804 ;;
16805
16806 darwin*)
16807 # if libdl is installed we need to link against it
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16809$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016810if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016811 $as_echo_n "(cached) " >&6
16812else
16813 ac_check_lib_save_LIBS=$LIBS
16814LIBS="-ldl $LIBS"
16815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h. */
16817
16818/* Override any GCC internal prototype to avoid an error.
16819 Use char because int might match the return type of a GCC
16820 builtin and then its argument prototype would still apply. */
16821#ifdef __cplusplus
16822extern "C"
16823#endif
16824char dlopen ();
16825int
16826main ()
16827{
16828return dlopen ();
16829 ;
16830 return 0;
16831}
16832_ACEOF
16833if ac_fn_c_try_link "$LINENO"; then :
16834 ac_cv_lib_dl_dlopen=yes
16835else
16836 ac_cv_lib_dl_dlopen=no
16837fi
16838rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16840LIBS=$ac_check_lib_save_LIBS
16841fi
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16843$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016844if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16846else
16847
16848 lt_cv_dlopen="dyld"
16849 lt_cv_dlopen_libs=
16850 lt_cv_dlopen_self=yes
16851
16852fi
16853
16854 ;;
16855
16856 *)
16857 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016858if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016859 lt_cv_dlopen="shl_load"
16860else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16862$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016863if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016864 $as_echo_n "(cached) " >&6
16865else
16866 ac_check_lib_save_LIBS=$LIBS
16867LIBS="-ldld $LIBS"
16868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h. */
16870
16871/* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16874#ifdef __cplusplus
16875extern "C"
16876#endif
16877char shl_load ();
16878int
16879main ()
16880{
16881return shl_load ();
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886if ac_fn_c_try_link "$LINENO"; then :
16887 ac_cv_lib_dld_shl_load=yes
16888else
16889 ac_cv_lib_dld_shl_load=no
16890fi
16891rm -f core conftest.err conftest.$ac_objext \
16892 conftest$ac_exeext conftest.$ac_ext
16893LIBS=$ac_check_lib_save_LIBS
16894fi
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16896$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016897if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16899else
16900 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016901if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016902 lt_cv_dlopen="dlopen"
16903else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16905$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016906if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016907 $as_echo_n "(cached) " >&6
16908else
16909 ac_check_lib_save_LIBS=$LIBS
16910LIBS="-ldl $LIBS"
16911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912/* end confdefs.h. */
16913
16914/* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16917#ifdef __cplusplus
16918extern "C"
16919#endif
16920char dlopen ();
16921int
16922main ()
16923{
16924return dlopen ();
16925 ;
16926 return 0;
16927}
16928_ACEOF
16929if ac_fn_c_try_link "$LINENO"; then :
16930 ac_cv_lib_dl_dlopen=yes
16931else
16932 ac_cv_lib_dl_dlopen=no
16933fi
16934rm -f core conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16939$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016940if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16942else
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16944$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016945if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016946 $as_echo_n "(cached) " >&6
16947else
16948 ac_check_lib_save_LIBS=$LIBS
16949LIBS="-lsvld $LIBS"
16950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951/* end confdefs.h. */
16952
16953/* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956#ifdef __cplusplus
16957extern "C"
16958#endif
16959char dlopen ();
16960int
16961main ()
16962{
16963return dlopen ();
16964 ;
16965 return 0;
16966}
16967_ACEOF
16968if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_svld_dlopen=yes
16970else
16971 ac_cv_lib_svld_dlopen=no
16972fi
16973rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975LIBS=$ac_check_lib_save_LIBS
16976fi
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16978$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016979if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16981else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16983$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016984if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016985 $as_echo_n "(cached) " >&6
16986else
16987 ac_check_lib_save_LIBS=$LIBS
16988LIBS="-ldld $LIBS"
16989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990/* end confdefs.h. */
16991
16992/* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
16995#ifdef __cplusplus
16996extern "C"
16997#endif
16998char dld_link ();
16999int
17000main ()
17001{
17002return dld_link ();
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_dld_dld_link=yes
17009else
17010 ac_cv_lib_dld_dld_link=no
17011fi
17012rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014LIBS=$ac_check_lib_save_LIBS
17015fi
17016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17017$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017018if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17020fi
17021
17022
17023fi
17024
17025
17026fi
17027
17028
17029fi
17030
17031
17032fi
17033
17034
17035fi
17036
17037 ;;
17038 esac
17039
17040 if test "x$lt_cv_dlopen" != xno; then
17041 enable_dlopen=yes
17042 else
17043 enable_dlopen=no
17044 fi
17045
17046 case $lt_cv_dlopen in
17047 dlopen)
17048 save_CPPFLAGS="$CPPFLAGS"
17049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17050
17051 save_LDFLAGS="$LDFLAGS"
17052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17053
17054 save_LIBS="$LIBS"
17055 LIBS="$lt_cv_dlopen_libs $LIBS"
17056
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17058$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017059if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017060 $as_echo_n "(cached) " >&6
17061else
17062 if test "$cross_compiling" = yes; then :
17063 lt_cv_dlopen_self=cross
17064else
17065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17066 lt_status=$lt_dlunknown
17067 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017068#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017069#include "confdefs.h"
17070
17071#if HAVE_DLFCN_H
17072#include <dlfcn.h>
17073#endif
17074
17075#include <stdio.h>
17076
17077#ifdef RTLD_GLOBAL
17078# define LT_DLGLOBAL RTLD_GLOBAL
17079#else
17080# ifdef DL_GLOBAL
17081# define LT_DLGLOBAL DL_GLOBAL
17082# else
17083# define LT_DLGLOBAL 0
17084# endif
17085#endif
17086
17087/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17088 find out it does not work in some platform. */
17089#ifndef LT_DLLAZY_OR_NOW
17090# ifdef RTLD_LAZY
17091# define LT_DLLAZY_OR_NOW RTLD_LAZY
17092# else
17093# ifdef DL_LAZY
17094# define LT_DLLAZY_OR_NOW DL_LAZY
17095# else
17096# ifdef RTLD_NOW
17097# define LT_DLLAZY_OR_NOW RTLD_NOW
17098# else
17099# ifdef DL_NOW
17100# define LT_DLLAZY_OR_NOW DL_NOW
17101# else
17102# define LT_DLLAZY_OR_NOW 0
17103# endif
17104# endif
17105# endif
17106# endif
17107#endif
17108
cristy0c60a692010-11-04 01:09:47 +000017109/* When -fvisbility=hidden is used, assume the code has been annotated
17110 correspondingly for the symbols needed. */
17111#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017112int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017113#endif
17114
cristyda16f162011-02-19 23:52:17 +000017115int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017116int main ()
17117{
17118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17119 int status = $lt_dlunknown;
17120
17121 if (self)
17122 {
17123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017124 else
17125 {
17126 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17127 else puts (dlerror ());
17128 }
cristy73bd4a52010-10-05 11:24:23 +000017129 /* dlclose (self); */
17130 }
17131 else
17132 puts (dlerror ());
17133
17134 return status;
17135}
17136_LT_EOF
17137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17138 (eval $ac_link) 2>&5
17139 ac_status=$?
17140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17141 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17142 (./conftest; exit; ) >&5 2>/dev/null
17143 lt_status=$?
17144 case x$lt_status in
17145 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17146 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17147 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17148 esac
17149 else :
17150 # compilation failed
17151 lt_cv_dlopen_self=no
17152 fi
17153fi
17154rm -fr conftest*
17155
17156
17157fi
17158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17159$as_echo "$lt_cv_dlopen_self" >&6; }
17160
17161 if test "x$lt_cv_dlopen_self" = xyes; then
17162 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17164$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017165if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017166 $as_echo_n "(cached) " >&6
17167else
17168 if test "$cross_compiling" = yes; then :
17169 lt_cv_dlopen_self_static=cross
17170else
17171 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17172 lt_status=$lt_dlunknown
17173 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017174#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017175#include "confdefs.h"
17176
17177#if HAVE_DLFCN_H
17178#include <dlfcn.h>
17179#endif
17180
17181#include <stdio.h>
17182
17183#ifdef RTLD_GLOBAL
17184# define LT_DLGLOBAL RTLD_GLOBAL
17185#else
17186# ifdef DL_GLOBAL
17187# define LT_DLGLOBAL DL_GLOBAL
17188# else
17189# define LT_DLGLOBAL 0
17190# endif
17191#endif
17192
17193/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17194 find out it does not work in some platform. */
17195#ifndef LT_DLLAZY_OR_NOW
17196# ifdef RTLD_LAZY
17197# define LT_DLLAZY_OR_NOW RTLD_LAZY
17198# else
17199# ifdef DL_LAZY
17200# define LT_DLLAZY_OR_NOW DL_LAZY
17201# else
17202# ifdef RTLD_NOW
17203# define LT_DLLAZY_OR_NOW RTLD_NOW
17204# else
17205# ifdef DL_NOW
17206# define LT_DLLAZY_OR_NOW DL_NOW
17207# else
17208# define LT_DLLAZY_OR_NOW 0
17209# endif
17210# endif
17211# endif
17212# endif
17213#endif
17214
cristy0c60a692010-11-04 01:09:47 +000017215/* When -fvisbility=hidden is used, assume the code has been annotated
17216 correspondingly for the symbols needed. */
17217#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017218int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017219#endif
17220
cristyda16f162011-02-19 23:52:17 +000017221int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017222int main ()
17223{
17224 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17225 int status = $lt_dlunknown;
17226
17227 if (self)
17228 {
17229 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017230 else
17231 {
17232 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17233 else puts (dlerror ());
17234 }
cristy73bd4a52010-10-05 11:24:23 +000017235 /* dlclose (self); */
17236 }
17237 else
17238 puts (dlerror ());
17239
17240 return status;
17241}
17242_LT_EOF
17243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17244 (eval $ac_link) 2>&5
17245 ac_status=$?
17246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17247 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17248 (./conftest; exit; ) >&5 2>/dev/null
17249 lt_status=$?
17250 case x$lt_status in
17251 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17252 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17253 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17254 esac
17255 else :
17256 # compilation failed
17257 lt_cv_dlopen_self_static=no
17258 fi
17259fi
17260rm -fr conftest*
17261
17262
17263fi
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17265$as_echo "$lt_cv_dlopen_self_static" >&6; }
17266 fi
17267
17268 CPPFLAGS="$save_CPPFLAGS"
17269 LDFLAGS="$save_LDFLAGS"
17270 LIBS="$save_LIBS"
17271 ;;
17272 esac
17273
17274 case $lt_cv_dlopen_self in
17275 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17276 *) enable_dlopen_self=unknown ;;
17277 esac
17278
17279 case $lt_cv_dlopen_self_static in
17280 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17281 *) enable_dlopen_self_static=unknown ;;
17282 esac
17283fi
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301striplib=
17302old_striplib=
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17304$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17305if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17306 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17307 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17309$as_echo "yes" >&6; }
17310else
17311# FIXME - insert some real tests, host_os isn't really good enough
17312 case $host_os in
17313 darwin*)
17314 if test -n "$STRIP" ; then
17315 striplib="$STRIP -x"
17316 old_striplib="$STRIP -S"
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17318$as_echo "yes" >&6; }
17319 else
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321$as_echo "no" >&6; }
17322 fi
17323 ;;
17324 *)
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326$as_echo "no" >&6; }
17327 ;;
17328 esac
17329fi
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342 # Report which library types will actually be built
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17344$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17346$as_echo "$can_build_shared" >&6; }
17347
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17349$as_echo_n "checking whether to build shared libraries... " >&6; }
17350 test "$can_build_shared" = "no" && enable_shared=no
17351
17352 # On AIX, shared libraries and static libraries use the same namespace, and
17353 # are all built from PIC.
17354 case $host_os in
17355 aix3*)
17356 test "$enable_shared" = yes && enable_static=no
17357 if test -n "$RANLIB"; then
17358 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17359 postinstall_cmds='$RANLIB $lib'
17360 fi
17361 ;;
17362
17363 aix[4-9]*)
17364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17365 test "$enable_shared" = yes && enable_static=no
17366 fi
17367 ;;
17368 esac
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17370$as_echo "$enable_shared" >&6; }
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17373$as_echo_n "checking whether to build static libraries... " >&6; }
17374 # Make sure either enable_shared or enable_static is yes.
17375 test "$enable_shared" = yes || enable_static=yes
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17377$as_echo "$enable_static" >&6; }
17378
17379
17380
17381
17382fi
17383ac_ext=c
17384ac_cpp='$CPP $CPPFLAGS'
17385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17387ac_compiler_gnu=$ac_cv_c_compiler_gnu
17388
17389CC="$lt_save_CC"
17390
cristy0c60a692010-11-04 01:09:47 +000017391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17392 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17393 (test "X$CXX" != "Xg++"))) ; then
17394 ac_ext=cpp
17395ac_cpp='$CXXCPP $CPPFLAGS'
17396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17400$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17401if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017402 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017403 $as_echo_n "(cached) " >&6
17404else
17405 # Double quotes because CXXCPP needs to be expanded
17406 for CXXCPP in "$CXX -E" "/lib/cpp"
17407 do
17408 ac_preproc_ok=false
17409for ac_cxx_preproc_warn_flag in '' yes
17410do
17411 # Use a header file that comes with gcc, so configuring glibc
17412 # with a fresh cross-compiler works.
17413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 # <limits.h> exists even on freestanding compilers.
17415 # On the NeXT, cc -E runs the code through the compiler's parser,
17416 # not just through cpp. "Syntax error" is here to catch this case.
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418/* end confdefs.h. */
17419#ifdef __STDC__
17420# include <limits.h>
17421#else
17422# include <assert.h>
17423#endif
17424 Syntax error
17425_ACEOF
17426if ac_fn_cxx_try_cpp "$LINENO"; then :
17427
17428else
17429 # Broken: fails on valid input.
17430continue
17431fi
cristyda16f162011-02-19 23:52:17 +000017432rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017433
17434 # OK, works on sane cases. Now check whether nonexistent headers
17435 # can be detected and how.
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h. */
17438#include <ac_nonexistent.h>
17439_ACEOF
17440if ac_fn_cxx_try_cpp "$LINENO"; then :
17441 # Broken: success on invalid input.
17442continue
17443else
17444 # Passes both tests.
17445ac_preproc_ok=:
17446break
17447fi
cristyda16f162011-02-19 23:52:17 +000017448rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017449
17450done
17451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017452rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017453if $ac_preproc_ok; then :
17454 break
17455fi
17456
17457 done
17458 ac_cv_prog_CXXCPP=$CXXCPP
17459
17460fi
17461 CXXCPP=$ac_cv_prog_CXXCPP
17462else
17463 ac_cv_prog_CXXCPP=$CXXCPP
17464fi
17465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17466$as_echo "$CXXCPP" >&6; }
17467ac_preproc_ok=false
17468for ac_cxx_preproc_warn_flag in '' yes
17469do
17470 # Use a header file that comes with gcc, so configuring glibc
17471 # with a fresh cross-compiler works.
17472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 # <limits.h> exists even on freestanding compilers.
17474 # On the NeXT, cc -E runs the code through the compiler's parser,
17475 # not just through cpp. "Syntax error" is here to catch this case.
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h. */
17478#ifdef __STDC__
17479# include <limits.h>
17480#else
17481# include <assert.h>
17482#endif
17483 Syntax error
17484_ACEOF
17485if ac_fn_cxx_try_cpp "$LINENO"; then :
17486
17487else
17488 # Broken: fails on valid input.
17489continue
17490fi
cristyda16f162011-02-19 23:52:17 +000017491rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017492
17493 # OK, works on sane cases. Now check whether nonexistent headers
17494 # can be detected and how.
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496/* end confdefs.h. */
17497#include <ac_nonexistent.h>
17498_ACEOF
17499if ac_fn_cxx_try_cpp "$LINENO"; then :
17500 # Broken: success on invalid input.
17501continue
17502else
17503 # Passes both tests.
17504ac_preproc_ok=:
17505break
17506fi
cristyda16f162011-02-19 23:52:17 +000017507rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017508
17509done
17510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017511rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017512if $ac_preproc_ok; then :
17513
17514else
17515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17517as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17518See \`config.log' for more details" "$LINENO" 5; }
17519fi
17520
17521ac_ext=c
17522ac_cpp='$CPP $CPPFLAGS'
17523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525ac_compiler_gnu=$ac_cv_c_compiler_gnu
17526
17527else
17528 _lt_caught_CXX_error=yes
17529fi
cristy73bd4a52010-10-05 11:24:23 +000017530
17531ac_ext=cpp
17532ac_cpp='$CXXCPP $CPPFLAGS'
17533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17536
17537archive_cmds_need_lc_CXX=no
17538allow_undefined_flag_CXX=
17539always_export_symbols_CXX=no
17540archive_expsym_cmds_CXX=
17541compiler_needs_object_CXX=no
17542export_dynamic_flag_spec_CXX=
17543hardcode_direct_CXX=no
17544hardcode_direct_absolute_CXX=no
17545hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017546hardcode_libdir_separator_CXX=
17547hardcode_minus_L_CXX=no
17548hardcode_shlibpath_var_CXX=unsupported
17549hardcode_automatic_CXX=no
17550inherit_rpath_CXX=no
17551module_cmds_CXX=
17552module_expsym_cmds_CXX=
17553link_all_deplibs_CXX=unknown
17554old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017555reload_flag_CXX=$reload_flag
17556reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017557no_undefined_flag_CXX=
17558whole_archive_flag_spec_CXX=
17559enable_shared_with_static_runtimes_CXX=no
17560
17561# Source file extension for C++ test sources.
17562ac_ext=cpp
17563
17564# Object file extension for compiled C++ test sources.
17565objext=o
17566objext_CXX=$objext
17567
17568# No sense in running all these tests if we already determined that
17569# the CXX compiler isn't working. Some variables (like enable_shared)
17570# are currently assumed to apply to all compilers on this platform,
17571# and will be corrupted by setting them based on a non-working compiler.
17572if test "$_lt_caught_CXX_error" != yes; then
17573 # Code to be used in simple compile tests
17574 lt_simple_compile_test_code="int some_variable = 0;"
17575
17576 # Code to be used in simple link tests
17577 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17578
17579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17580
17581
17582
17583
17584
17585
17586# If no C compiler was specified, use CC.
17587LTCC=${LTCC-"$CC"}
17588
17589# If no C compiler flags were specified, use CFLAGS.
17590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17591
17592# Allow CC to be a program name with arguments.
17593compiler=$CC
17594
17595
17596 # save warnings/boilerplate of simple test code
17597 ac_outfile=conftest.$ac_objext
17598echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17599eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17600_lt_compiler_boilerplate=`cat conftest.err`
17601$RM conftest*
17602
17603 ac_outfile=conftest.$ac_objext
17604echo "$lt_simple_link_test_code" >conftest.$ac_ext
17605eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17606_lt_linker_boilerplate=`cat conftest.err`
17607$RM -r conftest*
17608
17609
17610 # Allow CC to be a program name with arguments.
17611 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017612 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017613 lt_save_LD=$LD
17614 lt_save_GCC=$GCC
17615 GCC=$GXX
17616 lt_save_with_gnu_ld=$with_gnu_ld
17617 lt_save_path_LD=$lt_cv_path_LD
17618 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17619 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17620 else
17621 $as_unset lt_cv_prog_gnu_ld
17622 fi
17623 if test -n "${lt_cv_path_LDCXX+set}"; then
17624 lt_cv_path_LD=$lt_cv_path_LDCXX
17625 else
17626 $as_unset lt_cv_path_LD
17627 fi
17628 test -z "${LDCXX+set}" || LD=$LDCXX
17629 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017630 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017631 compiler=$CC
17632 compiler_CXX=$CC
17633 for cc_temp in $compiler""; do
17634 case $cc_temp in
17635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17637 \-*) ;;
17638 *) break;;
17639 esac
17640done
cristy0c60a692010-11-04 01:09:47 +000017641cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017642
17643
17644 if test -n "$compiler"; then
17645 # We don't want -fno-exception when compiling C++ code, so set the
17646 # no_builtin_flag separately
17647 if test "$GXX" = yes; then
17648 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17649 else
17650 lt_prog_compiler_no_builtin_flag_CXX=
17651 fi
17652
17653 if test "$GXX" = yes; then
17654 # Set up default GNU C++ configuration
17655
17656
17657
17658# Check whether --with-gnu-ld was given.
17659if test "${with_gnu_ld+set}" = set; then :
17660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17661else
17662 with_gnu_ld=no
17663fi
17664
17665ac_prog=ld
17666if test "$GCC" = yes; then
17667 # Check if gcc -print-prog-name=ld gives a path.
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17669$as_echo_n "checking for ld used by $CC... " >&6; }
17670 case $host in
17671 *-*-mingw*)
17672 # gcc leaves a trailing carriage return which upsets mingw
17673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17674 *)
17675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17676 esac
17677 case $ac_prog in
17678 # Accept absolute paths.
17679 [\\/]* | ?:[\\/]*)
17680 re_direlt='/[^/][^/]*/\.\./'
17681 # Canonicalize the pathname of ld
17682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17685 done
17686 test -z "$LD" && LD="$ac_prog"
17687 ;;
17688 "")
17689 # If it fails, then pretend we aren't using GCC.
17690 ac_prog=ld
17691 ;;
17692 *)
17693 # If it is relative, then search for the first ld in PATH.
17694 with_gnu_ld=unknown
17695 ;;
17696 esac
17697elif test "$with_gnu_ld" = yes; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17699$as_echo_n "checking for GNU ld... " >&6; }
17700else
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17702$as_echo_n "checking for non-GNU ld... " >&6; }
17703fi
cristyda16f162011-02-19 23:52:17 +000017704if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017705 $as_echo_n "(cached) " >&6
17706else
17707 if test -z "$LD"; then
17708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17709 for ac_dir in $PATH; do
17710 IFS="$lt_save_ifs"
17711 test -z "$ac_dir" && ac_dir=.
17712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17713 lt_cv_path_LD="$ac_dir/$ac_prog"
17714 # Check to see if the program is GNU ld. I'd rather use --version,
17715 # but apparently some variants of GNU ld only accept -v.
17716 # Break only if it was the GNU/non-GNU ld that we prefer.
17717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17718 *GNU* | *'with BFD'*)
17719 test "$with_gnu_ld" != no && break
17720 ;;
17721 *)
17722 test "$with_gnu_ld" != yes && break
17723 ;;
17724 esac
17725 fi
17726 done
17727 IFS="$lt_save_ifs"
17728else
17729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17730fi
17731fi
17732
17733LD="$lt_cv_path_LD"
17734if test -n "$LD"; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17736$as_echo "$LD" >&6; }
17737else
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739$as_echo "no" >&6; }
17740fi
cristy98dddb52010-11-04 00:30:15 +000017741test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17743$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017744if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017745 $as_echo_n "(cached) " >&6
17746else
17747 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17748case `$LD -v 2>&1 </dev/null` in
17749*GNU* | *'with BFD'*)
17750 lt_cv_prog_gnu_ld=yes
17751 ;;
17752*)
17753 lt_cv_prog_gnu_ld=no
17754 ;;
17755esac
17756fi
17757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17758$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17759with_gnu_ld=$lt_cv_prog_gnu_ld
17760
17761
17762
17763
17764
17765
17766
17767 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17768 # archiving commands below assume that GNU ld is being used.
17769 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017770 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771 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 +000017772
17773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17775
17776 # If archive_cmds runs LD, not CC, wlarc should be empty
17777 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17778 # investigate it a little bit more. (MM)
17779 wlarc='${wl}'
17780
17781 # ancient GNU ld didn't support --whole-archive et. al.
17782 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17783 $GREP 'no-whole-archive' > /dev/null; then
17784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17785 else
17786 whole_archive_flag_spec_CXX=
17787 fi
17788 else
17789 with_gnu_ld=no
17790 wlarc=
17791
17792 # A generic and very simple default shared library creation
17793 # command for GNU C++ for the case where it uses the native
17794 # linker, instead of GNU ld. If possible, this setting should
17795 # overridden to take advantage of the native linker features on
17796 # the platform it is being used on.
17797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17798 fi
17799
17800 # Commands to make compiler produce verbose output that lists
17801 # what "hidden" libraries, object files and flags are used when
17802 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017803 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017804
17805 else
17806 GXX=no
17807 with_gnu_ld=no
17808 wlarc=
17809 fi
17810
17811 # PORTME: fill in a description of your system's C++ link characteristics
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17813$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17814 ld_shlibs_CXX=yes
17815 case $host_os in
17816 aix3*)
17817 # FIXME: insert proper C++ library support
17818 ld_shlibs_CXX=no
17819 ;;
17820 aix[4-9]*)
17821 if test "$host_cpu" = ia64; then
17822 # On IA64, the linker does run time linking by default, so we don't
17823 # have to do anything special.
17824 aix_use_runtimelinking=no
17825 exp_sym_flag='-Bexport'
17826 no_entry_flag=""
17827 else
17828 aix_use_runtimelinking=no
17829
17830 # Test if we are trying to use run time linking or normal
17831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17832 # need to do runtime linking.
17833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17834 for ld_flag in $LDFLAGS; do
17835 case $ld_flag in
17836 *-brtl*)
17837 aix_use_runtimelinking=yes
17838 break
17839 ;;
17840 esac
17841 done
17842 ;;
17843 esac
17844
17845 exp_sym_flag='-bexport'
17846 no_entry_flag='-bnoentry'
17847 fi
17848
17849 # When large executables or shared objects are built, AIX ld can
17850 # have problems creating the table of contents. If linking a library
17851 # or program results in "error TOC overflow" add -mminimal-toc to
17852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17854
17855 archive_cmds_CXX=''
17856 hardcode_direct_CXX=yes
17857 hardcode_direct_absolute_CXX=yes
17858 hardcode_libdir_separator_CXX=':'
17859 link_all_deplibs_CXX=yes
17860 file_list_spec_CXX='${wl}-f,'
17861
17862 if test "$GXX" = yes; then
17863 case $host_os in aix4.[012]|aix4.[012].*)
17864 # We only want to do this on AIX 4.2 and lower, the check
17865 # below for broken collect2 doesn't work under 4.3+
17866 collect2name=`${CC} -print-prog-name=collect2`
17867 if test -f "$collect2name" &&
17868 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17869 then
17870 # We have reworked collect2
17871 :
17872 else
17873 # We have old collect2
17874 hardcode_direct_CXX=unsupported
17875 # It fails to find uninstalled libraries when the uninstalled
17876 # path is not listed in the libpath. Setting hardcode_minus_L
17877 # to unsupported forces relinking
17878 hardcode_minus_L_CXX=yes
17879 hardcode_libdir_flag_spec_CXX='-L$libdir'
17880 hardcode_libdir_separator_CXX=
17881 fi
17882 esac
17883 shared_flag='-shared'
17884 if test "$aix_use_runtimelinking" = yes; then
17885 shared_flag="$shared_flag "'${wl}-G'
17886 fi
17887 else
17888 # not using gcc
17889 if test "$host_cpu" = ia64; then
17890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17891 # chokes on -Wl,-G. The following line is correct:
17892 shared_flag='-G'
17893 else
17894 if test "$aix_use_runtimelinking" = yes; then
17895 shared_flag='${wl}-G'
17896 else
17897 shared_flag='${wl}-bM:SRE'
17898 fi
17899 fi
17900 fi
17901
17902 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17903 # It seems that -bexpall does not export symbols beginning with
17904 # underscore (_), so it is better to generate a list of symbols to
17905 # export.
17906 always_export_symbols_CXX=yes
17907 if test "$aix_use_runtimelinking" = yes; then
17908 # Warning - without using the other runtime loading flags (-brtl),
17909 # -berok will link without error, but may produce a broken library.
17910 allow_undefined_flag_CXX='-berok'
17911 # Determine the default libpath from the value encoded in an empty
17912 # executable.
cristyda16f162011-02-19 23:52:17 +000017913 if test "${lt_cv_aix_libpath+set}" = set; then
17914 aix_libpath=$lt_cv_aix_libpath
17915else
17916 if ${lt_cv_aix_libpath__CXX+:} false; then :
17917 $as_echo_n "(cached) " >&6
17918else
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017920/* end confdefs.h. */
17921
17922int
17923main ()
17924{
17925
17926 ;
17927 return 0;
17928}
17929_ACEOF
17930if ac_fn_cxx_try_link "$LINENO"; then :
17931
cristyda16f162011-02-19 23:52:17 +000017932 lt_aix_libpath_sed='
17933 /Import File Strings/,/^$/ {
17934 /^0/ {
17935 s/^0 *\([^ ]*\) *$/\1/
17936 p
17937 }
17938 }'
17939 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17940 # Check for a 64-bit object if we didn't find anything.
17941 if test -z "$lt_cv_aix_libpath__CXX"; then
17942 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17943 fi
cristy73bd4a52010-10-05 11:24:23 +000017944fi
17945rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017947 if test -z "$lt_cv_aix_libpath__CXX"; then
17948 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17949 fi
17950
17951fi
17952
17953 aix_libpath=$lt_cv_aix_libpath__CXX
17954fi
cristy73bd4a52010-10-05 11:24:23 +000017955
17956 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17957
cristy0c60a692010-11-04 01:09:47 +000017958 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 +000017959 else
17960 if test "$host_cpu" = ia64; then
17961 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17962 allow_undefined_flag_CXX="-z nodefs"
17963 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"
17964 else
17965 # Determine the default libpath from the value encoded in an
17966 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017967 if test "${lt_cv_aix_libpath+set}" = set; then
17968 aix_libpath=$lt_cv_aix_libpath
17969else
17970 if ${lt_cv_aix_libpath__CXX+:} false; then :
17971 $as_echo_n "(cached) " >&6
17972else
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017974/* end confdefs.h. */
17975
17976int
17977main ()
17978{
17979
17980 ;
17981 return 0;
17982}
17983_ACEOF
17984if ac_fn_cxx_try_link "$LINENO"; then :
17985
cristyda16f162011-02-19 23:52:17 +000017986 lt_aix_libpath_sed='
17987 /Import File Strings/,/^$/ {
17988 /^0/ {
17989 s/^0 *\([^ ]*\) *$/\1/
17990 p
17991 }
17992 }'
17993 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17994 # Check for a 64-bit object if we didn't find anything.
17995 if test -z "$lt_cv_aix_libpath__CXX"; then
17996 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17997 fi
cristy73bd4a52010-10-05 11:24:23 +000017998fi
17999rm -f core conftest.err conftest.$ac_objext \
18000 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018001 if test -z "$lt_cv_aix_libpath__CXX"; then
18002 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18003 fi
18004
18005fi
18006
18007 aix_libpath=$lt_cv_aix_libpath__CXX
18008fi
cristy73bd4a52010-10-05 11:24:23 +000018009
18010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18011 # Warning - without using the other run time loading flags,
18012 # -berok will link without error, but may produce a broken library.
18013 no_undefined_flag_CXX=' ${wl}-bernotok'
18014 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018015 if test "$with_gnu_ld" = yes; then
18016 # We only use this code for GNU lds that support --whole-archive.
18017 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18018 else
18019 # Exported symbols can be pulled into shared objects from archives
18020 whole_archive_flag_spec_CXX='$convenience'
18021 fi
cristy73bd4a52010-10-05 11:24:23 +000018022 archive_cmds_need_lc_CXX=yes
18023 # This is similar to how AIX traditionally builds its shared
18024 # libraries.
18025 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'
18026 fi
18027 fi
18028 ;;
18029
18030 beos*)
18031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18032 allow_undefined_flag_CXX=unsupported
18033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18034 # support --undefined. This deserves some investigation. FIXME
18035 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036 else
18037 ld_shlibs_CXX=no
18038 fi
18039 ;;
18040
18041 chorus*)
18042 case $cc_basename in
18043 *)
18044 # FIXME: insert proper C++ library support
18045 ld_shlibs_CXX=no
18046 ;;
18047 esac
18048 ;;
18049
18050 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018051 case $GXX,$cc_basename in
18052 ,cl* | no,cl*)
18053 # Native MSVC
18054 # hardcode_libdir_flag_spec is actually meaningless, as there is
18055 # no search path for DLLs.
18056 hardcode_libdir_flag_spec_CXX=' '
18057 allow_undefined_flag_CXX=unsupported
18058 always_export_symbols_CXX=yes
18059 file_list_spec_CXX='@'
18060 # Tell ltmain to make .lib files, not .a files.
18061 libext=lib
18062 # Tell ltmain to make .dll files, not .so files.
18063 shrext_cmds=".dll"
18064 # FIXME: Setting linknames here is a bad hack.
18065 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18066 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18067 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18068 else
18069 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18070 fi~
18071 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18072 linknames='
18073 # The linker will not automatically build a static lib if we build a DLL.
18074 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18075 enable_shared_with_static_runtimes_CXX=yes
18076 # Don't use ranlib
18077 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18078 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18079 lt_tool_outputfile="@TOOL_OUTPUT@"~
18080 case $lt_outputfile in
18081 *.exe|*.EXE) ;;
18082 *)
18083 lt_outputfile="$lt_outputfile.exe"
18084 lt_tool_outputfile="$lt_tool_outputfile.exe"
18085 ;;
18086 esac~
18087 func_to_tool_file "$lt_outputfile"~
18088 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18089 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18090 $RM "$lt_outputfile.manifest";
18091 fi'
18092 ;;
18093 *)
18094 # g++
18095 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18096 # as there is no search path for DLLs.
18097 hardcode_libdir_flag_spec_CXX='-L$libdir'
18098 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18099 allow_undefined_flag_CXX=unsupported
18100 always_export_symbols_CXX=no
18101 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018102
cristyda16f162011-02-19 23:52:17 +000018103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18104 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'
18105 # If the export-symbols file already is a .def file (1st line
18106 # is EXPORTS), use it as is; otherwise, prepend...
18107 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18108 cp $export_symbols $output_objdir/$soname.def;
18109 else
18110 echo EXPORTS > $output_objdir/$soname.def;
18111 cat $export_symbols >> $output_objdir/$soname.def;
18112 fi~
18113 $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'
18114 else
18115 ld_shlibs_CXX=no
18116 fi
18117 ;;
18118 esac
18119 ;;
cristy73bd4a52010-10-05 11:24:23 +000018120 darwin* | rhapsody*)
18121
18122
18123 archive_cmds_need_lc_CXX=no
18124 hardcode_direct_CXX=no
18125 hardcode_automatic_CXX=yes
18126 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018127 if test "$lt_cv_ld_force_load" = "yes"; then
18128 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 +000018129
cristy0c60a692010-11-04 01:09:47 +000018130 else
18131 whole_archive_flag_spec_CXX=''
18132 fi
cristy73bd4a52010-10-05 11:24:23 +000018133 link_all_deplibs_CXX=yes
18134 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18135 case $cc_basename in
18136 ifort*) _lt_dar_can_shared=yes ;;
18137 *) _lt_dar_can_shared=$GCC ;;
18138 esac
18139 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018140 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018141 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}"
18142 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18143 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}"
18144 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}"
18145 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18146 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}"
18147 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}"
18148 fi
18149
18150 else
18151 ld_shlibs_CXX=no
18152 fi
18153
18154 ;;
18155
18156 dgux*)
18157 case $cc_basename in
18158 ec++*)
18159 # FIXME: insert proper C++ library support
18160 ld_shlibs_CXX=no
18161 ;;
18162 ghcx*)
18163 # Green Hills C++ Compiler
18164 # FIXME: insert proper C++ library support
18165 ld_shlibs_CXX=no
18166 ;;
18167 *)
18168 # FIXME: insert proper C++ library support
18169 ld_shlibs_CXX=no
18170 ;;
18171 esac
18172 ;;
18173
cristy99bd5232011-12-07 14:38:20 +000018174 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018175 # C++ shared libraries reported to be fairly broken before
18176 # switch to ELF
18177 ld_shlibs_CXX=no
18178 ;;
18179
18180 freebsd-elf*)
18181 archive_cmds_need_lc_CXX=no
18182 ;;
18183
18184 freebsd* | dragonfly*)
18185 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18186 # conventions
18187 ld_shlibs_CXX=yes
18188 ;;
18189
18190 gnu*)
18191 ;;
18192
cristy0c60a692010-11-04 01:09:47 +000018193 haiku*)
18194 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18195 link_all_deplibs_CXX=yes
18196 ;;
18197
cristy73bd4a52010-10-05 11:24:23 +000018198 hpux9*)
18199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18200 hardcode_libdir_separator_CXX=:
18201 export_dynamic_flag_spec_CXX='${wl}-E'
18202 hardcode_direct_CXX=yes
18203 hardcode_minus_L_CXX=yes # Not in the search PATH,
18204 # but as the default
18205 # location of the library.
18206
18207 case $cc_basename in
18208 CC*)
18209 # FIXME: insert proper C++ library support
18210 ld_shlibs_CXX=no
18211 ;;
18212 aCC*)
18213 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'
18214 # Commands to make compiler produce verbose output that lists
18215 # what "hidden" libraries, object files and flags are used when
18216 # linking a shared library.
18217 #
18218 # There doesn't appear to be a way to prevent this compiler from
18219 # explicitly linking system object files so we need to strip them
18220 # from the output so that they don't get included in the library
18221 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018222 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 +000018223 ;;
18224 *)
18225 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018226 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 +000018227 else
18228 # FIXME: insert proper C++ library support
18229 ld_shlibs_CXX=no
18230 fi
18231 ;;
18232 esac
18233 ;;
18234
18235 hpux10*|hpux11*)
18236 if test $with_gnu_ld = no; then
18237 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18238 hardcode_libdir_separator_CXX=:
18239
18240 case $host_cpu in
18241 hppa*64*|ia64*)
18242 ;;
18243 *)
18244 export_dynamic_flag_spec_CXX='${wl}-E'
18245 ;;
18246 esac
18247 fi
18248 case $host_cpu in
18249 hppa*64*|ia64*)
18250 hardcode_direct_CXX=no
18251 hardcode_shlibpath_var_CXX=no
18252 ;;
18253 *)
18254 hardcode_direct_CXX=yes
18255 hardcode_direct_absolute_CXX=yes
18256 hardcode_minus_L_CXX=yes # Not in the search PATH,
18257 # but as the default
18258 # location of the library.
18259 ;;
18260 esac
18261
18262 case $cc_basename in
18263 CC*)
18264 # FIXME: insert proper C++ library support
18265 ld_shlibs_CXX=no
18266 ;;
18267 aCC*)
18268 case $host_cpu in
18269 hppa*64*)
18270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18271 ;;
18272 ia64*)
18273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18274 ;;
18275 *)
18276 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18277 ;;
18278 esac
18279 # Commands to make compiler produce verbose output that lists
18280 # what "hidden" libraries, object files and flags are used when
18281 # linking a shared library.
18282 #
18283 # There doesn't appear to be a way to prevent this compiler from
18284 # explicitly linking system object files so we need to strip them
18285 # from the output so that they don't get included in the library
18286 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018287 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 +000018288 ;;
18289 *)
18290 if test "$GXX" = yes; then
18291 if test $with_gnu_ld = no; then
18292 case $host_cpu in
18293 hppa*64*)
18294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18295 ;;
18296 ia64*)
cristyda16f162011-02-19 23:52:17 +000018297 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 +000018298 ;;
18299 *)
cristyda16f162011-02-19 23:52:17 +000018300 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 +000018301 ;;
18302 esac
18303 fi
18304 else
18305 # FIXME: insert proper C++ library support
18306 ld_shlibs_CXX=no
18307 fi
18308 ;;
18309 esac
18310 ;;
18311
18312 interix[3-9]*)
18313 hardcode_direct_CXX=no
18314 hardcode_shlibpath_var_CXX=no
18315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18316 export_dynamic_flag_spec_CXX='${wl}-E'
18317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18318 # Instead, shared libraries are loaded at an image base (0x10000000 by
18319 # default) and relocated if they conflict, which is a slow very memory
18320 # consuming and fragmenting process. To avoid this, we pick a random,
18321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18323 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'
18324 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'
18325 ;;
18326 irix5* | irix6*)
18327 case $cc_basename in
18328 CC*)
18329 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018330 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 +000018331
18332 # Archives containing C++ object files must be created using
18333 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18334 # necessary to make sure instantiated templates are included
18335 # in the archive.
18336 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18337 ;;
18338 *)
18339 if test "$GXX" = yes; then
18340 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018341 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 +000018342 else
cristyda16f162011-02-19 23:52:17 +000018343 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 +000018344 fi
18345 fi
18346 link_all_deplibs_CXX=yes
18347 ;;
18348 esac
18349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18350 hardcode_libdir_separator_CXX=:
18351 inherit_rpath_CXX=yes
18352 ;;
18353
cristy0c60a692010-11-04 01:09:47 +000018354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018355 case $cc_basename in
18356 KCC*)
18357 # Kuck and Associates, Inc. (KAI) C++ Compiler
18358
18359 # KCC will only create a shared library if the output file
18360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18361 # to its proper name (with version) after linking.
18362 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'
18363 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'
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 $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 +000018373
18374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18376
18377 # Archives containing C++ object files must be created using
18378 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18379 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18380 ;;
18381 icpc* | ecpc* )
18382 # Intel C++
18383 with_gnu_ld=yes
18384 # version 8.0 and above of icpc choke on multiply defined symbols
18385 # if we add $predep_objects and $postdep_objects, however 7.1 and
18386 # earlier do not add the objects themselves.
18387 case `$CC -V 2>&1` in
18388 *"Version 7."*)
18389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18390 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'
18391 ;;
18392 *) # Version 8.0 or newer
18393 tmp_idyn=
18394 case $host_cpu in
18395 ia64*) tmp_idyn=' -i_dynamic';;
18396 esac
18397 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18398 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'
18399 ;;
18400 esac
18401 archive_cmds_need_lc_CXX=no
18402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18404 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18405 ;;
18406 pgCC* | pgcpp*)
18407 # Portland Group C++ compiler
18408 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018409 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018410 prelink_cmds_CXX='tpldir=Template.dir~
18411 rm -rf $tpldir~
18412 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018413 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018414 old_archive_cmds_CXX='tpldir=Template.dir~
18415 rm -rf $tpldir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018417 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018418 $RANLIB $oldlib'
18419 archive_cmds_CXX='tpldir=Template.dir~
18420 rm -rf $tpldir~
18421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018422 $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 +000018423 archive_expsym_cmds_CXX='tpldir=Template.dir~
18424 rm -rf $tpldir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018426 $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 +000018427 ;;
cristy0c60a692010-11-04 01:09:47 +000018428 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018429 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18430 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'
18431 ;;
18432 esac
18433
18434 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018436 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 +000018437 ;;
18438 cxx*)
18439 # Compaq C++
18440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18441 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'
18442
18443 runpath_var=LD_RUN_PATH
18444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18445 hardcode_libdir_separator_CXX=:
18446
18447 # Commands to make compiler produce verbose output that lists
18448 # what "hidden" libraries, object files and flags are used when
18449 # linking a shared library.
18450 #
18451 # There doesn't appear to be a way to prevent this compiler from
18452 # explicitly linking system object files so we need to strip them
18453 # from the output so that they don't get included in the library
18454 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018455 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 +000018456 ;;
cristy0c60a692010-11-04 01:09:47 +000018457 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018458 # IBM XL 8.0 on PPC, with GNU ld
18459 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18461 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18462 if test "x$supports_anon_versioning" = xyes; then
18463 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18465 echo "local: *; };" >> $output_objdir/$libname.ver~
18466 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18467 fi
18468 ;;
18469 *)
18470 case `$CC -V 2>&1 | sed 5q` in
18471 *Sun\ C*)
18472 # Sun C++ 5.9
18473 no_undefined_flag_CXX=' -zdefs'
18474 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18475 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'
18476 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018477 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 +000018478 compiler_needs_object_CXX=yes
18479
18480 # Not sure whether something based on
18481 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18482 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018483 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018484
18485 # Archives containing C++ object files must be created using
18486 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18487 # necessary to make sure instantiated templates are included
18488 # in the archive.
18489 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18490 ;;
18491 esac
18492 ;;
18493 esac
18494 ;;
18495
18496 lynxos*)
18497 # FIXME: insert proper C++ library support
18498 ld_shlibs_CXX=no
18499 ;;
18500
18501 m88k*)
18502 # FIXME: insert proper C++ library support
18503 ld_shlibs_CXX=no
18504 ;;
18505
18506 mvs*)
18507 case $cc_basename in
18508 cxx*)
18509 # FIXME: insert proper C++ library support
18510 ld_shlibs_CXX=no
18511 ;;
18512 *)
18513 # FIXME: insert proper C++ library support
18514 ld_shlibs_CXX=no
18515 ;;
18516 esac
18517 ;;
18518
18519 netbsd*)
18520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18521 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18522 wlarc=
18523 hardcode_libdir_flag_spec_CXX='-R$libdir'
18524 hardcode_direct_CXX=yes
18525 hardcode_shlibpath_var_CXX=no
18526 fi
18527 # Workaround some broken pre-1.5 toolchains
18528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18529 ;;
18530
18531 *nto* | *qnx*)
18532 ld_shlibs_CXX=yes
18533 ;;
18534
18535 openbsd2*)
18536 # C++ shared libraries are fairly broken
18537 ld_shlibs_CXX=no
18538 ;;
18539
18540 openbsd*)
18541 if test -f /usr/libexec/ld.so; then
18542 hardcode_direct_CXX=yes
18543 hardcode_shlibpath_var_CXX=no
18544 hardcode_direct_absolute_CXX=yes
18545 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18548 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18549 export_dynamic_flag_spec_CXX='${wl}-E'
18550 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18551 fi
cristy0c60a692010-11-04 01:09:47 +000018552 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018553 else
18554 ld_shlibs_CXX=no
18555 fi
18556 ;;
18557
18558 osf3* | osf4* | osf5*)
18559 case $cc_basename in
18560 KCC*)
18561 # Kuck and Associates, Inc. (KAI) C++ Compiler
18562
18563 # KCC will only create a shared library if the output file
18564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18565 # to its proper name (with version) after linking.
18566 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'
18567
18568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18569 hardcode_libdir_separator_CXX=:
18570
18571 # Archives containing C++ object files must be created using
18572 # the KAI C++ compiler.
18573 case $host in
18574 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18575 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18576 esac
18577 ;;
18578 RCC*)
18579 # Rational C++ 2.4.1
18580 # FIXME: insert proper C++ library support
18581 ld_shlibs_CXX=no
18582 ;;
18583 cxx*)
18584 case $host in
18585 osf3*)
18586 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018587 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 +000018588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 ;;
18590 *)
18591 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018592 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 +000018593 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18594 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018595 $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 +000018596 $RM $lib.exp'
18597 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18598 ;;
18599 esac
18600
18601 hardcode_libdir_separator_CXX=:
18602
18603 # Commands to make compiler produce verbose output that lists
18604 # what "hidden" libraries, object files and flags are used when
18605 # linking a shared library.
18606 #
18607 # There doesn't appear to be a way to prevent this compiler from
18608 # explicitly linking system object files so we need to strip them
18609 # from the output so that they don't get included in the library
18610 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018611 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 +000018612 ;;
18613 *)
18614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18616 case $host in
18617 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018618 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 +000018619 ;;
18620 *)
cristyda16f162011-02-19 23:52:17 +000018621 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 +000018622 ;;
18623 esac
18624
18625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18626 hardcode_libdir_separator_CXX=:
18627
18628 # Commands to make compiler produce verbose output that lists
18629 # what "hidden" libraries, object files and flags are used when
18630 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018632
18633 else
18634 # FIXME: insert proper C++ library support
18635 ld_shlibs_CXX=no
18636 fi
18637 ;;
18638 esac
18639 ;;
18640
18641 psos*)
18642 # FIXME: insert proper C++ library support
18643 ld_shlibs_CXX=no
18644 ;;
18645
18646 sunos4*)
18647 case $cc_basename in
18648 CC*)
18649 # Sun C++ 4.x
18650 # FIXME: insert proper C++ library support
18651 ld_shlibs_CXX=no
18652 ;;
18653 lcc*)
18654 # Lucid
18655 # FIXME: insert proper C++ library support
18656 ld_shlibs_CXX=no
18657 ;;
18658 *)
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18661 ;;
18662 esac
18663 ;;
18664
18665 solaris*)
18666 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018667 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018668 # Sun C++ 4.2, 5.x and Centerline C++
18669 archive_cmds_need_lc_CXX=yes
18670 no_undefined_flag_CXX=' -zdefs'
18671 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18672 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18673 $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'
18674
18675 hardcode_libdir_flag_spec_CXX='-R$libdir'
18676 hardcode_shlibpath_var_CXX=no
18677 case $host_os in
18678 solaris2.[0-5] | solaris2.[0-5].*) ;;
18679 *)
18680 # The compiler driver will combine and reorder linker options,
18681 # but understands `-z linker_flag'.
18682 # Supported since Solaris 2.6 (maybe 2.5.1?)
18683 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18684 ;;
18685 esac
18686 link_all_deplibs_CXX=yes
18687
cristy0c60a692010-11-04 01:09:47 +000018688 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018689
18690 # Archives containing C++ object files must be created using
18691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18692 # necessary to make sure instantiated templates are included
18693 # in the archive.
18694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18695 ;;
18696 gcx*)
18697 # Green Hills C++ Compiler
18698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18699
18700 # The C++ compiler must be used to create the archive.
18701 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18702 ;;
18703 *)
18704 # GNU C++ compiler with Solaris linker
18705 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18706 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18707 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018708 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 +000018709 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 +000018710 $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 +000018711
18712 # Commands to make compiler produce verbose output that lists
18713 # what "hidden" libraries, object files and flags are used when
18714 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018715 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018716 else
18717 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18718 # platform.
18719 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18720 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18721 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18722
18723 # Commands to make compiler produce verbose output that lists
18724 # what "hidden" libraries, object files and flags are used when
18725 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018726 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018727 fi
18728
18729 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18730 case $host_os in
18731 solaris2.[0-5] | solaris2.[0-5].*) ;;
18732 *)
18733 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18734 ;;
18735 esac
18736 fi
18737 ;;
18738 esac
18739 ;;
18740
18741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18742 no_undefined_flag_CXX='${wl}-z,text'
18743 archive_cmds_need_lc_CXX=no
18744 hardcode_shlibpath_var_CXX=no
18745 runpath_var='LD_RUN_PATH'
18746
18747 case $cc_basename in
18748 CC*)
18749 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18751 ;;
18752 *)
18753 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 ;;
18756 esac
18757 ;;
18758
18759 sysv5* | sco3.2v5* | sco5v6*)
18760 # Note: We can NOT use -z defs as we might desire, because we do not
18761 # link with -lc, and that would cause any symbols used from libc to
18762 # always be unresolved, which means just about no library would
18763 # ever link correctly. If we're not using GNU ld we use -z text
18764 # though, which does catch some bad symbols but isn't as heavy-handed
18765 # as -z defs.
18766 no_undefined_flag_CXX='${wl}-z,text'
18767 allow_undefined_flag_CXX='${wl}-z,nodefs'
18768 archive_cmds_need_lc_CXX=no
18769 hardcode_shlibpath_var_CXX=no
18770 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18771 hardcode_libdir_separator_CXX=':'
18772 link_all_deplibs_CXX=yes
18773 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18774 runpath_var='LD_RUN_PATH'
18775
18776 case $cc_basename in
18777 CC*)
18778 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18779 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 +000018780 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18781 '"$old_archive_cmds_CXX"
18782 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18783 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018784 ;;
18785 *)
18786 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18788 ;;
18789 esac
18790 ;;
18791
18792 tandem*)
18793 case $cc_basename in
18794 NCC*)
18795 # NonStop-UX NCC 3.20
18796 # FIXME: insert proper C++ library support
18797 ld_shlibs_CXX=no
18798 ;;
18799 *)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803 esac
18804 ;;
18805
18806 vxworks*)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810
18811 *)
18812 # FIXME: insert proper C++ library support
18813 ld_shlibs_CXX=no
18814 ;;
18815 esac
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18818$as_echo "$ld_shlibs_CXX" >&6; }
18819 test "$ld_shlibs_CXX" = no && can_build_shared=no
18820
18821 GCC_CXX="$GXX"
18822 LD_CXX="$LD"
18823
18824 ## CAVEAT EMPTOR:
18825 ## There is no encapsulation within the following macros, do not change
18826 ## the running order or otherwise move them around unless you know exactly
18827 ## what you are doing...
18828 # Dependencies to place before and after the object being linked:
18829predep_objects_CXX=
18830postdep_objects_CXX=
18831predeps_CXX=
18832postdeps_CXX=
18833compiler_lib_search_path_CXX=
18834
18835cat > conftest.$ac_ext <<_LT_EOF
18836class Foo
18837{
18838public:
18839 Foo (void) { a = 0; }
18840private:
18841 int a;
18842};
18843_LT_EOF
18844
cristyda16f162011-02-19 23:52:17 +000018845
18846_lt_libdeps_save_CFLAGS=$CFLAGS
18847case "$CC $CFLAGS " in #(
18848*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18849*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018850*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018851esac
18852
cristy73bd4a52010-10-05 11:24:23 +000018853if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18854 (eval $ac_compile) 2>&5
18855 ac_status=$?
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; then
18858 # Parse the compiler output and extract the necessary
18859 # objects, libraries and library flags.
18860
18861 # Sentinel used to keep track of whether or not we are before
18862 # the conftest object file.
18863 pre_test_object_deps_done=no
18864
18865 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018866 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018867
18868 -L* | -R* | -l*)
18869 # Some compilers place space between "-{L,R}" and the path.
18870 # Remove the space.
18871 if test $p = "-L" ||
18872 test $p = "-R"; then
18873 prev=$p
18874 continue
cristy73bd4a52010-10-05 11:24:23 +000018875 fi
18876
cristyda16f162011-02-19 23:52:17 +000018877 # Expand the sysroot to ease extracting the directories later.
18878 if test -z "$prev"; then
18879 case $p in
18880 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18881 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18882 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18883 esac
18884 fi
18885 case $p in
18886 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18887 esac
cristy73bd4a52010-10-05 11:24:23 +000018888 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018889 case ${prev} in
18890 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018891 # Internal compiler library paths should come after those
18892 # provided the user. The postdeps already come after the
18893 # user supplied libs so there is no need to process them.
18894 if test -z "$compiler_lib_search_path_CXX"; then
18895 compiler_lib_search_path_CXX="${prev}${p}"
18896 else
18897 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18898 fi
18899 ;;
18900 # The "-l" case would never come before the object being
18901 # linked, so don't bother handling this case.
18902 esac
18903 else
18904 if test -z "$postdeps_CXX"; then
18905 postdeps_CXX="${prev}${p}"
18906 else
18907 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18908 fi
18909 fi
cristyda16f162011-02-19 23:52:17 +000018910 prev=
cristy73bd4a52010-10-05 11:24:23 +000018911 ;;
18912
cristyda16f162011-02-19 23:52:17 +000018913 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018914 *.$objext)
18915 # This assumes that the test object file only shows up
18916 # once in the compiler output.
18917 if test "$p" = "conftest.$objext"; then
18918 pre_test_object_deps_done=yes
18919 continue
18920 fi
18921
18922 if test "$pre_test_object_deps_done" = no; then
18923 if test -z "$predep_objects_CXX"; then
18924 predep_objects_CXX="$p"
18925 else
18926 predep_objects_CXX="$predep_objects_CXX $p"
18927 fi
18928 else
18929 if test -z "$postdep_objects_CXX"; then
18930 postdep_objects_CXX="$p"
18931 else
18932 postdep_objects_CXX="$postdep_objects_CXX $p"
18933 fi
18934 fi
18935 ;;
18936
18937 *) ;; # Ignore the rest.
18938
18939 esac
18940 done
18941
18942 # Clean up.
18943 rm -f a.out a.exe
18944else
18945 echo "libtool.m4: error: problem compiling CXX test program"
18946fi
18947
18948$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018949CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018950
18951# PORTME: override above test on systems where it is broken
18952case $host_os in
18953interix[3-9]*)
18954 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18955 # hack all around it, let's just trust "g++" to DTRT.
18956 predep_objects_CXX=
18957 postdep_objects_CXX=
18958 postdeps_CXX=
18959 ;;
18960
18961linux*)
18962 case `$CC -V 2>&1 | sed 5q` in
18963 *Sun\ C*)
18964 # Sun C++ 5.9
18965
18966 # The more standards-conforming stlport4 library is
18967 # incompatible with the Cstd library. Avoid specifying
18968 # it if it's in CXXFLAGS. Ignore libCrun as
18969 # -library=stlport4 depends on it.
18970 case " $CXX $CXXFLAGS " in
18971 *" -library=stlport4 "*)
18972 solaris_use_stlport4=yes
18973 ;;
18974 esac
18975
18976 if test "$solaris_use_stlport4" != yes; then
18977 postdeps_CXX='-library=Cstd -library=Crun'
18978 fi
18979 ;;
18980 esac
18981 ;;
18982
18983solaris*)
18984 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018985 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018986 # The more standards-conforming stlport4 library is
18987 # incompatible with the Cstd library. Avoid specifying
18988 # it if it's in CXXFLAGS. Ignore libCrun as
18989 # -library=stlport4 depends on it.
18990 case " $CXX $CXXFLAGS " in
18991 *" -library=stlport4 "*)
18992 solaris_use_stlport4=yes
18993 ;;
18994 esac
18995
18996 # Adding this requires a known-good setup of shared libraries for
18997 # Sun compiler versions before 5.6, else PIC objects from an old
18998 # archive will be linked into the output, leading to subtle bugs.
18999 if test "$solaris_use_stlport4" != yes; then
19000 postdeps_CXX='-library=Cstd -library=Crun'
19001 fi
19002 ;;
19003 esac
19004 ;;
19005esac
19006
19007
19008case " $postdeps_CXX " in
19009*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19010esac
19011 compiler_lib_search_dirs_CXX=
19012if test -n "${compiler_lib_search_path_CXX}"; then
19013 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19014fi
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046 lt_prog_compiler_wl_CXX=
19047lt_prog_compiler_pic_CXX=
19048lt_prog_compiler_static_CXX=
19049
cristy73bd4a52010-10-05 11:24:23 +000019050
19051 # C++ specific cases for pic, static, wl, etc.
19052 if test "$GXX" = yes; then
19053 lt_prog_compiler_wl_CXX='-Wl,'
19054 lt_prog_compiler_static_CXX='-static'
19055
19056 case $host_os in
19057 aix*)
19058 # All AIX code is PIC.
19059 if test "$host_cpu" = ia64; then
19060 # AIX 5 now supports IA64 processor
19061 lt_prog_compiler_static_CXX='-Bstatic'
19062 fi
19063 ;;
19064
19065 amigaos*)
19066 case $host_cpu in
19067 powerpc)
19068 # see comment about AmigaOS4 .so support
19069 lt_prog_compiler_pic_CXX='-fPIC'
19070 ;;
19071 m68k)
19072 # FIXME: we need at least 68020 code to build shared libraries, but
19073 # adding the `-m68020' flag to GCC prevents building anything better,
19074 # like `-m68040'.
19075 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19076 ;;
19077 esac
19078 ;;
19079
19080 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19081 # PIC is the default for these OSes.
19082 ;;
19083 mingw* | cygwin* | os2* | pw32* | cegcc*)
19084 # This hack is so that the source file can tell whether it is being
19085 # built for inclusion in a dll (and should export symbols for example).
19086 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19087 # (--disable-auto-import) libraries
19088 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19089 ;;
19090 darwin* | rhapsody*)
19091 # PIC is the default on this platform
19092 # Common symbols not allowed in MH_DYLIB files
19093 lt_prog_compiler_pic_CXX='-fno-common'
19094 ;;
19095 *djgpp*)
19096 # DJGPP does not support shared libraries at all
19097 lt_prog_compiler_pic_CXX=
19098 ;;
cristy0c60a692010-11-04 01:09:47 +000019099 haiku*)
19100 # PIC is the default for Haiku.
19101 # The "-static" flag exists, but is broken.
19102 lt_prog_compiler_static_CXX=
19103 ;;
cristy73bd4a52010-10-05 11:24:23 +000019104 interix[3-9]*)
19105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19106 # Instead, we relocate shared libraries at runtime.
19107 ;;
19108 sysv4*MP*)
19109 if test -d /usr/nec; then
19110 lt_prog_compiler_pic_CXX=-Kconform_pic
19111 fi
19112 ;;
19113 hpux*)
19114 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19115 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19116 # sets the default TLS model and affects inlining.
19117 case $host_cpu in
19118 hppa*64*)
19119 ;;
19120 *)
19121 lt_prog_compiler_pic_CXX='-fPIC'
19122 ;;
19123 esac
19124 ;;
19125 *qnx* | *nto*)
19126 # QNX uses GNU C++, but need to define -shared option too, otherwise
19127 # it will coredump.
19128 lt_prog_compiler_pic_CXX='-fPIC -shared'
19129 ;;
19130 *)
19131 lt_prog_compiler_pic_CXX='-fPIC'
19132 ;;
19133 esac
19134 else
19135 case $host_os in
19136 aix[4-9]*)
19137 # All AIX code is PIC.
19138 if test "$host_cpu" = ia64; then
19139 # AIX 5 now supports IA64 processor
19140 lt_prog_compiler_static_CXX='-Bstatic'
19141 else
19142 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19143 fi
19144 ;;
19145 chorus*)
19146 case $cc_basename in
19147 cxch68*)
19148 # Green Hills C++ Compiler
19149 # _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"
19150 ;;
19151 esac
19152 ;;
cristyda16f162011-02-19 23:52:17 +000019153 mingw* | cygwin* | os2* | pw32* | cegcc*)
19154 # This hack is so that the source file can tell whether it is being
19155 # built for inclusion in a dll (and should export symbols for example).
19156 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19157 ;;
cristy73bd4a52010-10-05 11:24:23 +000019158 dgux*)
19159 case $cc_basename in
19160 ec++*)
19161 lt_prog_compiler_pic_CXX='-KPIC'
19162 ;;
19163 ghcx*)
19164 # Green Hills C++ Compiler
19165 lt_prog_compiler_pic_CXX='-pic'
19166 ;;
19167 *)
19168 ;;
19169 esac
19170 ;;
19171 freebsd* | dragonfly*)
19172 # FreeBSD uses GNU C++
19173 ;;
19174 hpux9* | hpux10* | hpux11*)
19175 case $cc_basename in
19176 CC*)
19177 lt_prog_compiler_wl_CXX='-Wl,'
19178 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19179 if test "$host_cpu" != ia64; then
19180 lt_prog_compiler_pic_CXX='+Z'
19181 fi
19182 ;;
19183 aCC*)
19184 lt_prog_compiler_wl_CXX='-Wl,'
19185 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19186 case $host_cpu in
19187 hppa*64*|ia64*)
19188 # +Z the default
19189 ;;
19190 *)
19191 lt_prog_compiler_pic_CXX='+Z'
19192 ;;
19193 esac
19194 ;;
19195 *)
19196 ;;
19197 esac
19198 ;;
19199 interix*)
19200 # This is c89, which is MS Visual C++ (no shared libs)
19201 # Anyone wants to do a port?
19202 ;;
19203 irix5* | irix6* | nonstopux*)
19204 case $cc_basename in
19205 CC*)
19206 lt_prog_compiler_wl_CXX='-Wl,'
19207 lt_prog_compiler_static_CXX='-non_shared'
19208 # CC pic flag -KPIC is the default.
19209 ;;
19210 *)
19211 ;;
19212 esac
19213 ;;
cristy0c60a692010-11-04 01:09:47 +000019214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019215 case $cc_basename in
19216 KCC*)
19217 # KAI C++ Compiler
19218 lt_prog_compiler_wl_CXX='--backend -Wl,'
19219 lt_prog_compiler_pic_CXX='-fPIC'
19220 ;;
19221 ecpc* )
19222 # old Intel C++ for x86_64 which still supported -KPIC.
19223 lt_prog_compiler_wl_CXX='-Wl,'
19224 lt_prog_compiler_pic_CXX='-KPIC'
19225 lt_prog_compiler_static_CXX='-static'
19226 ;;
19227 icpc* )
19228 # Intel C++, used to be incompatible with GCC.
19229 # ICC 10 doesn't accept -KPIC any more.
19230 lt_prog_compiler_wl_CXX='-Wl,'
19231 lt_prog_compiler_pic_CXX='-fPIC'
19232 lt_prog_compiler_static_CXX='-static'
19233 ;;
19234 pgCC* | pgcpp*)
19235 # Portland Group C++ compiler
19236 lt_prog_compiler_wl_CXX='-Wl,'
19237 lt_prog_compiler_pic_CXX='-fpic'
19238 lt_prog_compiler_static_CXX='-Bstatic'
19239 ;;
19240 cxx*)
19241 # Compaq C++
19242 # Make sure the PIC flag is empty. It appears that all Alpha
19243 # Linux and Compaq Tru64 Unix objects are PIC.
19244 lt_prog_compiler_pic_CXX=
19245 lt_prog_compiler_static_CXX='-non_shared'
19246 ;;
cristy0c60a692010-11-04 01:09:47 +000019247 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19248 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019249 lt_prog_compiler_wl_CXX='-Wl,'
19250 lt_prog_compiler_pic_CXX='-qpic'
19251 lt_prog_compiler_static_CXX='-qstaticlink'
19252 ;;
19253 *)
19254 case `$CC -V 2>&1 | sed 5q` in
19255 *Sun\ C*)
19256 # Sun C++ 5.9
19257 lt_prog_compiler_pic_CXX='-KPIC'
19258 lt_prog_compiler_static_CXX='-Bstatic'
19259 lt_prog_compiler_wl_CXX='-Qoption ld '
19260 ;;
19261 esac
19262 ;;
19263 esac
19264 ;;
19265 lynxos*)
19266 ;;
19267 m88k*)
19268 ;;
19269 mvs*)
19270 case $cc_basename in
19271 cxx*)
19272 lt_prog_compiler_pic_CXX='-W c,exportall'
19273 ;;
19274 *)
19275 ;;
19276 esac
19277 ;;
19278 netbsd*)
19279 ;;
19280 *qnx* | *nto*)
19281 # QNX uses GNU C++, but need to define -shared option too, otherwise
19282 # it will coredump.
19283 lt_prog_compiler_pic_CXX='-fPIC -shared'
19284 ;;
19285 osf3* | osf4* | osf5*)
19286 case $cc_basename in
19287 KCC*)
19288 lt_prog_compiler_wl_CXX='--backend -Wl,'
19289 ;;
19290 RCC*)
19291 # Rational C++ 2.4.1
19292 lt_prog_compiler_pic_CXX='-pic'
19293 ;;
19294 cxx*)
19295 # Digital/Compaq C++
19296 lt_prog_compiler_wl_CXX='-Wl,'
19297 # Make sure the PIC flag is empty. It appears that all Alpha
19298 # Linux and Compaq Tru64 Unix objects are PIC.
19299 lt_prog_compiler_pic_CXX=
19300 lt_prog_compiler_static_CXX='-non_shared'
19301 ;;
19302 *)
19303 ;;
19304 esac
19305 ;;
19306 psos*)
19307 ;;
19308 solaris*)
19309 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019310 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019311 # Sun C++ 4.2, 5.x and Centerline C++
19312 lt_prog_compiler_pic_CXX='-KPIC'
19313 lt_prog_compiler_static_CXX='-Bstatic'
19314 lt_prog_compiler_wl_CXX='-Qoption ld '
19315 ;;
19316 gcx*)
19317 # Green Hills C++ Compiler
19318 lt_prog_compiler_pic_CXX='-PIC'
19319 ;;
19320 *)
19321 ;;
19322 esac
19323 ;;
19324 sunos4*)
19325 case $cc_basename in
19326 CC*)
19327 # Sun C++ 4.x
19328 lt_prog_compiler_pic_CXX='-pic'
19329 lt_prog_compiler_static_CXX='-Bstatic'
19330 ;;
19331 lcc*)
19332 # Lucid
19333 lt_prog_compiler_pic_CXX='-pic'
19334 ;;
19335 *)
19336 ;;
19337 esac
19338 ;;
19339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19340 case $cc_basename in
19341 CC*)
19342 lt_prog_compiler_wl_CXX='-Wl,'
19343 lt_prog_compiler_pic_CXX='-KPIC'
19344 lt_prog_compiler_static_CXX='-Bstatic'
19345 ;;
19346 esac
19347 ;;
19348 tandem*)
19349 case $cc_basename in
19350 NCC*)
19351 # NonStop-UX NCC 3.20
19352 lt_prog_compiler_pic_CXX='-KPIC'
19353 ;;
19354 *)
19355 ;;
19356 esac
19357 ;;
19358 vxworks*)
19359 ;;
19360 *)
19361 lt_prog_compiler_can_build_shared_CXX=no
19362 ;;
19363 esac
19364 fi
19365
19366case $host_os in
19367 # For platforms which do not support PIC, -DPIC is meaningless:
19368 *djgpp*)
19369 lt_prog_compiler_pic_CXX=
19370 ;;
19371 *)
19372 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19373 ;;
19374esac
cristy73bd4a52010-10-05 11:24:23 +000019375
cristyda16f162011-02-19 23:52:17 +000019376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19377$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19378if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19379 $as_echo_n "(cached) " >&6
19380else
19381 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19382fi
19383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19384$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19385lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019386
19387#
19388# Check to make sure the PIC flag actually works.
19389#
19390if test -n "$lt_prog_compiler_pic_CXX"; then
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19392$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019393if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019394 $as_echo_n "(cached) " >&6
19395else
19396 lt_cv_prog_compiler_pic_works_CXX=no
19397 ac_outfile=conftest.$ac_objext
19398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19399 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19400 # Insert the option either (1) after the last *FLAGS variable, or
19401 # (2) before a word containing "conftest.", or (3) at the end.
19402 # Note that $ac_compile itself does not contain backslashes and begins
19403 # with a dollar sign (not a hyphen), so the echo should work correctly.
19404 # The option is referenced via a variable to avoid confusing sed.
19405 lt_compile=`echo "$ac_compile" | $SED \
19406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19408 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019410 (eval "$lt_compile" 2>conftest.err)
19411 ac_status=$?
19412 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019414 if (exit $ac_status) && test -s "$ac_outfile"; then
19415 # The compiler can only warn and ignore the option if not recognized
19416 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19420 lt_cv_prog_compiler_pic_works_CXX=yes
19421 fi
19422 fi
19423 $RM conftest*
19424
19425fi
19426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19427$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19428
19429if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19430 case $lt_prog_compiler_pic_CXX in
19431 "" | " "*) ;;
19432 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19433 esac
19434else
19435 lt_prog_compiler_pic_CXX=
19436 lt_prog_compiler_can_build_shared_CXX=no
19437fi
19438
19439fi
19440
19441
19442
cristyda16f162011-02-19 23:52:17 +000019443
19444
cristy73bd4a52010-10-05 11:24:23 +000019445#
19446# Check to make sure the static flag actually works.
19447#
19448wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19450$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019451if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019452 $as_echo_n "(cached) " >&6
19453else
19454 lt_cv_prog_compiler_static_works_CXX=no
19455 save_LDFLAGS="$LDFLAGS"
19456 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19459 # The linker can only warn and ignore the option if not recognized
19460 # So say no if there are warnings
19461 if test -s conftest.err; then
19462 # Append any errors to the config.log.
19463 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019464 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19466 if diff conftest.exp conftest.er2 >/dev/null; then
19467 lt_cv_prog_compiler_static_works_CXX=yes
19468 fi
19469 else
19470 lt_cv_prog_compiler_static_works_CXX=yes
19471 fi
19472 fi
19473 $RM -r conftest*
19474 LDFLAGS="$save_LDFLAGS"
19475
19476fi
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19478$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19479
19480if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19481 :
19482else
19483 lt_prog_compiler_static_CXX=
19484fi
19485
19486
19487
19488
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19490$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019491if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019492 $as_echo_n "(cached) " >&6
19493else
19494 lt_cv_prog_compiler_c_o_CXX=no
19495 $RM -r conftest 2>/dev/null
19496 mkdir conftest
19497 cd conftest
19498 mkdir out
19499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19500
19501 lt_compiler_flag="-o out/conftest2.$ac_objext"
19502 # Insert the option either (1) after the last *FLAGS variable, or
19503 # (2) before a word containing "conftest.", or (3) at the end.
19504 # Note that $ac_compile itself does not contain backslashes and begins
19505 # with a dollar sign (not a hyphen), so the echo should work correctly.
19506 lt_compile=`echo "$ac_compile" | $SED \
19507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19509 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019511 (eval "$lt_compile" 2>out/conftest.err)
19512 ac_status=$?
19513 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19516 then
19517 # The compiler can only warn and ignore the option if not recognized
19518 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19522 lt_cv_prog_compiler_c_o_CXX=yes
19523 fi
19524 fi
19525 chmod u+w . 2>&5
19526 $RM conftest*
19527 # SGI C++ compiler will create directory out/ii_files/ for
19528 # template instantiation
19529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19530 $RM out/* && rmdir out
19531 cd ..
19532 $RM -r conftest
19533 $RM conftest*
19534
19535fi
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19537$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19538
19539
19540
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019543if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019544 $as_echo_n "(cached) " >&6
19545else
19546 lt_cv_prog_compiler_c_o_CXX=no
19547 $RM -r conftest 2>/dev/null
19548 mkdir conftest
19549 cd conftest
19550 mkdir out
19551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19552
19553 lt_compiler_flag="-o out/conftest2.$ac_objext"
19554 # Insert the option either (1) after the last *FLAGS variable, or
19555 # (2) before a word containing "conftest.", or (3) at the end.
19556 # Note that $ac_compile itself does not contain backslashes and begins
19557 # with a dollar sign (not a hyphen), so the echo should work correctly.
19558 lt_compile=`echo "$ac_compile" | $SED \
19559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19561 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019563 (eval "$lt_compile" 2>out/conftest.err)
19564 ac_status=$?
19565 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19568 then
19569 # The compiler can only warn and ignore the option if not recognized
19570 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19574 lt_cv_prog_compiler_c_o_CXX=yes
19575 fi
19576 fi
19577 chmod u+w . 2>&5
19578 $RM conftest*
19579 # SGI C++ compiler will create directory out/ii_files/ for
19580 # template instantiation
19581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19582 $RM out/* && rmdir out
19583 cd ..
19584 $RM -r conftest
19585 $RM conftest*
19586
19587fi
19588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19589$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19590
19591
19592
19593
19594hard_links="nottested"
19595if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19596 # do not overwrite the value of need_locks provided by the user
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19598$as_echo_n "checking if we can lock with hard links... " >&6; }
19599 hard_links=yes
19600 $RM conftest*
19601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19602 touch conftest.a
19603 ln conftest.a conftest.b 2>&5 || hard_links=no
19604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19606$as_echo "$hard_links" >&6; }
19607 if test "$hard_links" = no; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19609$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19610 need_locks=warn
19611 fi
19612else
19613 need_locks=no
19614fi
19615
19616
19617
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19619$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19620
19621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019622 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019623 case $host_os in
19624 aix[4-9]*)
19625 # If we're using GNU nm, then we don't want the "-C" option.
19626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019627 # Also, AIX nm treats weak defined symbols like other global defined
19628 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019629 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019630 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 +000019631 else
19632 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'
19633 fi
19634 ;;
19635 pw32*)
19636 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019637 ;;
cristy73bd4a52010-10-05 11:24:23 +000019638 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019639 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019640 cl*)
19641 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19642 ;;
cristyda16f162011-02-19 23:52:17 +000019643 *)
19644 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'
19645 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19646 ;;
19647 esac
19648 ;;
cristy73bd4a52010-10-05 11:24:23 +000019649 *)
19650 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019651 ;;
cristy73bd4a52010-10-05 11:24:23 +000019652 esac
cristy73bd4a52010-10-05 11:24:23 +000019653
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19655$as_echo "$ld_shlibs_CXX" >&6; }
19656test "$ld_shlibs_CXX" = no && can_build_shared=no
19657
19658with_gnu_ld_CXX=$with_gnu_ld
19659
19660
19661
19662
19663
19664
19665#
19666# Do we need to explicitly link libc?
19667#
19668case "x$archive_cmds_need_lc_CXX" in
19669x|xyes)
19670 # Assume -lc should be added
19671 archive_cmds_need_lc_CXX=yes
19672
19673 if test "$enable_shared" = yes && test "$GCC" = yes; then
19674 case $archive_cmds_CXX in
19675 *'~'*)
19676 # FIXME: we may have to deal with multi-command sequences.
19677 ;;
19678 '$CC '*)
19679 # Test whether the compiler implicitly links with -lc since on some
19680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19681 # to ld, don't add -lc before -lgcc.
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19683$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019684if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019685 $as_echo_n "(cached) " >&6
19686else
19687 $RM conftest*
19688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019689
cristy0c60a692010-11-04 01:09:47 +000019690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019691 (eval $ac_compile) 2>&5
19692 ac_status=$?
19693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19694 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019695 soname=conftest
19696 lib=conftest
19697 libobjs=conftest.$ac_objext
19698 deplibs=
19699 wl=$lt_prog_compiler_wl_CXX
19700 pic_flag=$lt_prog_compiler_pic_CXX
19701 compiler_flags=-v
19702 linker_flags=-v
19703 verstring=
19704 output_objdir=.
19705 libname=conftest
19706 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19707 allow_undefined_flag_CXX=
19708 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 +000019709 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19710 ac_status=$?
19711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19712 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019713 then
19714 lt_cv_archive_cmds_need_lc_CXX=no
19715 else
19716 lt_cv_archive_cmds_need_lc_CXX=yes
19717 fi
19718 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19719 else
19720 cat conftest.err 1>&5
19721 fi
19722 $RM conftest*
19723
19724fi
19725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19726$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19727 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019728 ;;
19729 esac
19730 fi
19731 ;;
19732esac
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
cristy73bd4a52010-10-05 11:24:23 +000019795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19796$as_echo_n "checking dynamic linker characteristics... " >&6; }
19797
19798library_names_spec=
19799libname_spec='lib$name'
19800soname_spec=
19801shrext_cmds=".so"
19802postinstall_cmds=
19803postuninstall_cmds=
19804finish_cmds=
19805finish_eval=
19806shlibpath_var=
19807shlibpath_overrides_runpath=unknown
19808version_type=none
19809dynamic_linker="$host_os ld.so"
19810sys_lib_dlsearch_path_spec="/lib /usr/lib"
19811need_lib_prefix=unknown
19812hardcode_into_libs=no
19813
19814# when you set need_version to no, make sure it does not cause -set_version
19815# flags to be left without arguments
19816need_version=unknown
19817
19818case $host_os in
19819aix3*)
cristy99bd5232011-12-07 14:38:20 +000019820 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19822 shlibpath_var=LIBPATH
19823
19824 # AIX 3 has no versioning support, so we append a major version to the name.
19825 soname_spec='${libname}${release}${shared_ext}$major'
19826 ;;
19827
19828aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019829 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019830 need_lib_prefix=no
19831 need_version=no
19832 hardcode_into_libs=yes
19833 if test "$host_cpu" = ia64; then
19834 # AIX 5 supports IA64
19835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19836 shlibpath_var=LD_LIBRARY_PATH
19837 else
19838 # With GCC up to 2.95.x, collect2 would create an import file
19839 # for dependence libraries. The import file would start with
19840 # the line `#! .'. This would cause the generated library to
19841 # depend on `.', always an invalid library. This was fixed in
19842 # development snapshots of GCC prior to 3.0.
19843 case $host_os in
19844 aix4 | aix4.[01] | aix4.[01].*)
19845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19846 echo ' yes '
19847 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19848 :
19849 else
19850 can_build_shared=no
19851 fi
19852 ;;
19853 esac
19854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19855 # soname into executable. Probably we can add versioning support to
19856 # collect2, so additional links can be useful in future.
19857 if test "$aix_use_runtimelinking" = yes; then
19858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19859 # instead of lib<name>.a to let people know that these are not
19860 # typical AIX shared libraries.
19861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19862 else
19863 # We preserve .a as extension for shared libraries through AIX4.2
19864 # and later when we are not doing run time linking.
19865 library_names_spec='${libname}${release}.a $libname.a'
19866 soname_spec='${libname}${release}${shared_ext}$major'
19867 fi
19868 shlibpath_var=LIBPATH
19869 fi
19870 ;;
19871
19872amigaos*)
19873 case $host_cpu in
19874 powerpc)
19875 # Since July 2007 AmigaOS4 officially supports .so libraries.
19876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878 ;;
19879 m68k)
19880 library_names_spec='$libname.ixlibrary $libname.a'
19881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019882 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 +000019883 ;;
19884 esac
19885 ;;
19886
19887beos*)
19888 library_names_spec='${libname}${shared_ext}'
19889 dynamic_linker="$host_os ld.so"
19890 shlibpath_var=LIBRARY_PATH
19891 ;;
19892
19893bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019894 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019895 need_version=no
19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19897 soname_spec='${libname}${release}${shared_ext}$major'
19898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19902 # the default ld.so.conf also contains /usr/contrib/lib and
19903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19904 # libtool to hard-code these into programs
19905 ;;
19906
19907cygwin* | mingw* | pw32* | cegcc*)
19908 version_type=windows
19909 shrext_cmds=".dll"
19910 need_version=no
19911 need_lib_prefix=no
19912
cristyda16f162011-02-19 23:52:17 +000019913 case $GCC,$cc_basename in
19914 yes,*)
19915 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019916 library_names_spec='$libname.dll.a'
19917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19918 postinstall_cmds='base_file=`basename \${file}`~
19919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19920 dldir=$destdir/`dirname \$dlpath`~
19921 test -d \$dldir || mkdir -p \$dldir~
19922 $install_prog $dir/$dlname \$dldir/$dlname~
19923 chmod a+x \$dldir/$dlname~
19924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19926 fi'
19927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19928 dlpath=$dir/\$dldll~
19929 $RM \$dlpath'
19930 shlibpath_overrides_runpath=yes
19931
19932 case $host_os in
19933 cygwin*)
19934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19935 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019936
cristy73bd4a52010-10-05 11:24:23 +000019937 ;;
19938 mingw* | cegcc*)
19939 # MinGW DLLs use traditional 'lib' prefix
19940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019941 ;;
19942 pw32*)
19943 # pw32 DLLs use 'pw' prefix rather than 'lib'
19944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19945 ;;
19946 esac
cristyda16f162011-02-19 23:52:17 +000019947 dynamic_linker='Win32 ld.exe'
19948 ;;
19949
19950 *,cl*)
19951 # Native MSVC
19952 libname_spec='$name'
19953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19954 library_names_spec='${libname}.dll.lib'
19955
19956 case $build_os in
19957 mingw*)
19958 sys_lib_search_path_spec=
19959 lt_save_ifs=$IFS
19960 IFS=';'
19961 for lt_path in $LIB
19962 do
19963 IFS=$lt_save_ifs
19964 # Let DOS variable expansion print the short 8.3 style file name.
19965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19967 done
19968 IFS=$lt_save_ifs
19969 # Convert to MSYS style.
19970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19971 ;;
19972 cygwin*)
19973 # Convert to unix form, then to dos form, then back to unix form
19974 # but this time dos style (no spaces!) so that the unix form looks
19975 # like /cygdrive/c/PROGRA~1:/cygdr...
19976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19979 ;;
19980 *)
19981 sys_lib_search_path_spec="$LIB"
19982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19983 # It is most probably a Windows format PATH.
19984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19985 else
19986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19987 fi
19988 # FIXME: find the short name or the path components, as spaces are
19989 # common. (e.g. "Program Files" -> "PROGRA~1")
19990 ;;
19991 esac
19992
19993 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19994 postinstall_cmds='base_file=`basename \${file}`~
19995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19996 dldir=$destdir/`dirname \$dlpath`~
19997 test -d \$dldir || mkdir -p \$dldir~
19998 $install_prog $dir/$dlname \$dldir/$dlname'
19999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20000 dlpath=$dir/\$dldll~
20001 $RM \$dlpath'
20002 shlibpath_overrides_runpath=yes
20003 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020004 ;;
20005
20006 *)
cristyda16f162011-02-19 23:52:17 +000020007 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020009 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020010 ;;
20011 esac
cristy73bd4a52010-10-05 11:24:23 +000020012 # FIXME: first we should search . and the directory the executable is in
20013 shlibpath_var=PATH
20014 ;;
20015
20016darwin* | rhapsody*)
20017 dynamic_linker="$host_os dyld"
20018 version_type=darwin
20019 need_lib_prefix=no
20020 need_version=no
20021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20022 soname_spec='${libname}${release}${major}$shared_ext'
20023 shlibpath_overrides_runpath=yes
20024 shlibpath_var=DYLD_LIBRARY_PATH
20025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20026
20027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20028 ;;
20029
20030dgux*)
cristy99bd5232011-12-07 14:38:20 +000020031 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020032 need_lib_prefix=no
20033 need_version=no
20034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20035 soname_spec='${libname}${release}${shared_ext}$major'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 ;;
20038
cristy73bd4a52010-10-05 11:24:23 +000020039freebsd* | dragonfly*)
20040 # DragonFly does not have aout. When/if they implement a new
20041 # versioning mechanism, adjust this.
20042 if test -x /usr/bin/objformat; then
20043 objformat=`/usr/bin/objformat`
20044 else
20045 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020046 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020047 *) objformat=elf ;;
20048 esac
20049 fi
20050 version_type=freebsd-$objformat
20051 case $version_type in
20052 freebsd-elf*)
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20054 need_version=no
20055 need_lib_prefix=no
20056 ;;
20057 freebsd-*)
20058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20059 need_version=yes
20060 ;;
20061 esac
20062 shlibpath_var=LD_LIBRARY_PATH
20063 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020064 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020065 shlibpath_overrides_runpath=yes
20066 ;;
20067 freebsd3.[01]* | freebsdelf3.[01]*)
20068 shlibpath_overrides_runpath=yes
20069 hardcode_into_libs=yes
20070 ;;
20071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20073 shlibpath_overrides_runpath=no
20074 hardcode_into_libs=yes
20075 ;;
20076 *) # from 4.6 on, and DragonFly
20077 shlibpath_overrides_runpath=yes
20078 hardcode_into_libs=yes
20079 ;;
20080 esac
20081 ;;
20082
20083gnu*)
cristy99bd5232011-12-07 14:38:20 +000020084 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020085 need_lib_prefix=no
20086 need_version=no
20087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020090 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020091 hardcode_into_libs=yes
20092 ;;
20093
cristy0c60a692010-11-04 01:09:47 +000020094haiku*)
cristy99bd5232011-12-07 14:38:20 +000020095 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020096 need_lib_prefix=no
20097 need_version=no
20098 dynamic_linker="$host_os runtime_loader"
20099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20100 soname_spec='${libname}${release}${shared_ext}$major'
20101 shlibpath_var=LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20103 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20104 hardcode_into_libs=yes
20105 ;;
20106
cristy73bd4a52010-10-05 11:24:23 +000020107hpux9* | hpux10* | hpux11*)
20108 # Give a soname corresponding to the major version so that dld.sl refuses to
20109 # link against other versions.
20110 version_type=sunos
20111 need_lib_prefix=no
20112 need_version=no
20113 case $host_cpu in
20114 ia64*)
20115 shrext_cmds='.so'
20116 hardcode_into_libs=yes
20117 dynamic_linker="$host_os dld.so"
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20121 soname_spec='${libname}${release}${shared_ext}$major'
20122 if test "X$HPUX_IA64_MODE" = X32; then
20123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20124 else
20125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20126 fi
20127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20128 ;;
20129 hppa*64*)
20130 shrext_cmds='.sl'
20131 hardcode_into_libs=yes
20132 dynamic_linker="$host_os dld.sl"
20133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20139 ;;
20140 *)
20141 shrext_cmds='.sl'
20142 dynamic_linker="$host_os dld.sl"
20143 shlibpath_var=SHLIB_PATH
20144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20146 soname_spec='${libname}${release}${shared_ext}$major'
20147 ;;
20148 esac
cristy0c60a692010-11-04 01:09:47 +000020149 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020150 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020151 # or fails outright, so override atomically:
20152 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020153 ;;
20154
20155interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020156 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020157 need_lib_prefix=no
20158 need_version=no
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=no
20164 hardcode_into_libs=yes
20165 ;;
20166
20167irix5* | irix6* | nonstopux*)
20168 case $host_os in
20169 nonstopux*) version_type=nonstopux ;;
20170 *)
20171 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020172 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020173 else
20174 version_type=irix
20175 fi ;;
20176 esac
20177 need_lib_prefix=no
20178 need_version=no
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20181 case $host_os in
20182 irix5* | nonstopux*)
20183 libsuff= shlibsuff=
20184 ;;
20185 *)
20186 case $LD in # libtool.m4 will add one of these switches to LD
20187 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20188 libsuff= shlibsuff= libmagic=32-bit;;
20189 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20190 libsuff=32 shlibsuff=N32 libmagic=N32;;
20191 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20192 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20193 *) libsuff= shlibsuff= libmagic=never-match;;
20194 esac
20195 ;;
20196 esac
20197 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20198 shlibpath_overrides_runpath=no
20199 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20200 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20201 hardcode_into_libs=yes
20202 ;;
20203
20204# No shared lib support for Linux oldld, aout, or coff.
20205linux*oldld* | linux*aout* | linux*coff*)
20206 dynamic_linker=no
20207 ;;
20208
cristy99bd5232011-12-07 14:38:20 +000020209# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020210linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020211 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020212 need_lib_prefix=no
20213 need_version=no
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020219
cristy73bd4a52010-10-05 11:24:23 +000020220 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020221 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020222 $as_echo_n "(cached) " >&6
20223else
20224 lt_cv_shlibpath_overrides_runpath=no
20225 save_LDFLAGS=$LDFLAGS
20226 save_libdir=$libdir
20227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020230/* end confdefs.h. */
20231
20232int
20233main ()
20234{
20235
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240if ac_fn_cxx_try_link "$LINENO"; then :
20241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020242 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020243fi
20244fi
20245rm -f core conftest.err conftest.$ac_objext \
20246 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020247 LDFLAGS=$save_LDFLAGS
20248 libdir=$save_libdir
20249
20250fi
20251
20252 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020253
20254 # This implies no fast_install, which is unacceptable.
20255 # Some rework will be needed to allow for fast_install
20256 # before this can be enabled.
20257 hardcode_into_libs=yes
20258
20259 # Add ABI-specific directories to the system library path.
20260 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20261
20262 # Append ld.so.conf contents to the search path
20263 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020264 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 +000020265 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020266
cristy73bd4a52010-10-05 11:24:23 +000020267 fi
20268
20269 # We used to test for /lib/ld.so.1 and disable shared libraries on
20270 # powerpc, because MkLinux only supported shared libraries with the
20271 # GNU dynamic linker. Since this was broken with cross compilers,
20272 # most powerpc-linux boxes support dynamic linking these days and
20273 # people can always --disable-shared, the test was removed, and we
20274 # assume the GNU/Linux dynamic linker is in use.
20275 dynamic_linker='GNU/Linux ld.so'
20276 ;;
20277
20278netbsd*)
20279 version_type=sunos
20280 need_lib_prefix=no
20281 need_version=no
20282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20285 dynamic_linker='NetBSD (a.out) ld.so'
20286 else
20287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20288 soname_spec='${libname}${release}${shared_ext}$major'
20289 dynamic_linker='NetBSD ld.elf_so'
20290 fi
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20294 ;;
20295
20296newsos6)
cristy99bd5232011-12-07 14:38:20 +000020297 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299 shlibpath_var=LD_LIBRARY_PATH
20300 shlibpath_overrides_runpath=yes
20301 ;;
20302
20303*nto* | *qnx*)
20304 version_type=qnx
20305 need_lib_prefix=no
20306 need_version=no
20307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20308 soname_spec='${libname}${release}${shared_ext}$major'
20309 shlibpath_var=LD_LIBRARY_PATH
20310 shlibpath_overrides_runpath=no
20311 hardcode_into_libs=yes
20312 dynamic_linker='ldqnx.so'
20313 ;;
20314
20315openbsd*)
20316 version_type=sunos
20317 sys_lib_dlsearch_path_spec="/usr/lib"
20318 need_lib_prefix=no
20319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20320 case $host_os in
20321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20322 *) need_version=no ;;
20323 esac
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20326 shlibpath_var=LD_LIBRARY_PATH
20327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20328 case $host_os in
20329 openbsd2.[89] | openbsd2.[89].*)
20330 shlibpath_overrides_runpath=no
20331 ;;
20332 *)
20333 shlibpath_overrides_runpath=yes
20334 ;;
20335 esac
20336 else
20337 shlibpath_overrides_runpath=yes
20338 fi
20339 ;;
20340
20341os2*)
20342 libname_spec='$name'
20343 shrext_cmds=".dll"
20344 need_lib_prefix=no
20345 library_names_spec='$libname${shared_ext} $libname.a'
20346 dynamic_linker='OS/2 ld.exe'
20347 shlibpath_var=LIBPATH
20348 ;;
20349
20350osf3* | osf4* | osf5*)
20351 version_type=osf
20352 need_lib_prefix=no
20353 need_version=no
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20359 ;;
20360
20361rdos*)
20362 dynamic_linker=no
20363 ;;
20364
20365solaris*)
cristy99bd5232011-12-07 14:38:20 +000020366 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020367 need_lib_prefix=no
20368 need_version=no
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20370 soname_spec='${libname}${release}${shared_ext}$major'
20371 shlibpath_var=LD_LIBRARY_PATH
20372 shlibpath_overrides_runpath=yes
20373 hardcode_into_libs=yes
20374 # ldd complains unless libraries are executable
20375 postinstall_cmds='chmod +x $lib'
20376 ;;
20377
20378sunos4*)
20379 version_type=sunos
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 shlibpath_overrides_runpath=yes
20384 if test "$with_gnu_ld" = yes; then
20385 need_lib_prefix=no
20386 fi
20387 need_version=yes
20388 ;;
20389
20390sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020391 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020392 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 case $host_vendor in
20396 sni)
20397 shlibpath_overrides_runpath=no
20398 need_lib_prefix=no
20399 runpath_var=LD_RUN_PATH
20400 ;;
20401 siemens)
20402 need_lib_prefix=no
20403 ;;
20404 motorola)
20405 need_lib_prefix=no
20406 need_version=no
20407 shlibpath_overrides_runpath=no
20408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20409 ;;
20410 esac
20411 ;;
20412
20413sysv4*MP*)
20414 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020415 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20417 soname_spec='$libname${shared_ext}.$major'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 fi
20420 ;;
20421
20422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20423 version_type=freebsd-elf
20424 need_lib_prefix=no
20425 need_version=no
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath=yes
20430 hardcode_into_libs=yes
20431 if test "$with_gnu_ld" = yes; then
20432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20433 else
20434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20435 case $host_os in
20436 sco3.2v5*)
20437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20438 ;;
20439 esac
20440 fi
20441 sys_lib_dlsearch_path_spec='/usr/lib'
20442 ;;
20443
20444tpf*)
20445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020446 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020447 need_lib_prefix=no
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=no
20452 hardcode_into_libs=yes
20453 ;;
20454
20455uts4*)
cristy99bd5232011-12-07 14:38:20 +000020456 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 shlibpath_var=LD_LIBRARY_PATH
20460 ;;
20461
20462*)
20463 dynamic_linker=no
20464 ;;
20465esac
20466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20467$as_echo "$dynamic_linker" >&6; }
20468test "$dynamic_linker" = no && can_build_shared=no
20469
20470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20471if test "$GCC" = yes; then
20472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20473fi
20474
20475if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20477fi
20478if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20480fi
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
cristy0c60a692010-11-04 01:09:47 +000020517
20518
cristy73bd4a52010-10-05 11:24:23 +000020519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20520$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20521hardcode_action_CXX=
20522if test -n "$hardcode_libdir_flag_spec_CXX" ||
20523 test -n "$runpath_var_CXX" ||
20524 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20525
20526 # We can hardcode non-existent directories.
20527 if test "$hardcode_direct_CXX" != no &&
20528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20529 # have to relink, otherwise we might link with an installed library
20530 # when we should be linking with a yet-to-be-installed one
20531 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20532 test "$hardcode_minus_L_CXX" != no; then
20533 # Linking always hardcodes the temporary library directory.
20534 hardcode_action_CXX=relink
20535 else
20536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20537 hardcode_action_CXX=immediate
20538 fi
20539else
20540 # We cannot hardcode anything, or else we can only hardcode existing
20541 # directories.
20542 hardcode_action_CXX=unsupported
20543fi
20544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20545$as_echo "$hardcode_action_CXX" >&6; }
20546
20547if test "$hardcode_action_CXX" = relink ||
20548 test "$inherit_rpath_CXX" = yes; then
20549 # Fast installation is not supported
20550 enable_fast_install=no
20551elif test "$shlibpath_overrides_runpath" = yes ||
20552 test "$enable_shared" = no; then
20553 # Fast installation is not necessary
20554 enable_fast_install=needless
20555fi
20556
20557
20558
20559
20560
20561
20562
20563 fi # test -n "$compiler"
20564
20565 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020566 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020567 LDCXX=$LD
20568 LD=$lt_save_LD
20569 GCC=$lt_save_GCC
20570 with_gnu_ld=$lt_save_with_gnu_ld
20571 lt_cv_path_LDCXX=$lt_cv_path_LD
20572 lt_cv_path_LD=$lt_save_path_LD
20573 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20574 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20575fi # test "$_lt_caught_CXX_error" != yes
20576
20577ac_ext=c
20578ac_cpp='$CPP $CPPFLAGS'
20579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581ac_compiler_gnu=$ac_cv_c_compiler_gnu
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
cristy99bd5232011-12-07 14:38:20 +000020595
20596
cristy73bd4a52010-10-05 11:24:23 +000020597 ac_config_commands="$ac_config_commands libtool"
20598
20599
20600
20601
20602# Only expand once:
20603
20604
20605
cristy3ed852e2009-09-05 21:47:34 +000020606
20607
cristy3ed852e2009-09-05 21:47:34 +000020608# Check to see if building shared libraries
20609libtool_build_shared_libs='no'
20610if test "$enable_shared" = 'yes'; then
20611 libtool_build_shared_libs='yes'
20612fi
20613
20614# Check to see if building static libraries
20615libtool_build_static_libs='no'
20616if test "$enable_static" = 'yes'; then
20617 libtool_build_static_libs='yes'
20618fi
20619
cristy73bd4a52010-10-05 11:24:23 +000020620 if test "${libtool_build_shared_libs}" = 'yes'; then
20621 WITH_SHARED_LIBS_TRUE=
20622 WITH_SHARED_LIBS_FALSE='#'
20623else
20624 WITH_SHARED_LIBS_TRUE='#'
20625 WITH_SHARED_LIBS_FALSE=
20626fi
20627
cristy3ed852e2009-09-05 21:47:34 +000020628#
20629# Enable support for building loadable modules
20630#
cristy5eef09f2012-10-16 12:08:28 +000020631build_modules='yes'
cristy3ed852e2009-09-05 21:47:34 +000020632
20633# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020634if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020635 withval=$with_modules; with_modules=$withval
20636else
cristy5a1cefd2010-01-06 20:42:35 +000020637 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020638fi
20639
20640
20641# Only allow building loadable modules if we are building shared libraries
20642if test "$with_modules" != 'no' ; then
20643 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020644 { $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 +000020645$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020646 build_modules='no'
20647 else
20648 build_modules='yes'
20649 fi
cristy3ed852e2009-09-05 21:47:34 +000020650fi
cristyc6722092012-10-14 00:19:31 +000020651if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020652
cristy8b350f62009-11-15 23:12:43 +000020653$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020654
20655fi
cristyc6722092012-10-14 00:19:31 +000020656 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020657 WITH_MODULES_TRUE=
20658 WITH_MODULES_FALSE='#'
20659else
20660 WITH_MODULES_TRUE='#'
20661 WITH_MODULES_FALSE=
20662fi
20663
cristy3ed852e2009-09-05 21:47:34 +000020664
cristy3ed852e2009-09-05 21:47:34 +000020665# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020666# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020667# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020668if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020669 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20670else
20671 enable_delegate_build='no'
20672fi
20673
20674
20675# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020676if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020677 enableval=$enable_deprecated; enable_deprecated=$enableval
20678else
20679 enable_deprecated='no'
20680fi
20681
20682
20683if test "$enable_deprecated" = 'yes'; then
20684
cristy8b350f62009-11-15 23:12:43 +000020685$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020686
20687else
20688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20689fi
20690
20691# Build a version of ImageMagick which operates uninstalled.
20692# Used to build distributions located via MAGICK_HOME / executable path
20693# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020694if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020695 enableval=$enable_installed; enable_installed=$enableval
20696else
20697 enable_installed='yes'
20698fi
20699
20700
20701if test "$enable_installed" = 'yes'; then
20702
cristy8b350f62009-11-15 23:12:43 +000020703$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020704
20705else
20706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20707fi
20708
20709# Permit enciphering and deciphering image pixels.
20710# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020711if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020712 enableval=$enable_cipher; enable_cipher=$enableval
20713else
20714 enable_cipher='yes'
20715fi
20716
20717
20718if test "$enable_cipher" = 'yes'; then
20719
cristy8b350f62009-11-15 23:12:43 +000020720$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020721
20722fi
20723
cristy6e3607c2011-09-13 13:59:17 +000020724# Build a zero-configuration version of ImageMagick.
20725# Check whether --enable-zero-configuration was given.
20726if test "${enable_zero_configuration+set}" = set; then :
20727 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020728else
cristy6e3607c2011-09-13 13:59:17 +000020729 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020730fi
20731
20732
cristy6e3607c2011-09-13 13:59:17 +000020733if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020734
cristy6e3607c2011-09-13 13:59:17 +000020735$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020736
cristy81af5702011-09-13 14:20:58 +000020737 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020738fi
20739
20740# Build a high dynamic range version of ImageMagick.
20741# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020742if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020743 enableval=$enable_hdri; enable_hdri=$enableval
20744else
cristy191c0b72012-08-12 16:29:52 +000020745 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020746fi
20747
20748
20749MAGICK_HDRI=""
20750if test "$enable_hdri" = 'yes'; then
20751 MAGICK_HDRI="HDRI"
20752
cristy8b350f62009-11-15 23:12:43 +000020753$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020754
cristyfd9dcd42010-08-08 18:07:02 +000020755 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020756fi
20757
cristy3ed852e2009-09-05 21:47:34 +000020758# Build a version of ImageMagick with assert statements.
20759# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020760if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020761 enableval=$enable_assert; enable_assert=$enableval
20762else
20763 enable_assert='yes'
20764fi
20765
20766
20767if test "$enable_assert" = 'no'; then
20768
cristy8b350f62009-11-15 23:12:43 +000020769$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020770
20771fi
20772
cristya448bd22011-10-14 12:38:13 +000020773# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020774
20775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20776$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20777 # Check whether --enable-maintainer-mode was given.
20778if test "${enable_maintainer_mode+set}" = set; then :
20779 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20780else
20781 USE_MAINTAINER_MODE=no
20782fi
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20785$as_echo "$USE_MAINTAINER_MODE" >&6; }
20786 if test $USE_MAINTAINER_MODE = yes; then
20787 MAINTAINER_MODE_TRUE=
20788 MAINTAINER_MODE_FALSE='#'
20789else
20790 MAINTAINER_MODE_TRUE='#'
20791 MAINTAINER_MODE_FALSE=
20792fi
20793
20794 MAINT=$MAINTAINER_MODE_TRUE
20795
20796
cristy3ed852e2009-09-05 21:47:34 +000020797
cristy3ed852e2009-09-05 21:47:34 +000020798# Enable ccmalloc memory debugging support
20799# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020800if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020801 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20802else
20803 enable_ccmalloc='no'
20804fi
20805
20806
20807# Enable Electric Fence memory debugging support
20808# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020809if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020810 enableval=$enable_efence; enable_efence=$enableval
20811else
20812 enable_efence='no'
20813fi
20814
20815
20816# Enable prof-based profiling support
20817# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020818if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020819 enableval=$enable_prof; enable_prof=$enableval
20820else
20821 enable_prof='no'
20822fi
20823
20824
20825# Enable gprof-based profiling support
20826# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020827if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020828 enableval=$enable_gprof; enable_gprof=$enableval
20829else
20830 enable_gprof='no'
20831fi
20832
20833
20834# Enable gcov-based profiling support
20835# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020836if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020837 enableval=$enable_gcov; enable_gcov=$enableval
20838else
20839 enable_gcov='no'
20840fi
20841
20842
20843enable_profiling='no'
20844if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20845 enable_profiling='yes'
20846 if test "$libtool_build_shared_libs" = 'yes'; then
20847 echo "Warning: Can not profile code using shared libraries"
20848 fi
20849fi
20850
20851# Magick API method prefix
20852
20853# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020854if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020855 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020856else
cristyfc3d0222012-02-07 15:05:57 +000020857 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020858fi
20859
20860
cristyfc3d0222012-02-07 15:05:57 +000020861if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020862
20863cat >>confdefs.h <<_ACEOF
20864#define NAMESPACE_PREFIX $with_method_prefix
20865_ACEOF
20866
cristyfc3d0222012-02-07 15:05:57 +000020867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020868fi
20869
cristy71d8c202012-03-20 17:05:01 +000020870# Enable legacy support (default no)
20871# Check whether --enable-legacy-support was given.
20872if test "${enable_legacy_support+set}" = set; then :
20873 enableval=$enable_legacy_support; with_legacy_support=$enableval
20874else
20875 with_legacy_support='no'
20876fi
20877
20878 if test "$with_legacy_support" != 'no'; then
20879 LEGACY_SUPPORT_TRUE=
20880 LEGACY_SUPPORT_FALSE='#'
20881else
20882 LEGACY_SUPPORT_TRUE='#'
20883 LEGACY_SUPPORT_FALSE=
20884fi
20885
20886
cristy3ed852e2009-09-05 21:47:34 +000020887# Number of bits in a Quantum
20888
20889# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020890if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020891 withval=$with_quantum_depth; with_quantum_depth=$withval
20892else
20893 with_quantum_depth=16
20894fi
20895
20896
20897if test "$with_quantum_depth" != '8'; then
20898 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20899fi
20900
20901case "${with_quantum_depth}" in
20902 8 ) ;;
20903 16 ) ;;
20904 32 ) ;;
20905 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020906 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020907esac
20908QUANTUM_DEPTH="$with_quantum_depth"
20909
20910cat >>confdefs.h <<_ACEOF
20911#define QUANTUM_DEPTH $QUANTUM_DEPTH
20912_ACEOF
20913
20914
20915# Set pixel cache threshold
20916
20917# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020918if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020919 withval=$with_cache; with_cache=$withval
20920else
20921 with_cache=''
20922fi
20923
20924
20925if test "$with_cache" != ''; then
20926
20927cat >>confdefs.h <<_ACEOF
20928#define PixelCacheThreshold $with_cache
20929_ACEOF
20930
20931 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20932fi
20933
20934# Disable/Enable support for full delegate paths
20935
20936# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020937if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020938 withval=$with_frozenpaths; with_frozenpaths=$withval
20939else
20940 with_frozenpaths='no'
20941fi
20942
20943
20944# Enable build/install of Magick++
20945
20946# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020947if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020948 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20949else
20950 with_magick_plus_plus='yes'
20951fi
20952
20953
cristy3a75f062012-09-08 23:29:40 +000020954# Encode the this name into the shared library.
20955
20956# Check whether --with-package-release-name was given.
20957if test "${with_package_release_name+set}" = set; then :
20958 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
20959fi
20960
20961
20962
cristy3ed852e2009-09-05 21:47:34 +000020963# Disable build/install of PerlMagick.
20964
20965# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020966if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020967 withval=$with_perl; with_perl=$withval
20968else
cristyb5f4e2f2010-04-25 00:49:11 +000020969 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020970fi
20971
20972
20973# Options to pass when configuring PerlMagick
20974
20975# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020976if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020977 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020978fi
20979
20980
cristy3ed852e2009-09-05 21:47:34 +000020981
20982# Enable umem, object-caching memory allocation library.
20983
20984# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020985if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020986 withval=$with_umem; with_umem=$withval
20987else
20988 with_umem='no'
20989fi
20990
20991if test "$with_umem" != 'yes' ; then
20992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20993fi
20994
20995#
20996# Specify path to shared libstdc++ if not in normal location
20997#
20998
20999# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021000if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021001 withval=$with_libstdc; with_libstdc=$withval
21002else
21003 with_libstdc=''
21004fi
21005
21006
21007if test "$with_libstdc" != ''; then
21008 if test -d "$with_libstdc"; then
21009 LIBSTDCLDFLAGS="-L$with_libstdc"
21010 fi
21011fi
21012
21013
21014# Does gcc required -traditional?
21015if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021017$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021018if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021019 $as_echo_n "(cached) " >&6
21020else
21021 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021023/* end confdefs.h. */
21024#include <sgtty.h>
21025Autoconf TIOCGETP
21026_ACEOF
21027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021028 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021029 ac_cv_prog_gcc_traditional=yes
21030else
21031 ac_cv_prog_gcc_traditional=no
21032fi
21033rm -f conftest*
21034
21035
21036 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021038/* end confdefs.h. */
21039#include <termio.h>
21040Autoconf TCGETA
21041_ACEOF
21042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021043 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021044 ac_cv_prog_gcc_traditional=yes
21045fi
21046rm -f conftest*
21047
21048 fi
21049fi
cristy8b350f62009-11-15 23:12:43 +000021050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021051$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21052 if test $ac_cv_prog_gcc_traditional = yes; then
21053 CC="$CC -traditional"
21054 fi
21055fi
21056
21057
21058########
21059#
21060# Set defines required to build DLLs and modules using MinGW
21061#
21062########
21063# These options are set for multi-thread DLL module build
21064# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21065# module: _DLL
21066# executable/Magick++: _DLL _MAGICKMOD_
21067MODULE_EXTRA_CPPFLAGS=''
21068LIBRARY_EXTRA_CPPFLAGS=''
21069if test "${native_win32_build}" = 'yes'; then
21070 if test "${libtool_build_shared_libs}" = 'yes'; then
21071 CPPFLAGS="$CPPFLAGS -D_DLL"
21072 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21073 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21074 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021075 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021076 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21077 else
21078 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21079 fi
21080 else
21081 CPPFLAGS="$CPPFLAGS -D_LIB"
21082 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21083 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21084 fi
21085 if test "$with_threads" = 'yes'; then
21086 CPPFLAGS="$CPPFLAGS -D_MT"
21087 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21088 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21089 fi
21090fi
21091
21092
21093
21094# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021097if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021098 $as_echo_n "(cached) " >&6
21099else
cristy8b350f62009-11-15 23:12:43 +000021100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021101/* end confdefs.h. */
21102#include <stdlib.h>
21103#include <stdarg.h>
21104#include <string.h>
21105#include <float.h>
21106
21107int
21108main ()
21109{
21110
21111 ;
21112 return 0;
21113}
21114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021115if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021116 ac_cv_header_stdc=yes
21117else
cristy8b350f62009-11-15 23:12:43 +000021118 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021119fi
cristy3ed852e2009-09-05 21:47:34 +000021120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121
21122if test $ac_cv_header_stdc = yes; then
21123 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021125/* end confdefs.h. */
21126#include <string.h>
21127
21128_ACEOF
21129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021130 $EGREP "memchr" >/dev/null 2>&1; then :
21131
cristy3ed852e2009-09-05 21:47:34 +000021132else
21133 ac_cv_header_stdc=no
21134fi
21135rm -f conftest*
21136
21137fi
21138
21139if test $ac_cv_header_stdc = yes; then
21140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021142/* end confdefs.h. */
21143#include <stdlib.h>
21144
21145_ACEOF
21146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021147 $EGREP "free" >/dev/null 2>&1; then :
21148
cristy3ed852e2009-09-05 21:47:34 +000021149else
21150 ac_cv_header_stdc=no
21151fi
21152rm -f conftest*
21153
21154fi
21155
21156if test $ac_cv_header_stdc = yes; then
21157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021158 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 :
21160else
cristy8b350f62009-11-15 23:12:43 +000021161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021162/* end confdefs.h. */
21163#include <ctype.h>
21164#include <stdlib.h>
21165#if ((' ' & 0x0FF) == 0x020)
21166# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21167# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21168#else
21169# define ISLOWER(c) \
21170 (('a' <= (c) && (c) <= 'i') \
21171 || ('j' <= (c) && (c) <= 'r') \
21172 || ('s' <= (c) && (c) <= 'z'))
21173# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21174#endif
21175
21176#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21177int
21178main ()
21179{
21180 int i;
21181 for (i = 0; i < 256; i++)
21182 if (XOR (islower (i), ISLOWER (i))
21183 || toupper (i) != TOUPPER (i))
21184 return 2;
21185 return 0;
21186}
21187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021188if ac_fn_c_try_run "$LINENO"; then :
21189
cristy3ed852e2009-09-05 21:47:34 +000021190else
cristy8b350f62009-11-15 23:12:43 +000021191 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021192fi
cristy8b350f62009-11-15 23:12:43 +000021193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21194 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021195fi
21196
cristy3ed852e2009-09-05 21:47:34 +000021197fi
21198fi
cristy8b350f62009-11-15 23:12:43 +000021199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021200$as_echo "$ac_cv_header_stdc" >&6; }
21201if test $ac_cv_header_stdc = yes; then
21202
cristy8b350f62009-11-15 23:12:43 +000021203$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021204
21205fi
21206
21207if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021208 { $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 +000021209 header files. Compilation cannot proceed. Please install the ANSI C
21210 headers and rerun this script." >&5
21211$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21212 header files. Compilation cannot proceed. Please install the ANSI C
21213 headers and rerun this script." >&2;};
21214fi
cristya0b81c32010-01-22 02:54:33 +000021215
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21217$as_echo_n "checking whether to enable assertions... " >&6; }
21218 # Check whether --enable-assert was given.
21219if test "${enable_assert+set}" = set; then :
21220 enableval=$enable_assert; ac_enable_assert=$enableval
21221 if test "x$enableval" = xno; then :
21222
21223$as_echo "#define NDEBUG 1" >>confdefs.h
21224
21225elif test "x$enableval" != xyes; then :
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21227$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21228 ac_enable_assert=yes
21229fi
21230else
21231 ac_enable_assert=yes
21232fi
21233
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21235$as_echo "$ac_enable_assert" >&6; }
21236
cristy3ed852e2009-09-05 21:47:34 +000021237ac_header_dirent=no
21238for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21239 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021241$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021242if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 $as_echo_n "(cached) " >&6
21244else
cristy8b350f62009-11-15 23:12:43 +000021245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021246/* end confdefs.h. */
21247#include <sys/types.h>
21248#include <$ac_hdr>
21249
21250int
21251main ()
21252{
21253if ((DIR *) 0)
21254return 0;
21255 ;
21256 return 0;
21257}
21258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021259if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 eval "$as_ac_Header=yes"
21261else
cristy8b350f62009-11-15 23:12:43 +000021262 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021263fi
cristy3ed852e2009-09-05 21:47:34 +000021264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265fi
cristy8b350f62009-11-15 23:12:43 +000021266eval ac_res=\$$as_ac_Header
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021268$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021270 cat >>confdefs.h <<_ACEOF
21271#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21272_ACEOF
21273
21274ac_header_dirent=$ac_hdr; break
21275fi
21276
21277done
21278# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21279if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021281$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021282if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 $as_echo_n "(cached) " >&6
21284else
21285 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021287/* end confdefs.h. */
21288
21289/* Override any GCC internal prototype to avoid an error.
21290 Use char because int might match the return type of a GCC
21291 builtin and then its argument prototype would still apply. */
21292#ifdef __cplusplus
21293extern "C"
21294#endif
21295char opendir ();
21296int
21297main ()
21298{
21299return opendir ();
21300 ;
21301 return 0;
21302}
21303_ACEOF
21304for ac_lib in '' dir; do
21305 if test -z "$ac_lib"; then
21306 ac_res="none required"
21307 else
21308 ac_res=-l$ac_lib
21309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21310 fi
cristy8b350f62009-11-15 23:12:43 +000021311 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021313fi
cristy8b350f62009-11-15 23:12:43 +000021314rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021316 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021317 break
21318fi
21319done
cristyda16f162011-02-19 23:52:17 +000021320if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021321
cristy3ed852e2009-09-05 21:47:34 +000021322else
21323 ac_cv_search_opendir=no
21324fi
21325rm conftest.$ac_ext
21326LIBS=$ac_func_search_save_LIBS
21327fi
cristy8b350f62009-11-15 23:12:43 +000021328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021329$as_echo "$ac_cv_search_opendir" >&6; }
21330ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021331if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21333
21334fi
21335
21336else
cristy8b350f62009-11-15 23:12:43 +000021337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021338$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021339if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 $as_echo_n "(cached) " >&6
21341else
21342 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021344/* end confdefs.h. */
21345
21346/* Override any GCC internal prototype to avoid an error.
21347 Use char because int might match the return type of a GCC
21348 builtin and then its argument prototype would still apply. */
21349#ifdef __cplusplus
21350extern "C"
21351#endif
21352char opendir ();
21353int
21354main ()
21355{
21356return opendir ();
21357 ;
21358 return 0;
21359}
21360_ACEOF
21361for ac_lib in '' x; do
21362 if test -z "$ac_lib"; then
21363 ac_res="none required"
21364 else
21365 ac_res=-l$ac_lib
21366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21367 fi
cristy8b350f62009-11-15 23:12:43 +000021368 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021370fi
cristy8b350f62009-11-15 23:12:43 +000021371rm -f core conftest.err conftest.$ac_objext \
21372 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021373 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021374 break
21375fi
21376done
cristyda16f162011-02-19 23:52:17 +000021377if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021378
cristy3ed852e2009-09-05 21:47:34 +000021379else
21380 ac_cv_search_opendir=no
21381fi
21382rm conftest.$ac_ext
21383LIBS=$ac_func_search_save_LIBS
21384fi
cristy8b350f62009-11-15 23:12:43 +000021385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021386$as_echo "$ac_cv_search_opendir" >&6; }
21387ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021388if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21390
21391fi
21392
21393fi
21394
21395
21396# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021397for 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 +000021398do :
21399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21400ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021402 cat >>confdefs.h <<_ACEOF
21403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21404_ACEOF
21405
21406fi
21407
21408done
21409
21410
21411########
21412#
21413# Checks for typedefs, structures, and compiler characteristics.
21414#
21415########
21416
cristy8b350f62009-11-15 23:12:43 +000021417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021418$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021419if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021420 $as_echo_n "(cached) " >&6
21421else
cristy8b350f62009-11-15 23:12:43 +000021422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021423/* end confdefs.h. */
21424
cristy14fefe52012-05-21 00:59:18 +000021425 #include <stdbool.h>
21426 #ifndef bool
21427 "error: bool is not defined"
21428 #endif
21429 #ifndef false
21430 "error: false is not defined"
21431 #endif
21432 #if false
21433 "error: false is not 0"
21434 #endif
21435 #ifndef true
21436 "error: true is not defined"
21437 #endif
21438 #if true != 1
21439 "error: true is not 1"
21440 #endif
21441 #ifndef __bool_true_false_are_defined
21442 "error: __bool_true_false_are_defined is not defined"
21443 #endif
cristy3ed852e2009-09-05 21:47:34 +000021444
cristy14fefe52012-05-21 00:59:18 +000021445 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021446
cristy14fefe52012-05-21 00:59:18 +000021447 char a[true == 1 ? 1 : -1];
21448 char b[false == 0 ? 1 : -1];
21449 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21450 char d[(bool) 0.5 == true ? 1 : -1];
21451 /* See body of main program for 'e'. */
21452 char f[(_Bool) 0.0 == false ? 1 : -1];
21453 char g[true];
21454 char h[sizeof (_Bool)];
21455 char i[sizeof s.t];
21456 enum { j = false, k = true, l = false * true, m = true * 256 };
21457 /* The following fails for
21458 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21459 _Bool n[m];
21460 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21461 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21462 /* Catch a bug in an HP-UX C compiler. See
21463 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21464 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21465 */
21466 _Bool q = true;
21467 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021468
21469int
21470main ()
21471{
21472
cristy14fefe52012-05-21 00:59:18 +000021473 bool e = &s;
21474 *pq |= q;
21475 *pq |= ! q;
21476 /* Refer to every declared value, to avoid compiler optimizations. */
21477 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21478 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021479
21480 ;
21481 return 0;
21482}
21483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021484if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 ac_cv_header_stdbool_h=yes
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021488fi
cristy3ed852e2009-09-05 21:47:34 +000021489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490fi
cristy8b350f62009-11-15 23:12:43 +000021491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021492$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021493 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021494if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021495
21496cat >>confdefs.h <<_ACEOF
21497#define HAVE__BOOL 1
21498_ACEOF
21499
21500
21501fi
21502
cristy14fefe52012-05-21 00:59:18 +000021503
cristy3ed852e2009-09-05 21:47:34 +000021504if test $ac_cv_header_stdbool_h = yes; then
21505
cristy8b350f62009-11-15 23:12:43 +000021506$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021507
21508fi
21509
cristy8b350f62009-11-15 23:12:43 +000021510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021511$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021512if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021513 $as_echo_n "(cached) " >&6
21514else
cristy8b350f62009-11-15 23:12:43 +000021515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021516/* end confdefs.h. */
21517
21518int
21519main ()
21520{
21521
21522volatile int x;
21523int * volatile y = (int *) 0;
21524return !x && !y;
21525 ;
21526 return 0;
21527}
21528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021529if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021530 ac_cv_c_volatile=yes
21531else
cristy8b350f62009-11-15 23:12:43 +000021532 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021533fi
cristy3ed852e2009-09-05 21:47:34 +000021534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21535fi
cristy8b350f62009-11-15 23:12:43 +000021536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021537$as_echo "$ac_cv_c_volatile" >&6; }
21538if test $ac_cv_c_volatile = no; then
21539
cristy8b350f62009-11-15 23:12:43 +000021540$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021541
21542fi
21543
cristy8b350f62009-11-15 23:12:43 +000021544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021545$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021546if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021547 $as_echo_n "(cached) " >&6
21548else
cristy8b350f62009-11-15 23:12:43 +000021549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021550/* end confdefs.h. */
21551#define x(y) #y
21552
21553char *s = x(teststring);
21554_ACEOF
21555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021556 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021557 ac_cv_c_stringize=no
21558else
21559 ac_cv_c_stringize=yes
21560fi
21561rm -f conftest*
21562
21563fi
cristy8b350f62009-11-15 23:12:43 +000021564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021565$as_echo "$ac_cv_c_stringize" >&6; }
21566if test $ac_cv_c_stringize = yes; then
21567
cristy8b350f62009-11-15 23:12:43 +000021568$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021569
21570fi
21571
cristy8b350f62009-11-15 23:12:43 +000021572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021573$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021574if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021575 $as_echo_n "(cached) " >&6
21576else
cristy8b350f62009-11-15 23:12:43 +000021577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021578/* end confdefs.h. */
21579#include <sys/types.h>
21580#include <sys/stat.h>
21581
21582#if defined S_ISBLK && defined S_IFDIR
21583extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21584#endif
21585
21586#if defined S_ISBLK && defined S_IFCHR
21587extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21588#endif
21589
21590#if defined S_ISLNK && defined S_IFREG
21591extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21592#endif
21593
21594#if defined S_ISSOCK && defined S_IFREG
21595extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21596#endif
21597
21598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021599if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 ac_cv_header_stat_broken=no
21601else
cristy8b350f62009-11-15 23:12:43 +000021602 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021603fi
cristy3ed852e2009-09-05 21:47:34 +000021604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21605fi
cristy8b350f62009-11-15 23:12:43 +000021606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo "$ac_cv_header_stat_broken" >&6; }
21608if test $ac_cv_header_stat_broken = yes; then
21609
cristy8b350f62009-11-15 23:12:43 +000021610$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021611
21612fi
21613
cristy8b350f62009-11-15 23:12:43 +000021614{ $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 +000021615$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021616if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021617 $as_echo_n "(cached) " >&6
21618else
cristy8b350f62009-11-15 23:12:43 +000021619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021620/* end confdefs.h. */
21621#include <sys/types.h>
21622#include <sys/time.h>
21623#include <time.h>
21624
21625int
21626main ()
21627{
21628if ((struct tm *) 0)
21629return 0;
21630 ;
21631 return 0;
21632}
21633_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021634if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021635 ac_cv_header_time=yes
21636else
cristy8b350f62009-11-15 23:12:43 +000021637 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021638fi
cristy3ed852e2009-09-05 21:47:34 +000021639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640fi
cristy8b350f62009-11-15 23:12:43 +000021641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo "$ac_cv_header_time" >&6; }
21643if test $ac_cv_header_time = yes; then
21644
cristy8b350f62009-11-15 23:12:43 +000021645$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021646
21647fi
21648
cristy8b350f62009-11-15 23:12:43 +000021649{ $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 +000021650$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021651if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 $as_echo_n "(cached) " >&6
21653else
cristy8b350f62009-11-15 23:12:43 +000021654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021655/* end confdefs.h. */
21656#include <sys/types.h>
21657#include <time.h>
21658
21659int
21660main ()
21661{
21662struct tm tm;
21663 int *p = &tm.tm_sec;
21664 return !p;
21665 ;
21666 return 0;
21667}
21668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021669if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 ac_cv_struct_tm=time.h
21671else
cristy8b350f62009-11-15 23:12:43 +000021672 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021673fi
cristy3ed852e2009-09-05 21:47:34 +000021674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675fi
cristy8b350f62009-11-15 23:12:43 +000021676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo "$ac_cv_struct_tm" >&6; }
21678if test $ac_cv_struct_tm = sys/time.h; then
21679
cristy8b350f62009-11-15 23:12:43 +000021680$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021681
21682fi
21683
cristy92703d82010-04-26 00:18:18 +000021684ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21685#include <$ac_cv_struct_tm>
21686
21687"
cristyda16f162011-02-19 23:52:17 +000021688if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021689
21690cat >>confdefs.h <<_ACEOF
21691#define HAVE_STRUCT_TM_TM_ZONE 1
21692_ACEOF
21693
21694
21695fi
21696
21697if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21698
21699$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21700
21701else
21702 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21703"
cristyda16f162011-02-19 23:52:17 +000021704if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021705 ac_have_decl=1
21706else
21707 ac_have_decl=0
21708fi
21709
21710cat >>confdefs.h <<_ACEOF
21711#define HAVE_DECL_TZNAME $ac_have_decl
21712_ACEOF
21713
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21715$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021716if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021717 $as_echo_n "(cached) " >&6
21718else
21719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720/* end confdefs.h. */
21721#include <time.h>
21722#if !HAVE_DECL_TZNAME
21723extern char *tzname[];
21724#endif
21725
21726int
21727main ()
21728{
21729return tzname[0][0];
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734if ac_fn_c_try_link "$LINENO"; then :
21735 ac_cv_var_tzname=yes
21736else
21737 ac_cv_var_tzname=no
21738fi
21739rm -f core conftest.err conftest.$ac_objext \
21740 conftest$ac_exeext conftest.$ac_ext
21741fi
21742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21743$as_echo "$ac_cv_var_tzname" >&6; }
21744 if test $ac_cv_var_tzname = yes; then
21745
21746$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21747
21748 fi
21749fi
21750
cristy8b350f62009-11-15 23:12:43 +000021751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021752$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021753if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 $as_echo_n "(cached) " >&6
21755else
21756 echo '#! /bin/cat
21757exit 69
21758' >conftest
21759chmod u+x conftest
21760(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21761if test $? -ne 69; then
21762 ac_cv_sys_interpreter=yes
21763else
21764 ac_cv_sys_interpreter=no
21765fi
21766rm -f conftest
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_sys_interpreter" >&6; }
21770interpval=$ac_cv_sys_interpreter
21771
21772
cristy3ed852e2009-09-05 21:47:34 +000021773# If the C compiler supports the keyword inline, do nothing. Otherwise
21774# define inline to __inline__ or __inline if it accepts one of those,
21775# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021777$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021778if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 $as_echo_n "(cached) " >&6
21780else
21781 ac_cv_c_inline=no
21782for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021784/* end confdefs.h. */
21785#ifndef __cplusplus
21786typedef int foo_t;
21787static $ac_kw foo_t static_foo () {return 0; }
21788$ac_kw foo_t foo () {return 0; }
21789#endif
21790
21791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021792if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021793 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021794fi
cristy3ed852e2009-09-05 21:47:34 +000021795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 test "$ac_cv_c_inline" != no && break
21797done
21798
21799fi
cristy8b350f62009-11-15 23:12:43 +000021800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021801$as_echo "$ac_cv_c_inline" >&6; }
21802
cristy3ed852e2009-09-05 21:47:34 +000021803case $ac_cv_c_inline in
21804 inline | yes) ;;
21805 *)
21806 case $ac_cv_c_inline in
21807 no) ac_val=;;
21808 *) ac_val=$ac_cv_c_inline;;
21809 esac
21810 cat >>confdefs.h <<_ACEOF
21811#ifndef __cplusplus
21812#define inline $ac_val
21813#endif
21814_ACEOF
21815 ;;
21816esac
21817
21818
21819# If the C compiler supports the keyword restrict, do nothing. Otherwise
21820# define restrict to __restrict__ or __restrict if it accepts one of those,
21821# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021823$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021824if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 $as_echo_n "(cached) " >&6
21826else
21827 ac_cv_c_restrict=no
21828 # The order here caters to the fact that C++ does not require restrict.
21829 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021831/* end confdefs.h. */
21832typedef int * int_ptr;
21833 int foo (int_ptr $ac_kw ip) {
21834 return ip[0];
21835 }
21836int
21837main ()
21838{
21839int s[1];
21840 int * $ac_kw t = s;
21841 t[0] = 0;
21842 return foo(t)
21843 ;
21844 return 0;
21845}
21846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021847if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021849fi
cristy3ed852e2009-09-05 21:47:34 +000021850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 test "$ac_cv_c_restrict" != no && break
21852 done
21853
21854fi
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo "$ac_cv_c_restrict" >&6; }
21857
cristy3ed852e2009-09-05 21:47:34 +000021858 case $ac_cv_c_restrict in
21859 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021860 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021861 ;;
21862 *) cat >>confdefs.h <<_ACEOF
21863#define restrict $ac_cv_c_restrict
21864_ACEOF
21865 ;;
21866 esac
21867
21868
21869# If words are stored with the most significant byte first (like
21870# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021872$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021873if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021874 $as_echo_n "(cached) " >&6
21875else
21876 ac_cv_c_bigendian=unknown
21877 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021879/* end confdefs.h. */
21880#ifndef __APPLE_CC__
21881 not a universal capable compiler
21882 #endif
21883 typedef int dummy;
21884
21885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021886if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021887
21888 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021889 # there are at least two -arch flags with different values.
21890 ac_arch=
21891 ac_prev=
21892 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21893 if test -n "$ac_prev"; then
21894 case $ac_word in
21895 i?86 | x86_64 | ppc | ppc64)
21896 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21897 ac_arch=$ac_word
21898 else
21899 ac_cv_c_bigendian=universal
21900 break
21901 fi
21902 ;;
21903 esac
21904 ac_prev=
21905 elif test "x$ac_word" = "x-arch"; then
21906 ac_prev=arch
21907 fi
21908 done
cristy3ed852e2009-09-05 21:47:34 +000021909fi
cristy3ed852e2009-09-05 21:47:34 +000021910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 if test $ac_cv_c_bigendian = unknown; then
21912 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021914/* end confdefs.h. */
21915#include <sys/types.h>
21916 #include <sys/param.h>
21917
21918int
21919main ()
21920{
21921#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21922 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21923 && LITTLE_ENDIAN)
21924 bogus endian macros
21925 #endif
21926
21927 ;
21928 return 0;
21929}
21930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021931if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021932 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021934/* end confdefs.h. */
21935#include <sys/types.h>
21936 #include <sys/param.h>
21937
21938int
21939main ()
21940{
21941#if BYTE_ORDER != BIG_ENDIAN
21942 not big endian
21943 #endif
21944
21945 ;
21946 return 0;
21947}
21948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021949if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021950 ac_cv_c_bigendian=yes
21951else
cristy8b350f62009-11-15 23:12:43 +000021952 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021953fi
cristy3ed852e2009-09-05 21:47:34 +000021954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021955fi
cristy3ed852e2009-09-05 21:47:34 +000021956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 if test $ac_cv_c_bigendian = unknown; then
21959 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021961/* end confdefs.h. */
21962#include <limits.h>
21963
21964int
21965main ()
21966{
21967#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21968 bogus endian macros
21969 #endif
21970
21971 ;
21972 return 0;
21973}
21974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021975if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021976 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021978/* end confdefs.h. */
21979#include <limits.h>
21980
21981int
21982main ()
21983{
21984#ifndef _BIG_ENDIAN
21985 not big endian
21986 #endif
21987
21988 ;
21989 return 0;
21990}
21991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021993 ac_cv_c_bigendian=yes
21994else
cristy8b350f62009-11-15 23:12:43 +000021995 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021996fi
cristy3ed852e2009-09-05 21:47:34 +000021997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021998fi
cristy3ed852e2009-09-05 21:47:34 +000021999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 fi
22001 if test $ac_cv_c_bigendian = unknown; then
22002 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022003 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022004 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022006/* end confdefs.h. */
22007short int ascii_mm[] =
22008 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22009 short int ascii_ii[] =
22010 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22011 int use_ascii (int i) {
22012 return ascii_mm[i] + ascii_ii[i];
22013 }
22014 short int ebcdic_ii[] =
22015 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22016 short int ebcdic_mm[] =
22017 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22018 int use_ebcdic (int i) {
22019 return ebcdic_mm[i] + ebcdic_ii[i];
22020 }
22021 extern int foo;
22022
22023int
22024main ()
22025{
22026return use_ascii (foo) == use_ebcdic (foo);
22027 ;
22028 return 0;
22029}
22030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022031if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022032 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22033 ac_cv_c_bigendian=yes
22034 fi
22035 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22036 if test "$ac_cv_c_bigendian" = unknown; then
22037 ac_cv_c_bigendian=no
22038 else
22039 # finding both strings is unlikely to happen, but who knows?
22040 ac_cv_c_bigendian=unknown
22041 fi
22042 fi
cristy3ed852e2009-09-05 21:47:34 +000022043fi
cristy3ed852e2009-09-05 21:47:34 +000022044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045else
cristy8b350f62009-11-15 23:12:43 +000022046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022047/* end confdefs.h. */
22048$ac_includes_default
22049int
22050main ()
22051{
22052
22053 /* Are we little or big endian? From Harbison&Steele. */
22054 union
22055 {
22056 long int l;
22057 char c[sizeof (long int)];
22058 } u;
22059 u.l = 1;
22060 return u.c[sizeof (long int) - 1] == 1;
22061
22062 ;
22063 return 0;
22064}
22065_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022066if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022067 ac_cv_c_bigendian=no
22068else
cristy8b350f62009-11-15 23:12:43 +000022069 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022070fi
cristy8b350f62009-11-15 23:12:43 +000022071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22072 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022073fi
22074
cristy3ed852e2009-09-05 21:47:34 +000022075 fi
22076fi
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$ac_cv_c_bigendian" >&6; }
22079 case $ac_cv_c_bigendian in #(
22080 yes)
cristy8b350f62009-11-15 23:12:43 +000022081 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022082;; #(
22083 no)
22084 ;; #(
22085 universal)
22086
cristy8b350f62009-11-15 23:12:43 +000022087$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022088
22089 ;; #(
22090 *)
cristy98dddb52010-11-04 00:30:15 +000022091 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022092 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022093 esac
22094
22095
cristy501c8042011-05-26 17:46:28 +000022096# Define to a suitable type, if standard headers do not define it.
22097ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22098case $ac_cv_c_int8_t in #(
22099 no|yes) ;; #(
22100 *)
cristy3ed852e2009-09-05 21:47:34 +000022101
22102cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022103#define int8_t $ac_cv_c_int8_t
22104_ACEOF
22105;;
22106esac
22107
22108ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22109case $ac_cv_c_int16_t in #(
22110 no|yes) ;; #(
22111 *)
22112
22113cat >>confdefs.h <<_ACEOF
22114#define int16_t $ac_cv_c_int16_t
22115_ACEOF
22116;;
22117esac
22118
22119ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22120case $ac_cv_c_int32_t in #(
22121 no|yes) ;; #(
22122 *)
22123
22124cat >>confdefs.h <<_ACEOF
22125#define int32_t $ac_cv_c_int32_t
22126_ACEOF
22127;;
22128esac
22129
22130ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22131case $ac_cv_c_int64_t in #(
22132 no|yes) ;; #(
22133 *)
22134
22135cat >>confdefs.h <<_ACEOF
22136#define int64_t $ac_cv_c_int64_t
22137_ACEOF
22138;;
22139esac
22140
22141
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22143$as_echo_n "checking for long long int... " >&6; }
22144if ${ac_cv_type_long_long_int+:} false; then :
22145 $as_echo_n "(cached) " >&6
22146else
22147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22148/* end confdefs.h. */
22149
22150 /* For now, do not test the preprocessor; as of 2007 there are too many
22151 implementations with broken preprocessors. Perhaps this can
22152 be revisited in 2012. In the meantime, code should not expect
22153 #if to work with literals wider than 32 bits. */
22154 /* Test literals. */
22155 long long int ll = 9223372036854775807ll;
22156 long long int nll = -9223372036854775807LL;
22157 unsigned long long int ull = 18446744073709551615ULL;
22158 /* Test constant expressions. */
22159 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22160 ? 1 : -1)];
22161 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22162 ? 1 : -1)];
22163 int i = 63;
22164int
22165main ()
22166{
22167/* Test availability of runtime routines for shift and division. */
22168 long long int llmax = 9223372036854775807ll;
22169 unsigned long long int ullmax = 18446744073709551615ull;
22170 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22171 | (llmax / ll) | (llmax % ll)
22172 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22173 | (ullmax / ull) | (ullmax % ull));
22174 ;
22175 return 0;
22176}
22177
22178_ACEOF
22179if ac_fn_c_try_link "$LINENO"; then :
22180 if test "$cross_compiling" = yes; then :
22181 ac_cv_type_long_long_int=yes
22182else
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184/* end confdefs.h. */
22185#include <limits.h>
22186 #ifndef LLONG_MAX
22187 # define HALF \
22188 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22189 # define LLONG_MAX (HALF - 1 + HALF)
22190 #endif
22191int
22192main ()
22193{
22194long long int n = 1;
22195 int i;
22196 for (i = 0; ; i++)
22197 {
22198 long long int m = n << i;
22199 if (m >> i != n)
22200 return 1;
22201 if (LLONG_MAX / 2 < m)
22202 break;
22203 }
22204 return 0;
22205 ;
22206 return 0;
22207}
22208_ACEOF
22209if ac_fn_c_try_run "$LINENO"; then :
22210 ac_cv_type_long_long_int=yes
22211else
22212 ac_cv_type_long_long_int=no
22213fi
22214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22215 conftest.$ac_objext conftest.beam conftest.$ac_ext
22216fi
22217
22218else
22219 ac_cv_type_long_long_int=no
22220fi
22221rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22223fi
22224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22225$as_echo "$ac_cv_type_long_long_int" >&6; }
22226 if test $ac_cv_type_long_long_int = yes; then
22227
22228$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22229
22230 fi
22231
22232
22233
22234 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22235if test "x$ac_cv_type_intmax_t" = xyes; then :
22236
22237$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22238
22239else
22240 test $ac_cv_type_long_long_int = yes \
22241 && ac_type='long long int' \
22242 || ac_type='long int'
22243
22244cat >>confdefs.h <<_ACEOF
22245#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022246_ACEOF
22247
22248fi
22249
22250
cristy501c8042011-05-26 17:46:28 +000022251
22252 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22253if test "x$ac_cv_type_intptr_t" = xyes; then :
22254
22255$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022256
cristy3ed852e2009-09-05 21:47:34 +000022257else
cristy501c8042011-05-26 17:46:28 +000022258 for ac_type in 'int' 'long int' 'long long int'; do
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260/* end confdefs.h. */
22261$ac_includes_default
22262int
22263main ()
22264{
22265static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022266test_array [0] = 0;
22267return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022268
22269 ;
22270 return 0;
22271}
22272_ACEOF
22273if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022274
22275cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022276#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022277_ACEOF
22278
cristy501c8042011-05-26 17:46:28 +000022279 ac_type=
22280fi
22281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 test -z "$ac_type" && break
22283 done
cristy3ed852e2009-09-05 21:47:34 +000022284fi
22285
22286
cristy3ed852e2009-09-05 21:47:34 +000022287
cristy501c8042011-05-26 17:46:28 +000022288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22289$as_echo_n "checking for long double... " >&6; }
22290if ${ac_cv_type_long_double+:} false; then :
22291 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022292else
cristy501c8042011-05-26 17:46:28 +000022293 if test "$GCC" = yes; then
22294 ac_cv_type_long_double=yes
22295 else
22296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22297/* end confdefs.h. */
22298/* The Stardent Vistra knows sizeof (long double), but does
22299 not support it. */
22300 long double foo = 0.0L;
22301int
22302main ()
22303{
22304static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22305 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022306test_array [0] = 0;
22307return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022308
cristy501c8042011-05-26 17:46:28 +000022309 ;
22310 return 0;
22311}
cristy3ed852e2009-09-05 21:47:34 +000022312_ACEOF
cristy501c8042011-05-26 17:46:28 +000022313if ac_fn_c_try_compile "$LINENO"; then :
22314 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022315else
cristy501c8042011-05-26 17:46:28 +000022316 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022317fi
cristy501c8042011-05-26 17:46:28 +000022318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 fi
cristy3ed852e2009-09-05 21:47:34 +000022320fi
cristy501c8042011-05-26 17:46:28 +000022321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22322$as_echo "$ac_cv_type_long_double" >&6; }
22323 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022324
cristy501c8042011-05-26 17:46:28 +000022325$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022326
cristy501c8042011-05-26 17:46:28 +000022327 fi
22328
cristy3ed852e2009-09-05 21:47:34 +000022329
cristy8b350f62009-11-15 23:12:43 +000022330 { $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 +000022331$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022332if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022333 $as_echo_n "(cached) " >&6
22334else
cristy8b350f62009-11-15 23:12:43 +000022335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022336/* end confdefs.h. */
22337#include <float.h>
22338 long double const a[] =
22339 {
22340 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22341 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22342 };
22343 long double
22344 f (long double x)
22345 {
22346 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22347 + (x ? f (x) : 'c'));
22348 }
22349
22350int
22351main ()
22352{
22353static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22354 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22355 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22356 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22357 && (int) LDBL_EPSILON == 0
22358 )];
cristy14fefe52012-05-21 00:59:18 +000022359test_array [0] = 0;
22360return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022361
22362 ;
22363 return 0;
22364}
22365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022366if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 ac_cv_type_long_double_wider=yes
22368else
cristy8b350f62009-11-15 23:12:43 +000022369 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022370fi
cristy3ed852e2009-09-05 21:47:34 +000022371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372fi
cristy8b350f62009-11-15 23:12:43 +000022373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022374$as_echo "$ac_cv_type_long_double_wider" >&6; }
22375 if test $ac_cv_type_long_double_wider = yes; then
22376
cristy8b350f62009-11-15 23:12:43 +000022377$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022378
22379 fi
22380
22381
cristy501c8042011-05-26 17:46:28 +000022382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22383$as_echo_n "checking for long long int... " >&6; }
22384if ${ac_cv_type_long_long_int+:} false; then :
22385 $as_echo_n "(cached) " >&6
22386else
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388/* end confdefs.h. */
22389
22390 /* For now, do not test the preprocessor; as of 2007 there are too many
22391 implementations with broken preprocessors. Perhaps this can
22392 be revisited in 2012. In the meantime, code should not expect
22393 #if to work with literals wider than 32 bits. */
22394 /* Test literals. */
22395 long long int ll = 9223372036854775807ll;
22396 long long int nll = -9223372036854775807LL;
22397 unsigned long long int ull = 18446744073709551615ULL;
22398 /* Test constant expressions. */
22399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22400 ? 1 : -1)];
22401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22402 ? 1 : -1)];
22403 int i = 63;
22404int
22405main ()
22406{
22407/* Test availability of runtime routines for shift and division. */
22408 long long int llmax = 9223372036854775807ll;
22409 unsigned long long int ullmax = 18446744073709551615ull;
22410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22411 | (llmax / ll) | (llmax % ll)
22412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22413 | (ullmax / ull) | (ullmax % ull));
22414 ;
22415 return 0;
22416}
22417
22418_ACEOF
22419if ac_fn_c_try_link "$LINENO"; then :
22420 if test "$cross_compiling" = yes; then :
22421 ac_cv_type_long_long_int=yes
22422else
22423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22424/* end confdefs.h. */
22425#include <limits.h>
22426 #ifndef LLONG_MAX
22427 # define HALF \
22428 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22429 # define LLONG_MAX (HALF - 1 + HALF)
22430 #endif
22431int
22432main ()
22433{
22434long long int n = 1;
22435 int i;
22436 for (i = 0; ; i++)
22437 {
22438 long long int m = n << i;
22439 if (m >> i != n)
22440 return 1;
22441 if (LLONG_MAX / 2 < m)
22442 break;
22443 }
22444 return 0;
22445 ;
22446 return 0;
22447}
22448_ACEOF
22449if ac_fn_c_try_run "$LINENO"; then :
22450 ac_cv_type_long_long_int=yes
22451else
22452 ac_cv_type_long_long_int=no
22453fi
22454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22455 conftest.$ac_objext conftest.beam conftest.$ac_ext
22456fi
22457
22458else
22459 ac_cv_type_long_long_int=no
22460fi
22461rm -f core conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
22463fi
22464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22465$as_echo "$ac_cv_type_long_long_int" >&6; }
22466 if test $ac_cv_type_long_long_int = yes; then
22467
22468$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22469
22470 fi
22471
22472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22473$as_echo_n "checking for mbstate_t... " >&6; }
22474if ${ac_cv_type_mbstate_t+:} false; then :
22475 $as_echo_n "(cached) " >&6
22476else
22477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22478/* end confdefs.h. */
22479$ac_includes_default
22480# include <wchar.h>
22481int
22482main ()
22483{
22484mbstate_t x; return sizeof x;
22485 ;
22486 return 0;
22487}
22488_ACEOF
22489if ac_fn_c_try_compile "$LINENO"; then :
22490 ac_cv_type_mbstate_t=yes
22491else
22492 ac_cv_type_mbstate_t=no
22493fi
22494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495fi
22496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22497$as_echo "$ac_cv_type_mbstate_t" >&6; }
22498 if test $ac_cv_type_mbstate_t = yes; then
22499
22500$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22501
22502 else
22503
22504$as_echo "#define mbstate_t int" >>confdefs.h
22505
22506 fi
22507ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22508if test "x$ac_cv_type_mode_t" = xyes; then :
22509
22510else
22511
22512cat >>confdefs.h <<_ACEOF
22513#define mode_t int
22514_ACEOF
22515
22516fi
22517
22518ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22519if test "x$ac_cv_type_off_t" = xyes; then :
22520
22521else
22522
22523cat >>confdefs.h <<_ACEOF
22524#define off_t long int
22525_ACEOF
22526
22527fi
22528
22529ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22530if test "x$ac_cv_type_pid_t" = xyes; then :
22531
22532else
22533
22534cat >>confdefs.h <<_ACEOF
22535#define pid_t int
22536_ACEOF
22537
22538fi
22539
22540ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22541if test "x$ac_cv_type_size_t" = xyes; then :
22542
22543else
22544
22545cat >>confdefs.h <<_ACEOF
22546#define size_t unsigned int
22547_ACEOF
22548
22549fi
22550
22551ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22552if test "x$ac_cv_type_ssize_t" = xyes; then :
22553
22554else
22555
22556cat >>confdefs.h <<_ACEOF
22557#define ssize_t int
22558_ACEOF
22559
22560fi
22561
22562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22563$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22564if ${ac_cv_type_uid_t+:} false; then :
22565 $as_echo_n "(cached) " >&6
22566else
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568/* end confdefs.h. */
22569#include <sys/types.h>
22570
22571_ACEOF
22572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22573 $EGREP "uid_t" >/dev/null 2>&1; then :
22574 ac_cv_type_uid_t=yes
22575else
22576 ac_cv_type_uid_t=no
22577fi
22578rm -f conftest*
22579
22580fi
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22582$as_echo "$ac_cv_type_uid_t" >&6; }
22583if test $ac_cv_type_uid_t = no; then
22584
22585$as_echo "#define uid_t int" >>confdefs.h
22586
22587
22588$as_echo "#define gid_t int" >>confdefs.h
22589
22590fi
22591
22592ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22593case $ac_cv_c_uint8_t in #(
22594 no|yes) ;; #(
22595 *)
22596
22597$as_echo "#define _UINT8_T 1" >>confdefs.h
22598
22599
22600cat >>confdefs.h <<_ACEOF
22601#define uint8_t $ac_cv_c_uint8_t
22602_ACEOF
22603;;
22604 esac
22605
22606ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22607case $ac_cv_c_uint16_t in #(
22608 no|yes) ;; #(
22609 *)
22610
22611
22612cat >>confdefs.h <<_ACEOF
22613#define uint16_t $ac_cv_c_uint16_t
22614_ACEOF
22615;;
22616 esac
22617
22618ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22619case $ac_cv_c_uint32_t in #(
22620 no|yes) ;; #(
22621 *)
22622
22623$as_echo "#define _UINT32_T 1" >>confdefs.h
22624
22625
22626cat >>confdefs.h <<_ACEOF
22627#define uint32_t $ac_cv_c_uint32_t
22628_ACEOF
22629;;
22630 esac
22631
22632ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22633case $ac_cv_c_uint64_t in #(
22634 no|yes) ;; #(
22635 *)
22636
22637$as_echo "#define _UINT64_T 1" >>confdefs.h
22638
22639
22640cat >>confdefs.h <<_ACEOF
22641#define uint64_t $ac_cv_c_uint64_t
22642_ACEOF
22643;;
22644 esac
22645
22646
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22648$as_echo_n "checking for unsigned long long int... " >&6; }
22649if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22650 $as_echo_n "(cached) " >&6
22651else
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653/* end confdefs.h. */
22654
22655 /* For now, do not test the preprocessor; as of 2007 there are too many
22656 implementations with broken preprocessors. Perhaps this can
22657 be revisited in 2012. In the meantime, code should not expect
22658 #if to work with literals wider than 32 bits. */
22659 /* Test literals. */
22660 long long int ll = 9223372036854775807ll;
22661 long long int nll = -9223372036854775807LL;
22662 unsigned long long int ull = 18446744073709551615ULL;
22663 /* Test constant expressions. */
22664 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22665 ? 1 : -1)];
22666 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22667 ? 1 : -1)];
22668 int i = 63;
22669int
22670main ()
22671{
22672/* Test availability of runtime routines for shift and division. */
22673 long long int llmax = 9223372036854775807ll;
22674 unsigned long long int ullmax = 18446744073709551615ull;
22675 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22676 | (llmax / ll) | (llmax % ll)
22677 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22678 | (ullmax / ull) | (ullmax % ull));
22679 ;
22680 return 0;
22681}
22682
22683_ACEOF
22684if ac_fn_c_try_link "$LINENO"; then :
22685 ac_cv_type_unsigned_long_long_int=yes
22686else
22687 ac_cv_type_unsigned_long_long_int=no
22688fi
22689rm -f core conftest.err conftest.$ac_objext \
22690 conftest$ac_exeext conftest.$ac_ext
22691fi
22692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22693$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22694 if test $ac_cv_type_unsigned_long_long_int = yes; then
22695
22696$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22697
22698 fi
22699
22700
22701
22702 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22703if test "x$ac_cv_type_uintmax_t" = xyes; then :
22704
22705$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22706
22707else
22708 test $ac_cv_type_unsigned_long_long_int = yes \
22709 && ac_type='unsigned long long int' \
22710 || ac_type='unsigned long int'
22711
22712cat >>confdefs.h <<_ACEOF
22713#define uintmax_t $ac_type
22714_ACEOF
22715
22716fi
22717
22718
22719
22720 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22721if test "x$ac_cv_type_uintptr_t" = xyes; then :
22722
22723$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22724
22725else
22726 for ac_type in 'unsigned int' 'unsigned long int' \
22727 'unsigned long long int'; do
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729/* end confdefs.h. */
22730$ac_includes_default
22731int
22732main ()
22733{
22734static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022735test_array [0] = 0;
22736return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022737
22738 ;
22739 return 0;
22740}
22741_ACEOF
22742if ac_fn_c_try_compile "$LINENO"; then :
22743
22744cat >>confdefs.h <<_ACEOF
22745#define uintptr_t $ac_type
22746_ACEOF
22747
22748 ac_type=
22749fi
22750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 test -z "$ac_type" && break
22752 done
22753fi
22754
22755
22756
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22758$as_echo_n "checking for unsigned long long int... " >&6; }
22759if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22760 $as_echo_n "(cached) " >&6
22761else
22762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22763/* end confdefs.h. */
22764
22765 /* For now, do not test the preprocessor; as of 2007 there are too many
22766 implementations with broken preprocessors. Perhaps this can
22767 be revisited in 2012. In the meantime, code should not expect
22768 #if to work with literals wider than 32 bits. */
22769 /* Test literals. */
22770 long long int ll = 9223372036854775807ll;
22771 long long int nll = -9223372036854775807LL;
22772 unsigned long long int ull = 18446744073709551615ULL;
22773 /* Test constant expressions. */
22774 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22775 ? 1 : -1)];
22776 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22777 ? 1 : -1)];
22778 int i = 63;
22779int
22780main ()
22781{
22782/* Test availability of runtime routines for shift and division. */
22783 long long int llmax = 9223372036854775807ll;
22784 unsigned long long int ullmax = 18446744073709551615ull;
22785 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22786 | (llmax / ll) | (llmax % ll)
22787 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22788 | (ullmax / ull) | (ullmax % ull));
22789 ;
22790 return 0;
22791}
22792
22793_ACEOF
22794if ac_fn_c_try_link "$LINENO"; then :
22795 ac_cv_type_unsigned_long_long_int=yes
22796else
22797 ac_cv_type_unsigned_long_long_int=no
22798fi
22799rm -f core conftest.err conftest.$ac_objext \
22800 conftest$ac_exeext conftest.$ac_ext
22801fi
22802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22803$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22804 if test $ac_cv_type_unsigned_long_long_int = yes; then
22805
22806$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22807
22808 fi
22809
22810
cristy3ed852e2009-09-05 21:47:34 +000022811# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22812# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022814$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022815if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022816 $as_echo_n "(cached) " >&6
22817else
cristy8b350f62009-11-15 23:12:43 +000022818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022819/* end confdefs.h. */
22820$ac_includes_default
22821int
22822main ()
22823{
22824static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022825test_array [0] = 0;
22826return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022827
22828 ;
22829 return 0;
22830}
22831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022832if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022833 ac_cv_c_char_unsigned=no
22834else
cristy8b350f62009-11-15 23:12:43 +000022835 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022836fi
cristy3ed852e2009-09-05 21:47:34 +000022837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838fi
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$ac_cv_c_char_unsigned" >&6; }
22841if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022842 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022843
22844fi
22845
22846
22847# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22848# The cast to long int works around a bug in the HP C Compiler
22849# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22850# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22851# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022853$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022854if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022855 $as_echo_n "(cached) " >&6
22856else
cristy8b350f62009-11-15 23:12:43 +000022857 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 +000022858
cristy3ed852e2009-09-05 21:47:34 +000022859else
cristy8b350f62009-11-15 23:12:43 +000022860 if test "$ac_cv_type_signed_short" = yes; then
22861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022863as_fn_error 77 "cannot compute sizeof (signed short)
22864See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022865 else
22866 ac_cv_sizeof_signed_short=0
22867 fi
22868fi
cristy8b350f62009-11-15 23:12:43 +000022869
cristy3ed852e2009-09-05 21:47:34 +000022870fi
cristy8b350f62009-11-15 23:12:43 +000022871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022872$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22873
22874
22875
22876cat >>confdefs.h <<_ACEOF
22877#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22878_ACEOF
22879
22880
22881
22882# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22883# The cast to long int works around a bug in the HP C Compiler
22884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22886# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022888$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022889if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022890 $as_echo_n "(cached) " >&6
22891else
cristy8b350f62009-11-15 23:12:43 +000022892 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 +000022893
cristy3ed852e2009-09-05 21:47:34 +000022894else
cristy8b350f62009-11-15 23:12:43 +000022895 if test "$ac_cv_type_unsigned_short" = yes; then
22896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022898as_fn_error 77 "cannot compute sizeof (unsigned short)
22899See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022900 else
22901 ac_cv_sizeof_unsigned_short=0
22902 fi
22903fi
cristy8b350f62009-11-15 23:12:43 +000022904
cristy3ed852e2009-09-05 21:47:34 +000022905fi
cristy8b350f62009-11-15 23:12:43 +000022906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022907$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22908
22909
22910
22911cat >>confdefs.h <<_ACEOF
22912#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22913_ACEOF
22914
22915
22916
22917# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22918# The cast to long int works around a bug in the HP C Compiler
22919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22921# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022923$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022924if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022925 $as_echo_n "(cached) " >&6
22926else
cristy8b350f62009-11-15 23:12:43 +000022927 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 +000022928
cristy3ed852e2009-09-05 21:47:34 +000022929else
cristy8b350f62009-11-15 23:12:43 +000022930 if test "$ac_cv_type_signed_int" = yes; then
22931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022933as_fn_error 77 "cannot compute sizeof (signed int)
22934See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022935 else
22936 ac_cv_sizeof_signed_int=0
22937 fi
22938fi
cristy8b350f62009-11-15 23:12:43 +000022939
cristy3ed852e2009-09-05 21:47:34 +000022940fi
cristy8b350f62009-11-15 23:12:43 +000022941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022942$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22943
22944
22945
22946cat >>confdefs.h <<_ACEOF
22947#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22948_ACEOF
22949
22950
22951
22952# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22953# The cast to long int works around a bug in the HP C Compiler
22954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22956# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022958$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022959if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022960 $as_echo_n "(cached) " >&6
22961else
cristy8b350f62009-11-15 23:12:43 +000022962 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 +000022963
cristy3ed852e2009-09-05 21:47:34 +000022964else
cristy8b350f62009-11-15 23:12:43 +000022965 if test "$ac_cv_type_unsigned_int" = yes; then
22966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022968as_fn_error 77 "cannot compute sizeof (unsigned int)
22969See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022970 else
22971 ac_cv_sizeof_unsigned_int=0
22972 fi
22973fi
cristy8b350f62009-11-15 23:12:43 +000022974
cristy3ed852e2009-09-05 21:47:34 +000022975fi
cristy8b350f62009-11-15 23:12:43 +000022976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022977$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22978
22979
22980
22981cat >>confdefs.h <<_ACEOF
22982#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22983_ACEOF
22984
22985
22986
22987# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22988# The cast to long int works around a bug in the HP C Compiler
22989# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22990# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22991# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022993$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022994if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022995 $as_echo_n "(cached) " >&6
22996else
cristy8b350f62009-11-15 23:12:43 +000022997 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 +000022998
cristy3ed852e2009-09-05 21:47:34 +000022999else
cristy8b350f62009-11-15 23:12:43 +000023000 if test "$ac_cv_type_signed_long" = yes; then
23001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023003as_fn_error 77 "cannot compute sizeof (signed long)
23004See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023005 else
23006 ac_cv_sizeof_signed_long=0
23007 fi
23008fi
cristy8b350f62009-11-15 23:12:43 +000023009
cristy3ed852e2009-09-05 21:47:34 +000023010fi
cristy8b350f62009-11-15 23:12:43 +000023011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023012$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23013
23014
23015
23016cat >>confdefs.h <<_ACEOF
23017#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23018_ACEOF
23019
23020
23021
23022# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23023# The cast to long int works around a bug in the HP C Compiler
23024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23026# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023028$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023029if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023030 $as_echo_n "(cached) " >&6
23031else
cristy8b350f62009-11-15 23:12:43 +000023032 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 +000023033
cristy3ed852e2009-09-05 21:47:34 +000023034else
cristy8b350f62009-11-15 23:12:43 +000023035 if test "$ac_cv_type_unsigned_long" = yes; then
23036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023038as_fn_error 77 "cannot compute sizeof (unsigned long)
23039See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023040 else
23041 ac_cv_sizeof_unsigned_long=0
23042 fi
23043fi
cristy8b350f62009-11-15 23:12:43 +000023044
cristy3ed852e2009-09-05 21:47:34 +000023045fi
cristy8b350f62009-11-15 23:12:43 +000023046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023047$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23048
23049
23050
23051cat >>confdefs.h <<_ACEOF
23052#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23053_ACEOF
23054
23055
23056
23057# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23058# 'signed long long' is not supported then the value defined is zero.
23059# The cast to long int works around a bug in the HP C Compiler
23060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23062# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023064$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023065if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023066 $as_echo_n "(cached) " >&6
23067else
cristy8b350f62009-11-15 23:12:43 +000023068 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 +000023069
cristy3ed852e2009-09-05 21:47:34 +000023070else
cristy8b350f62009-11-15 23:12:43 +000023071 if test "$ac_cv_type_signed_long_long" = yes; then
23072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023074as_fn_error 77 "cannot compute sizeof (signed long long)
23075See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023076 else
23077 ac_cv_sizeof_signed_long_long=0
23078 fi
23079fi
cristy8b350f62009-11-15 23:12:43 +000023080
cristy3ed852e2009-09-05 21:47:34 +000023081fi
cristy8b350f62009-11-15 23:12:43 +000023082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023083$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23084
23085
23086
23087cat >>confdefs.h <<_ACEOF
23088#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23089_ACEOF
23090
23091
23092
23093# Obtain size of a 'unsigned long long' and define as
23094# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23095# supported then the value defined is zero.
23096# The cast to long int works around a bug in the HP C Compiler
23097# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23098# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23099# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023101$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023102if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023103 $as_echo_n "(cached) " >&6
23104else
cristy8b350f62009-11-15 23:12:43 +000023105 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 +000023106
cristy3ed852e2009-09-05 21:47:34 +000023107else
cristy8b350f62009-11-15 23:12:43 +000023108 if test "$ac_cv_type_unsigned_long_long" = yes; then
23109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023111as_fn_error 77 "cannot compute sizeof (unsigned long long)
23112See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023113 else
23114 ac_cv_sizeof_unsigned_long_long=0
23115 fi
23116fi
cristy8b350f62009-11-15 23:12:43 +000023117
cristy3ed852e2009-09-05 21:47:34 +000023118fi
cristy8b350f62009-11-15 23:12:43 +000023119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023120$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23121
23122
23123
23124cat >>confdefs.h <<_ACEOF
23125#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23126_ACEOF
23127
23128
23129
23130# Obtain size of off_t and define as SIZEOF_OFF_T
23131# The cast to long int works around a bug in the HP C Compiler
23132# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23133# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23134# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023136$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023137if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023138 $as_echo_n "(cached) " >&6
23139else
cristy8b350f62009-11-15 23:12:43 +000023140 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 +000023141
cristy3ed852e2009-09-05 21:47:34 +000023142else
cristy8b350f62009-11-15 23:12:43 +000023143 if test "$ac_cv_type_off_t" = yes; then
23144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023146as_fn_error 77 "cannot compute sizeof (off_t)
23147See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023148 else
23149 ac_cv_sizeof_off_t=0
23150 fi
23151fi
cristy8b350f62009-11-15 23:12:43 +000023152
cristy3ed852e2009-09-05 21:47:34 +000023153fi
cristy8b350f62009-11-15 23:12:43 +000023154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023155$as_echo "$ac_cv_sizeof_off_t" >&6; }
23156
23157
23158
23159cat >>confdefs.h <<_ACEOF
23160#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23161_ACEOF
23162
23163
23164
23165# Obtain size of size_t and define as SIZEOF_SIZE_T
23166# The cast to long int works around a bug in the HP C Compiler
23167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23169# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023171$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023172if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023173 $as_echo_n "(cached) " >&6
23174else
cristy8b350f62009-11-15 23:12:43 +000023175 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 +000023176
cristy3ed852e2009-09-05 21:47:34 +000023177else
cristy8b350f62009-11-15 23:12:43 +000023178 if test "$ac_cv_type_size_t" = yes; then
23179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023181as_fn_error 77 "cannot compute sizeof (size_t)
23182See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023183 else
23184 ac_cv_sizeof_size_t=0
23185 fi
23186fi
cristy8b350f62009-11-15 23:12:43 +000023187
cristy3ed852e2009-09-05 21:47:34 +000023188fi
cristy8b350f62009-11-15 23:12:43 +000023189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023190$as_echo "$ac_cv_sizeof_size_t" >&6; }
23191
23192
23193
23194cat >>confdefs.h <<_ACEOF
23195#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23196_ACEOF
23197
23198
23199
cristy330e9352010-06-01 18:42:49 +000023200# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23201# The cast to long int works around a bug in the HP C Compiler
23202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23204# This bug is HP SR number 8606223364.
23205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23206$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023207if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023208 $as_echo_n "(cached) " >&6
23209else
23210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23211
23212else
23213 if test "$ac_cv_type_ssize_t" = yes; then
23214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023216as_fn_error 77 "cannot compute sizeof (ssize_t)
23217See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023218 else
23219 ac_cv_sizeof_ssize_t=0
23220 fi
23221fi
23222
23223fi
23224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23225$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23226
23227
23228
23229cat >>confdefs.h <<_ACEOF
23230#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23231_ACEOF
23232
23233
23234
cristy3ed852e2009-09-05 21:47:34 +000023235# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23236# The cast to long int works around a bug in the HP C Compiler
23237# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23238# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23239# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023242if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023243 $as_echo_n "(cached) " >&6
23244else
cristy8b350f62009-11-15 23:12:43 +000023245 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 +000023246
cristy3ed852e2009-09-05 21:47:34 +000023247else
cristy8b350f62009-11-15 23:12:43 +000023248 if test "$ac_cv_type_unsigned_intp" = yes; then
23249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023251as_fn_error 77 "cannot compute sizeof (unsigned int*)
23252See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023253 else
23254 ac_cv_sizeof_unsigned_intp=0
23255 fi
23256fi
cristy8b350f62009-11-15 23:12:43 +000023257
cristy3ed852e2009-09-05 21:47:34 +000023258fi
cristy8b350f62009-11-15 23:12:43 +000023259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023260$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23261
23262
23263
23264cat >>confdefs.h <<_ACEOF
23265#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23266_ACEOF
23267
23268
23269
23270#
23271# Compute sized types for current CPU and compiler options.
23272#
23273
cristy8b350f62009-11-15 23:12:43 +000023274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023275$as_echo_n "checking for signed 8-bit type... " >&6; }
23276INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023277{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23278$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023279
23280
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23283UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023284{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23285$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023286
23287
cristy8b350f62009-11-15 23:12:43 +000023288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023289$as_echo_n "checking for signed 16-bit type... " >&6; }
23290INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023291{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23292$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023293
23294
cristy8b350f62009-11-15 23:12:43 +000023295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023296$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23297UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023298{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23299$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023300
23301
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo_n "checking for signed 32-bit type... " >&6; }
23304INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023305INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023306if test $ac_cv_sizeof_signed_int -eq 4; then
23307 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023308 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023309elif test $ac_cv_sizeof_signed_long -eq 4; then
23310 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023311 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023312fi
cristy09b53e12011-10-14 12:47:22 +000023313{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23314$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023315
23316
cristy6d5e20f2011-04-25 13:48:54 +000023317
cristy8b350f62009-11-15 23:12:43 +000023318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023319$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23320UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023321UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023322if test $ac_cv_sizeof_unsigned_int -eq 4; then
23323 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023324 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023325elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23326 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023327 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023328fi
cristy09b53e12011-10-14 12:47:22 +000023329{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23330$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023331
23332
cristy6d5e20f2011-04-25 13:48:54 +000023333
cristy8b350f62009-11-15 23:12:43 +000023334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023335$as_echo_n "checking for signed 64-bit type... " >&6; }
23336INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023337INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023338if test $ac_cv_sizeof_signed_long -eq 8; then
23339 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023340 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023341elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23342 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023343 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023344fi
cristy3a99dcf2011-12-17 01:29:40 +000023345case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023346 mingw* )
23347 INT64_F='"I64"'
23348 ;;
23349esac
cristy09b53e12011-10-14 12:47:22 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23351$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023352
23353
cristy6d5e20f2011-04-25 13:48:54 +000023354
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23357UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023358UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023359if test $ac_cv_sizeof_unsigned_long -eq 8; then
23360 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023361 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023362elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23363 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023364 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023365fi
cristy3a99dcf2011-12-17 01:29:40 +000023366case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023367 mingw* )
23368 UINT64_F='"I64"'
23369 ;;
23370esac
cristy09b53e12011-10-14 12:47:22 +000023371{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23372$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023373
23374
cristy6d5e20f2011-04-25 13:48:54 +000023375
cristy8b350f62009-11-15 23:12:43 +000023376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023377$as_echo_n "checking for unsigned maximum type... " >&6; }
23378UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023379UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023380if test "$UINT64_T" != 'none'; then
23381 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023382 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023383elif test "$UINT32_T" != 'none'; then
23384 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023385 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023386fi
cristy09b53e12011-10-14 12:47:22 +000023387{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23388$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023389
23390
cristy6d5e20f2011-04-25 13:48:54 +000023391
cristy8b350f62009-11-15 23:12:43 +000023392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023393$as_echo_n "checking for pointer difference type... " >&6; }
23394UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023395UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023396if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23397 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023398 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023399elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23400 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023401 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023402fi
cristy09b53e12011-10-14 12:47:22 +000023403{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23404$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023405
23406
cristy6d5e20f2011-04-25 13:48:54 +000023407
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023411/* end confdefs.h. */
23412
23413int
23414main ()
23415{
23416{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23417 ;
23418 return 0;
23419}
23420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023421if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023422 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23423$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023424else
cristy09b53e12011-10-14 12:47:22 +000023425 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23426$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023430/* end confdefs.h. */
23431
23432int
23433main ()
23434{
23435{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23436 ;
23437 return 0;
23438}
23439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023440if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023441 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23442$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023443
cristy8b350f62009-11-15 23:12:43 +000023444$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023445
23446else
cristy09b53e12011-10-14 12:47:22 +000023447 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23448$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023449
cristy8b350f62009-11-15 23:12:43 +000023450$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023451
23452fi
cristy3ed852e2009-09-05 21:47:34 +000023453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454fi
cristy3ed852e2009-09-05 21:47:34 +000023455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456
23457########
23458#
23459# Check for functions
23460#
23461########
cristy73bd4a52010-10-05 11:24:23 +000023462for ac_header in stdlib.h unistd.h
23463do :
23464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23465ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023466if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023467 cat >>confdefs.h <<_ACEOF
23468#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23469_ACEOF
23470
23471fi
23472
23473done
23474
23475for ac_func in getpagesize
23476do :
23477 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023478if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023479 cat >>confdefs.h <<_ACEOF
23480#define HAVE_GETPAGESIZE 1
23481_ACEOF
23482
23483fi
23484done
23485
23486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23487$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023488if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023489 $as_echo_n "(cached) " >&6
23490else
23491 if test "$cross_compiling" = yes; then :
23492 magick_cv_func_mmap_fileio=no
23493else
23494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23495/* end confdefs.h. */
23496$ac_includes_default
23497/* malloc might have been renamed as rpl_malloc. */
23498#undef malloc
23499
23500/*
23501 This test is derived from GNU Autoconf's similar macro.
23502 The purpose of this test is to verify that files may be memory
23503 mapped, and that memory mapping and file I/O are coherent.
23504
23505 The test creates a test file, memory maps the file, updates
23506 the file using the memory map, and then reads the file using
23507 file I/O to verify that the file contains the updates.
23508*/
23509
23510#include <fcntl.h>
23511#include <sys/mman.h>
23512
23513#if !STDC_HEADERS && !HAVE_STDLIB_H
23514char *malloc ();
23515#endif
23516
23517/* This mess was copied from the GNU getpagesize.h. */
23518#if !HAVE_GETPAGESIZE
23519/* Assume that all systems that can run configure have sys/param.h. */
23520# if !HAVE_SYS_PARAM_H
23521# define HAVE_SYS_PARAM_H 1
23522# endif
23523
23524# ifdef _SC_PAGESIZE
23525# define getpagesize() sysconf(_SC_PAGESIZE)
23526# else /* no _SC_PAGESIZE */
23527# if HAVE_SYS_PARAM_H
23528# include <sys/param.h>
23529# ifdef EXEC_PAGESIZE
23530# define getpagesize() EXEC_PAGESIZE
23531# else /* no EXEC_PAGESIZE */
23532# ifdef NBPG
23533# define getpagesize() NBPG * CLSIZE
23534# ifndef CLSIZE
23535# define CLSIZE 1
23536# endif /* no CLSIZE */
23537# else /* no NBPG */
23538# ifdef NBPC
23539# define getpagesize() NBPC
23540# else /* no NBPC */
23541# ifdef PAGESIZE
23542# define getpagesize() PAGESIZE
23543# endif /* PAGESIZE */
23544# endif /* no NBPC */
23545# endif /* no NBPG */
23546# endif /* no EXEC_PAGESIZE */
23547# else /* no HAVE_SYS_PARAM_H */
23548# define getpagesize() 8192 /* punt totally */
23549# endif /* no HAVE_SYS_PARAM_H */
23550# endif /* no _SC_PAGESIZE */
23551
23552#endif /* no HAVE_GETPAGESIZE */
23553
23554int
23555main ()
23556{
23557 char *data, *data2, *data3;
23558 int i, pagesize;
23559 int fd;
23560
23561 pagesize = getpagesize ();
23562
23563 /* First, make a file with some known garbage in it. */
23564 data = (char *) malloc (pagesize);
23565 if (!data)
23566 exit (1);
23567 for (i = 0; i < pagesize; ++i)
23568 *(data + i) = rand ();
23569 umask (0);
23570 fd = creat ("conftest.mmap", 0600);
23571 if (fd < 0)
23572 exit (1);
23573 if (write (fd, data, pagesize) != pagesize)
23574 exit (1);
23575 close (fd);
23576
23577 /* Mmap the file as read/write/shared and verify that we see the
23578 same garbage. */
23579 fd = open ("conftest.mmap", O_RDWR);
23580 if (fd < 0)
23581 exit (1);
23582 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23583 if (data2 == 0)
23584 exit (1);
23585 for (i = 0; i < pagesize; ++i)
23586 if (*(data + i) != *(data2 + i))
23587 exit (1);
23588
23589 /* Finally, make sure that changes to the mapped area
23590 percolate back to the file as seen by read(). */
23591 for (i = 0; i < pagesize; ++i)
23592 *(data2 + i) = *(data2 + i) + 1;
23593 data3 = (char *) malloc (pagesize);
23594 if (!data3)
23595 exit (1);
23596 if (read (fd, data3, pagesize) != pagesize)
23597 exit (1);
23598 for (i = 0; i < pagesize; ++i)
23599 if (*(data2 + i) != *(data3 + i))
23600 exit (1);
23601 close (fd);
23602 exit (0);
23603}
23604_ACEOF
23605if ac_fn_c_try_run "$LINENO"; then :
23606 magick_cv_func_mmap_fileio=yes
23607else
23608 magick_cv_func_mmap_fileio=no
23609fi
23610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23611 conftest.$ac_objext conftest.beam conftest.$ac_ext
23612fi
23613
23614fi
23615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23616$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23617if test $magick_cv_func_mmap_fileio = yes; then
23618
23619$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23620
23621fi
23622rm -f conftest.mmap
23623
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023626if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023627 $as_echo_n "(cached) " >&6
23628else
cristy8b350f62009-11-15 23:12:43 +000023629 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023630 ac_cv_func_closedir_void=yes
23631else
cristy8b350f62009-11-15 23:12:43 +000023632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023633/* end confdefs.h. */
23634$ac_includes_default
23635#include <$ac_header_dirent>
23636#ifndef __cplusplus
23637int closedir ();
23638#endif
23639
23640int
23641main ()
23642{
23643return closedir (opendir (".")) != 0;
23644 ;
23645 return 0;
23646}
23647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023648if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023649 ac_cv_func_closedir_void=no
23650else
cristy8b350f62009-11-15 23:12:43 +000023651 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23654 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023655fi
23656
cristy3ed852e2009-09-05 21:47:34 +000023657fi
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo "$ac_cv_func_closedir_void" >&6; }
23660if test $ac_cv_func_closedir_void = yes; then
23661
cristy8b350f62009-11-15 23:12:43 +000023662$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023663
23664fi
23665
cristycd4c5312009-11-22 01:19:08 +000023666
23667
23668
23669 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023670do :
23671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023672ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23673"
cristy98dddb52010-11-04 00:30:15 +000023674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023675 cat >>confdefs.h <<_ACEOF
23676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23677_ACEOF
23678
23679fi
23680
23681done
23682
cristycd4c5312009-11-22 01:19:08 +000023683
23684
23685
23686
23687
23688
23689
cristy3ed852e2009-09-05 21:47:34 +000023690for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023691do :
23692 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023693if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023694 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023695#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023696_ACEOF
23697
23698fi
23699done
23700
cristy8b350f62009-11-15 23:12:43 +000023701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023702$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023703if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023704 $as_echo_n "(cached) " >&6
23705else
cristy8b350f62009-11-15 23:12:43 +000023706 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023707 ac_cv_func_mmap_fixed_mapped=no
23708else
cristy8b350f62009-11-15 23:12:43 +000023709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023710/* end confdefs.h. */
23711$ac_includes_default
23712/* malloc might have been renamed as rpl_malloc. */
23713#undef malloc
23714
23715/* Thanks to Mike Haertel and Jim Avera for this test.
23716 Here is a matrix of mmap possibilities:
23717 mmap private not fixed
23718 mmap private fixed at somewhere currently unmapped
23719 mmap private fixed at somewhere already mapped
23720 mmap shared not fixed
23721 mmap shared fixed at somewhere currently unmapped
23722 mmap shared fixed at somewhere already mapped
23723 For private mappings, we should verify that changes cannot be read()
23724 back from the file, nor mmap's back from the file at a different
23725 address. (There have been systems where private was not correctly
23726 implemented like the infamous i386 svr4.0, and systems where the
23727 VM page cache was not coherent with the file system buffer cache
23728 like early versions of FreeBSD and possibly contemporary NetBSD.)
23729 For shared mappings, we should conversely verify that changes get
23730 propagated back to all the places they're supposed to be.
23731
23732 Grep wants private fixed already mapped.
23733 The main things grep needs to know about mmap are:
23734 * does it exist and is it safe to write into the mmap'd area
23735 * how to use it (BSD variants) */
23736
23737#include <fcntl.h>
23738#include <sys/mman.h>
23739
23740#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23741char *malloc ();
23742#endif
23743
23744/* This mess was copied from the GNU getpagesize.h. */
23745#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023746# ifdef _SC_PAGESIZE
23747# define getpagesize() sysconf(_SC_PAGESIZE)
23748# else /* no _SC_PAGESIZE */
23749# ifdef HAVE_SYS_PARAM_H
23750# include <sys/param.h>
23751# ifdef EXEC_PAGESIZE
23752# define getpagesize() EXEC_PAGESIZE
23753# else /* no EXEC_PAGESIZE */
23754# ifdef NBPG
23755# define getpagesize() NBPG * CLSIZE
23756# ifndef CLSIZE
23757# define CLSIZE 1
23758# endif /* no CLSIZE */
23759# else /* no NBPG */
23760# ifdef NBPC
23761# define getpagesize() NBPC
23762# else /* no NBPC */
23763# ifdef PAGESIZE
23764# define getpagesize() PAGESIZE
23765# endif /* PAGESIZE */
23766# endif /* no NBPC */
23767# endif /* no NBPG */
23768# endif /* no EXEC_PAGESIZE */
23769# else /* no HAVE_SYS_PARAM_H */
23770# define getpagesize() 8192 /* punt totally */
23771# endif /* no HAVE_SYS_PARAM_H */
23772# endif /* no _SC_PAGESIZE */
23773
23774#endif /* no HAVE_GETPAGESIZE */
23775
23776int
23777main ()
23778{
23779 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023780 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023781 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023782 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023783
23784 pagesize = getpagesize ();
23785
23786 /* First, make a file with some known garbage in it. */
23787 data = (char *) malloc (pagesize);
23788 if (!data)
23789 return 1;
23790 for (i = 0; i < pagesize; ++i)
23791 *(data + i) = rand ();
23792 umask (0);
23793 fd = creat ("conftest.mmap", 0600);
23794 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023795 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023796 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023797 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023798 close (fd);
23799
cristycd4c5312009-11-22 01:19:08 +000023800 /* Next, check that the tail of a page is zero-filled. File must have
23801 non-zero length, otherwise we risk SIGBUS for entire page. */
23802 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23803 if (fd2 < 0)
23804 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023805 cdata2 = "";
23806 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023807 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023808 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023809 if (data2 == MAP_FAILED)
23810 return 6;
23811 for (i = 0; i < pagesize; ++i)
23812 if (*(data2 + i))
23813 return 7;
23814 close (fd2);
23815 if (munmap (data2, pagesize))
23816 return 8;
23817
cristy3ed852e2009-09-05 21:47:34 +000023818 /* Next, try to mmap the file at a fixed address which already has
23819 something else allocated at it. If we can, also make sure that
23820 we see the same garbage. */
23821 fd = open ("conftest.mmap", O_RDWR);
23822 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023823 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023824 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23825 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023826 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023827 for (i = 0; i < pagesize; ++i)
23828 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023829 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023830
23831 /* Finally, make sure that changes to the mapped area do not
23832 percolate back to the file as seen by read(). (This is a bug on
23833 some variants of i386 svr4.0.) */
23834 for (i = 0; i < pagesize; ++i)
23835 *(data2 + i) = *(data2 + i) + 1;
23836 data3 = (char *) malloc (pagesize);
23837 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023838 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023839 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023840 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023841 for (i = 0; i < pagesize; ++i)
23842 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023843 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023844 close (fd);
23845 return 0;
23846}
23847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023848if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023849 ac_cv_func_mmap_fixed_mapped=yes
23850else
cristy8b350f62009-11-15 23:12:43 +000023851 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023852fi
cristy8b350f62009-11-15 23:12:43 +000023853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23854 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023855fi
23856
cristy3ed852e2009-09-05 21:47:34 +000023857fi
cristy8b350f62009-11-15 23:12:43 +000023858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023859$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23860if test $ac_cv_func_mmap_fixed_mapped = yes; then
23861
cristy8b350f62009-11-15 23:12:43 +000023862$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023863
23864fi
cristycd4c5312009-11-22 01:19:08 +000023865rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023866
cristy3ed852e2009-09-05 21:47:34 +000023867for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023868do :
23869 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023870if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023871 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023872#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023873_ACEOF
23874
23875fi
23876
23877done
23878
cristy3ed852e2009-09-05 21:47:34 +000023879for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023880do :
23881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023883if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023884 cat >>confdefs.h <<_ACEOF
23885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23886_ACEOF
23887
23888fi
23889done
23890
23891if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023893$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023894if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 $as_echo_n "(cached) " >&6
23896else
cristy8b350f62009-11-15 23:12:43 +000023897 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023898 ac_cv_func_fork_works=cross
23899else
cristy8b350f62009-11-15 23:12:43 +000023900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023901/* end confdefs.h. */
23902$ac_includes_default
23903int
23904main ()
23905{
23906
23907 /* By Ruediger Kuhlmann. */
23908 return fork () < 0;
23909
23910 ;
23911 return 0;
23912}
23913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023914if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023915 ac_cv_func_fork_works=yes
23916else
cristy8b350f62009-11-15 23:12:43 +000023917 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023918fi
cristy8b350f62009-11-15 23:12:43 +000023919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23920 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023921fi
23922
cristy3ed852e2009-09-05 21:47:34 +000023923fi
cristy8b350f62009-11-15 23:12:43 +000023924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023925$as_echo "$ac_cv_func_fork_works" >&6; }
23926
23927else
23928 ac_cv_func_fork_works=$ac_cv_func_fork
23929fi
23930if test "x$ac_cv_func_fork_works" = xcross; then
23931 case $host in
23932 *-*-amigaos* | *-*-msdosdjgpp*)
23933 # Override, as these systems have only a dummy fork() stub
23934 ac_cv_func_fork_works=no
23935 ;;
23936 *)
23937 ac_cv_func_fork_works=yes
23938 ;;
23939 esac
cristy8b350f62009-11-15 23:12:43 +000023940 { $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 +000023941$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23942fi
23943ac_cv_func_vfork_works=$ac_cv_func_vfork
23944if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023946$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023947if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023948 $as_echo_n "(cached) " >&6
23949else
cristy8b350f62009-11-15 23:12:43 +000023950 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023951 ac_cv_func_vfork_works=cross
23952else
cristy8b350f62009-11-15 23:12:43 +000023953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023954/* end confdefs.h. */
23955/* Thanks to Paul Eggert for this test. */
23956$ac_includes_default
23957#include <sys/wait.h>
23958#ifdef HAVE_VFORK_H
23959# include <vfork.h>
23960#endif
23961/* On some sparc systems, changes by the child to local and incoming
23962 argument registers are propagated back to the parent. The compiler
23963 is told about this with #include <vfork.h>, but some compilers
23964 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23965 static variable whose address is put into a register that is
23966 clobbered by the vfork. */
23967static void
23968#ifdef __cplusplus
23969sparc_address_test (int arg)
23970# else
23971sparc_address_test (arg) int arg;
23972#endif
23973{
23974 static pid_t child;
23975 if (!child) {
23976 child = vfork ();
23977 if (child < 0) {
23978 perror ("vfork");
23979 _exit(2);
23980 }
23981 if (!child) {
23982 arg = getpid();
23983 write(-1, "", 0);
23984 _exit (arg);
23985 }
23986 }
23987}
23988
23989int
23990main ()
23991{
23992 pid_t parent = getpid ();
23993 pid_t child;
23994
23995 sparc_address_test (0);
23996
23997 child = vfork ();
23998
23999 if (child == 0) {
24000 /* Here is another test for sparc vfork register problems. This
24001 test uses lots of local variables, at least as many local
24002 variables as main has allocated so far including compiler
24003 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24004 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24005 reuse the register of parent for one of the local variables,
24006 since it will think that parent can't possibly be used any more
24007 in this routine. Assigning to the local variable will thus
24008 munge parent in the parent process. */
24009 pid_t
24010 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24011 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24012 /* Convince the compiler that p..p7 are live; otherwise, it might
24013 use the same hardware register for all 8 local variables. */
24014 if (p != p1 || p != p2 || p != p3 || p != p4
24015 || p != p5 || p != p6 || p != p7)
24016 _exit(1);
24017
24018 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24019 from child file descriptors. If the child closes a descriptor
24020 before it execs or exits, this munges the parent's descriptor
24021 as well. Test for this by closing stdout in the child. */
24022 _exit(close(fileno(stdout)) != 0);
24023 } else {
24024 int status;
24025 struct stat st;
24026
24027 while (wait(&status) != child)
24028 ;
24029 return (
24030 /* Was there some problem with vforking? */
24031 child < 0
24032
24033 /* Did the child fail? (This shouldn't happen.) */
24034 || status
24035
24036 /* Did the vfork/compiler bug occur? */
24037 || parent != getpid()
24038
24039 /* Did the file descriptor bug occur? */
24040 || fstat(fileno(stdout), &st) != 0
24041 );
24042 }
24043}
24044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024045if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024046 ac_cv_func_vfork_works=yes
24047else
cristy8b350f62009-11-15 23:12:43 +000024048 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024049fi
cristy8b350f62009-11-15 23:12:43 +000024050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24051 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024052fi
24053
cristy3ed852e2009-09-05 21:47:34 +000024054fi
cristy8b350f62009-11-15 23:12:43 +000024055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024056$as_echo "$ac_cv_func_vfork_works" >&6; }
24057
24058fi;
24059if test "x$ac_cv_func_fork_works" = xcross; then
24060 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024061 { $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 +000024062$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24063fi
24064
24065if test "x$ac_cv_func_vfork_works" = xyes; then
24066
cristy8b350f62009-11-15 23:12:43 +000024067$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024068
24069else
24070
cristy8b350f62009-11-15 23:12:43 +000024071$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024072
24073fi
24074if test "x$ac_cv_func_fork_works" = xyes; then
24075
cristy8b350f62009-11-15 23:12:43 +000024076$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024077
24078fi
24079
cristy8b350f62009-11-15 23:12:43 +000024080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024081$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024082if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024083 $as_echo_n "(cached) " >&6
24084else
cristy8b350f62009-11-15 23:12:43 +000024085 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024086 ac_cv_func_memcmp_working=no
24087else
cristy8b350f62009-11-15 23:12:43 +000024088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024089/* end confdefs.h. */
24090$ac_includes_default
24091int
24092main ()
24093{
24094
24095 /* Some versions of memcmp are not 8-bit clean. */
24096 char c0 = '\100', c1 = '\200', c2 = '\201';
24097 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24098 return 1;
24099
24100 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24101 or more and with at least one buffer not starting on a 4-byte boundary.
24102 William Lewis provided this test program. */
24103 {
24104 char foo[21];
24105 char bar[21];
24106 int i;
24107 for (i = 0; i < 4; i++)
24108 {
24109 char *a = foo + i;
24110 char *b = bar + i;
24111 strcpy (a, "--------01111111");
24112 strcpy (b, "--------10000000");
24113 if (memcmp (a, b, 16) >= 0)
24114 return 1;
24115 }
24116 return 0;
24117 }
24118
24119 ;
24120 return 0;
24121}
24122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024123if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024124 ac_cv_func_memcmp_working=yes
24125else
cristy8b350f62009-11-15 23:12:43 +000024126 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024127fi
cristy8b350f62009-11-15 23:12:43 +000024128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24129 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024130fi
24131
cristy3ed852e2009-09-05 21:47:34 +000024132fi
cristy8b350f62009-11-15 23:12:43 +000024133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo "$ac_cv_func_memcmp_working" >&6; }
24135test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24136 *" memcmp.$ac_objext "* ) ;;
24137 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24138 ;;
24139esac
24140
24141
cristy3ed852e2009-09-05 21:47:34 +000024142for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024143do :
24144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24145ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024147 cat >>confdefs.h <<_ACEOF
24148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24149_ACEOF
24150
24151fi
24152
24153done
24154
cristy8b350f62009-11-15 23:12:43 +000024155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024157if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 $as_echo_n "(cached) " >&6
24159else
24160 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24161 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24162 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024164/* end confdefs.h. */
24165$ac_includes_default
24166#ifdef HAVE_SYS_SELECT_H
24167# include <sys/select.h>
24168#endif
24169#ifdef HAVE_SYS_SOCKET_H
24170# include <sys/socket.h>
24171#endif
24172
24173int
24174main ()
24175{
24176extern int select ($ac_arg1,
24177 $ac_arg234, $ac_arg234, $ac_arg234,
24178 $ac_arg5);
24179 ;
24180 return 0;
24181}
24182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024183if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024184 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy3ed852e2009-09-05 21:47:34 +000024186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 done
24188 done
24189done
24190# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024191: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024192
24193fi
cristy8b350f62009-11-15 23:12:43 +000024194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024195$as_echo "$ac_cv_func_select_args" >&6; }
24196ac_save_IFS=$IFS; IFS=','
24197set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24198IFS=$ac_save_IFS
24199shift
24200
24201cat >>confdefs.h <<_ACEOF
24202#define SELECT_TYPE_ARG1 $1
24203_ACEOF
24204
24205
24206cat >>confdefs.h <<_ACEOF
24207#define SELECT_TYPE_ARG234 ($2)
24208_ACEOF
24209
24210
24211cat >>confdefs.h <<_ACEOF
24212#define SELECT_TYPE_ARG5 ($3)
24213_ACEOF
24214
24215rm -f conftest*
24216
cristyda16f162011-02-19 23:52:17 +000024217if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024218 $as_echo_n "(cached) " >&6
24219else
24220 ac_cv_func_setvbuf_reversed=no
24221fi
24222
24223
cristy8b350f62009-11-15 23:12:43 +000024224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024226if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 $as_echo_n "(cached) " >&6
24228else
cristy8b350f62009-11-15 23:12:43 +000024229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024230/* end confdefs.h. */
24231#include <sys/types.h>
24232#include <signal.h>
24233
24234int
24235main ()
24236{
24237return *(signal (0, 0)) (0) == 1;
24238 ;
24239 return 0;
24240}
24241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024242if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 ac_cv_type_signal=int
24244else
cristy8b350f62009-11-15 23:12:43 +000024245 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024246fi
cristy3ed852e2009-09-05 21:47:34 +000024247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248fi
cristy8b350f62009-11-15 23:12:43 +000024249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024250$as_echo "$ac_cv_type_signal" >&6; }
24251
24252cat >>confdefs.h <<_ACEOF
24253#define RETSIGTYPE $ac_cv_type_signal
24254_ACEOF
24255
24256
cristy8b350f62009-11-15 23:12:43 +000024257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024258$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024259if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024260 $as_echo_n "(cached) " >&6
24261else
cristy8b350f62009-11-15 23:12:43 +000024262 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 ac_cv_func_strtod=no
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024266/* end confdefs.h. */
24267
24268$ac_includes_default
24269#ifndef strtod
24270double strtod ();
24271#endif
24272int
24273main()
24274{
24275 {
24276 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24277 char *string = " +69";
24278 char *term;
24279 double value;
24280 value = strtod (string, &term);
24281 if (value != 69 || term != (string + 4))
24282 return 1;
24283 }
24284
24285 {
24286 /* Under Solaris 2.4, strtod returns the wrong value for the
24287 terminating character under some conditions. */
24288 char *string = "NaN";
24289 char *term;
24290 strtod (string, &term);
24291 if (term != string && *(term - 1) == 0)
24292 return 1;
24293 }
24294 return 0;
24295}
24296
24297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024298if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024299 ac_cv_func_strtod=yes
24300else
cristy8b350f62009-11-15 23:12:43 +000024301 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024302fi
cristy8b350f62009-11-15 23:12:43 +000024303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24304 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024305fi
24306
cristy3ed852e2009-09-05 21:47:34 +000024307fi
cristy8b350f62009-11-15 23:12:43 +000024308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo "$ac_cv_func_strtod" >&6; }
24310if test $ac_cv_func_strtod = no; then
24311 case " $LIBOBJS " in
24312 *" strtod.$ac_objext "* ) ;;
24313 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24314 ;;
24315esac
24316
cristy8b350f62009-11-15 23:12:43 +000024317ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024318if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024319
cristy3ed852e2009-09-05 21:47:34 +000024320fi
24321
cristy3ed852e2009-09-05 21:47:34 +000024322if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024325if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 $as_echo_n "(cached) " >&6
24327else
24328 ac_check_lib_save_LIBS=$LIBS
24329LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024331/* end confdefs.h. */
24332
24333/* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24336#ifdef __cplusplus
24337extern "C"
24338#endif
24339char pow ();
24340int
24341main ()
24342{
24343return pow ();
24344 ;
24345 return 0;
24346}
24347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 ac_cv_lib_m_pow=yes
24350else
cristy8b350f62009-11-15 23:12:43 +000024351 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024352fi
cristy8b350f62009-11-15 23:12:43 +000024353rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024355LIBS=$ac_check_lib_save_LIBS
24356fi
cristy8b350f62009-11-15 23:12:43 +000024357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024358$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024359if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 POW_LIB=-lm
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024363$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24364fi
24365
24366fi
24367
24368fi
24369
cristy7d4a1d62011-10-13 15:54:12 +000024370ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24371if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24372 ac_have_decl=1
24373else
24374 ac_have_decl=0
24375fi
24376
24377cat >>confdefs.h <<_ACEOF
24378#define HAVE_DECL_STRERROR_R $ac_have_decl
24379_ACEOF
24380
24381for ac_func in strerror_r
24382do :
24383 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24384if test "x$ac_cv_func_strerror_r" = xyes; then :
24385 cat >>confdefs.h <<_ACEOF
24386#define HAVE_STRERROR_R 1
24387_ACEOF
24388
24389fi
24390done
24391
24392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24393$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24394if ${ac_cv_func_strerror_r_char_p+:} false; then :
24395 $as_echo_n "(cached) " >&6
24396else
24397
24398 ac_cv_func_strerror_r_char_p=no
24399 if test $ac_cv_have_decl_strerror_r = yes; then
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401/* end confdefs.h. */
24402$ac_includes_default
24403int
24404main ()
24405{
24406
24407 char buf[100];
24408 char x = *strerror_r (0, buf, sizeof buf);
24409 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024410 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024411
24412 ;
24413 return 0;
24414}
24415_ACEOF
24416if ac_fn_c_try_compile "$LINENO"; then :
24417 ac_cv_func_strerror_r_char_p=yes
24418fi
24419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420 else
24421 # strerror_r is not declared. Choose between
24422 # systems that have relatively inaccessible declarations for the
24423 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24424 # former has a strerror_r that returns char*, while the latter
24425 # has a strerror_r that returns `int'.
24426 # This test should segfault on the DEC system.
24427 if test "$cross_compiling" = yes; then :
24428 :
24429else
24430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24431/* end confdefs.h. */
24432$ac_includes_default
24433 extern char *strerror_r ();
24434int
24435main ()
24436{
24437char buf[100];
24438 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024439 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024440 ;
24441 return 0;
24442}
24443_ACEOF
24444if ac_fn_c_try_run "$LINENO"; then :
24445 ac_cv_func_strerror_r_char_p=yes
24446fi
24447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24448 conftest.$ac_objext conftest.beam conftest.$ac_ext
24449fi
24450
24451 fi
24452
24453fi
24454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24455$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24456if test $ac_cv_func_strerror_r_char_p = yes; then
24457
24458$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24459
24460fi
24461
cristy3ed852e2009-09-05 21:47:34 +000024462for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024463do :
24464 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024465if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024467#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024468_ACEOF
24469
cristy8b350f62009-11-15 23:12:43 +000024470ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024471if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024472
cristy8b350f62009-11-15 23:12:43 +000024473$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024474
24475fi
24476
24477fi
24478done
24479
24480
24481
cristy161b9262010-03-20 19:34:32 +000024482#
24483# Find math library
24484#
24485MATH_LIBS=''
24486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24487$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024488if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024489 $as_echo_n "(cached) " >&6
24490else
24491 ac_check_lib_save_LIBS=$LIBS
24492LIBS="-lm $LIBS"
24493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494/* end confdefs.h. */
24495
24496/* Override any GCC internal prototype to avoid an error.
24497 Use char because int might match the return type of a GCC
24498 builtin and then its argument prototype would still apply. */
24499#ifdef __cplusplus
24500extern "C"
24501#endif
24502char sqrt ();
24503int
24504main ()
24505{
24506return sqrt ();
24507 ;
24508 return 0;
24509}
24510_ACEOF
24511if ac_fn_c_try_link "$LINENO"; then :
24512 ac_cv_lib_m_sqrt=yes
24513else
24514 ac_cv_lib_m_sqrt=no
24515fi
24516rm -f core conftest.err conftest.$ac_objext \
24517 conftest$ac_exeext conftest.$ac_ext
24518LIBS=$ac_check_lib_save_LIBS
24519fi
24520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24521$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024522if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024523 MATH_LIBS="-lm"
24524fi
24525
24526LIBS="$MATH_LIBS $LIBS"
24527
24528
cristy568c2d42012-07-27 01:41:20 +000024529for 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 +000024530do :
24531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24532ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024533if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024534 cat >>confdefs.h <<_ACEOF
24535#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24536_ACEOF
24537
24538fi
24539done
24540
24541
cristye43a45e2009-09-28 14:49:00 +000024542#
24543# Check for clock_gettime().
24544#
cristy8b350f62009-11-15 23:12:43 +000024545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024546$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024547if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024548 $as_echo_n "(cached) " >&6
24549else
24550 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024552/* end confdefs.h. */
24553
24554/* Override any GCC internal prototype to avoid an error.
24555 Use char because int might match the return type of a GCC
24556 builtin and then its argument prototype would still apply. */
24557#ifdef __cplusplus
24558extern "C"
24559#endif
24560char clock_gettime ();
24561int
24562main ()
24563{
24564return clock_gettime ();
24565 ;
24566 return 0;
24567}
24568_ACEOF
24569for ac_lib in '' rt; do
24570 if test -z "$ac_lib"; then
24571 ac_res="none required"
24572 else
24573 ac_res=-l$ac_lib
24574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24575 fi
cristy8b350f62009-11-15 23:12:43 +000024576 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024577 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024578fi
cristy8b350f62009-11-15 23:12:43 +000024579rm -f core conftest.err conftest.$ac_objext \
24580 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024581 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024582 break
24583fi
24584done
cristyda16f162011-02-19 23:52:17 +000024585if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024586
cristye43a45e2009-09-28 14:49:00 +000024587else
24588 ac_cv_search_clock_gettime=no
24589fi
24590rm conftest.$ac_ext
24591LIBS=$ac_func_search_save_LIBS
24592fi
cristy8b350f62009-11-15 23:12:43 +000024593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024594$as_echo "$ac_cv_search_clock_gettime" >&6; }
24595ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024596if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24598
24599
cristy8b350f62009-11-15 23:12:43 +000024600$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024601
cristy8b350f62009-11-15 23:12:43 +000024602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024603$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024605/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024606
24607 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024608int
24609main ()
24610{
24611clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024612 ;
24613 return 0;
24614}
24615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024616if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024617
cristy09b53e12011-10-14 12:47:22 +000024618 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24619$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024620
cristy8b350f62009-11-15 23:12:43 +000024621$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024622
24623
24624else
cristy09b53e12011-10-14 12:47:22 +000024625 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24626$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024627
24628fi
cristye43a45e2009-09-28 14:49:00 +000024629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24630
24631else
24632
cristy8b350f62009-11-15 23:12:43 +000024633 for ac_func in gettimeofday ftime
24634do :
24635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24636ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024637if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024638 cat >>confdefs.h <<_ACEOF
24639#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24640_ACEOF
24641 break
24642fi
24643done
24644
24645
24646
24647fi
24648
24649
cristy3ed852e2009-09-05 21:47:34 +000024650########
24651#
24652# Check for function prototypes
24653#
24654########
24655
cristy8b350f62009-11-15 23:12:43 +000024656ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024657#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024658"
cristyda16f162011-02-19 23:52:17 +000024659if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024660 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024661else
cristy8b350f62009-11-15 23:12:43 +000024662 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024663fi
24664
cristy3ed852e2009-09-05 21:47:34 +000024665cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024666#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024668ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024669#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024670"
cristyda16f162011-02-19 23:52:17 +000024671if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024672 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024673else
cristy8b350f62009-11-15 23:12:43 +000024674 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024675fi
24676
cristy3ed852e2009-09-05 21:47:34 +000024677cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024678#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024679_ACEOF
24680
24681
cristy8b350f62009-11-15 23:12:43 +000024682ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024683#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024684"
cristyda16f162011-02-19 23:52:17 +000024685if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024686 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024687else
cristy8b350f62009-11-15 23:12:43 +000024688 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024689fi
24690
cristy3ed852e2009-09-05 21:47:34 +000024691cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024692#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024693_ACEOF
24694
24695
cristy8b350f62009-11-15 23:12:43 +000024696ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024697#include <stdio.h>
24698#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024699"
cristyda16f162011-02-19 23:52:17 +000024700if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024701 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024702else
cristy8b350f62009-11-15 23:12:43 +000024703 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024704fi
24705
cristy3ed852e2009-09-05 21:47:34 +000024706cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024707#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024708_ACEOF
24709
24710
cristy3ed852e2009-09-05 21:47:34 +000024711########
24712#
24713# C++ Support Tests (For Magick++)
24714#
24715########
24716have_magick_plus_plus='no'
24717if test "$with_magick_plus_plus" = 'yes'; then
24718 OLIBS="$LIBS"
24719 LIBS=''
24720 ac_ext=cpp
24721ac_cpp='$CXXCPP $CPPFLAGS'
24722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24725
24726
24727 # Full set of headers used...
24728 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24729 # functional iomanip iosfwd iostream iterator list string strstream utility
24730 ac_ext=cpp
24731ac_cpp='$CXXCPP $CPPFLAGS'
24732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24735
24736 ac_ext=cpp
24737ac_cpp='$CXXCPP $CPPFLAGS'
24738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24741if test -z "$CXX"; then
24742 if test -n "$CCC"; then
24743 CXX=$CCC
24744 else
24745 if test -n "$ac_tool_prefix"; then
24746 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24747 do
24748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024752if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 $as_echo_n "(cached) " >&6
24754else
24755 if test -n "$CXX"; then
24756 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24757else
24758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24759for as_dir in $PATH
24760do
24761 IFS=$as_save_IFS
24762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024765 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767 break 2
24768 fi
24769done
cristy8b350f62009-11-15 23:12:43 +000024770 done
cristy3ed852e2009-09-05 21:47:34 +000024771IFS=$as_save_IFS
24772
24773fi
24774fi
24775CXX=$ac_cv_prog_CXX
24776if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024778$as_echo "$CXX" >&6; }
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "no" >&6; }
24782fi
24783
24784
24785 test -n "$CXX" && break
24786 done
24787fi
24788if test -z "$CXX"; then
24789 ac_ct_CXX=$CXX
24790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24791do
24792 # Extract the first word of "$ac_prog", so it can be a program name with args.
24793set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024796if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024797 $as_echo_n "(cached) " >&6
24798else
24799 if test -n "$ac_ct_CXX"; then
24800 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24801else
24802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24803for as_dir in $PATH
24804do
24805 IFS=$as_save_IFS
24806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000024808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000024809 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024811 break 2
24812 fi
24813done
cristy8b350f62009-11-15 23:12:43 +000024814 done
cristy3ed852e2009-09-05 21:47:34 +000024815IFS=$as_save_IFS
24816
24817fi
24818fi
24819ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24820if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024822$as_echo "$ac_ct_CXX" >&6; }
24823else
cristy8b350f62009-11-15 23:12:43 +000024824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024825$as_echo "no" >&6; }
24826fi
24827
24828
24829 test -n "$ac_ct_CXX" && break
24830done
24831
24832 if test "x$ac_ct_CXX" = x; then
24833 CXX="g++"
24834 else
24835 case $cross_compiling:$ac_tool_warned in
24836yes:)
cristy8b350f62009-11-15 23:12:43 +000024837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24839ac_tool_warned=yes ;;
24840esac
24841 CXX=$ac_ct_CXX
24842 fi
24843fi
24844
24845 fi
24846fi
24847# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024848$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024849set X $ac_compile
24850ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024851for ac_option in --version -v -V -qversion; do
24852 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024853case "(($ac_try" in
24854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855 *) ac_try_echo=$ac_try;;
24856esac
cristy8b350f62009-11-15 23:12:43 +000024857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24858$as_echo "$ac_try_echo"; } >&5
24859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024860 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024861 if test -s conftest.err; then
24862 sed '10a\
24863... rest of stderr output deleted ...
24864 10q' conftest.err >conftest.er1
24865 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024866 fi
cristycd4c5312009-11-22 01:19:08 +000024867 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }
24870done
cristy3ed852e2009-09-05 21:47:34 +000024871
cristy8b350f62009-11-15 23:12:43 +000024872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024873$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024874if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024875 $as_echo_n "(cached) " >&6
24876else
cristy8b350f62009-11-15 23:12:43 +000024877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024878/* end confdefs.h. */
24879
24880int
24881main ()
24882{
24883#ifndef __GNUC__
24884 choke me
24885#endif
24886
24887 ;
24888 return 0;
24889}
24890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024891if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024892 ac_compiler_gnu=yes
24893else
cristy8b350f62009-11-15 23:12:43 +000024894 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024895fi
cristy3ed852e2009-09-05 21:47:34 +000024896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24898
24899fi
cristy8b350f62009-11-15 23:12:43 +000024900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024901$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24902if test $ac_compiler_gnu = yes; then
24903 GXX=yes
24904else
24905 GXX=
24906fi
24907ac_test_CXXFLAGS=${CXXFLAGS+set}
24908ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024910$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024911if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024912 $as_echo_n "(cached) " >&6
24913else
24914 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24915 ac_cxx_werror_flag=yes
24916 ac_cv_prog_cxx_g=no
24917 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024919/* end confdefs.h. */
24920
24921int
24922main ()
24923{
24924
24925 ;
24926 return 0;
24927}
24928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024929if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024930 ac_cv_prog_cxx_g=yes
24931else
cristy8b350f62009-11-15 23:12:43 +000024932 CXXFLAGS=""
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024934/* end confdefs.h. */
24935
24936int
24937main ()
24938{
24939
24940 ;
24941 return 0;
24942}
24943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024944if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024945
cristy8b350f62009-11-15 23:12:43 +000024946else
24947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024948 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024950/* end confdefs.h. */
24951
24952int
24953main ()
24954{
24955
24956 ;
24957 return 0;
24958}
24959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024960if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024961 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024962fi
cristy3ed852e2009-09-05 21:47:34 +000024963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964fi
cristy3ed852e2009-09-05 21:47:34 +000024965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24966fi
cristy3ed852e2009-09-05 21:47:34 +000024967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24969fi
cristy8b350f62009-11-15 23:12:43 +000024970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024971$as_echo "$ac_cv_prog_cxx_g" >&6; }
24972if test "$ac_test_CXXFLAGS" = set; then
24973 CXXFLAGS=$ac_save_CXXFLAGS
24974elif test $ac_cv_prog_cxx_g = yes; then
24975 if test "$GXX" = yes; then
24976 CXXFLAGS="-g -O2"
24977 else
24978 CXXFLAGS="-g"
24979 fi
24980else
24981 if test "$GXX" = yes; then
24982 CXXFLAGS="-O2"
24983 else
24984 CXXFLAGS=
24985 fi
24986fi
24987ac_ext=cpp
24988ac_cpp='$CXXCPP $CPPFLAGS'
24989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24992
cristy73bd4a52010-10-05 11:24:23 +000024993depcc="$CXX" am_compiler_list=
24994
24995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24996$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024997if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024998 $as_echo_n "(cached) " >&6
24999else
25000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25001 # We make a subdir and do the tests there. Otherwise we can end up
25002 # making bogus files that we don't know about and never remove. For
25003 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025004 # making a dummy file named 'D' -- because '-MD' means "put the output
25005 # in D".
cristy7247bba2012-02-05 16:37:27 +000025006 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025007 mkdir conftest.dir
25008 # Copy depcomp to subdir because otherwise we won't find it if we're
25009 # using a relative directory.
25010 cp "$am_depcomp" conftest.dir
25011 cd conftest.dir
25012 # We will build objects and dependencies in a subdirectory because
25013 # it helps to detect inapplicable dependency modes. For instance
25014 # both Tru64's cc and ICC support -MD to output dependencies as a
25015 # side effect of compilation, but ICC will put the dependencies in
25016 # the current directory while Tru64 will put them in the object
25017 # directory.
25018 mkdir sub
25019
25020 am_cv_CXX_dependencies_compiler_type=none
25021 if test "$am_compiler_list" = ""; then
25022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25023 fi
25024 am__universal=false
25025 case " $depcc " in #(
25026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25027 esac
25028
25029 for depmode in $am_compiler_list; do
25030 # Setup a source with many dependencies, because some compilers
25031 # like to wrap large dependency lists on column 80 (with \), and
25032 # we should not choose a depcomp mode which is confused by this.
25033 #
25034 # We need to recreate these files for each test, as the compiler may
25035 # overwrite some of them when testing with obscure command lines.
25036 # This happens at least with the AIX C compiler.
25037 : > sub/conftest.c
25038 for i in 1 2 3 4 5 6; do
25039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25041 # Solaris 10 /bin/sh.
25042 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025043 done
25044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25045
cristyc0890a62012-07-19 00:18:20 +000025046 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025047 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025048 # handle '-M -o', and we need to detect this. Also, some Intel
25049 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025050 am__obj=sub/conftest.${OBJEXT-o}
25051 am__minus_obj="-o $am__obj"
25052 case $depmode in
25053 gcc)
25054 # This depmode causes a compiler race in universal mode.
25055 test "$am__universal" = false || continue
25056 ;;
25057 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025058 # After this tag, mechanisms are not by side-effect, so they'll
25059 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025060 if test "x$enable_dependency_tracking" = xyes; then
25061 continue
25062 else
25063 break
25064 fi
25065 ;;
cristy7247bba2012-02-05 16:37:27 +000025066 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025067 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025068 # not run yet. These depmodes are late enough in the game, and
25069 # so weak that their functioning should not be impacted.
25070 am__obj=conftest.${OBJEXT-o}
25071 am__minus_obj=
25072 ;;
25073 none) break ;;
25074 esac
25075 if depmode=$depmode \
25076 source=sub/conftest.c object=$am__obj \
25077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25079 >/dev/null 2>conftest.err &&
25080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25084 # icc doesn't choke on unknown options, it will just issue warnings
25085 # or remarks (even with -Werror). So we grep stderr for any message
25086 # that says an option was ignored or not supported.
25087 # When given -MP, icc 7.0 and 7.1 complain thusly:
25088 # icc: Command line warning: ignoring option '-M'; no argument required
25089 # The diagnosis changed in icc 8.0:
25090 # icc: Command line remark: option '-MP' not supported
25091 if (grep 'ignoring option' conftest.err ||
25092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25093 am_cv_CXX_dependencies_compiler_type=$depmode
25094 break
25095 fi
25096 fi
25097 done
25098
25099 cd ..
25100 rm -rf conftest.dir
25101else
25102 am_cv_CXX_dependencies_compiler_type=none
25103fi
25104
25105fi
25106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25107$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25108CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25109
25110 if
25111 test "x$enable_dependency_tracking" != xno \
25112 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25113 am__fastdepCXX_TRUE=
25114 am__fastdepCXX_FALSE='#'
25115else
25116 am__fastdepCXX_TRUE='#'
25117 am__fastdepCXX_FALSE=
25118fi
25119
25120
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25122$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025123if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025124 $as_echo_n "(cached) " >&6
25125else
25126
25127 ac_ext=cpp
25128ac_cpp='$CXXCPP $CPPFLAGS'
25129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25132
25133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134/* end confdefs.h. */
25135
25136int f(int x){return 1;}
25137int f(char x){return 1;}
25138int f(bool x){return 1;}
25139
25140int
25141main ()
25142{
25143bool b = true; return f(b);
25144 ;
25145 return 0;
25146}
25147_ACEOF
25148if ac_fn_cxx_try_compile "$LINENO"; then :
25149 ax_cv_cxx_bool=yes
25150else
25151 ax_cv_cxx_bool=no
25152fi
25153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 ac_ext=cpp
25155ac_cpp='$CXXCPP $CPPFLAGS'
25156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25159
25160
25161fi
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25163$as_echo "$ax_cv_cxx_bool" >&6; }
25164if test "$ax_cv_cxx_bool" = yes; then
25165
25166$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25167
25168fi
25169
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25171$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025172if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025173 $as_echo_n "(cached) " >&6
25174else
25175
25176 ac_ext=cpp
25177ac_cpp='$CXXCPP $CPPFLAGS'
25178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25181
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183/* end confdefs.h. */
25184namespace Outer { namespace Inner { int i = 0; }}
25185int
25186main ()
25187{
25188using namespace Outer::Inner; return i;
25189 ;
25190 return 0;
25191}
25192_ACEOF
25193if ac_fn_cxx_try_compile "$LINENO"; then :
25194 ax_cv_cxx_namespaces=yes
25195else
25196 ax_cv_cxx_namespaces=no
25197fi
25198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25199 ac_ext=cpp
25200ac_cpp='$CXXCPP $CPPFLAGS'
25201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25204
25205
25206fi
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25208$as_echo "$ax_cv_cxx_namespaces" >&6; }
25209if test "$ax_cv_cxx_namespaces" = yes; then
25210
25211$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25212
25213fi
25214
25215
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25217$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025218if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025219 $as_echo_n "(cached) " >&6
25220else
25221
25222 ac_ext=cpp
25223ac_cpp='$CXXCPP $CPPFLAGS'
25224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25227
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229/* end confdefs.h. */
25230#include <iostream>
25231 std::istream& is = std::cin;
25232int
25233main ()
25234{
25235
25236 ;
25237 return 0;
25238}
25239_ACEOF
25240if ac_fn_cxx_try_compile "$LINENO"; then :
25241 ax_cv_cxx_have_std_namespace=yes
25242else
25243 ax_cv_cxx_have_std_namespace=no
25244fi
25245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 ac_ext=cpp
25247ac_cpp='$CXXCPP $CPPFLAGS'
25248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25251
25252
25253fi
25254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25255$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25256 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25257
25258$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25259
25260 fi
25261
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25263$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025264if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025265 $as_echo_n "(cached) " >&6
25266else
25267
25268
25269 ac_ext=cpp
25270ac_cpp='$CXXCPP $CPPFLAGS'
25271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25274
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276/* end confdefs.h. */
25277#include <iostream>
25278#include <map>
25279#include <iomanip>
25280#include <cmath>
25281#ifdef HAVE_NAMESPACES
25282using namespace std;
25283#endif
25284int
25285main ()
25286{
25287return 0;
25288 ;
25289 return 0;
25290}
25291_ACEOF
25292if ac_fn_cxx_try_compile "$LINENO"; then :
25293 ac_cv_cxx_have_std_libs=yes
25294else
25295 ac_cv_cxx_have_std_libs=no
25296fi
25297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 ac_ext=cpp
25299ac_cpp='$CXXCPP $CPPFLAGS'
25300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25303
25304
25305fi
25306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25307$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25308if test "$ac_cv_cxx_have_std_libs" = yes; then
25309
25310$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25311
25312fi
25313
cristy3ed852e2009-09-05 21:47:34 +000025314
25315 OPENMP_CXXFLAGS=
25316 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025317if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025318 enableval=$enable_openmp;
25319fi
25320
25321 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25323$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025324if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025325 $as_echo_n "(cached) " >&6
25326else
cristy8b350f62009-11-15 23:12:43 +000025327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025329
25330#ifndef _OPENMP
25331 choke me
25332#endif
25333#include <omp.h>
25334int main () { return omp_get_num_threads (); }
25335
25336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025337if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 ac_cv_prog_cxx_openmp='none needed'
25339else
cristy8b350f62009-11-15 23:12:43 +000025340 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025341 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25342 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025343 ac_save_CXXFLAGS=$CXXFLAGS
25344 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025347
25348#ifndef _OPENMP
25349 choke me
25350#endif
25351#include <omp.h>
25352int main () { return omp_get_num_threads (); }
25353
25354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025355if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025357fi
cristy8b350f62009-11-15 23:12:43 +000025358rm -f core conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025360 CXXFLAGS=$ac_save_CXXFLAGS
25361 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25362 break
25363 fi
25364 done
25365fi
cristy8b350f62009-11-15 23:12:43 +000025366rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368fi
cristy8b350f62009-11-15 23:12:43 +000025369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025370$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25371 case $ac_cv_prog_cxx_openmp in #(
25372 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025373 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025374 *)
cristy8b350f62009-11-15 23:12:43 +000025375 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025376 esac
25377 fi
25378
25379
25380 ac_ext=c
25381ac_cpp='$CPP $CPPFLAGS'
25382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25384ac_compiler_gnu=$ac_cv_c_compiler_gnu
25385
25386
cristy8b350f62009-11-15 23:12:43 +000025387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25389 if \
cristy964cb7f2010-04-25 23:18:00 +000025390 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025391 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025392 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025393 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025394 have_magick_plus_plus='yes'
25395 else
25396 have_magick_plus_plus='no (failed tests)'
25397 fi
cristy09b53e12011-10-14 12:47:22 +000025398 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25399$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025400 LIBS="$OLIBS"
25401fi
cristy73bd4a52010-10-05 11:24:23 +000025402 if test "$have_magick_plus_plus" = 'yes'; then
25403 WITH_MAGICK_PLUS_PLUS_TRUE=
25404 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25405else
25406 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25407 WITH_MAGICK_PLUS_PLUS_FALSE=
25408fi
25409
cristy3ed852e2009-09-05 21:47:34 +000025410
25411# Only check for delegate libraries in subdirectories if requested.
25412if test "$enable_delegate_build" != 'no'; then
25413 # Check for delegate sub-directories and add -I & -L options as required.
25414 # This presumes that delegates are installed as detailed in the ImageMagick
25415 # README. If delegates are installed in a standard location where the
25416 # compiler will automatically find them then these options should not be
25417 # required.
25418
25419 #
25420 # Most delegates have includes in the same directory as the library, but not all...
25421 #
25422 # Includes
cristy2542fc62011-12-06 17:50:25 +000025423 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 +000025424 if test -d "$builddir/$dir"; then
25425 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25426 else
25427 if test -d "$srcdirfull/$dir"; then
25428 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25429 fi
25430 fi
25431 done
25432
25433 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025434 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 +000025435 if test -d "$builddir/$dir/.libs"; then
25436 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25437 else
25438 if test -d "$srcdirfull/$dir/.libs"; then
25439 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25440 fi
25441 fi
25442 if test -d "$builddir/$dir"; then
25443 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25444 else
25445 if test -d "$srcdirfull/$dir"; then
25446 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25447 fi
25448 fi
25449 done
25450fi
25451
25452# Assume that delegate headers reside under same directory as ImageMagick
25453# installation prefix.
25454MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25455
25456#
25457# Find the X11 RGB database
25458#
cristy8b350f62009-11-15 23:12:43 +000025459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025461if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 # Look for the header file in a standard set of common directories.
25465# Check X11 before X11Rn because it is often a symlink to the current release.
25466 for ac_dir in \
25467 /lib/usr/lib/X11 \
25468 /usr/X11/lib \
25469 /usr/X11R4/lib \
25470 /usr/X11R5/lib \
25471 /usr/X11R6/lib \
25472 /usr/X11R7/lib \
25473 /usr/X386/lib \
25474 /usr/XFree86/lib/X11 \
25475 /usr/athena/lib \
25476 /usr/lib \
25477 /usr/lib/X11 \
25478 /usr/lib/X11R4 \
25479 /usr/lib/X11R5 \
25480 /usr/lib/X11R6 \
25481 /usr/lib/X11R7 \
25482 /usr/local/X11/lib \
25483 /usr/local/X11R4/lib \
25484 /usr/local/X11R5/lib \
25485 /usr/local/X11R6/lib \
25486 /usr/local/lib \
25487 /usr/local/lib/X11 \
25488 /usr/local/lib/X11R4 \
25489 /usr/local/lib/X11R5 \
25490 /usr/local/lib/X11R6 \
25491 /usr/local/lib/X11R7 \
25492 /usr/local/x11r5/lib \
25493 /usr/lpp/Xamples/lib \
25494 /usr/openwin/lib \
25495 /usr/openwin/share/lib \
25496 /usr/unsupported/lib \
25497 /usr/x386/lib \
25498 ; do
25499 if test -f "$ac_dir/X11/rgb.txt"; then
25500 im_cv_x_configure="$ac_dir/X11/"
25501 break
25502 elif test -f "$ac_dir/rgb.txt"; then
25503 im_cv_x_configure="$ac_dir/"
25504 break
25505 fi
25506
25507 done
25508fi
cristy8b350f62009-11-15 23:12:43 +000025509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025510$as_echo "$im_cv_x_configure" >&6; }
25511X11_CONFIGURE_PATH="$im_cv_x_configure"
25512case "${build_os}" in
25513 mingw* )
25514 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25515 ;;
25516esac
25517
25518cat >>confdefs.h <<_ACEOF
25519#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25520_ACEOF
25521
25522
25523#
25524# Find OpenMP library
25525#
25526GOMP_LIBS=''
25527if test "$enable_openmp" != 'no'; then
25528 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025529 # Open64 (passes for GCC but uses different OpenMP implementation)
25530 if test "x$GOMP_LIBS" = x ; then
25531 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25533$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25534if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25535 $as_echo_n "(cached) " >&6
25536else
25537 ac_check_lib_save_LIBS=$LIBS
25538LIBS="-lopenmp $LIBS"
25539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25540/* end confdefs.h. */
25541
25542/* Override any GCC internal prototype to avoid an error.
25543 Use char because int might match the return type of a GCC
25544 builtin and then its argument prototype would still apply. */
25545#ifdef __cplusplus
25546extern "C"
25547#endif
25548char omp_get_num_procs ();
25549int
25550main ()
25551{
25552return omp_get_num_procs ();
25553 ;
25554 return 0;
25555}
25556_ACEOF
25557if ac_fn_c_try_link "$LINENO"; then :
25558 ac_cv_lib_openmp_omp_get_num_procs=yes
25559else
25560 ac_cv_lib_openmp_omp_get_num_procs=no
25561fi
25562rm -f core conftest.err conftest.$ac_objext \
25563 conftest$ac_exeext conftest.$ac_ext
25564LIBS=$ac_check_lib_save_LIBS
25565fi
25566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25567$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25568if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25569 GOMP_LIBS="-lopenmp"
25570fi
25571
25572 fi
25573 fi
25574 # GCC
25575 if test "x$GOMP_LIBS" = x ; then
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025577$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025578if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 $as_echo_n "(cached) " >&6
25580else
25581 ac_check_lib_save_LIBS=$LIBS
25582LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025584/* end confdefs.h. */
25585
25586/* Override any GCC internal prototype to avoid an error.
25587 Use char because int might match the return type of a GCC
25588 builtin and then its argument prototype would still apply. */
25589#ifdef __cplusplus
25590extern "C"
25591#endif
25592char GOMP_parallel_start ();
25593int
25594main ()
25595{
25596return GOMP_parallel_start ();
25597 ;
25598 return 0;
25599}
25600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025602 ac_cv_lib_gomp_GOMP_parallel_start=yes
25603else
cristy8b350f62009-11-15 23:12:43 +000025604 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025605fi
cristy8b350f62009-11-15 23:12:43 +000025606rm -f core conftest.err conftest.$ac_objext \
25607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025608LIBS=$ac_check_lib_save_LIBS
25609fi
cristy8b350f62009-11-15 23:12:43 +000025610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025611$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025612if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025613 GOMP_LIBS="-lgomp"
25614fi
cristy18307f12011-12-30 01:20:16 +000025615
25616 fi
cristy3ed852e2009-09-05 21:47:34 +000025617 else
cristy18307f12011-12-30 01:20:16 +000025618 # Sun CC
25619 if test "x$GOMP_LIBS" = x ; then
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025621$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025622if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 $as_echo_n "(cached) " >&6
25624else
25625 ac_check_lib_save_LIBS=$LIBS
25626LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025628/* end confdefs.h. */
25629
25630/* Override any GCC internal prototype to avoid an error.
25631 Use char because int might match the return type of a GCC
25632 builtin and then its argument prototype would still apply. */
25633#ifdef __cplusplus
25634extern "C"
25635#endif
25636char sunw_mp_register_warn ();
25637int
25638main ()
25639{
25640return sunw_mp_register_warn ();
25641 ;
25642 return 0;
25643}
25644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025645if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025646 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25647else
cristy8b350f62009-11-15 23:12:43 +000025648 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025649fi
cristy8b350f62009-11-15 23:12:43 +000025650rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025652LIBS=$ac_check_lib_save_LIBS
25653fi
cristy8b350f62009-11-15 23:12:43 +000025654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025656if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025657 GOMP_LIBS="-lmtsk"
25658fi
cristy18307f12011-12-30 01:20:16 +000025659
25660 fi
25661 # AIX xlc
25662 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025664$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025665if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025666 $as_echo_n "(cached) " >&6
25667else
25668 ac_check_lib_save_LIBS=$LIBS
25669LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025671/* end confdefs.h. */
25672
25673/* Override any GCC internal prototype to avoid an error.
25674 Use char because int might match the return type of a GCC
25675 builtin and then its argument prototype would still apply. */
25676#ifdef __cplusplus
25677extern "C"
25678#endif
25679char _xlsmpFlush ();
25680int
25681main ()
25682{
25683return _xlsmpFlush ();
25684 ;
25685 return 0;
25686}
25687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025688if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025689 ac_cv_lib_xlsmp__xlsmpFlush=yes
25690else
cristy8b350f62009-11-15 23:12:43 +000025691 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025692fi
cristy8b350f62009-11-15 23:12:43 +000025693rm -f core conftest.err conftest.$ac_objext \
25694 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025695LIBS=$ac_check_lib_save_LIBS
25696fi
cristy8b350f62009-11-15 23:12:43 +000025697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025698$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025699if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025700 GOMP_LIBS="-lxlsmp"
25701fi
cristy18307f12011-12-30 01:20:16 +000025702
25703 fi
25704 # SGI IRIX 6.5 MIPSpro C/C++
25705 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025707$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025708if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025709 $as_echo_n "(cached) " >&6
25710else
25711 ac_check_lib_save_LIBS=$LIBS
25712LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025714/* end confdefs.h. */
25715
25716/* Override any GCC internal prototype to avoid an error.
25717 Use char because int might match the return type of a GCC
25718 builtin and then its argument prototype would still apply. */
25719#ifdef __cplusplus
25720extern "C"
25721#endif
25722char mp_destroy ();
25723int
25724main ()
25725{
25726return mp_destroy ();
25727 ;
25728 return 0;
25729}
25730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025732 ac_cv_lib_mp_mp_destroy=yes
25733else
cristy8b350f62009-11-15 23:12:43 +000025734 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025735fi
cristy8b350f62009-11-15 23:12:43 +000025736rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025738LIBS=$ac_check_lib_save_LIBS
25739fi
cristy8b350f62009-11-15 23:12:43 +000025740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025741$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025742if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025743 GOMP_LIBS="-lmp"
25744fi
cristy18307f12011-12-30 01:20:16 +000025745
25746 fi
cristy3ed852e2009-09-05 21:47:34 +000025747 fi
25748 LIBS="$GOMP_LIBS $LIBS"
25749fi
25750
25751
25752#
25753# Find Posix threads library
25754#
25755THREAD_LIBS=''
25756if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25757
25758 if test "x$PTHREAD_LIBS" = "x"; then
25759 case "${host_cpu}-${host_os}" in
25760 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025761
25762
25763
25764ac_ext=c
25765ac_cpp='$CPP $CPPFLAGS'
25766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25768ac_compiler_gnu=$ac_cv_c_compiler_gnu
25769
25770magick_pthread_lib_ok=no
25771
25772LIB=-lc_r
25773save_LIBS="$LIBS"
25774LIBS="$LIBS $LIB"
25775
25776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25777$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779/* end confdefs.h. */
25780#include <pthread.h>
25781int
25782main ()
25783{
25784 pthread_t th;
25785 pthread_join(th, 0);
25786 pthread_attr_init(0);
25787 pthread_cleanup_push(0, 0);
25788 pthread_create(0,0,0,0);
25789 pthread_cleanup_pop(0);
25790 ;
25791 return 0;
25792}
25793_ACEOF
25794if ac_fn_c_try_link "$LINENO"; then :
25795 magick_pthread_lib_ok=yes
25796fi
25797rm -f core conftest.err conftest.$ac_objext \
25798 conftest$ac_exeext conftest.$ac_ext
25799
25800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25801$as_echo "${magick_pthread_lib_ok}" >&6; }
25802if test "$magick_pthread_lib_ok" = yes
25803then
25804 PTHREAD_LIBS=-lc_r
25805 :
25806else
25807
25808 :
25809fi
25810
25811LIBS="$save_LIBS"
25812
25813ac_ext=c
25814ac_cpp='$CPP $CPPFLAGS'
25815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25817ac_compiler_gnu=$ac_cv_c_compiler_gnu
25818
25819 ;;
cristy3ed852e2009-09-05 21:47:34 +000025820 esac
25821 fi
25822
25823 for lib in pthread pthreads; do
25824 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025825
25826
25827
25828ac_ext=c
25829ac_cpp='$CPP $CPPFLAGS'
25830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25832ac_compiler_gnu=$ac_cv_c_compiler_gnu
25833
25834magick_pthread_lib_ok=no
25835
25836LIB=-l$lib
25837save_LIBS="$LIBS"
25838LIBS="$LIBS $LIB"
25839
25840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25841$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25843/* end confdefs.h. */
25844#include <pthread.h>
25845int
25846main ()
25847{
25848 pthread_t th;
25849 pthread_join(th, 0);
25850 pthread_attr_init(0);
25851 pthread_cleanup_push(0, 0);
25852 pthread_create(0,0,0,0);
25853 pthread_cleanup_pop(0);
25854 ;
25855 return 0;
25856}
25857_ACEOF
25858if ac_fn_c_try_link "$LINENO"; then :
25859 magick_pthread_lib_ok=yes
25860fi
25861rm -f core conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
25863
25864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25865$as_echo "${magick_pthread_lib_ok}" >&6; }
25866if test "$magick_pthread_lib_ok" = yes
25867then
25868 PTHREAD_LIBS=-l$lib
25869 :
25870else
25871
25872 :
25873fi
25874
25875LIBS="$save_LIBS"
25876
25877ac_ext=c
25878ac_cpp='$CPP $CPPFLAGS'
25879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25881ac_compiler_gnu=$ac_cv_c_compiler_gnu
25882
25883
cristy3ed852e2009-09-05 21:47:34 +000025884 fi
25885 done
25886
25887 THREAD_LIBS="$PTHREAD_LIBS"
25888 LIBS="$LIBS $THREAD_LIBS"
25889fi
25890
25891
25892#
25893# Check for umem.
25894#
25895have_umem='no'
25896UMEM_LIBS=''
25897if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025899$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000025900 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
25901$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025902 failed=0
25903 passed=0
cristy8b350f62009-11-15 23:12:43 +000025904 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025905if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025906 passed=`expr $passed + 1`
25907else
25908 failed=`expr $failed + 1`
25909fi
25910
25911
cristy8b350f62009-11-15 23:12:43 +000025912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025914if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 $as_echo_n "(cached) " >&6
25916else
25917 ac_check_lib_save_LIBS=$LIBS
25918LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025920/* end confdefs.h. */
25921
25922/* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25925#ifdef __cplusplus
25926extern "C"
25927#endif
25928char umem_alloc ();
25929int
25930main ()
25931{
25932return umem_alloc ();
25933 ;
25934 return 0;
25935}
25936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025938 ac_cv_lib_umem_umem_alloc=yes
25939else
cristy8b350f62009-11-15 23:12:43 +000025940 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025941fi
cristy8b350f62009-11-15 23:12:43 +000025942rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944LIBS=$ac_check_lib_save_LIBS
25945fi
cristy8b350f62009-11-15 23:12:43 +000025946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025947$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025948if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 passed=`expr $passed + 1`
25950else
25951 failed=`expr $failed + 1`
25952fi
25953
cristy8b350f62009-11-15 23:12:43 +000025954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 $as_echo_n "(cached) " >&6
25958else
25959 ac_check_lib_save_LIBS=$LIBS
25960LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025962/* end confdefs.h. */
25963
25964/* Override any GCC internal prototype to avoid an error.
25965 Use char because int might match the return type of a GCC
25966 builtin and then its argument prototype would still apply. */
25967#ifdef __cplusplus
25968extern "C"
25969#endif
25970char umem_free ();
25971int
25972main ()
25973{
25974return umem_free ();
25975 ;
25976 return 0;
25977}
25978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 ac_cv_lib_umem_umem_free=yes
25981else
cristy8b350f62009-11-15 23:12:43 +000025982 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025983fi
cristy8b350f62009-11-15 23:12:43 +000025984rm -f core conftest.err conftest.$ac_objext \
25985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025986LIBS=$ac_check_lib_save_LIBS
25987fi
cristy8b350f62009-11-15 23:12:43 +000025988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025989$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025990if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 passed=`expr $passed + 1`
25992else
25993 failed=`expr $failed + 1`
25994fi
25995
cristy8b350f62009-11-15 23:12:43 +000025996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25998 if test $passed -gt 0; then
25999 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026000 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26001$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026002 have_umem='no (failed tests)'
26003 else
26004 UMEM_LIBS='-lumem'
26005 LIBS="$UMEM_LIBS $LIBS"
26006
cristy8b350f62009-11-15 23:12:43 +000026007$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026008
cristy09b53e12011-10-14 12:47:22 +000026009 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26010$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026011 have_umem='yes'
26012 fi
26013 else
cristy09b53e12011-10-14 12:47:22 +000026014 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26015$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026016 fi
26017fi
cristy73bd4a52010-10-05 11:24:23 +000026018 if test "$have_umem" = 'yes'; then
26019 HasUMEM_TRUE=
26020 HasUMEM_FALSE='#'
26021else
26022 HasUMEM_TRUE='#'
26023 HasUMEM_FALSE=
26024fi
26025
cristy3ed852e2009-09-05 21:47:34 +000026026
26027
26028#
26029# Add support for ccmalloc memory debugging library if requested
26030#
26031have_ccmalloc='no'
26032CCMALLOC_LIBS=''
26033if test "$enable_ccmalloc" = 'yes'; then
26034 # Extract the first word of "ccmalloc", so it can be a program name with args.
26035set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026038if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026039 $as_echo_n "(cached) " >&6
26040else
26041 case $CCMALLOCDelegate in
26042 [\\/]* | ?:[\\/]*)
26043 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26044 ;;
26045 *)
26046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26047for as_dir in $PATH
26048do
26049 IFS=$as_save_IFS
26050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026053 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026055 break 2
26056 fi
26057done
cristy8b350f62009-11-15 23:12:43 +000026058 done
cristy3ed852e2009-09-05 21:47:34 +000026059IFS=$as_save_IFS
26060
26061 ;;
26062esac
26063fi
26064CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26065if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo "$CCMALLOCDelegate" >&6; }
26068else
cristy8b350f62009-11-15 23:12:43 +000026069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026070$as_echo "no" >&6; }
26071fi
26072
26073
26074 if test -n "$CCMALLOCDelegate"; then
26075 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26076 OLIBS="$LIBS"
26077 # Assume that gcc is used with ccmalloc.
26078 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026081if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026082 $as_echo_n "(cached) " >&6
26083else
26084 ac_check_lib_save_LIBS=$LIBS
26085LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026087/* end confdefs.h. */
26088
26089/* Override any GCC internal prototype to avoid an error.
26090 Use char because int might match the return type of a GCC
26091 builtin and then its argument prototype would still apply. */
26092#ifdef __cplusplus
26093extern "C"
26094#endif
26095char ccmalloc_malloc ();
26096int
26097main ()
26098{
26099return ccmalloc_malloc ();
26100 ;
26101 return 0;
26102}
26103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026105 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26106else
cristy8b350f62009-11-15 23:12:43 +000026107 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026108fi
cristy8b350f62009-11-15 23:12:43 +000026109rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026111LIBS=$ac_check_lib_save_LIBS
26112fi
cristy8b350f62009-11-15 23:12:43 +000026113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26117fi
26118
26119 if test -n "$CCMALLOC_LIBS"; then
26120 LIBS="$OLIBS"
26121 LIBS="$LIBS $CCMALLOC_LIBS"
26122 have_ccmalloc='yes'
26123 else
26124 LIBS="$OLIBS"
26125 fi
26126 fi
26127fi
26128
26129#
26130# Add support for efence memory debugging library if requested
26131#
26132if test "$enable_efence" = 'yes'; then
26133 EFENCE_LIBS='-lefence'
26134 LIBS="$EFENCE_LIBS $LIBS"
26135fi
26136
cristy3ed852e2009-09-05 21:47:34 +000026137
26138#
26139# Check for BZLIB
26140#
26141
26142
26143# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026144if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 withval=$with_bzlib; with_bzlib=$withval
26146else
26147 with_bzlib='yes'
26148fi
26149
26150
26151if test "$with_bzlib" != 'yes'; then
26152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26153fi
26154
26155have_bzlib='no'
26156if test "$with_bzlib" != 'no'; then
26157 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026158 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26159$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026162 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26163$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026164 failed=0
26165 passed=0
26166 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026167 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026168if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026169 passed=`expr $passed + 1`
26170else
26171 failed=`expr $failed + 1`
26172fi
26173
26174
cristy8b350f62009-11-15 23:12:43 +000026175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026176$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026177if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 $as_echo_n "(cached) " >&6
26179else
26180 ac_check_lib_save_LIBS=$LIBS
26181LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026183/* end confdefs.h. */
26184
26185/* Override any GCC internal prototype to avoid an error.
26186 Use char because int might match the return type of a GCC
26187 builtin and then its argument prototype would still apply. */
26188#ifdef __cplusplus
26189extern "C"
26190#endif
26191char BZ2_bzDecompress ();
26192int
26193main ()
26194{
26195return BZ2_bzDecompress ();
26196 ;
26197 return 0;
26198}
26199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026200if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26202else
cristy8b350f62009-11-15 23:12:43 +000026203 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026204fi
cristy8b350f62009-11-15 23:12:43 +000026205rm -f core conftest.err conftest.$ac_objext \
26206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026207LIBS=$ac_check_lib_save_LIBS
26208fi
cristy8b350f62009-11-15 23:12:43 +000026209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026211if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 found_libbz=`expr $found_libbz + 1`
26213fi
26214
26215 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026217$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026218if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026219 $as_echo_n "(cached) " >&6
26220else
26221 ac_check_lib_save_LIBS=$LIBS
26222LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026224/* end confdefs.h. */
26225
26226/* Override any GCC internal prototype to avoid an error.
26227 Use char because int might match the return type of a GCC
26228 builtin and then its argument prototype would still apply. */
26229#ifdef __cplusplus
26230extern "C"
26231#endif
26232char _imp__BZ2_decompress ();
26233int
26234main ()
26235{
26236return _imp__BZ2_decompress ();
26237 ;
26238 return 0;
26239}
26240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026241if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026242 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26243else
cristy8b350f62009-11-15 23:12:43 +000026244 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026245fi
cristy8b350f62009-11-15 23:12:43 +000026246rm -f core conftest.err conftest.$ac_objext \
26247 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026248LIBS=$ac_check_lib_save_LIBS
26249fi
cristy8b350f62009-11-15 23:12:43 +000026250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026252if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 found_libbz=`expr $found_libbz + 1`
26254fi
26255
26256 fi
26257 if test $found_libbz -gt 0; then
26258 passed=`expr $passed + 1`
26259 else
26260 failed=`expr $failed + 1`
26261 fi
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo_n "checking if BZLIB package is complete... " >&6; }
26264 if test $passed -gt 0; then
26265 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26267$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026268 have_bzlib='no (failed tests)'
26269 else
26270 BZLIB_LIBS='-lbz2'
26271 LIBS="$BZLIB_LIBS $LIBS"
26272
cristy8b350f62009-11-15 23:12:43 +000026273$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026274
cristy09b53e12011-10-14 12:47:22 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26276$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026277 have_bzlib='yes'
26278 fi
26279 else
cristy09b53e12011-10-14 12:47:22 +000026280 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26281$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026282 fi
26283fi
cristy73bd4a52010-10-05 11:24:23 +000026284 if test "$have_bzlib" = 'yes'; then
26285 BZLIB_DELEGATE_TRUE=
26286 BZLIB_DELEGATE_FALSE='#'
26287else
26288 BZLIB_DELEGATE_TRUE='#'
26289 BZLIB_DELEGATE_FALSE=
26290fi
26291
cristy3ed852e2009-09-05 21:47:34 +000026292
26293
26294#
26295# Find the X11 include and library directories.
26296#
26297IPC_LIBS=''
26298X11_LIBS=''
26299XEXT_LIBS=''
26300XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026302$as_echo_n "checking for X... " >&6; }
26303
26304
26305# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026306if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026307 withval=$with_x;
26308fi
26309
26310# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26311if test "x$with_x" = xno; then
26312 # The user explicitly disabled X.
26313 have_x=disabled
26314else
26315 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026316 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026317 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026318 $as_echo_n "(cached) " >&6
26319else
26320 # One or both of the vars are not set, and there is no cached value.
26321ac_x_includes=no ac_x_libraries=no
26322rm -f -r conftest.dir
26323if mkdir conftest.dir; then
26324 cd conftest.dir
26325 cat >Imakefile <<'_ACEOF'
26326incroot:
26327 @echo incroot='${INCROOT}'
26328usrlibdir:
26329 @echo usrlibdir='${USRLIBDIR}'
26330libdir:
26331 @echo libdir='${LIBDIR}'
26332_ACEOF
26333 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026334 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026335 for ac_var in incroot usrlibdir libdir; do
26336 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26337 done
26338 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26339 for ac_extension in a so sl dylib la dll; do
26340 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26341 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26342 ac_im_usrlibdir=$ac_im_libdir; break
26343 fi
26344 done
26345 # Screen out bogus values from the imake configuration. They are
26346 # bogus both because they are the default anyway, and because
26347 # using them would break gcc on systems where it needs fixed includes.
26348 case $ac_im_incroot in
26349 /usr/include) ac_x_includes= ;;
26350 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26351 esac
26352 case $ac_im_usrlibdir in
26353 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26354 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26355 esac
26356 fi
26357 cd ..
26358 rm -f -r conftest.dir
26359fi
26360
26361# Standard set of common directories for X headers.
26362# Check X11 before X11Rn because it is often a symlink to the current release.
26363ac_x_header_dirs='
26364/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026365/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026366/usr/X11R6/include
26367/usr/X11R5/include
26368/usr/X11R4/include
26369
26370/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026371/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026372/usr/include/X11R6
26373/usr/include/X11R5
26374/usr/include/X11R4
26375
26376/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026377/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026378/usr/local/X11R6/include
26379/usr/local/X11R5/include
26380/usr/local/X11R4/include
26381
26382/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026383/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026384/usr/local/include/X11R6
26385/usr/local/include/X11R5
26386/usr/local/include/X11R4
26387
26388/usr/X386/include
26389/usr/x386/include
26390/usr/XFree86/include/X11
26391
26392/usr/include
26393/usr/local/include
26394/usr/unsupported/include
26395/usr/athena/include
26396/usr/local/x11r5/include
26397/usr/lpp/Xamples/include
26398
26399/usr/openwin/include
26400/usr/openwin/share/include'
26401
26402if test "$ac_x_includes" = no; then
26403 # Guess where to find include files, by looking for Xlib.h.
26404 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026406/* end confdefs.h. */
26407#include <X11/Xlib.h>
26408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026409if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026410 # We can compile using X headers with no special include directory.
26411ac_x_includes=
26412else
cristyc7083c12009-10-14 03:16:55 +000026413 for ac_dir in $ac_x_header_dirs; do
26414 if test -r "$ac_dir/X11/Xlib.h"; then
26415 ac_x_includes=$ac_dir
26416 break
26417 fi
26418done
26419fi
cristyda16f162011-02-19 23:52:17 +000026420rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026421fi # $ac_x_includes = no
26422
26423if test "$ac_x_libraries" = no; then
26424 # Check for the libraries.
26425 # See if we find them without any special options.
26426 # Don't add to $LIBS permanently.
26427 ac_save_LIBS=$LIBS
26428 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026430/* end confdefs.h. */
26431#include <X11/Xlib.h>
26432int
26433main ()
26434{
26435XrmInitialize ()
26436 ;
26437 return 0;
26438}
26439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026440if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026441 LIBS=$ac_save_LIBS
26442# We can link X programs with no special library path.
26443ac_x_libraries=
26444else
cristy8b350f62009-11-15 23:12:43 +000026445 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026446for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26447do
26448 # Don't even attempt the hair of trying to link an X program!
26449 for ac_extension in a so sl dylib la dll; do
26450 if test -r "$ac_dir/libX11.$ac_extension"; then
26451 ac_x_libraries=$ac_dir
26452 break 2
26453 fi
26454 done
26455done
26456fi
cristy8b350f62009-11-15 23:12:43 +000026457rm -f core conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026459fi # $ac_x_libraries = no
26460
26461case $ac_x_includes,$ac_x_libraries in #(
26462 no,* | *,no | *\'*)
26463 # Didn't find X, or a directory has "'" in its name.
26464 ac_cv_have_x="have_x=no";; #(
26465 *)
26466 # Record where we found X for the cache.
26467 ac_cv_have_x="have_x=yes\
26468 ac_x_includes='$ac_x_includes'\
26469 ac_x_libraries='$ac_x_libraries'"
26470esac
26471fi
26472;; #(
26473 *) have_x=yes;;
26474 esac
26475 eval "$ac_cv_have_x"
26476fi # $with_x != no
26477
26478if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026480$as_echo "$have_x" >&6; }
26481 no_x=yes
26482else
26483 # If each of the values was on the command line, it overrides each guess.
26484 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26485 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26486 # Update the cache value to reflect the command line values.
26487 ac_cv_have_x="have_x=yes\
26488 ac_x_includes='$x_includes'\
26489 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026491$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26492fi
26493
cristy3ed852e2009-09-05 21:47:34 +000026494if test "$no_x" = yes; then
26495 # Not all programs may use this symbol, but it does not hurt to define it.
26496
cristy8b350f62009-11-15 23:12:43 +000026497$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026498
26499 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26500else
26501 if test -n "$x_includes"; then
26502 X_CFLAGS="$X_CFLAGS -I$x_includes"
26503 fi
26504
26505 # It would also be nice to do this for all -L options, not just this one.
26506 if test -n "$x_libraries"; then
26507 X_LIBS="$X_LIBS -L$x_libraries"
26508 # For Solaris; some versions of Sun CC require a space after -R and
26509 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026511$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26512 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26513 ac_xsave_c_werror_flag=$ac_c_werror_flag
26514 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518int
26519main ()
26520{
26521
26522 ;
26523 return 0;
26524}
26525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026526if ac_fn_c_try_link "$LINENO"; then :
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026528$as_echo "no" >&6; }
26529 X_LIBS="$X_LIBS -R$x_libraries"
26530else
cristy8b350f62009-11-15 23:12:43 +000026531 LIBS="$ac_xsave_LIBS -R $x_libraries"
26532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026533/* end confdefs.h. */
26534
26535int
26536main ()
26537{
26538
26539 ;
26540 return 0;
26541}
26542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026543if ac_fn_c_try_link "$LINENO"; then :
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026545$as_echo "yes" >&6; }
26546 X_LIBS="$X_LIBS -R $x_libraries"
26547else
cristy8b350f62009-11-15 23:12:43 +000026548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026549$as_echo "neither works" >&6; }
26550fi
cristy8b350f62009-11-15 23:12:43 +000026551rm -f core conftest.err conftest.$ac_objext \
26552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026553fi
cristy8b350f62009-11-15 23:12:43 +000026554rm -f core conftest.err conftest.$ac_objext \
26555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026556 ac_c_werror_flag=$ac_xsave_c_werror_flag
26557 LIBS=$ac_xsave_LIBS
26558 fi
26559
26560 # Check for system-dependent libraries X programs must link with.
26561 # Do this before checking for the system-independent R6 libraries
26562 # (-lICE), since we may need -lsocket or whatever for X linking.
26563
26564 if test "$ISC" = yes; then
26565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26566 else
26567 # Martyn Johnson says this is needed for Ultrix, if the X
26568 # libraries were built with DECnet support. And Karl Berry says
26569 # the Alpha needs dnet_stub (dnet does not exist).
26570 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026572/* end confdefs.h. */
26573
26574/* Override any GCC internal prototype to avoid an error.
26575 Use char because int might match the return type of a GCC
26576 builtin and then its argument prototype would still apply. */
26577#ifdef __cplusplus
26578extern "C"
26579#endif
26580char XOpenDisplay ();
26581int
26582main ()
26583{
26584return XOpenDisplay ();
26585 ;
26586 return 0;
26587}
26588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026590
cristy8b350f62009-11-15 23:12:43 +000026591else
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026594if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 $as_echo_n "(cached) " >&6
26596else
26597 ac_check_lib_save_LIBS=$LIBS
26598LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026600/* end confdefs.h. */
26601
26602/* Override any GCC internal prototype to avoid an error.
26603 Use char because int might match the return type of a GCC
26604 builtin and then its argument prototype would still apply. */
26605#ifdef __cplusplus
26606extern "C"
26607#endif
26608char dnet_ntoa ();
26609int
26610main ()
26611{
26612return dnet_ntoa ();
26613 ;
26614 return 0;
26615}
26616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026618 ac_cv_lib_dnet_dnet_ntoa=yes
26619else
cristy8b350f62009-11-15 23:12:43 +000026620 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026621fi
cristy8b350f62009-11-15 23:12:43 +000026622rm -f core conftest.err conftest.$ac_objext \
26623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026624LIBS=$ac_check_lib_save_LIBS
26625fi
cristy8b350f62009-11-15 23:12:43 +000026626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026628if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26630fi
26631
26632 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026635if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 $as_echo_n "(cached) " >&6
26637else
26638 ac_check_lib_save_LIBS=$LIBS
26639LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026641/* end confdefs.h. */
26642
26643/* Override any GCC internal prototype to avoid an error.
26644 Use char because int might match the return type of a GCC
26645 builtin and then its argument prototype would still apply. */
26646#ifdef __cplusplus
26647extern "C"
26648#endif
26649char dnet_ntoa ();
26650int
26651main ()
26652{
26653return dnet_ntoa ();
26654 ;
26655 return 0;
26656}
26657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026658if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26660else
cristy8b350f62009-11-15 23:12:43 +000026661 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026662fi
cristy8b350f62009-11-15 23:12:43 +000026663rm -f core conftest.err conftest.$ac_objext \
26664 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026665LIBS=$ac_check_lib_save_LIBS
26666fi
cristy8b350f62009-11-15 23:12:43 +000026667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026669if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26671fi
26672
26673 fi
26674fi
cristy8b350f62009-11-15 23:12:43 +000026675rm -f core conftest.err conftest.$ac_objext \
26676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026677 LIBS="$ac_xsave_LIBS"
26678
26679 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26680 # to get the SysV transport functions.
26681 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26682 # needs -lnsl.
26683 # The nsl library prevents programs from opening the X display
26684 # on Irix 5.2, according to T.E. Dickey.
26685 # The functions gethostbyname, getservbyname, and inet_addr are
26686 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026687 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026688if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026689
cristy3ed852e2009-09-05 21:47:34 +000026690fi
26691
cristy3ed852e2009-09-05 21:47:34 +000026692 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026694$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026695if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026696 $as_echo_n "(cached) " >&6
26697else
26698 ac_check_lib_save_LIBS=$LIBS
26699LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026701/* end confdefs.h. */
26702
26703/* Override any GCC internal prototype to avoid an error.
26704 Use char because int might match the return type of a GCC
26705 builtin and then its argument prototype would still apply. */
26706#ifdef __cplusplus
26707extern "C"
26708#endif
26709char gethostbyname ();
26710int
26711main ()
26712{
26713return gethostbyname ();
26714 ;
26715 return 0;
26716}
26717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026718if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026719 ac_cv_lib_nsl_gethostbyname=yes
26720else
cristy8b350f62009-11-15 23:12:43 +000026721 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026722fi
cristy8b350f62009-11-15 23:12:43 +000026723rm -f core conftest.err conftest.$ac_objext \
26724 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026725LIBS=$ac_check_lib_save_LIBS
26726fi
cristy8b350f62009-11-15 23:12:43 +000026727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026729if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26731fi
26732
26733 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026736if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026737 $as_echo_n "(cached) " >&6
26738else
26739 ac_check_lib_save_LIBS=$LIBS
26740LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026742/* end confdefs.h. */
26743
26744/* Override any GCC internal prototype to avoid an error.
26745 Use char because int might match the return type of a GCC
26746 builtin and then its argument prototype would still apply. */
26747#ifdef __cplusplus
26748extern "C"
26749#endif
26750char gethostbyname ();
26751int
26752main ()
26753{
26754return gethostbyname ();
26755 ;
26756 return 0;
26757}
26758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026759if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026760 ac_cv_lib_bsd_gethostbyname=yes
26761else
cristy8b350f62009-11-15 23:12:43 +000026762 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026763fi
cristy8b350f62009-11-15 23:12:43 +000026764rm -f core conftest.err conftest.$ac_objext \
26765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026766LIBS=$ac_check_lib_save_LIBS
26767fi
cristy8b350f62009-11-15 23:12:43 +000026768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26772fi
26773
26774 fi
26775 fi
26776
26777 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26778 # socket/setsockopt and other routines are undefined under SCO ODT
26779 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26780 # on later versions), says Simon Leinen: it contains gethostby*
26781 # variants that don't use the name server (or something). -lsocket
26782 # must be given before -lnsl if both are needed. We assume that
26783 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026784 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026785if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026786
cristy3ed852e2009-09-05 21:47:34 +000026787fi
26788
cristy3ed852e2009-09-05 21:47:34 +000026789 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026791$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026792if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026793 $as_echo_n "(cached) " >&6
26794else
26795 ac_check_lib_save_LIBS=$LIBS
26796LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026798/* end confdefs.h. */
26799
26800/* Override any GCC internal prototype to avoid an error.
26801 Use char because int might match the return type of a GCC
26802 builtin and then its argument prototype would still apply. */
26803#ifdef __cplusplus
26804extern "C"
26805#endif
26806char connect ();
26807int
26808main ()
26809{
26810return connect ();
26811 ;
26812 return 0;
26813}
26814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026816 ac_cv_lib_socket_connect=yes
26817else
cristy8b350f62009-11-15 23:12:43 +000026818 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026819fi
cristy8b350f62009-11-15 23:12:43 +000026820rm -f core conftest.err conftest.$ac_objext \
26821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026822LIBS=$ac_check_lib_save_LIBS
26823fi
cristy8b350f62009-11-15 23:12:43 +000026824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026825$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026826if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26828fi
26829
26830 fi
26831
26832 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026833 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026834if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026835
cristy3ed852e2009-09-05 21:47:34 +000026836fi
26837
cristy3ed852e2009-09-05 21:47:34 +000026838 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026840$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026841if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 $as_echo_n "(cached) " >&6
26843else
26844 ac_check_lib_save_LIBS=$LIBS
26845LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026847/* end confdefs.h. */
26848
26849/* Override any GCC internal prototype to avoid an error.
26850 Use char because int might match the return type of a GCC
26851 builtin and then its argument prototype would still apply. */
26852#ifdef __cplusplus
26853extern "C"
26854#endif
26855char remove ();
26856int
26857main ()
26858{
26859return remove ();
26860 ;
26861 return 0;
26862}
26863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026865 ac_cv_lib_posix_remove=yes
26866else
cristy8b350f62009-11-15 23:12:43 +000026867 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026868fi
cristy8b350f62009-11-15 23:12:43 +000026869rm -f core conftest.err conftest.$ac_objext \
26870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026871LIBS=$ac_check_lib_save_LIBS
26872fi
cristy8b350f62009-11-15 23:12:43 +000026873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026874$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026875if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26877fi
26878
26879 fi
26880
26881 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026882 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026883if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026884
cristy3ed852e2009-09-05 21:47:34 +000026885fi
26886
cristy3ed852e2009-09-05 21:47:34 +000026887 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char shmat ();
26905int
26906main ()
26907{
26908return shmat ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_ipc_shmat=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26926fi
26927
26928 fi
26929 fi
26930
26931 # Check for libraries that X11R6 Xt/Xaw programs need.
26932 ac_save_LDFLAGS=$LDFLAGS
26933 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26934 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26935 # check for ICE first), but we must link in the order -lSM -lICE or
26936 # we get undefined symbols. So assume we have SM if we have ICE.
26937 # These have to be linked with before -lX11, unlike the other
26938 # libraries we check for below, so use a different variable.
26939 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026941$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026942if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026943 $as_echo_n "(cached) " >&6
26944else
26945 ac_check_lib_save_LIBS=$LIBS
26946LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026948/* end confdefs.h. */
26949
26950/* Override any GCC internal prototype to avoid an error.
26951 Use char because int might match the return type of a GCC
26952 builtin and then its argument prototype would still apply. */
26953#ifdef __cplusplus
26954extern "C"
26955#endif
26956char IceConnectionNumber ();
26957int
26958main ()
26959{
26960return IceConnectionNumber ();
26961 ;
26962 return 0;
26963}
26964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026965if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026966 ac_cv_lib_ICE_IceConnectionNumber=yes
26967else
cristy8b350f62009-11-15 23:12:43 +000026968 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026969fi
cristy8b350f62009-11-15 23:12:43 +000026970rm -f core conftest.err conftest.$ac_objext \
26971 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026972LIBS=$ac_check_lib_save_LIBS
26973fi
cristy8b350f62009-11-15 23:12:43 +000026974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026975$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026976if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026977 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26978fi
26979
26980 LDFLAGS=$ac_save_LDFLAGS
26981
26982fi
26983
26984if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26986$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026988$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26990$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026991 LDFLAGS="$LDFLAGS $X_LIBS"
26992 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26993 LIBS="$X11_LIBS $LIBS"
26994 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26995
26996
cristy8b350f62009-11-15 23:12:43 +000026997$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026998
26999 #
27000 # Check for X11 shared memory extension
27001 #
27002 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027003 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027004if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027005 have_shmctl='yes'
27006fi
27007
27008 if test "$have_shmctl" != 'yes'; then
27009 PERSIST_LIBS=$LIBS
27010 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027012/* end confdefs.h. */
27013
27014/* Override any GCC internal prototype to avoid an error.
27015 Use char because int might match the return type of a GCC
27016 builtin and then its argument prototype would still apply. */
27017#ifdef __cplusplus
27018extern "C"
27019#endif
27020char shmctl ();
27021int
27022main ()
27023{
27024return shmctl ();
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027030 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027031fi
cristy8b350f62009-11-15 23:12:43 +000027032rm -f core conftest.err conftest.$ac_objext \
27033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034 LIBS=$PERSIST_LIBS
27035 fi
27036
27037 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027039$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027040if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 $as_echo_n "(cached) " >&6
27042else
27043 ac_check_lib_save_LIBS=$LIBS
27044LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027046/* end confdefs.h. */
27047
27048/* Override any GCC internal prototype to avoid an error.
27049 Use char because int might match the return type of a GCC
27050 builtin and then its argument prototype would still apply. */
27051#ifdef __cplusplus
27052extern "C"
27053#endif
27054char XShmAttach ();
27055int
27056main ()
27057{
27058return XShmAttach ();
27059 ;
27060 return 0;
27061}
27062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027064 ac_cv_lib_Xext_XShmAttach=yes
27065else
cristy8b350f62009-11-15 23:12:43 +000027066 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027067fi
cristy8b350f62009-11-15 23:12:43 +000027068rm -f core conftest.err conftest.$ac_objext \
27069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027070LIBS=$ac_check_lib_save_LIBS
27071fi
cristy8b350f62009-11-15 23:12:43 +000027072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027074if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027076$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027077
27078fi
27079
27080 fi
27081
27082 #
27083 # Check for X11 shape extension
27084 #
cristy8b350f62009-11-15 23:12:43 +000027085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027087if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027088 $as_echo_n "(cached) " >&6
27089else
27090 ac_check_lib_save_LIBS=$LIBS
27091LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027093/* end confdefs.h. */
27094
27095/* Override any GCC internal prototype to avoid an error.
27096 Use char because int might match the return type of a GCC
27097 builtin and then its argument prototype would still apply. */
27098#ifdef __cplusplus
27099extern "C"
27100#endif
27101char XShapeCombineMask ();
27102int
27103main ()
27104{
27105return XShapeCombineMask ();
27106 ;
27107 return 0;
27108}
27109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027110if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027111 ac_cv_lib_Xext_XShapeCombineMask=yes
27112else
cristy8b350f62009-11-15 23:12:43 +000027113 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027114fi
cristy8b350f62009-11-15 23:12:43 +000027115rm -f core conftest.err conftest.$ac_objext \
27116 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027117LIBS=$ac_check_lib_save_LIBS
27118fi
cristy8b350f62009-11-15 23:12:43 +000027119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027121if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027122 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027123$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027124
27125fi
27126
cristy8b350f62009-11-15 23:12:43 +000027127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027128$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027129if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027130 $as_echo_n "(cached) " >&6
27131else
27132 ac_check_lib_save_LIBS=$LIBS
27133LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027135/* end confdefs.h. */
27136
27137/* Override any GCC internal prototype to avoid an error.
27138 Use char because int might match the return type of a GCC
27139 builtin and then its argument prototype would still apply. */
27140#ifdef __cplusplus
27141extern "C"
27142#endif
27143char XtSetEventDispatcher ();
27144int
27145main ()
27146{
27147return XtSetEventDispatcher ();
27148 ;
27149 return 0;
27150}
27151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27154else
cristy8b350f62009-11-15 23:12:43 +000027155 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027156fi
cristy8b350f62009-11-15 23:12:43 +000027157rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159LIBS=$ac_check_lib_save_LIBS
27160fi
cristy8b350f62009-11-15 23:12:43 +000027161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 XT_LIBS='-lXt'
27165fi
27166
27167 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27168fi
27169if test "$no_x" != 'yes'; then
27170 have_x='yes'
27171else
27172 have_x='no'
27173fi
cristy73bd4a52010-10-05 11:24:23 +000027174 if test "$have_x" = 'yes'; then
27175 X11_DELEGATE_TRUE=
27176 X11_DELEGATE_FALSE='#'
27177else
27178 X11_DELEGATE_TRUE='#'
27179 X11_DELEGATE_FALSE=
27180fi
27181
cristy3ed852e2009-09-05 21:47:34 +000027182
27183
27184
27185
27186#
27187# Check for ZLIB
27188#
27189
27190# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027191if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 withval=$with_zlib; with_zlib=$withval
27193else
27194 with_zlib='yes'
27195fi
27196
27197
27198if test "$with_zlib" != 'yes'; then
27199 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27200fi
27201
27202have_zlib='no'
27203ZLIB_LIBS=''
27204if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27206$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027209 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27210$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027211 ZLIB_LIBS=''
27212 failed=0
27213 passed=0
cristy8b350f62009-11-15 23:12:43 +000027214 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027215if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 passed=`expr $passed + 1`
27217else
27218 failed=`expr $failed + 1`
27219fi
27220
27221
cristy8b350f62009-11-15 23:12:43 +000027222 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027223if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 passed=`expr $passed + 1`
27225else
27226 failed=`expr $failed + 1`
27227fi
27228
27229
cristy8b350f62009-11-15 23:12:43 +000027230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027232if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027233 $as_echo_n "(cached) " >&6
27234else
27235 ac_check_lib_save_LIBS=$LIBS
27236LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027238/* end confdefs.h. */
27239
27240/* Override any GCC internal prototype to avoid an error.
27241 Use char because int might match the return type of a GCC
27242 builtin and then its argument prototype would still apply. */
27243#ifdef __cplusplus
27244extern "C"
27245#endif
27246char compress ();
27247int
27248main ()
27249{
27250return compress ();
27251 ;
27252 return 0;
27253}
27254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 ac_cv_lib_z_compress=yes
27257else
cristy8b350f62009-11-15 23:12:43 +000027258 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027259fi
cristy8b350f62009-11-15 23:12:43 +000027260rm -f core conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027262LIBS=$ac_check_lib_save_LIBS
27263fi
cristy8b350f62009-11-15 23:12:43 +000027264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027266if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027267 passed=`expr $passed + 1`
27268else
27269 failed=`expr $failed + 1`
27270fi
27271
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 $as_echo_n "(cached) " >&6
27276else
27277 ac_check_lib_save_LIBS=$LIBS
27278LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027280/* end confdefs.h. */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char uncompress ();
27289int
27290main ()
27291{
27292return uncompress ();
27293 ;
27294 return 0;
27295}
27296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_lib_z_uncompress=yes
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304LIBS=$ac_check_lib_save_LIBS
27305fi
cristy8b350f62009-11-15 23:12:43 +000027306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 passed=`expr $passed + 1`
27310else
27311 failed=`expr $failed + 1`
27312fi
27313
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027316if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027317 $as_echo_n "(cached) " >&6
27318else
27319 ac_check_lib_save_LIBS=$LIBS
27320LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027322/* end confdefs.h. */
27323
27324/* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27327#ifdef __cplusplus
27328extern "C"
27329#endif
27330char deflate ();
27331int
27332main ()
27333{
27334return deflate ();
27335 ;
27336 return 0;
27337}
27338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027340 ac_cv_lib_z_deflate=yes
27341else
cristy8b350f62009-11-15 23:12:43 +000027342 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027343fi
cristy8b350f62009-11-15 23:12:43 +000027344rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 passed=`expr $passed + 1`
27352else
27353 failed=`expr $failed + 1`
27354fi
27355
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027358if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 $as_echo_n "(cached) " >&6
27360else
27361 ac_check_lib_save_LIBS=$LIBS
27362LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027364/* end confdefs.h. */
27365
27366/* Override any GCC internal prototype to avoid an error.
27367 Use char because int might match the return type of a GCC
27368 builtin and then its argument prototype would still apply. */
27369#ifdef __cplusplus
27370extern "C"
27371#endif
27372char inflate ();
27373int
27374main ()
27375{
27376return inflate ();
27377 ;
27378 return 0;
27379}
27380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 ac_cv_lib_z_inflate=yes
27383else
cristy8b350f62009-11-15 23:12:43 +000027384 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027385fi
cristy8b350f62009-11-15 23:12:43 +000027386rm -f core conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388LIBS=$ac_check_lib_save_LIBS
27389fi
cristy8b350f62009-11-15 23:12:43 +000027390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027391$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027392if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027393 passed=`expr $passed + 1`
27394else
27395 failed=`expr $failed + 1`
27396fi
27397
cristy8b350f62009-11-15 23:12:43 +000027398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027399$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027400if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027401 $as_echo_n "(cached) " >&6
27402else
27403 ac_check_lib_save_LIBS=$LIBS
27404LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027406/* end confdefs.h. */
27407
27408/* Override any GCC internal prototype to avoid an error.
27409 Use char because int might match the return type of a GCC
27410 builtin and then its argument prototype would still apply. */
27411#ifdef __cplusplus
27412extern "C"
27413#endif
27414char gzseek ();
27415int
27416main ()
27417{
27418return gzseek ();
27419 ;
27420 return 0;
27421}
27422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 ac_cv_lib_z_gzseek=yes
27425else
cristy8b350f62009-11-15 23:12:43 +000027426 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027427fi
cristy8b350f62009-11-15 23:12:43 +000027428rm -f core conftest.err conftest.$ac_objext \
27429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027430LIBS=$ac_check_lib_save_LIBS
27431fi
cristy8b350f62009-11-15 23:12:43 +000027432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027433$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027434if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027435 passed=`expr $passed + 1`
27436else
27437 failed=`expr $failed + 1`
27438fi
27439
cristy8b350f62009-11-15 23:12:43 +000027440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027441$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027442if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 $as_echo_n "(cached) " >&6
27444else
27445 ac_check_lib_save_LIBS=$LIBS
27446LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027448/* end confdefs.h. */
27449
27450/* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27453#ifdef __cplusplus
27454extern "C"
27455#endif
27456char gztell ();
27457int
27458main ()
27459{
27460return gztell ();
27461 ;
27462 return 0;
27463}
27464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 ac_cv_lib_z_gztell=yes
27467else
cristy8b350f62009-11-15 23:12:43 +000027468 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027469fi
cristy8b350f62009-11-15 23:12:43 +000027470rm -f core conftest.err conftest.$ac_objext \
27471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027472LIBS=$ac_check_lib_save_LIBS
27473fi
cristy8b350f62009-11-15 23:12:43 +000027474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027476if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027477 passed=`expr $passed + 1`
27478else
27479 failed=`expr $failed + 1`
27480fi
27481
cristy8b350f62009-11-15 23:12:43 +000027482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo_n "checking if ZLIB package is complete... " >&6; }
27484 if test $passed -gt 0; then
27485 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027486 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27487$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027488 have_zlib='no (failed tests)'
27489 else
27490 ZLIB_LIBS='-lz'
27491 LIBS="$ZLIB_LIBS $LIBS"
27492
cristy8b350f62009-11-15 23:12:43 +000027493$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027494
cristy09b53e12011-10-14 12:47:22 +000027495 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27496$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027497 have_zlib='yes'
27498 fi
27499 else
cristy09b53e12011-10-14 12:47:22 +000027500 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27501$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027502 fi
27503fi
cristy73bd4a52010-10-05 11:24:23 +000027504 if test "$have_zlib" = 'yes'; then
27505 ZLIB_DELEGATE_TRUE=
27506 ZLIB_DELEGATE_FALSE='#'
27507else
27508 ZLIB_DELEGATE_TRUE='#'
27509 ZLIB_DELEGATE_FALSE=
27510fi
27511
cristy3ed852e2009-09-05 21:47:34 +000027512
27513
cristy5eef09f2012-10-16 12:08:28 +000027514# whether modules are built or not.
27515with_ltdl='yes'
27516have_ltdl='no'
27517LTDL_LIBS=''
27518if test "$build_modules" != 'no' ; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27520$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27522$as_echo_n "checking for libltdl... " >&6; }
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27524$as_echo "$as_me: " >&6;}
27525 failed=0
27526 passed=0
27527 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27528if test "x$ac_cv_header_ltdl_h" = xyes; then :
27529 passed=`expr $passed + 1`
27530else
27531 failed=`expr $failed + 1`
27532fi
27533
27534
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27536$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27537if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27538 $as_echo_n "(cached) " >&6
27539else
27540 ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lltdl $LIBS"
27542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27543/* end confdefs.h. */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char lt_dlinit ();
27552int
27553main ()
27554{
27555return lt_dlinit ();
27556 ;
27557 return 0;
27558}
27559_ACEOF
27560if ac_fn_c_try_link "$LINENO"; then :
27561 ac_cv_lib_ltdl_lt_dlinit=yes
27562else
27563 ac_cv_lib_ltdl_lt_dlinit=no
27564fi
27565rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext conftest.$ac_ext
27567LIBS=$ac_check_lib_save_LIBS
27568fi
27569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27570$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27571if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27572 passed=`expr $passed + 1`
27573else
27574 failed=`expr $failed + 1`
27575fi
27576
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27578$as_echo_n "checking if libltdl package is complete... " >&6; }
27579 if test $passed -gt 0 ; then
27580 if test $failed -gt 0 ; then
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27582$as_echo "no -- some components failed test" >&6; }
27583 have_ltdl='no (failed tests)'
27584 else
27585 LTDL_LIBS='-lltdl'
27586 LIBS="$LTDL_LIBS $LIBS"
27587
27588$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27589
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27591$as_echo "yes" >&6; }
27592 have_ltdl='yes'
27593 fi
27594 else
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27596$as_echo "no" >&6; }
27597 fi
27598fi
27599 if test "$have_ltdl" != 'no'; then
27600 WITH_LTDL_TRUE=
27601 WITH_LTDL_FALSE='#'
27602else
27603 WITH_LTDL_TRUE='#'
27604 WITH_LTDL_FALSE=
27605fi
27606
27607
cristy3ed852e2009-09-05 21:47:34 +000027608#
27609# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27610#
27611LIB_DL=''
27612if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 $as_echo_n "(cached) " >&6
27617else
27618 ac_check_lib_save_LIBS=$LIBS
27619LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027621/* end confdefs.h. */
27622
27623/* Override any GCC internal prototype to avoid an error.
27624 Use char because int might match the return type of a GCC
27625 builtin and then its argument prototype would still apply. */
27626#ifdef __cplusplus
27627extern "C"
27628#endif
27629char dlopen ();
27630int
27631main ()
27632{
27633return dlopen ();
27634 ;
27635 return 0;
27636}
27637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 ac_cv_lib_dl_dlopen=yes
27640else
cristy8b350f62009-11-15 23:12:43 +000027641 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027642fi
cristy8b350f62009-11-15 23:12:43 +000027643rm -f core conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027645LIBS=$ac_check_lib_save_LIBS
27646fi
cristy8b350f62009-11-15 23:12:43 +000027647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027649if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 LIB_DL='-ldl'
27651fi
27652
27653 LIBS="$LIB_DL $LIBS"
27654fi
27655
27656
27657
27658#
27659# Check for Autotrace delegate library.
27660#
27661
27662# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027663if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027664 withval=$with_autotrace; with_autotrace=$withval
27665else
27666 with_autotrace='no'
27667fi
27668
27669
27670if test "$with_autotrace" != 'yes'; then
27671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27672fi
27673
27674have_autotrace='no'
27675AUTOTRACE_CFLAGS=""
27676AUTOTRACE_LIBS=""
27677AUTOTRACE_PKG=""
27678if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027679 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27680$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027681
27682pkg_failed=no
27683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27684$as_echo_n "checking for AUTOTRACE... " >&6; }
27685
27686if test -n "$AUTOTRACE_CFLAGS"; then
27687 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27688 elif test -n "$PKG_CONFIG"; then
27689 if test -n "$PKG_CONFIG" && \
27690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27691 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27692 ac_status=$?
27693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27694 test $ac_status = 0; }; then
27695 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27696else
27697 pkg_failed=yes
27698fi
27699 else
27700 pkg_failed=untried
27701fi
27702if test -n "$AUTOTRACE_LIBS"; then
27703 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27704 elif test -n "$PKG_CONFIG"; then
27705 if test -n "$PKG_CONFIG" && \
27706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27707 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27708 ac_status=$?
27709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27710 test $ac_status = 0; }; then
27711 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27712else
27713 pkg_failed=yes
27714fi
27715 else
27716 pkg_failed=untried
27717fi
27718
27719
27720
27721if test $pkg_failed = yes; then
27722
27723if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27724 _pkg_short_errors_supported=yes
27725else
27726 _pkg_short_errors_supported=no
27727fi
27728 if test $_pkg_short_errors_supported = yes; then
27729 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27730 else
27731 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27732 fi
27733 # Put the nasty error message in config.log where it belongs
27734 echo "$AUTOTRACE_PKG_ERRORS" >&5
27735
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27737$as_echo "no" >&6; }
27738 have_autotrace=no
27739elif test $pkg_failed = untried; then
27740 have_autotrace=no
27741else
27742 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27743 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27745$as_echo "yes" >&6; }
27746 have_autotrace=yes
27747fi
cristy09b53e12011-10-14 12:47:22 +000027748 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27749$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027750fi
27751
27752if test "$have_autotrace" = 'yes'; then
27753 failed=0
27754
cristy8b350f62009-11-15 23:12:43 +000027755$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027756
cristyc6722092012-10-14 00:19:31 +000027757 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027758 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27759 fi
27760fi
27761
cristy73bd4a52010-10-05 11:24:23 +000027762 if test "$have_autotrace" = 'yes'; then
27763 AUTOTRACE_DELEGATE_TRUE=
27764 AUTOTRACE_DELEGATE_FALSE='#'
27765else
27766 AUTOTRACE_DELEGATE_TRUE='#'
27767 AUTOTRACE_DELEGATE_FALSE=
27768fi
27769
cristy3ed852e2009-09-05 21:47:34 +000027770
27771
27772
27773
27774#
27775# Check for Display Postscript delegate library.
27776#
27777
27778# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027779if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027780 withval=$with_dps; with_dps=$withval
27781else
27782 with_dps='yes'
27783fi
27784
27785
27786if test "$with_dps" != 'yes'; then
27787 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27788fi
27789
27790have_dps='no'
27791DPS_LIBS=''
27792if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27794$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027797 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27798$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027799 failed=0
27800 passed=0
27801 PERSIST_CPPFLAGS="$CPPFLAGS"
27802 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027803 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 +000027804if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027805 passed=`expr $passed + 1`
27806else
27807 failed=`expr $failed + 1`
27808fi
27809
27810
27811 # DPS issues:
27812 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27813 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27814 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27815 # ImageMagick itself doesn't use -lXt.
27816 have_libdps='no'
27817 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027820if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027821 $as_echo_n "(cached) " >&6
27822else
27823 ac_check_lib_save_LIBS=$LIBS
27824LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826/* end confdefs.h. */
27827
27828/* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27831#ifdef __cplusplus
27832extern "C"
27833#endif
27834char DPSInitialize ();
27835int
27836main ()
27837{
27838return DPSInitialize ();
27839 ;
27840 return 0;
27841}
27842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 ac_cv_lib_dps_DPSInitialize=yes
27845else
cristy8b350f62009-11-15 23:12:43 +000027846 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027847fi
cristy8b350f62009-11-15 23:12:43 +000027848rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850LIBS=$ac_check_lib_save_LIBS
27851fi
cristy8b350f62009-11-15 23:12:43 +000027852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027854if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 have_libdps='yes'
27856else
27857 have_libdps='no'
27858fi
27859
27860 if test "$have_libdps" != 'yes'; then
27861 # Unset cache variable so we can try again.
27862 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027865if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 $as_echo_n "(cached) " >&6
27867else
27868 ac_check_lib_save_LIBS=$LIBS
27869LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027871/* end confdefs.h. */
27872
27873/* Override any GCC internal prototype to avoid an error.
27874 Use char because int might match the return type of a GCC
27875 builtin and then its argument prototype would still apply. */
27876#ifdef __cplusplus
27877extern "C"
27878#endif
27879char DPSInitialize ();
27880int
27881main ()
27882{
27883return DPSInitialize ();
27884 ;
27885 return 0;
27886}
27887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 ac_cv_lib_dps_DPSInitialize=yes
27890else
cristy8b350f62009-11-15 23:12:43 +000027891 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027892fi
cristy8b350f62009-11-15 23:12:43 +000027893rm -f core conftest.err conftest.$ac_objext \
27894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027895LIBS=$ac_check_lib_save_LIBS
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 have_libdps='yes'
27901else
27902 have_libdps='no'
27903fi
27904
27905 if test "$have_libdps" = 'yes'; then
27906 LIBDPS_XT='-lXt'
27907 fi
27908 fi
27909 if test "$have_libdps" = 'yes'; then
27910 passed=`expr $passed + 1`
27911 else
27912 failed=`expr $failed + 1`
27913 fi
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 $as_echo_n "(cached) " >&6
27918else
27919 ac_check_lib_save_LIBS=$LIBS
27920LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930char XDPSPixelsPerPoint ();
27931int
27932main ()
27933{
27934return XDPSPixelsPerPoint ();
27935 ;
27936 return 0;
27937}
27938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27941else
cristy8b350f62009-11-15 23:12:43 +000027942 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027943fi
cristy8b350f62009-11-15 23:12:43 +000027944rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946LIBS=$ac_check_lib_save_LIBS
27947fi
cristy8b350f62009-11-15 23:12:43 +000027948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027950if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 passed=`expr $passed + 1`
27952else
27953 failed=`expr $failed + 1`
27954fi
27955
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo_n "checking if DPS package is complete... " >&6; }
27958 if test $passed -gt 0; then
27959 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27961$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027962 have_dps='no (failed tests)'
27963 CPPFLAGS="$PERSIST_CPPFLAGS"
27964 else
27965 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27966 LIBS="$DPS_LIBS $LIBS"
27967
cristy8b350f62009-11-15 23:12:43 +000027968$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027969
cristy09b53e12011-10-14 12:47:22 +000027970 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27971$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027972 have_dps='yes'
27973 fi
27974 else
cristy09b53e12011-10-14 12:47:22 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27976$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027977 CPPFLAGS=$PERSIST_CPPFLAGS
27978 fi
27979fi
cristy73bd4a52010-10-05 11:24:23 +000027980 if test "$have_dps" = 'yes'; then
27981 DPS_DELEGATE_TRUE=
27982 DPS_DELEGATE_FALSE='#'
27983else
27984 DPS_DELEGATE_TRUE='#'
27985 DPS_DELEGATE_FALSE=
27986fi
27987
cristy3ed852e2009-09-05 21:47:34 +000027988
27989
27990
27991#
27992# Check for DJVU delegate library.
27993#
27994
27995# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027996if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 withval=$with_djvu; with_djvu=$withval
27998else
27999 with_djvu='yes'
28000fi
28001
28002
28003if test "$with_djvu" != 'yes'; then
28004 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28005fi
28006
28007have_djvu='no'
28008DJVU_LIBS=''
28009if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028010 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28011$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28015$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028016 failed=0
28017 passed=0
cristy8b350f62009-11-15 23:12:43 +000028018 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 +000028019if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028020 passed=`expr $passed + 1`
28021else
28022 failed=`expr $failed + 1`
28023fi
28024
28025
cristy8b350f62009-11-15 23:12:43 +000028026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028027$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028028if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028029 $as_echo_n "(cached) " >&6
28030else
28031 ac_check_lib_save_LIBS=$LIBS
28032LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028034/* end confdefs.h. */
28035
28036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
28039#ifdef __cplusplus
28040extern "C"
28041#endif
28042char ddjvu_context_create ();
28043int
28044main ()
28045{
28046return ddjvu_context_create ();
28047 ;
28048 return 0;
28049}
28050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028052 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28053else
cristy8b350f62009-11-15 23:12:43 +000028054 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028055fi
cristy8b350f62009-11-15 23:12:43 +000028056rm -f core conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028058LIBS=$ac_check_lib_save_LIBS
28059fi
cristy8b350f62009-11-15 23:12:43 +000028060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028061$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028062if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 passed=`expr $passed + 1`
28064else
28065 failed=`expr $failed + 1`
28066fi
28067
cristy8b350f62009-11-15 23:12:43 +000028068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028069$as_echo_n "checking if DJVU package is complete... " >&6; }
28070 if test $passed -gt 0; then
28071 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28073$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028074 have_djvu='no (failed tests)'
28075 else
28076 DJVU_LIBS='-ldjvulibre'
28077 LIBS="$DJVU_LIBS $LIBS"
28078
cristy8b350f62009-11-15 23:12:43 +000028079$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028080
cristy09b53e12011-10-14 12:47:22 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28082$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028083 have_djvu='yes'
28084 fi
28085 else
cristy09b53e12011-10-14 12:47:22 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28087$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028088 fi
28089fi
cristy73bd4a52010-10-05 11:24:23 +000028090 if test "$have_djvu" = 'yes'; then
28091 DJVU_DELEGATE_TRUE=
28092 DJVU_DELEGATE_FALSE='#'
28093else
28094 DJVU_DELEGATE_TRUE='#'
28095 DJVU_DELEGATE_FALSE=
28096fi
28097
cristy3ed852e2009-09-05 21:47:34 +000028098
28099
28100
28101#
cristy430a7312010-01-21 20:44:04 +000028102# Set DejaVu font directory.
28103#
28104
28105# Check whether --with-dejavu-font-dir was given.
28106if test "${with_dejavu_font_dir+set}" = set; then :
28107 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28108else
28109 with_dejavu_font_dir='default'
28110fi
28111
28112
28113if test "$with_dejavu_font_dir" != 'default'; then
28114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28115fi
28116
28117
28118#
cristy3ed852e2009-09-05 21:47:34 +000028119# Check for FFTW delegate library.
28120#
28121
28122# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028123if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 withval=$with_fftw; with_fftw=$withval
28125else
28126 with_fftw='yes'
28127fi
28128
28129
28130if test "$with_fftw" != 'yes'; then
28131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28132fi
28133
cristy81beccd2011-10-03 18:17:24 +000028134have_fftw='no'
28135FFTW_LIBS=''
28136if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028137 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28138$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28140$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28142$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028143 failed=0
28144 passed=0
28145 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28146if test "x$ac_cv_header_fftw3_h" = xyes; then :
28147 passed=`expr $passed + 1`
28148else
28149 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028150fi
28151
cristy81beccd2011-10-03 18:17:24 +000028152
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28154$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28155if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28156 $as_echo_n "(cached) " >&6
28157else
28158 ac_check_lib_save_LIBS=$LIBS
28159LIBS="-lfftw3 $LIBS"
28160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28161/* end confdefs.h. */
28162
28163/* Override any GCC internal prototype to avoid an error.
28164 Use char because int might match the return type of a GCC
28165 builtin and then its argument prototype would still apply. */
28166#ifdef __cplusplus
28167extern "C"
28168#endif
28169char fftw_execute ();
28170int
28171main ()
28172{
28173return fftw_execute ();
28174 ;
28175 return 0;
28176}
28177_ACEOF
28178if ac_fn_c_try_link "$LINENO"; then :
28179 ac_cv_lib_fftw3_fftw_execute=yes
28180else
28181 ac_cv_lib_fftw3_fftw_execute=no
28182fi
28183rm -f core conftest.err conftest.$ac_objext \
28184 conftest$ac_exeext conftest.$ac_ext
28185LIBS=$ac_check_lib_save_LIBS
28186fi
28187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28188$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28189if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28190 passed=`expr $passed + 1`
28191else
28192 failed=`expr $failed + 1`
28193fi
28194
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28196$as_echo_n "checking if FFTW package is complete... " >&6; }
28197 if test $passed -gt 0; then
28198 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028199 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28200$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028201 have_fftw='no (failed tests)'
28202 else
28203 FFTW_LIBS='-lfftw3'
28204 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028205
cristy8b350f62009-11-15 23:12:43 +000028206$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028207
cristy09b53e12011-10-14 12:47:22 +000028208 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28209$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028210 have_fftw='yes'
28211 fi
28212 else
cristy09b53e12011-10-14 12:47:22 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28214$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028215 fi
28216fi
cristy73bd4a52010-10-05 11:24:23 +000028217 if test "$have_fftw" = 'yes'; then
28218 FFTW_DELEGATE_TRUE=
28219 FFTW_DELEGATE_FALSE='#'
28220else
28221 FFTW_DELEGATE_TRUE='#'
28222 FFTW_DELEGATE_FALSE=
28223fi
28224
cristy3ed852e2009-09-05 21:47:34 +000028225
28226
28227
28228#
28229# Check for FlashPIX delegate library.
28230#
28231
28232# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028233if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 withval=$with_fpx; with_fpx=$withval
28235else
28236 with_fpx='yes'
28237fi
28238
28239
28240if test "$with_fpx" != 'yes'; then
28241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28242fi
28243
28244have_fpx='no'
28245FPX_LIBS=''
28246if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028247 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28248$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28252$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028253 failed=0
28254 passed=0
28255 ac_ext=cpp
28256ac_cpp='$CXXCPP $CPPFLAGS'
28257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28260
28261
cristy8b350f62009-11-15 23:12:43 +000028262ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028263if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 passed=`expr $passed + 1`
28265else
28266 failed=`expr $failed + 1`
28267fi
28268
28269
cristy8b350f62009-11-15 23:12:43 +000028270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028271$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028272if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028273 $as_echo_n "(cached) " >&6
28274else
28275 ac_check_lib_save_LIBS=$LIBS
28276LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028278/* end confdefs.h. */
28279
28280/* Override any GCC internal prototype to avoid an error.
28281 Use char because int might match the return type of a GCC
28282 builtin and then its argument prototype would still apply. */
28283#ifdef __cplusplus
28284extern "C"
28285#endif
28286char FPX_OpenImageByFilename ();
28287int
28288main ()
28289{
28290return FPX_OpenImageByFilename ();
28291 ;
28292 return 0;
28293}
28294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028295if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028296 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28297else
cristy8b350f62009-11-15 23:12:43 +000028298 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028299fi
cristy8b350f62009-11-15 23:12:43 +000028300rm -f core conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028302LIBS=$ac_check_lib_save_LIBS
28303fi
cristy8b350f62009-11-15 23:12:43 +000028304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028306if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 passed=`expr $passed + 1`
28308else
28309 failed=`expr $failed + 1`
28310fi
28311
28312 ac_ext=c
28313ac_cpp='$CPP $CPPFLAGS'
28314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28316ac_compiler_gnu=$ac_cv_c_compiler_gnu
28317
cristy8b350f62009-11-15 23:12:43 +000028318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028319$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28320 if test $passed -gt 0; then
28321 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28323$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028324 have_fpx='no (failed tests)'
28325 else
28326 FPX_LIBS='-lfpx'
28327
cristy8b350f62009-11-15 23:12:43 +000028328$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028329
cristy09b53e12011-10-14 12:47:22 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28331$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028332 have_fpx='yes'
28333 PERLMAINCC="$CXX"
28334 fi
28335 else
cristy09b53e12011-10-14 12:47:22 +000028336 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28337$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028338 fi
28339fi
cristy73bd4a52010-10-05 11:24:23 +000028340 if test "$have_fpx" = 'yes'; then
28341 FPX_DELEGATE_TRUE=
28342 FPX_DELEGATE_FALSE='#'
28343else
28344 FPX_DELEGATE_TRUE='#'
28345 FPX_DELEGATE_FALSE=
28346fi
28347
cristy3ed852e2009-09-05 21:47:34 +000028348
28349
28350
28351#
28352# Check for fontconfig delegate library.
28353#
28354
28355# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028356if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 withval=$with_fontconfig; with_fontconfig=$withval
28358else
cristyfc3d0222012-02-07 15:05:57 +000028359 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028360fi
28361
28362
28363if test "$with_fontconfig" != 'yes'; then
28364 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28365fi
28366
28367have_fontconfig='no'
28368FONTCONFIG_CFLAGS=""
28369FONTCONFIG_LIBS=""
28370FONTCONFIG_PKG=""
28371if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28373$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028374
28375pkg_failed=no
28376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28377$as_echo_n "checking for FONTCONFIG... " >&6; }
28378
28379if test -n "$FONTCONFIG_CFLAGS"; then
28380 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28381 elif test -n "$PKG_CONFIG"; then
28382 if test -n "$PKG_CONFIG" && \
28383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28384 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28385 ac_status=$?
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; then
28388 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28389else
28390 pkg_failed=yes
28391fi
28392 else
28393 pkg_failed=untried
28394fi
28395if test -n "$FONTCONFIG_LIBS"; then
28396 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28397 elif test -n "$PKG_CONFIG"; then
28398 if test -n "$PKG_CONFIG" && \
28399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28400 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28401 ac_status=$?
28402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28403 test $ac_status = 0; }; then
28404 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28405else
28406 pkg_failed=yes
28407fi
28408 else
28409 pkg_failed=untried
28410fi
28411
28412
28413
28414if test $pkg_failed = yes; then
28415
28416if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28417 _pkg_short_errors_supported=yes
28418else
28419 _pkg_short_errors_supported=no
28420fi
28421 if test $_pkg_short_errors_supported = yes; then
28422 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28423 else
28424 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28425 fi
28426 # Put the nasty error message in config.log where it belongs
28427 echo "$FONTCONFIG_PKG_ERRORS" >&5
28428
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28430$as_echo "no" >&6; }
28431 have_fontconfig=no
28432elif test $pkg_failed = untried; then
28433 have_fontconfig=no
28434else
28435 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28436 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28438$as_echo "yes" >&6; }
28439 have_fontconfig=yes
28440fi
cristy09b53e12011-10-14 12:47:22 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28442$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028443fi
28444
28445if test "$have_fontconfig" = 'yes'; then
28446
cristy8b350f62009-11-15 23:12:43 +000028447$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028448
cristyc6722092012-10-14 00:19:31 +000028449 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028450 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028451 fi
cristy3ed852e2009-09-05 21:47:34 +000028452fi
28453
cristy73bd4a52010-10-05 11:24:23 +000028454 if test "$have_fontconfig" = 'yes'; then
28455 FONTCONFIG_DELEGATE_TRUE=
28456 FONTCONFIG_DELEGATE_FALSE='#'
28457else
28458 FONTCONFIG_DELEGATE_TRUE='#'
28459 FONTCONFIG_DELEGATE_FALSE=
28460fi
28461
cristy3ed852e2009-09-05 21:47:34 +000028462
28463
28464
28465
28466#
cristy81beccd2011-10-03 18:17:24 +000028467# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028468#
28469
28470# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028471if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028472 withval=$with_freetype; with_freetype=$withval
28473else
28474 with_freetype='yes'
28475fi
28476
28477
cristy81beccd2011-10-03 18:17:24 +000028478
cristy3ed852e2009-09-05 21:47:34 +000028479if test "$with_freetype" != 'yes'; then
28480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28481fi
28482
cristy81beccd2011-10-03 18:17:24 +000028483have_freetype='no'
28484FREETYPE_LIBS=''
28485if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28487$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28489$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28491$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028492 failed=0
28493 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028494 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028495 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028496 freetype_config=''
28497 # Allow the user to specify the location of freetype.
28498 if test "$with_freetype" != 'yes'; then
28499 if test -x "${with_freetype}/bin/freetype-config"; then
28500 freetype_config="${with_freetype}/bin/freetype-config"
28501 elif test -x "${with_freetype}"; then
28502 freetype_config=${with_freetype}
28503 fi
28504 fi
28505 if test -z "$freetype_config"; then
28506 # Extract the first word of "freetype-config", so it can be a program name with args.
28507set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28509$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028510if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028511 $as_echo_n "(cached) " >&6
28512else
cristy98ca0f52011-10-08 23:19:10 +000028513 case $freetype_config in
28514 [\\/]* | ?:[\\/]*)
28515 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28516 ;;
28517 *)
28518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028519for as_dir in $PATH
28520do
28521 IFS=$as_save_IFS
28522 test -z "$as_dir" && as_dir=.
28523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028525 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28527 break 2
28528 fi
28529done
28530 done
28531IFS=$as_save_IFS
28532
cristy98ca0f52011-10-08 23:19:10 +000028533 ;;
28534esac
cristy81beccd2011-10-03 18:17:24 +000028535fi
cristy98ca0f52011-10-08 23:19:10 +000028536freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028537if test -n "$freetype_config"; then
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28539$as_echo "$freetype_config" >&6; }
28540else
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28542$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028543fi
28544
cristy98ca0f52011-10-08 23:19:10 +000028545 fi
28546 if test -n "$freetype_config"; then
28547 freetype_prefix=`${freetype_config} --prefix`
28548 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28549 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28550 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028551 fi
28552
28553 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028555$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28556if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28557 $as_echo_n "(cached) " >&6
28558else
28559 ac_check_lib_save_LIBS=$LIBS
28560LIBS="-lfreetype $LIBS"
28561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28562/* 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 FT_Init_FreeType ();
28571int
28572main ()
28573{
28574return FT_Init_FreeType ();
28575 ;
28576 return 0;
28577}
28578_ACEOF
28579if ac_fn_c_try_link "$LINENO"; then :
28580 ac_cv_lib_freetype_FT_Init_FreeType=yes
28581else
28582 ac_cv_lib_freetype_FT_Init_FreeType=no
28583fi
28584rm -f core conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
28586LIBS=$ac_check_lib_save_LIBS
28587fi
28588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28589$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28590if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28591 FREETYPE_LIBS='-lfreetype'
28592fi
28593
cristy98ca0f52011-10-08 23:19:10 +000028594 if test "$FREETYPE_LIBS" != ''; then
28595 passed=`expr $passed + 1`
28596 else
28597 failed=`expr $failed + 1`
28598 LDFLAGS="$PERSIST_LDFLAGS"
28599 fi
cristy81beccd2011-10-03 18:17:24 +000028600 fi
28601
28602 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28603if test "x$ac_cv_header_ft2build_h" = xyes; then :
28604 FT2BUILD_H='#include <ft2build.h>'
28605else
28606 ft2build=''
28607fi
28608
28609
28610 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28611"
28612if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28613 have_freetype_h='yes'
28614else
28615 have_freetype_h='no'
28616fi
28617
28618
cristy98ca0f52011-10-08 23:19:10 +000028619 if test "$have_freetype_h" = 'yes'; then
28620 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028621 else
cristy98ca0f52011-10-08 23:19:10 +000028622 failed=`expr $failed + 1`
28623 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028624 fi
28625
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28627$as_echo_n "checking if FreeType package is complete... " >&6; }
28628 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028629 if test $failed -gt 0; then
28630 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28632$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028633 have_freetype='no (failed tests)'
28634 else
28635 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028636
cristy8b350f62009-11-15 23:12:43 +000028637$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028638
cristy98ca0f52011-10-08 23:19:10 +000028639 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028640
28641$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28642
cristy81beccd2011-10-03 18:17:24 +000028643 fi
cristy09b53e12011-10-14 12:47:22 +000028644 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28645$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028646 have_freetype='yes'
28647 fi
cristy81beccd2011-10-03 18:17:24 +000028648 else
cristy09b53e12011-10-14 12:47:22 +000028649 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28650$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028651 fi
28652fi
cristy73bd4a52010-10-05 11:24:23 +000028653 if test "$have_freetype" = 'yes'; then
28654 FREETYPE_DELEGATE_TRUE=
28655 FREETYPE_DELEGATE_FALSE='#'
28656else
28657 FREETYPE_DELEGATE_TRUE='#'
28658 FREETYPE_DELEGATE_FALSE=
28659fi
28660
cristy3ed852e2009-09-05 21:47:34 +000028661
28662
28663
cristy3ed852e2009-09-05 21:47:34 +000028664#
28665# Check for Ghostscript library or framework.
28666#
28667# Test for iapi.h & test for gsapi_new_instance in -lgs
28668# or -framework Ghostscript
28669
28670
28671# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028672if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028673 withval=$with_gslib; with_gslib=$withval
28674else
28675 with_gslib='no'
28676fi
28677
28678
cristyb7931f12009-09-25 10:22:21 +000028679gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028680if test "$with_gslib" != 'yes'; then
28681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28682fi
28683
28684have_gslib='no'
28685GS_LIBS=''
28686if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028687 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28688$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028690$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28692$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028693 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028694 failed=0
28695 passed=0
cristy8b350f62009-11-15 23:12:43 +000028696 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 +000028697if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028698 passed=`expr $passed + 1`
28699else
28700 failed=`expr $failed + 1`
28701fi
28702
28703
cristy8b350f62009-11-15 23:12:43 +000028704 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 +000028705if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028706 passed=`expr $passed + 1`
28707else
28708 failed=`expr $failed + 1`
28709fi
28710
28711
cristy73bd4a52010-10-05 11:24:23 +000028712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28713$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028714if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028715 $as_echo_n "(cached) " >&6
28716else
28717 ac_check_framework_save_LIBS=$LIBS
28718LIBS="-framework Ghostscript $LIBS"
28719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28720/* end confdefs.h. */
28721
28722/* Override any GCC internal prototype to avoid an error.
28723 Use char because int might match the return type of a GCC
28724 builtin and then its argument prototype would still apply. */
28725#ifdef __cplusplus
28726extern "C"
28727#endif
28728char gsapi_new_instance ();
28729int
28730main ()
28731{
28732return gsapi_new_instance ();
28733 ;
28734 return 0;
28735}
28736_ACEOF
28737if ac_fn_c_try_link "$LINENO"; then :
28738 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28739else
28740 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28741fi
28742rm -f core conftest.err conftest.$ac_objext \
28743 conftest$ac_exeext conftest.$ac_ext
28744LIBS=$ac_check_framework_save_LIBS
28745fi
28746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28747$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28748if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28749 framework=`expr $framework + 1`
28750else
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 $as_echo_n "(cached) " >&6
28755else
28756 ac_check_lib_save_LIBS=$LIBS
28757LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028759/* end confdefs.h. */
28760
28761/* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767char gsapi_new_instance ();
28768int
28769main ()
28770{
28771return gsapi_new_instance ();
28772 ;
28773 return 0;
28774}
28775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 ac_cv_lib_gs_gsapi_new_instance=yes
28778else
cristy8b350f62009-11-15 23:12:43 +000028779 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028780fi
cristy8b350f62009-11-15 23:12:43 +000028781rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028783LIBS=$ac_check_lib_save_LIBS
28784fi
cristy8b350f62009-11-15 23:12:43 +000028785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028786$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028787if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 passed=`expr $passed + 1`
28789else
28790 failed=`expr $failed + 1`
28791fi
cristy73bd4a52010-10-05 11:24:23 +000028792
28793fi
cristy8b350f62009-11-15 23:12:43 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028795$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28796 if test $passed -gt 0; then
28797 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028798 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28799$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028800 have_gslib='no (failed tests)'
28801 else
28802 if test $framework -gt 0; then
28803 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028804 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000028805 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
28806$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028807 else
cristy09b53e12011-10-14 12:47:22 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
28809$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028810 GS_LIBS='-lgs'
28811 fi
28812 LIBS="$GS_LIBS $LIBS"
28813
cristy8b350f62009-11-15 23:12:43 +000028814$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028815
28816 have_gslib='yes'
28817 fi
28818 else
cristy09b53e12011-10-14 12:47:22 +000028819 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28820$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028821 fi
28822fi
cristy73bd4a52010-10-05 11:24:23 +000028823 if test "$have_gslib" = 'yes'; then
28824 GS_DELEGATE_TRUE=
28825 GS_DELEGATE_FALSE='#'
28826else
28827 GS_DELEGATE_TRUE='#'
28828 GS_DELEGATE_FALSE=
28829fi
28830
cristy3ed852e2009-09-05 21:47:34 +000028831
28832
28833# Set default font search path
28834
28835# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028836if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028837 withval=$with_fontpath; with_fontpath=$withval
28838else
28839 with_fontpath=''
28840fi
28841
28842
28843if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28844 with_fontpath=''
28845else
28846
28847cat >>confdefs.h <<_ACEOF
28848#define MAGICK_FONT_PATH "$with_fontpath"
28849_ACEOF
28850
28851fi
28852if test "$with_fontpath=" != ''; then
28853 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28854fi
28855
28856# Set Ghostscript font directory
28857
28858# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028859if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028860 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28861else
28862 with_gs_font_dir='default'
28863fi
28864
28865
28866if test "$with_gs_font_dir" != 'default'; then
28867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28868fi
28869
28870
28871#
28872# Check for GVC delegate library.
28873#
28874
28875# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028876if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028877 withval=$with_gvc; with_gvc=$withval
28878else
cristy1b70dc82012-07-01 23:15:05 +000028879 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000028880fi
28881
28882
28883if test "$with_gvc" != 'yes'; then
28884 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28885fi
28886
28887GVC_PKG=""
28888if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28890$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028891
28892pkg_failed=no
28893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28894$as_echo_n "checking for GVC... " >&6; }
28895
28896if test -n "$GVC_CFLAGS"; then
28897 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28898 elif test -n "$PKG_CONFIG"; then
28899 if test -n "$PKG_CONFIG" && \
28900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28901 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28902 ac_status=$?
28903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28904 test $ac_status = 0; }; then
28905 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28906else
28907 pkg_failed=yes
28908fi
28909 else
28910 pkg_failed=untried
28911fi
28912if test -n "$GVC_LIBS"; then
28913 pkg_cv_GVC_LIBS="$GVC_LIBS"
28914 elif test -n "$PKG_CONFIG"; then
28915 if test -n "$PKG_CONFIG" && \
28916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28917 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28918 ac_status=$?
28919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28920 test $ac_status = 0; }; then
28921 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28922else
28923 pkg_failed=yes
28924fi
28925 else
28926 pkg_failed=untried
28927fi
28928
28929
28930
28931if test $pkg_failed = yes; then
28932
28933if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28934 _pkg_short_errors_supported=yes
28935else
28936 _pkg_short_errors_supported=no
28937fi
28938 if test $_pkg_short_errors_supported = yes; then
28939 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28940 else
28941 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28942 fi
28943 # Put the nasty error message in config.log where it belongs
28944 echo "$GVC_PKG_ERRORS" >&5
28945
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28947$as_echo "no" >&6; }
28948 have_gvc=no
28949elif test $pkg_failed = untried; then
28950 have_gvc=no
28951else
28952 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28953 GVC_LIBS=$pkg_cv_GVC_LIBS
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28955$as_echo "yes" >&6; }
28956 have_gvc=yes
28957fi
cristy09b53e12011-10-14 12:47:22 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28959$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028960fi
28961
28962if test "$have_gvc" = 'yes'; then
28963
cristy8b350f62009-11-15 23:12:43 +000028964$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028965
cristyc6722092012-10-14 00:19:31 +000028966 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028967 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28968 fi
28969fi
28970
cristy73bd4a52010-10-05 11:24:23 +000028971 if test "$have_gvc" = 'yes'; then
28972 GVC_DELEGATE_TRUE=
28973 GVC_DELEGATE_FALSE='#'
28974else
28975 GVC_DELEGATE_TRUE='#'
28976 GVC_DELEGATE_FALSE=
28977fi
28978
cristy3ed852e2009-09-05 21:47:34 +000028979
28980
28981
28982
28983#
28984# Check for JBIG delegate library.
28985#
28986
28987
28988# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028989if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028990 withval=$with_jbig; with_jbig=$withval
28991else
28992 with_jbig='yes'
28993fi
28994
28995
28996have_jbig='no'
28997JBIG_LIBS=''
28998if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028999 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29000$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029002$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029003 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29004$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029005 failed=0
29006 passed=0
cristy8b350f62009-11-15 23:12:43 +000029007 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029008if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029009 passed=`expr $passed + 1`
29010else
29011 failed=`expr $failed + 1`
29012fi
29013
29014
cristy8b350f62009-11-15 23:12:43 +000029015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029016$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029017if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 $as_echo_n "(cached) " >&6
29019else
29020 ac_check_lib_save_LIBS=$LIBS
29021LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029023/* end confdefs.h. */
29024
29025/* Override any GCC internal prototype to avoid an error.
29026 Use char because int might match the return type of a GCC
29027 builtin and then its argument prototype would still apply. */
29028#ifdef __cplusplus
29029extern "C"
29030#endif
29031char jbg_dec_init ();
29032int
29033main ()
29034{
29035return jbg_dec_init ();
29036 ;
29037 return 0;
29038}
29039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029041 ac_cv_lib_jbig_jbg_dec_init=yes
29042else
cristy8b350f62009-11-15 23:12:43 +000029043 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029044fi
cristy8b350f62009-11-15 23:12:43 +000029045rm -f core conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029047LIBS=$ac_check_lib_save_LIBS
29048fi
cristy8b350f62009-11-15 23:12:43 +000029049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029051if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029052 passed=`expr $passed + 1`
29053else
29054 failed=`expr $failed + 1`
29055fi
29056
cristy8b350f62009-11-15 23:12:43 +000029057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029058$as_echo_n "checking if JBIG package is complete... " >&6; }
29059 if test $passed -gt 0; then
29060 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029061 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29062$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029063 have_jbig='no (failed tests)'
29064 else
29065 JBIG_LIBS='-ljbig'
29066 LIBS="$JBIG_LIBS $LIBS"
29067
cristy8b350f62009-11-15 23:12:43 +000029068$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029069
cristy09b53e12011-10-14 12:47:22 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29071$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029072 have_jbig='yes'
29073 fi
29074 else
cristy09b53e12011-10-14 12:47:22 +000029075 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29076$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029077 fi
29078fi
cristy73bd4a52010-10-05 11:24:23 +000029079 if test "$have_jbig" = 'yes'; then
29080 JBIG_DELEGATE_TRUE=
29081 JBIG_DELEGATE_FALSE='#'
29082else
29083 JBIG_DELEGATE_TRUE='#'
29084 JBIG_DELEGATE_FALSE=
29085fi
29086
cristy3ed852e2009-09-05 21:47:34 +000029087
29088
29089
29090#
29091# Check for JPEG delegate library.
29092#
29093
29094# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029095if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029096 withval=$with_jpeg; with_jpeg=$withval
29097else
29098 with_jpeg='yes'
29099fi
29100
29101
29102if test "$with_jpeg" != 'yes'; then
29103 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29104fi
29105
29106have_jpeg='no'
29107JPEG_LIBS=''
29108if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29110$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029112$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029113 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29114$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029115 failed=0
29116 passed=0
cristy8b350f62009-11-15 23:12:43 +000029117 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029118if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029119 passed=`expr $passed + 1`
29120else
29121 failed=`expr $failed + 1`
29122fi
29123
29124
cristy8b350f62009-11-15 23:12:43 +000029125 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029126if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029127 passed=`expr $passed + 1`
29128else
29129 failed=`expr $failed + 1`
29130fi
29131
29132
cristy8b350f62009-11-15 23:12:43 +000029133 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029134if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029135 passed=`expr $passed + 1`
29136else
29137 failed=`expr $failed + 1`
29138fi
29139
29140
cristy8b350f62009-11-15 23:12:43 +000029141 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029142if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029143 passed=`expr $passed + 1`
29144else
29145 failed=`expr $failed + 1`
29146fi
29147
29148
cristy8b350f62009-11-15 23:12:43 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029150$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029151if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029152 $as_echo_n "(cached) " >&6
29153else
29154 ac_check_lib_save_LIBS=$LIBS
29155LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029157/* end confdefs.h. */
29158
29159/* Override any GCC internal prototype to avoid an error.
29160 Use char because int might match the return type of a GCC
29161 builtin and then its argument prototype would still apply. */
29162#ifdef __cplusplus
29163extern "C"
29164#endif
29165char jpeg_read_header ();
29166int
29167main ()
29168{
29169return jpeg_read_header ();
29170 ;
29171 return 0;
29172}
29173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 ac_cv_lib_jpeg_jpeg_read_header=yes
29176else
cristy8b350f62009-11-15 23:12:43 +000029177 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029178fi
cristy8b350f62009-11-15 23:12:43 +000029179rm -f core conftest.err conftest.$ac_objext \
29180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029181LIBS=$ac_check_lib_save_LIBS
29182fi
cristy8b350f62009-11-15 23:12:43 +000029183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029184$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029185if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029186 passed=`expr $passed + 1`
29187else
29188 failed=`expr $failed + 1`
29189fi
29190
29191
29192# Test for compatible JPEG library
29193if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029195$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029196if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029197 $as_echo_n "(cached) " >&6
29198else
cristy8b350f62009-11-15 23:12:43 +000029199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029200/* end confdefs.h. */
29201#include <stdio.h>
29202#include <stdlib.h>
29203#include <jpeglib.h>
29204
29205int
29206main ()
29207{
29208
29209#if JPEG_LIB_VERSION < 62
29210#error IJG JPEG library must be version 6b or newer!
29211#endif
29212return 0;
29213
29214 ;
29215 return 0;
29216}
29217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029218if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029219 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29220else
cristy8b350f62009-11-15 23:12:43 +000029221 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029222fi
cristy3ed852e2009-09-05 21:47:34 +000029223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29224fi
cristy8b350f62009-11-15 23:12:43 +000029225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029226$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29227fi
cristy8b350f62009-11-15 23:12:43 +000029228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029229$as_echo_n "checking if JPEG package is complete... " >&6; }
29230 if test $passed -gt 0; then
29231 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029232 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29233$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029234 have_jpeg='no (failed tests)'
29235 else
29236 JPEG_LIBS='-ljpeg'
29237 LIBS="$JPEG_LIBS $LIBS"
29238
cristy8b350f62009-11-15 23:12:43 +000029239$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029240
cristy09b53e12011-10-14 12:47:22 +000029241 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29242$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029243 have_jpeg='yes'
29244 fi
29245 else
cristy09b53e12011-10-14 12:47:22 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29247$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029248 fi
29249fi
cristy73bd4a52010-10-05 11:24:23 +000029250 if test "$have_jpeg" = 'yes'; then
29251 JPEG_DELEGATE_TRUE=
29252 JPEG_DELEGATE_FALSE='#'
29253else
29254 JPEG_DELEGATE_TRUE='#'
29255 JPEG_DELEGATE_FALSE=
29256fi
29257
cristy3ed852e2009-09-05 21:47:34 +000029258
29259
29260
29261#
29262# Check for JPEG Version 2 delegate library.
29263#
29264
29265# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029266if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 withval=$with_jp2; with_jp2=$withval
29268else
29269 with_jp2='yes'
29270fi
29271
29272
29273if test "$with_jp2" != 'yes'; then
29274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29275fi
29276
29277have_jp2='no'
29278JP2_LIBS=''
29279if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29281$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29285$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029286 failed=0
29287 passed=0
cristy8b350f62009-11-15 23:12:43 +000029288 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 +000029289if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 passed=`expr $passed + 1`
29291else
29292 failed=`expr $failed + 1`
29293fi
29294
29295
cristy8b350f62009-11-15 23:12:43 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029297$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029298if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029299 $as_echo_n "(cached) " >&6
29300else
29301 ac_check_lib_save_LIBS=$LIBS
29302LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029304/* end confdefs.h. */
29305
29306/* Override any GCC internal prototype to avoid an error.
29307 Use char because int might match the return type of a GCC
29308 builtin and then its argument prototype would still apply. */
29309#ifdef __cplusplus
29310extern "C"
29311#endif
29312char jas_stream_fopen ();
29313int
29314main ()
29315{
29316return jas_stream_fopen ();
29317 ;
29318 return 0;
29319}
29320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029322 ac_cv_lib_jasper_jas_stream_fopen=yes
29323else
cristy8b350f62009-11-15 23:12:43 +000029324 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029325fi
cristy8b350f62009-11-15 23:12:43 +000029326rm -f core conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029328LIBS=$ac_check_lib_save_LIBS
29329fi
cristy8b350f62009-11-15 23:12:43 +000029330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029331$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029332if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029333 passed=`expr $passed + 1`
29334else
29335 failed=`expr $failed + 1`
29336fi
29337
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29340 if test $passed -gt 0; then
29341 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029342 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29343$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029344 have_jp2='no (failed tests)'
29345 else
29346 JP2_LIBS='-ljasper'
29347 LIBS="$JP2_LIBS $LIBS"
29348
cristy8b350f62009-11-15 23:12:43 +000029349$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029350
cristy09b53e12011-10-14 12:47:22 +000029351 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29352$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029353 have_jp2='yes'
29354 fi
29355 else
cristy09b53e12011-10-14 12:47:22 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29357$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029358 fi
29359fi
cristy73bd4a52010-10-05 11:24:23 +000029360 if test "$have_jp2" = 'yes'; then
29361 JP2_DELEGATE_TRUE=
29362 JP2_DELEGATE_FALSE='#'
29363else
29364 JP2_DELEGATE_TRUE='#'
29365 JP2_DELEGATE_FALSE=
29366fi
29367
cristy3ed852e2009-09-05 21:47:34 +000029368
29369
29370
29371#
29372# Check for LCMS delegate library.
29373#
cristy71203402010-06-18 13:12:03 +000029374# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029375
29376# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029377if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 withval=$with_lcms; with_lcms=$withval
29379else
29380 with_lcms='yes'
29381fi
29382
cristy71203402010-06-18 13:12:03 +000029383if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29385fi
29386
cristy71203402010-06-18 13:12:03 +000029387# Disable LCMS2.
29388
29389# Check whether --with-lcms2 was given.
29390if test "${with_lcms2+set}" = set; then :
29391 withval=$with_lcms2; with_lcms2=$withval
29392else
29393 with_lcms2='yes'
29394fi
29395
29396if test "$with_lcms2" != 'yes' ; then
29397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29398fi
29399
29400have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029401LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029402if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29404$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29406$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29408$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029409 failed=0
29410 passed=0
29411 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029412
29413 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029414 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029415if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029416 have_lcms_header='yes'
29417fi
29418
29419
29420 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029421
29422$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29423
cristy71203402010-06-18 13:12:03 +000029424 passed=`expr $passed + 1`
29425 fi
29426
29427 # Check for <lcms2/lcms2.h)
29428 if test "$have_lcms_header" != 'yes'; then
29429 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 +000029430if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029431 have_lcms_header='yes'
29432fi
29433
29434
cristy71203402010-06-18 13:12:03 +000029435 if test "$have_lcms_header" = 'yes'; then
29436 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029437
cristy71203402010-06-18 13:12:03 +000029438$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029439
cristy71203402010-06-18 13:12:03 +000029440 fi
cristyd09bcf92010-03-25 03:04:45 +000029441 fi
cristy71203402010-06-18 13:12:03 +000029442
29443 # Failed to find lcms header?
29444 if test "$have_lcms_header" != 'yes'; then
29445 failed=`expr $failed + 1`
29446 fi
29447
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29449$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029450if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029451 $as_echo_n "(cached) " >&6
29452else
29453 ac_check_lib_save_LIBS=$LIBS
29454LIBS="-llcms2 $LIBS"
29455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29456/* end confdefs.h. */
29457
29458/* Override any GCC internal prototype to avoid an error.
29459 Use char because int might match the return type of a GCC
29460 builtin and then its argument prototype would still apply. */
29461#ifdef __cplusplus
29462extern "C"
29463#endif
cristy71203402010-06-18 13:12:03 +000029464char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029465int
29466main ()
29467{
cristy71203402010-06-18 13:12:03 +000029468return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029469 ;
29470 return 0;
29471}
29472_ACEOF
29473if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029474 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029475else
cristy71203402010-06-18 13:12:03 +000029476 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029477fi
29478rm -f core conftest.err conftest.$ac_objext \
29479 conftest$ac_exeext conftest.$ac_ext
29480LIBS=$ac_check_lib_save_LIBS
29481fi
cristy71203402010-06-18 13:12:03 +000029482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29483$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029484if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029485 passed=`expr $passed + 1`
29486else
29487 failed=`expr $failed + 1`
29488fi
29489
cristy71203402010-06-18 13:12:03 +000029490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29491$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029492 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029493 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29495$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029496 have_lcms2='no (failed tests)'
29497 else
29498 LCMS_LIBS='-llcms2'
29499 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029500 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29501$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029502 have_lcms2='yes'
29503 fi
cristyd09bcf92010-03-25 03:04:45 +000029504 else
cristy09b53e12011-10-14 12:47:22 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29506$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029507 fi
29508fi
29509
cristy71203402010-06-18 13:12:03 +000029510#
29511# Check for LCMS v1 (1.11 or later)
29512#
29513if test $have_lcms2 = 'yes'; then
29514 with_lcms='no'
29515fi
29516
29517have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029518if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29520$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29522$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29524$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029525 failed=0
29526 passed=0
29527 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029528
29529 # Check for <lcms.h>
29530 if test "$have_lcms_header" != 'yes'; then
29531 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029532if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029533 have_lcms_header='yes'
29534fi
29535
29536
cristy71203402010-06-18 13:12:03 +000029537 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029538 passed=`expr $passed + 1`
29539
cristy8b350f62009-11-15 23:12:43 +000029540$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029541
cristy71203402010-06-18 13:12:03 +000029542 fi
29543 fi
29544
29545 # Check for <lcms/lcms.h>
29546 if test "$have_lcms_header" != 'yes'; then
29547 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 +000029548if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029549 have_lcms_header='yes'
29550fi
29551
29552
cristy71203402010-06-18 13:12:03 +000029553 if test "$have_lcms_header" = 'yes'; then
29554 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029555
cristy8b350f62009-11-15 23:12:43 +000029556$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029557
cristy71203402010-06-18 13:12:03 +000029558 fi
cristy3ed852e2009-09-05 21:47:34 +000029559 fi
cristy71203402010-06-18 13:12:03 +000029560
29561 # Failed to find lcms header?
29562 if test "$have_lcms_header" != 'yes'; then
29563 failed=`expr $failed + 1`
29564 fi
29565
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29567$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029568if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029569 $as_echo_n "(cached) " >&6
29570else
29571 ac_check_lib_save_LIBS=$LIBS
29572LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029574/* end confdefs.h. */
29575
29576/* Override any GCC internal prototype to avoid an error.
29577 Use char because int might match the return type of a GCC
29578 builtin and then its argument prototype would still apply. */
29579#ifdef __cplusplus
29580extern "C"
29581#endif
cristy71203402010-06-18 13:12:03 +000029582char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029583int
29584main ()
29585{
cristy71203402010-06-18 13:12:03 +000029586return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029587 ;
29588 return 0;
29589}
29590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029591if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029592 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029593else
cristy71203402010-06-18 13:12:03 +000029594 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029595fi
cristy8b350f62009-11-15 23:12:43 +000029596rm -f core conftest.err conftest.$ac_objext \
29597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029598LIBS=$ac_check_lib_save_LIBS
29599fi
cristy71203402010-06-18 13:12:03 +000029600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29601$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029602if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029603 passed=`expr $passed + 1`
29604else
29605 failed=`expr $failed + 1`
29606fi
29607
cristy8b350f62009-11-15 23:12:43 +000029608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029609$as_echo_n "checking if LCMS package is complete... " >&6; }
29610 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029611 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029612 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29613$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029614 have_lcms='no (failed tests)'
29615 else
29616 LCMS_LIBS='-llcms'
29617 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29619$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029620 have_lcms='yes'
29621 fi
cristy3ed852e2009-09-05 21:47:34 +000029622 else
cristy09b53e12011-10-14 12:47:22 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29624$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029625 fi
29626fi
cristy71203402010-06-18 13:12:03 +000029627
cristy73bd4a52010-10-05 11:24:23 +000029628 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29629 LCMS_DELEGATE_TRUE=
29630 LCMS_DELEGATE_FALSE='#'
29631else
29632 LCMS_DELEGATE_TRUE='#'
29633 LCMS_DELEGATE_FALSE=
29634fi
29635
cristy71203402010-06-18 13:12:03 +000029636if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29637
29638$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29639
29640fi
29641
cristy3ed852e2009-09-05 21:47:34 +000029642
29643
29644
29645#
29646# Check for the LQR (Liquid Rescale) delegate library.
29647#
29648
29649# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029650if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029651 withval=$with_lqr; with_lqr=$withval
29652else
29653 with_lqr='yes'
29654fi
29655
29656
29657if test "$with_lqr" != 'yes'; then
29658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29659fi
29660
29661have_lqr='no'
29662LQR_CFLAGS=""
29663LQR_LIBS=""
29664LQR_PKG=""
29665if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029666 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29667$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029668
29669pkg_failed=no
29670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29671$as_echo_n "checking for LQR... " >&6; }
29672
29673if test -n "$LQR_CFLAGS"; then
29674 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29675 elif test -n "$PKG_CONFIG"; then
29676 if test -n "$PKG_CONFIG" && \
29677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29678 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29679 ac_status=$?
29680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29681 test $ac_status = 0; }; then
29682 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29683else
29684 pkg_failed=yes
29685fi
29686 else
29687 pkg_failed=untried
29688fi
29689if test -n "$LQR_LIBS"; then
29690 pkg_cv_LQR_LIBS="$LQR_LIBS"
29691 elif test -n "$PKG_CONFIG"; then
29692 if test -n "$PKG_CONFIG" && \
29693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29694 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29695 ac_status=$?
29696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29697 test $ac_status = 0; }; then
29698 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29699else
29700 pkg_failed=yes
29701fi
29702 else
29703 pkg_failed=untried
29704fi
29705
29706
29707
29708if test $pkg_failed = yes; then
29709
29710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29711 _pkg_short_errors_supported=yes
29712else
29713 _pkg_short_errors_supported=no
29714fi
29715 if test $_pkg_short_errors_supported = yes; then
29716 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29717 else
29718 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29719 fi
29720 # Put the nasty error message in config.log where it belongs
29721 echo "$LQR_PKG_ERRORS" >&5
29722
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29724$as_echo "no" >&6; }
29725 have_lqr=no
29726elif test $pkg_failed = untried; then
29727 have_lqr=no
29728else
29729 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29730 LQR_LIBS=$pkg_cv_LQR_LIBS
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29732$as_echo "yes" >&6; }
29733 have_lqr=yes
29734fi
cristy09b53e12011-10-14 12:47:22 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29736$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029737fi
29738
29739if test "$have_lqr" = 'yes'; then
29740
cristy8b350f62009-11-15 23:12:43 +000029741$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029742
29743 CFLAGS="$LQR_CFLAGS $CFLAGS"
29744fi
29745
cristy73bd4a52010-10-05 11:24:23 +000029746 if test "$have_lqr" = 'yes'; then
29747 LQR_DELEGATE_TRUE=
29748 LQR_DELEGATE_FALSE='#'
29749else
29750 LQR_DELEGATE_TRUE='#'
29751 LQR_DELEGATE_FALSE=
29752fi
29753
cristy3ed852e2009-09-05 21:47:34 +000029754
29755
29756
29757
cristy81beccd2011-10-03 18:17:24 +000029758# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029759
29760# Check whether --with-lzma was given.
29761if test "${with_lzma+set}" = set; then :
29762 withval=$with_lzma; with_lzma=$withval
29763else
29764 with_lzma='yes'
29765fi
29766
cristy81beccd2011-10-03 18:17:24 +000029767if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29769fi
29770
cristyb94e5002011-11-14 13:20:10 +000029771LZMA_PKG=""
29772if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29774$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000029775
29776pkg_failed=no
29777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029778$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029779
29780if test -n "$LZMA_CFLAGS"; then
29781 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29782 elif test -n "$PKG_CONFIG"; then
29783 if test -n "$PKG_CONFIG" && \
29784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29785 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29786 ac_status=$?
29787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29788 test $ac_status = 0; }; then
29789 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29790else
29791 pkg_failed=yes
29792fi
29793 else
29794 pkg_failed=untried
29795fi
29796if test -n "$LZMA_LIBS"; then
29797 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29798 elif test -n "$PKG_CONFIG"; then
29799 if test -n "$PKG_CONFIG" && \
29800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29801 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29802 ac_status=$?
29803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29804 test $ac_status = 0; }; then
29805 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29806else
29807 pkg_failed=yes
29808fi
29809 else
29810 pkg_failed=untried
29811fi
29812
29813
29814
29815if test $pkg_failed = yes; then
29816
29817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29818 _pkg_short_errors_supported=yes
29819else
29820 _pkg_short_errors_supported=no
29821fi
29822 if test $_pkg_short_errors_supported = yes; then
29823 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
29824 else
29825 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
29826 fi
29827 # Put the nasty error message in config.log where it belongs
29828 echo "$LZMA_PKG_ERRORS" >&5
29829
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29831$as_echo "no" >&6; }
29832 have_lzma=no
29833elif test $pkg_failed = untried; then
29834 have_lzma=no
29835else
29836 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
29837 LZMA_LIBS=$pkg_cv_LZMA_LIBS
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29839$as_echo "yes" >&6; }
29840 have_lzma=yes
29841fi
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000029843$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000029844fi
29845
cristyb94e5002011-11-14 13:20:10 +000029846if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029847
29848$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29849
cristyc6722092012-10-14 00:19:31 +000029850 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000029851 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000029852 fi
cristyfbb0ef02010-12-19 02:32:11 +000029853fi
cristyb94e5002011-11-14 13:20:10 +000029854
cristyfbb0ef02010-12-19 02:32:11 +000029855 if test "$have_lzma" = 'yes'; then
29856 LZMA_DELEGATE_TRUE=
29857 LZMA_DELEGATE_FALSE='#'
29858else
29859 LZMA_DELEGATE_TRUE='#'
29860 LZMA_DELEGATE_FALSE=
29861fi
29862
29863
29864
29865
cristyb94e5002011-11-14 13:20:10 +000029866
cristy3ed852e2009-09-05 21:47:34 +000029867#
29868# Check for the OpenEXR delegate library.
29869#
29870
29871# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029872if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029873 withval=$with_openexr; with_openexr=$withval
29874else
29875 with_openexr='yes'
29876fi
29877
29878
29879if test "$with_openexr" != 'yes'; then
29880 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29881fi
29882
29883have_openexr='no'
29884OPENEXR_CFLAGS=""
29885OPENEXR_LIBS=""
29886OPENEXR_PKG=""
29887if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029888 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29889$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029890
29891pkg_failed=no
29892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29893$as_echo_n "checking for OPENEXR... " >&6; }
29894
29895if test -n "$OPENEXR_CFLAGS"; then
29896 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29897 elif test -n "$PKG_CONFIG"; then
29898 if test -n "$PKG_CONFIG" && \
29899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29900 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29901 ac_status=$?
29902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29903 test $ac_status = 0; }; then
29904 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29905else
29906 pkg_failed=yes
29907fi
29908 else
29909 pkg_failed=untried
29910fi
29911if test -n "$OPENEXR_LIBS"; then
29912 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29913 elif test -n "$PKG_CONFIG"; then
29914 if test -n "$PKG_CONFIG" && \
29915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29916 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29917 ac_status=$?
29918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29919 test $ac_status = 0; }; then
29920 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29921else
29922 pkg_failed=yes
29923fi
29924 else
29925 pkg_failed=untried
29926fi
29927
29928
29929
29930if test $pkg_failed = yes; then
29931
29932if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29933 _pkg_short_errors_supported=yes
29934else
29935 _pkg_short_errors_supported=no
29936fi
29937 if test $_pkg_short_errors_supported = yes; then
29938 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29939 else
29940 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29941 fi
29942 # Put the nasty error message in config.log where it belongs
29943 echo "$OPENEXR_PKG_ERRORS" >&5
29944
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29946$as_echo "no" >&6; }
29947 have_openexr=no
29948elif test $pkg_failed = untried; then
29949 have_openexr=no
29950else
29951 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29952 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29954$as_echo "yes" >&6; }
29955 have_openexr=yes
29956fi
cristy09b53e12011-10-14 12:47:22 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29958$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029959fi
29960
29961if test "$have_openexr" = 'yes'; then
29962
cristy8b350f62009-11-15 23:12:43 +000029963$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029964
cristyc6722092012-10-14 00:19:31 +000029965 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029966 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29967 fi
29968fi
29969
cristy73bd4a52010-10-05 11:24:23 +000029970 if test "$have_openexr" = 'yes'; then
29971 OPENEXR_DELEGATE_TRUE=
29972 OPENEXR_DELEGATE_FALSE='#'
29973else
29974 OPENEXR_DELEGATE_TRUE='#'
29975 OPENEXR_DELEGATE_FALSE=
29976fi
29977
cristy3ed852e2009-09-05 21:47:34 +000029978
29979
29980
29981
29982#
cristy41cbe8a2011-10-27 01:35:18 +000029983# Check for PANGO delegate library.
29984#
29985
29986# Check whether --with-pango was given.
29987if test "${with_pango+set}" = set; then :
29988 withval=$with_pango; with_pango=$withval
29989else
cristyfc3d0222012-02-07 15:05:57 +000029990 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000029991fi
29992
29993
29994if test "$with_pango" != 'yes'; then
29995 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
29996fi
29997
29998have_pango='no'
cristya054b762012-03-26 23:16:00 +000029999have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030000PANGO_CFLAGS=""
30001PANGO_LIBS=""
30002PANGO_PKG=""
30003if test "x$with_pango" = "xyes"; then
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30005$as_echo "-------------------------------------------------------------" >&6; }
30006
30007pkg_failed=no
30008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30009$as_echo_n "checking for PANGO... " >&6; }
30010
30011if test -n "$PANGO_CFLAGS"; then
30012 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30013 elif test -n "$PKG_CONFIG"; then
30014 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30016 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030017 ac_status=$?
30018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30019 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030020 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030021else
30022 pkg_failed=yes
30023fi
30024 else
30025 pkg_failed=untried
30026fi
30027if test -n "$PANGO_LIBS"; then
30028 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30029 elif test -n "$PKG_CONFIG"; then
30030 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30032 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030033 ac_status=$?
30034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30035 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030036 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030037else
30038 pkg_failed=yes
30039fi
30040 else
30041 pkg_failed=untried
30042fi
30043
30044
30045
30046if test $pkg_failed = yes; then
30047
30048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30049 _pkg_short_errors_supported=yes
30050else
30051 _pkg_short_errors_supported=no
30052fi
30053 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030054 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030055 else
cristya054b762012-03-26 23:16:00 +000030056 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030057 fi
30058 # Put the nasty error message in config.log where it belongs
30059 echo "$PANGO_PKG_ERRORS" >&5
30060
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30062$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030063 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030064elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030065 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030066else
30067 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30068 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30070$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030071 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030072fi
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30074$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030075
30076pkg_failed=no
30077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30078$as_echo_n "checking for PANGO... " >&6; }
30079
30080if test -n "$PANGO_CFLAGS"; then
30081 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30082 elif test -n "$PKG_CONFIG"; then
30083 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30085 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030086 ac_status=$?
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030089 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030090else
30091 pkg_failed=yes
30092fi
30093 else
30094 pkg_failed=untried
30095fi
30096if test -n "$PANGO_LIBS"; then
30097 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30098 elif test -n "$PKG_CONFIG"; then
30099 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30101 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030102 ac_status=$?
30103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030105 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030106else
30107 pkg_failed=yes
30108fi
30109 else
30110 pkg_failed=untried
30111fi
30112
30113
30114
30115if test $pkg_failed = yes; then
30116
30117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30118 _pkg_short_errors_supported=yes
30119else
30120 _pkg_short_errors_supported=no
30121fi
30122 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030123 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030124 else
cristy2542fc62011-12-06 17:50:25 +000030125 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030126 fi
30127 # Put the nasty error message in config.log where it belongs
30128 echo "$PANGO_PKG_ERRORS" >&5
30129
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30131$as_echo "no" >&6; }
30132 have_pango=no
30133elif test $pkg_failed = untried; then
30134 have_pango=no
30135else
30136 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30137 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139$as_echo "yes" >&6; }
30140 have_pango=yes
30141fi
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30143$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030144fi
30145
30146if test "$have_pango" = 'yes'; then
30147
30148$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30149
cristyc6722092012-10-14 00:19:31 +000030150 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030151 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30152 fi
30153fi
30154
cristya054b762012-03-26 23:16:00 +000030155if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030156
cristya054b762012-03-26 23:16:00 +000030157$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030158
cristyc6722092012-10-14 00:19:31 +000030159 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030160 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030161 fi
30162fi
30163
30164 if test "$have_pango" = 'yes'; then
30165 PANGO_DELEGATE_TRUE=
30166 PANGO_DELEGATE_FALSE='#'
30167else
30168 PANGO_DELEGATE_TRUE='#'
30169 PANGO_DELEGATE_FALSE=
30170fi
30171
cristya054b762012-03-26 23:16:00 +000030172 if test "$have_pangocairo" = 'yes'; then
30173 PANGOCAIRO_DELEGATE_TRUE=
30174 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030175else
cristya054b762012-03-26 23:16:00 +000030176 PANGOCAIRO_DELEGATE_TRUE='#'
30177 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030178fi
30179
30180
30181
30182
30183
30184#
cristy3ed852e2009-09-05 21:47:34 +000030185# Check for PNG delegate library.
30186#
30187
30188# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030189if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030190 withval=$with_png; with_png=$withval
30191else
30192 with_png='yes'
30193fi
30194
30195
30196if test "$with_png" != 'yes'; then
30197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30198fi
30199
cristy81beccd2011-10-03 18:17:24 +000030200have_png='no'
30201PNG_LIBS=''
30202
30203if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030204 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30205$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30207$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030208 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30209$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030210 failed=0
30211 passed=0
30212 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30213if test "x$ac_cv_header_png_h" = xyes; then :
30214 passed=`expr $passed + 1`
30215else
30216 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030217fi
30218
cristy81beccd2011-10-03 18:17:24 +000030219
30220
30221 if test $passed -gt 0; then
30222 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030223 if test "$have_png" = 'no' ; then
30224 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030225 pnglib='png'
30226 else
30227 pnglib="png1${var}"
30228 fi
30229
30230# Test for compatible LIBPNG library
30231 failed=0
30232 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030233 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030234 if test "${pnglib}" != 'png' ; then
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30236$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30238/* end confdefs.h. */
30239#include <stdio.h>
30240#include <stdlib.h>
30241#include <png.h>
30242
30243int
30244main ()
30245{
30246
30247#if PNG_LIBPNG_VER_MINOR != ${var}
30248#error LIBPNG library must be version 1${var}!
30249Kaboom, Kaboom
30250#endif
30251return 0;
30252
30253 ;
30254 return 0;
30255}
30256_ACEOF
30257if ac_fn_c_try_compile "$LINENO"; then :
30258 ac_cv_libpng_ok='yes'
30259else
30260 ac_cv_libpng_ok='no'
30261fi
30262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30263 if test "$ac_cv_libpng_ok" = 'yes' ; then
30264 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30266$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030267 else
30268 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30270$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030271 fi
30272 else
30273 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030274 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30275$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030276 fi
30277 fi
30278
30279 if test $passed -gt 0 -a $failed -le 0; then
30280 if test "1${var}" = '15' ; then
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30282$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30283if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30284 $as_echo_n "(cached) " >&6
30285else
30286 ac_check_lib_save_LIBS=$LIBS
30287LIBS="-lpng15 $LIBS"
30288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30289/* end confdefs.h. */
30290
30291/* Override any GCC internal prototype to avoid an error.
30292 Use char because int might match the return type of a GCC
30293 builtin and then its argument prototype would still apply. */
30294#ifdef __cplusplus
30295extern "C"
30296#endif
30297char png_get_io_ptr ();
30298int
30299main ()
30300{
30301return png_get_io_ptr ();
30302 ;
30303 return 0;
30304}
30305_ACEOF
30306if ac_fn_c_try_link "$LINENO"; then :
30307 ac_cv_lib_png15_png_get_io_ptr=yes
30308else
30309 ac_cv_lib_png15_png_get_io_ptr=no
30310fi
30311rm -f core conftest.err conftest.$ac_objext \
30312 conftest$ac_exeext conftest.$ac_ext
30313LIBS=$ac_check_lib_save_LIBS
30314fi
30315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30316$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30317if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30318 passed=`expr $passed + 1`
30319else
30320 failed=`expr $failed + 1`
30321fi
30322
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30324$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30325if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30326 $as_echo_n "(cached) " >&6
30327else
30328 ac_check_lib_save_LIBS=$LIBS
30329LIBS="-lpng15 $LIBS"
30330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30331/* end confdefs.h. */
30332
30333/* Override any GCC internal prototype to avoid an error.
30334 Use char because int might match the return type of a GCC
30335 builtin and then its argument prototype would still apply. */
30336#ifdef __cplusplus
30337extern "C"
30338#endif
30339char png_longjmp ();
30340int
30341main ()
30342{
30343return png_longjmp ();
30344 ;
30345 return 0;
30346}
30347_ACEOF
30348if ac_fn_c_try_link "$LINENO"; then :
30349 ac_cv_lib_png15_png_longjmp=yes
30350else
30351 ac_cv_lib_png15_png_longjmp=no
30352fi
30353rm -f core conftest.err conftest.$ac_objext \
30354 conftest$ac_exeext conftest.$ac_ext
30355LIBS=$ac_check_lib_save_LIBS
30356fi
30357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30358$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30359if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30360 passed=`expr $passed + 1`
30361else
30362 failed=`expr $failed + 1`
30363fi
30364
30365 fi
30366 if test "1${var}" = '14' ; then
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30368$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30369if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30370 $as_echo_n "(cached) " >&6
30371else
30372 ac_check_lib_save_LIBS=$LIBS
30373LIBS="-lpng14 $LIBS"
30374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30375/* end confdefs.h. */
30376
30377/* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply. */
30380#ifdef __cplusplus
30381extern "C"
30382#endif
30383char png_get_io_ptr ();
30384int
30385main ()
30386{
30387return png_get_io_ptr ();
30388 ;
30389 return 0;
30390}
30391_ACEOF
30392if ac_fn_c_try_link "$LINENO"; then :
30393 ac_cv_lib_png14_png_get_io_ptr=yes
30394else
30395 ac_cv_lib_png14_png_get_io_ptr=no
30396fi
30397rm -f core conftest.err conftest.$ac_objext \
30398 conftest$ac_exeext conftest.$ac_ext
30399LIBS=$ac_check_lib_save_LIBS
30400fi
30401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30402$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30403if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30404 passed=`expr $passed + 1`
30405else
30406 failed=`expr $failed + 1`
30407fi
30408
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30410$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30411if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30412 $as_echo_n "(cached) " >&6
30413else
30414 ac_check_lib_save_LIBS=$LIBS
30415LIBS="-lpng14 $LIBS"
30416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30417/* end confdefs.h. */
30418
30419/* Override any GCC internal prototype to avoid an error.
30420 Use char because int might match the return type of a GCC
30421 builtin and then its argument prototype would still apply. */
30422#ifdef __cplusplus
30423extern "C"
30424#endif
30425char png_get_io_state ();
30426int
30427main ()
30428{
30429return png_get_io_state ();
30430 ;
30431 return 0;
30432}
30433_ACEOF
30434if ac_fn_c_try_link "$LINENO"; then :
30435 ac_cv_lib_png14_png_get_io_state=yes
30436else
30437 ac_cv_lib_png14_png_get_io_state=no
30438fi
30439rm -f core conftest.err conftest.$ac_objext \
30440 conftest$ac_exeext conftest.$ac_ext
30441LIBS=$ac_check_lib_save_LIBS
30442fi
30443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30444$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30445if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30446 passed=`expr $passed + 1`
30447else
30448 failed=`expr $failed + 1`
30449fi
30450
30451 fi
30452 if test "1${var}" = '12' ; then
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30454$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30455if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30456 $as_echo_n "(cached) " >&6
30457else
30458 ac_check_lib_save_LIBS=$LIBS
30459LIBS="-lpng12 $LIBS"
30460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30461/* end confdefs.h. */
30462
30463/* Override any GCC internal prototype to avoid an error.
30464 Use char because int might match the return type of a GCC
30465 builtin and then its argument prototype would still apply. */
30466#ifdef __cplusplus
30467extern "C"
30468#endif
30469char png_get_io_ptr ();
30470int
30471main ()
30472{
30473return png_get_io_ptr ();
30474 ;
30475 return 0;
30476}
30477_ACEOF
30478if ac_fn_c_try_link "$LINENO"; then :
30479 ac_cv_lib_png12_png_get_io_ptr=yes
30480else
30481 ac_cv_lib_png12_png_get_io_ptr=no
30482fi
30483rm -f core conftest.err conftest.$ac_objext \
30484 conftest$ac_exeext conftest.$ac_ext
30485LIBS=$ac_check_lib_save_LIBS
30486fi
30487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30488$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30489if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30490 passed=`expr $passed + 1`
30491else
30492 failed=`expr $failed + 1`
30493fi
30494
30495 fi
30496 if test "1${var}" = '1' ; then
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30498$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30499if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30500 $as_echo_n "(cached) " >&6
30501else
30502 ac_check_lib_save_LIBS=$LIBS
30503LIBS="-lpng $LIBS"
30504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30505/* end confdefs.h. */
30506
30507/* Override any GCC internal prototype to avoid an error.
30508 Use char because int might match the return type of a GCC
30509 builtin and then its argument prototype would still apply. */
30510#ifdef __cplusplus
30511extern "C"
30512#endif
30513char png_get_io_ptr ();
30514int
30515main ()
30516{
30517return png_get_io_ptr ();
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522if ac_fn_c_try_link "$LINENO"; then :
30523 ac_cv_lib_png_png_get_io_ptr=yes
30524else
30525 ac_cv_lib_png_png_get_io_ptr=no
30526fi
30527rm -f core conftest.err conftest.$ac_objext \
30528 conftest$ac_exeext conftest.$ac_ext
30529LIBS=$ac_check_lib_save_LIBS
30530fi
30531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30532$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30533if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30534 passed=`expr $passed + 1`
30535else
30536 failed=`expr $failed + 1`
30537fi
30538
30539 fi
30540 if test $passed -gt 0 -a $failed -le 0 ; then
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30542$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30543 if test $passed -gt 0 ; then
30544 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30546$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030547 have_png='no (failed tests)'
30548 else
30549 PNG_LIBS="-l${pnglib}"
30550 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030551
cristy8b350f62009-11-15 23:12:43 +000030552$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030553
cristy09b53e12011-10-14 12:47:22 +000030554 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30555$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030556 have_png='yes'
30557 fi
30558 fi
30559 fi
30560 fi
30561 fi
30562 done
30563 fi
cristy3ed852e2009-09-05 21:47:34 +000030564fi
cristy64877302011-08-23 19:10:31 +000030565
cristy73bd4a52010-10-05 11:24:23 +000030566 if test "$have_png" = 'yes'; then
30567 PNG_DELEGATE_TRUE=
30568 PNG_DELEGATE_FALSE='#'
30569else
30570 PNG_DELEGATE_TRUE='#'
30571 PNG_DELEGATE_FALSE=
30572fi
30573
cristy3ed852e2009-09-05 21:47:34 +000030574
cristy50d3f5c2011-09-10 20:09:06 +000030575
cristy3ed852e2009-09-05 21:47:34 +000030576
30577
30578#
30579# Check for RSVG delegate library.
30580#
30581
30582# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030583if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030584 withval=$with_rsvg; with_rsvg=$withval
30585else
cristy1164d5f2012-08-15 00:58:25 +000030586 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030587fi
30588
30589
30590if test "$with_rsvg" != 'yes'; then
30591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30592fi
30593
30594have_rsvg='no'
30595have_cairo='no'
30596RSVG_CFLAGS=""
30597RSVG_LIBS=""
30598RSVG_PKG=""
30599if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30601$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030602
30603pkg_failed=no
30604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30605$as_echo_n "checking for RSVG... " >&6; }
30606
30607if test -n "$RSVG_CFLAGS"; then
30608 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30609 elif test -n "$PKG_CONFIG"; then
30610 if test -n "$PKG_CONFIG" && \
30611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30612 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30613 ac_status=$?
30614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30615 test $ac_status = 0; }; then
30616 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30617else
30618 pkg_failed=yes
30619fi
30620 else
30621 pkg_failed=untried
30622fi
30623if test -n "$RSVG_LIBS"; then
30624 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30625 elif test -n "$PKG_CONFIG"; then
30626 if test -n "$PKG_CONFIG" && \
30627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30628 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30629 ac_status=$?
30630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30631 test $ac_status = 0; }; then
30632 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30633else
30634 pkg_failed=yes
30635fi
30636 else
30637 pkg_failed=untried
30638fi
30639
30640
30641
30642if test $pkg_failed = yes; then
30643
30644if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30645 _pkg_short_errors_supported=yes
30646else
30647 _pkg_short_errors_supported=no
30648fi
30649 if test $_pkg_short_errors_supported = yes; then
30650 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30651 else
30652 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30653 fi
30654 # Put the nasty error message in config.log where it belongs
30655 echo "$RSVG_PKG_ERRORS" >&5
30656
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30658$as_echo "no" >&6; }
30659 have_rsvg=no
30660elif test $pkg_failed = untried; then
30661 have_rsvg=no
30662else
30663 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30664 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30666$as_echo "yes" >&6; }
30667 have_rsvg=yes
30668fi
cristy09b53e12011-10-14 12:47:22 +000030669 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30670$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030671
30672pkg_failed=no
30673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30674$as_echo_n "checking for CAIRO_SVG... " >&6; }
30675
30676if test -n "$CAIRO_SVG_CFLAGS"; then
30677 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30678 elif test -n "$PKG_CONFIG"; then
30679 if test -n "$PKG_CONFIG" && \
30680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30681 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30682 ac_status=$?
30683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30684 test $ac_status = 0; }; then
30685 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30686else
30687 pkg_failed=yes
30688fi
30689 else
30690 pkg_failed=untried
30691fi
30692if test -n "$CAIRO_SVG_LIBS"; then
30693 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30694 elif test -n "$PKG_CONFIG"; then
30695 if test -n "$PKG_CONFIG" && \
30696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30697 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30698 ac_status=$?
30699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30700 test $ac_status = 0; }; then
30701 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30702else
30703 pkg_failed=yes
30704fi
30705 else
30706 pkg_failed=untried
30707fi
30708
30709
30710
30711if test $pkg_failed = yes; then
30712
30713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30714 _pkg_short_errors_supported=yes
30715else
30716 _pkg_short_errors_supported=no
30717fi
30718 if test $_pkg_short_errors_supported = yes; then
30719 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30720 else
30721 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30722 fi
30723 # Put the nasty error message in config.log where it belongs
30724 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30725
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727$as_echo "no" >&6; }
30728 have_cairo=no
30729elif test $pkg_failed = untried; then
30730 have_cairo=no
30731else
30732 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30733 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30735$as_echo "yes" >&6; }
30736 have_cairo=yes
30737fi
cristy09b53e12011-10-14 12:47:22 +000030738 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30739$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030740fi
30741
30742if test "$have_rsvg" = 'yes'; then
30743
cristy8b350f62009-11-15 23:12:43 +000030744$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030745
cristyc6722092012-10-14 00:19:31 +000030746 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030747 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30748 fi
30749fi
30750
30751if test "$have_cairo" = 'yes'; then
30752
cristy8b350f62009-11-15 23:12:43 +000030753$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030754
cristyc6722092012-10-14 00:19:31 +000030755 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030756 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30757 fi
30758fi
30759
cristy73bd4a52010-10-05 11:24:23 +000030760 if test "$have_rsvg" = 'yes'; then
30761 RSVG_DELEGATE_TRUE=
30762 RSVG_DELEGATE_FALSE='#'
30763else
30764 RSVG_DELEGATE_TRUE='#'
30765 RSVG_DELEGATE_FALSE=
30766fi
30767
30768 if test "$have_cairo" = 'yes'; then
30769 CAIRO_DELEGATE_TRUE=
30770 CAIRO_DELEGATE_FALSE='#'
30771else
30772 CAIRO_DELEGATE_TRUE='#'
30773 CAIRO_DELEGATE_FALSE=
30774fi
30775
cristy3ed852e2009-09-05 21:47:34 +000030776
30777
30778
30779
30780#
30781# Check for TIFF delegate library.
30782#
30783
30784# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030785if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030786 withval=$with_tiff; with_tiff=$withval
30787else
30788 with_tiff='yes'
30789fi
30790
30791
30792if test "$with_tiff" != 'yes'; then
30793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30794fi
30795
30796have_tiff='no'
30797TIFF_LIBS=''
30798if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030799 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30800$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030803 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30804$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030805 failed=0
30806 passed=0
cristy8b350f62009-11-15 23:12:43 +000030807 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030808if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 passed=`expr $passed + 1`
30810else
30811 failed=`expr $failed + 1`
30812fi
30813
30814
cristy8b350f62009-11-15 23:12:43 +000030815 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030816if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030817 passed=`expr $passed + 1`
30818else
30819 failed=`expr $failed + 1`
30820fi
30821
30822
cristy8b350f62009-11-15 23:12:43 +000030823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030825if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030826 $as_echo_n "(cached) " >&6
30827else
30828 ac_check_lib_save_LIBS=$LIBS
30829LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030831/* end confdefs.h. */
30832
30833/* Override any GCC internal prototype to avoid an error.
30834 Use char because int might match the return type of a GCC
30835 builtin and then its argument prototype would still apply. */
30836#ifdef __cplusplus
30837extern "C"
30838#endif
30839char TIFFOpen ();
30840int
30841main ()
30842{
30843return TIFFOpen ();
30844 ;
30845 return 0;
30846}
30847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030848if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030849 ac_cv_lib_tiff_TIFFOpen=yes
30850else
cristy8b350f62009-11-15 23:12:43 +000030851 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030852fi
cristy8b350f62009-11-15 23:12:43 +000030853rm -f core conftest.err conftest.$ac_objext \
30854 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030855LIBS=$ac_check_lib_save_LIBS
30856fi
cristy8b350f62009-11-15 23:12:43 +000030857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030858$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030859if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030860 passed=`expr $passed + 1`
30861else
30862 failed=`expr $failed + 1`
30863fi
30864
cristy8b350f62009-11-15 23:12:43 +000030865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030866$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030867if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030868 $as_echo_n "(cached) " >&6
30869else
30870 ac_check_lib_save_LIBS=$LIBS
30871LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030873/* end confdefs.h. */
30874
30875/* Override any GCC internal prototype to avoid an error.
30876 Use char because int might match the return type of a GCC
30877 builtin and then its argument prototype would still apply. */
30878#ifdef __cplusplus
30879extern "C"
30880#endif
30881char TIFFClientOpen ();
30882int
30883main ()
30884{
30885return TIFFClientOpen ();
30886 ;
30887 return 0;
30888}
30889_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030890if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030891 ac_cv_lib_tiff_TIFFClientOpen=yes
30892else
cristy8b350f62009-11-15 23:12:43 +000030893 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030894fi
cristy8b350f62009-11-15 23:12:43 +000030895rm -f core conftest.err conftest.$ac_objext \
30896 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030897LIBS=$ac_check_lib_save_LIBS
30898fi
cristy8b350f62009-11-15 23:12:43 +000030899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030900$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030901if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030902 passed=`expr $passed + 1`
30903else
30904 failed=`expr $failed + 1`
30905fi
30906
cristy8b350f62009-11-15 23:12:43 +000030907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030908$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030909if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030910 $as_echo_n "(cached) " >&6
30911else
30912 ac_check_lib_save_LIBS=$LIBS
30913LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030915/* end confdefs.h. */
30916
30917/* Override any GCC internal prototype to avoid an error.
30918 Use char because int might match the return type of a GCC
30919 builtin and then its argument prototype would still apply. */
30920#ifdef __cplusplus
30921extern "C"
30922#endif
30923char TIFFIsByteSwapped ();
30924int
30925main ()
30926{
30927return TIFFIsByteSwapped ();
30928 ;
30929 return 0;
30930}
30931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030932if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030933 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30934else
cristy8b350f62009-11-15 23:12:43 +000030935 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030936fi
cristy8b350f62009-11-15 23:12:43 +000030937rm -f core conftest.err conftest.$ac_objext \
30938 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030939LIBS=$ac_check_lib_save_LIBS
30940fi
cristy8b350f62009-11-15 23:12:43 +000030941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030942$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030943if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030944 passed=`expr $passed + 1`
30945else
30946 failed=`expr $failed + 1`
30947fi
30948
cristy8b350f62009-11-15 23:12:43 +000030949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030950$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030951if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030952 $as_echo_n "(cached) " >&6
30953else
30954 ac_check_lib_save_LIBS=$LIBS
30955LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030957/* end confdefs.h. */
30958
30959/* Override any GCC internal prototype to avoid an error.
30960 Use char because int might match the return type of a GCC
30961 builtin and then its argument prototype would still apply. */
30962#ifdef __cplusplus
30963extern "C"
30964#endif
30965char TIFFReadRGBATile ();
30966int
30967main ()
30968{
30969return TIFFReadRGBATile ();
30970 ;
30971 return 0;
30972}
30973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030975 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30976else
cristy8b350f62009-11-15 23:12:43 +000030977 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030978fi
cristy8b350f62009-11-15 23:12:43 +000030979rm -f core conftest.err conftest.$ac_objext \
30980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030981LIBS=$ac_check_lib_save_LIBS
30982fi
cristy8b350f62009-11-15 23:12:43 +000030983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030984$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030985if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030986 passed=`expr $passed + 1`
30987else
30988 failed=`expr $failed + 1`
30989fi
30990
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030993if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030994 $as_echo_n "(cached) " >&6
30995else
30996 ac_check_lib_save_LIBS=$LIBS
30997LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030999/* end confdefs.h. */
31000
31001/* Override any GCC internal prototype to avoid an error.
31002 Use char because int might match the return type of a GCC
31003 builtin and then its argument prototype would still apply. */
31004#ifdef __cplusplus
31005extern "C"
31006#endif
31007char TIFFReadRGBAStrip ();
31008int
31009main ()
31010{
31011return TIFFReadRGBAStrip ();
31012 ;
31013 return 0;
31014}
31015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031016if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031017 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31018else
cristy8b350f62009-11-15 23:12:43 +000031019 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031020fi
cristy8b350f62009-11-15 23:12:43 +000031021rm -f core conftest.err conftest.$ac_objext \
31022 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031023LIBS=$ac_check_lib_save_LIBS
31024fi
cristy8b350f62009-11-15 23:12:43 +000031025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031027if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031028 passed=`expr $passed + 1`
31029else
31030 failed=`expr $failed + 1`
31031fi
31032
cristy8b350f62009-11-15 23:12:43 +000031033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031034$as_echo_n "checking if TIFF package is complete... " >&6; }
31035 if test $passed -gt 0; then
31036 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031037 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31038$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031039 have_tiff='no (failed tests)'
31040 else
31041 TIFF_LIBS='-ltiff'
31042 LIBS="$TIFF_LIBS $LIBS"
31043
cristy8b350f62009-11-15 23:12:43 +000031044$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031045
cristy09b53e12011-10-14 12:47:22 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31047$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031048 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031049 for ac_header in tiffconf.h
31050do :
31051 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031052if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031053 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031054#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031055_ACEOF
31056
31057fi
31058
31059done
31060
cristy8b350f62009-11-15 23:12:43 +000031061 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031062 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31063 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31064 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031065do :
31066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031068if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 cat >>confdefs.h <<_ACEOF
31070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31071_ACEOF
31072
31073fi
31074done
31075
31076 fi
31077 else
cristy09b53e12011-10-14 12:47:22 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31079$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031080 fi
31081fi
cristy73bd4a52010-10-05 11:24:23 +000031082 if test "$have_tiff" = 'yes'; then
31083 TIFF_DELEGATE_TRUE=
31084 TIFF_DELEGATE_FALSE='#'
31085else
31086 TIFF_DELEGATE_TRUE='#'
31087 TIFF_DELEGATE_FALSE=
31088fi
31089
cristy3ed852e2009-09-05 21:47:34 +000031090
31091
31092
31093#
cristyb1860752011-03-14 00:27:46 +000031094# Check for WEBP delegate library.
31095#
31096
31097# Check whether --with-webp was given.
31098if test "${with_webp+set}" = set; then :
31099 withval=$with_webp; with_webp=$withval
31100else
31101 with_webp='yes'
31102fi
31103
31104
31105if test "$with_webp" != 'yes'; then
31106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31107fi
31108
31109have_webp='no'
31110WEBP_LIBS=''
31111if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031112 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31113$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31115$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031116 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31117$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031118 failed=0
31119 passed=0
31120 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31121if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31122 passed=`expr $passed + 1`
31123else
31124 failed=`expr $failed + 1`
31125fi
31126
31127
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31129$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31130if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31131 $as_echo_n "(cached) " >&6
31132else
31133 ac_check_lib_save_LIBS=$LIBS
31134LIBS="-lwebp $LIBS"
31135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31136/* end confdefs.h. */
31137
31138/* Override any GCC internal prototype to avoid an error.
31139 Use char because int might match the return type of a GCC
31140 builtin and then its argument prototype would still apply. */
31141#ifdef __cplusplus
31142extern "C"
31143#endif
31144char WebPDecodeRGB ();
31145int
31146main ()
31147{
31148return WebPDecodeRGB ();
31149 ;
31150 return 0;
31151}
31152_ACEOF
31153if ac_fn_c_try_link "$LINENO"; then :
31154 ac_cv_lib_webp_WebPDecodeRGB=yes
31155else
31156 ac_cv_lib_webp_WebPDecodeRGB=no
31157fi
31158rm -f core conftest.err conftest.$ac_objext \
31159 conftest$ac_exeext conftest.$ac_ext
31160LIBS=$ac_check_lib_save_LIBS
31161fi
31162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31163$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31164if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31165 passed=`expr $passed + 1`
31166else
31167 failed=`expr $failed + 1`
31168fi
31169
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31171$as_echo_n "checking if WEBP package is complete... " >&6; }
31172 if test $passed -gt 0; then
31173 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31175$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031176 have_webp='no (failed tests)'
31177 else
31178 WEBP_LIBS='-lwebp'
31179 LIBS="$WEBP_LIBS $LIBS"
31180
31181$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31182
cristy09b53e12011-10-14 12:47:22 +000031183 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31184$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031185 have_webp='yes'
31186 fi
31187 else
cristy09b53e12011-10-14 12:47:22 +000031188 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31189$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031190 fi
31191fi
31192 if test "$have_webp" = 'yes'; then
31193 WEBP_DELEGATE_TRUE=
31194 WEBP_DELEGATE_FALSE='#'
31195else
31196 WEBP_DELEGATE_TRUE='#'
31197 WEBP_DELEGATE_FALSE=
31198fi
31199
31200
31201
31202
31203#
cristy3ed852e2009-09-05 21:47:34 +000031204# Set Windows font directory.
31205#
31206
31207# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031208if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031209 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31210else
31211 with_windows_font_dir=''
31212fi
31213
31214if test "$with_windows_font_dir" != '' ; then
31215 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31216fi
31217
31218
31219#
31220# Check for WMF delegate library.
31221#
31222
31223# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031224if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031225 withval=$with_wmf; with_wmf=$withval
31226else
cristyfc3d0222012-02-07 15:05:57 +000031227 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031228fi
31229
31230
31231if test "$with_wmf" != 'yes'; then
31232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31233fi
31234
31235have_wmf='no'
31236WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031237WMF_LIBS_DEPS=''
31238OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031239if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31241$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031243$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31245$as_echo "" >&6; }
31246 have_libwmf='no'
31247 have_libwmflite='no'
31248 have_libwmf_ipa_h='no'
31249
31250 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31251"
31252if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31253 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031254fi
31255
31256
cristy03f7cf92011-12-15 01:40:41 +000031257 if test "$have_libwmf_ipa_h" = 'yes'; then
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31259$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31260if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031261 $as_echo_n "(cached) " >&6
31262else
31263 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031264LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031266/* end confdefs.h. */
31267
31268/* Override any GCC internal prototype to avoid an error.
31269 Use char because int might match the return type of a GCC
31270 builtin and then its argument prototype would still apply. */
31271#ifdef __cplusplus
31272extern "C"
31273#endif
cristy03f7cf92011-12-15 01:40:41 +000031274char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031275int
31276main ()
31277{
cristy03f7cf92011-12-15 01:40:41 +000031278return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031279 ;
31280 return 0;
31281}
31282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031283if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031284 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031285else
cristy03f7cf92011-12-15 01:40:41 +000031286 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031287fi
cristy8b350f62009-11-15 23:12:43 +000031288rm -f core conftest.err conftest.$ac_objext \
31289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031290LIBS=$ac_check_lib_save_LIBS
31291fi
cristy03f7cf92011-12-15 01:40:41 +000031292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31293$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31294if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31295 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031296fi
31297
cristy03f7cf92011-12-15 01:40:41 +000031298 if test "$have_libwmflite" = 'yes'; then
31299
31300$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31301
31302 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031303 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031304 have_wmf='yes'
31305 else
31306 WMF_LIBS_DEPS=''
31307 WMF_CONFIG_LIBS=`libwmf-config --libs`
31308 for lib in xml2 expat freetype jpeg png z; do
31309 testlib="-l${lib}"
31310 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31311 done
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31313$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31314if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31315 $as_echo_n "(cached) " >&6
31316else
31317 ac_check_lib_save_LIBS=$LIBS
31318LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31320/* end confdefs.h. */
31321
31322/* Override any GCC internal prototype to avoid an error.
31323 Use char because int might match the return type of a GCC
31324 builtin and then its argument prototype would still apply. */
31325#ifdef __cplusplus
31326extern "C"
31327#endif
31328char wmf_api_create ();
31329int
31330main ()
31331{
31332return wmf_api_create ();
31333 ;
31334 return 0;
31335}
31336_ACEOF
31337if ac_fn_c_try_link "$LINENO"; then :
31338 ac_cv_lib_wmf_wmf_api_create=yes
31339else
31340 ac_cv_lib_wmf_wmf_api_create=no
31341fi
31342rm -f core conftest.err conftest.$ac_objext \
31343 conftest$ac_exeext conftest.$ac_ext
31344LIBS=$ac_check_lib_save_LIBS
31345fi
31346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31347$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31348if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31349 have_libwmf='yes'
31350fi
31351
31352 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031353
cristy8b350f62009-11-15 23:12:43 +000031354$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031355
cristy03f7cf92011-12-15 01:40:41 +000031356 WMF_LIBS='-lwmf'
31357 LIBS="$WMF_LIBS $LIBS"
31358 have_wmf='yes'
31359 else
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31361$as_echo "no -- some components failed test" >&6; }
31362 have_wmf='no (failed tests)'
31363 have_wmflite='no (failed tests)'
31364 LIBS="$OLIBS"
31365 WMF_LIBS=''
31366 fi
glennrp33e524b2011-08-24 17:41:57 +000031367 fi
cristy03f7cf92011-12-15 01:40:41 +000031368 fi
31369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31370$as_echo_n "checking if WMF package is complete... " >&6; }
31371 if test "$have_wmf" = 'yes'; then
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31373$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031374 else
cristy03f7cf92011-12-15 01:40:41 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31376$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031377 fi
cristy3ed852e2009-09-05 21:47:34 +000031378fi
cristy73bd4a52010-10-05 11:24:23 +000031379 if test "$have_wmf" = 'yes'; then
31380 WMF_DELEGATE_TRUE=
31381 WMF_DELEGATE_FALSE='#'
31382else
31383 WMF_DELEGATE_TRUE='#'
31384 WMF_DELEGATE_FALSE=
31385fi
31386
cristy3ed852e2009-09-05 21:47:34 +000031387
31388
31389
cristy81beccd2011-10-03 18:17:24 +000031390
31391
cristy3ed852e2009-09-05 21:47:34 +000031392#
31393# Check for XML delegate library.
31394#
31395
31396# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031397if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031398 withval=$with_xml; with_xml=$withval
31399else
cristyfc3d0222012-02-07 15:05:57 +000031400 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031401fi
31402
31403
cristy81beccd2011-10-03 18:17:24 +000031404if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031405 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31406fi
31407
cristy81beccd2011-10-03 18:17:24 +000031408have_xml='no'
31409XML_LIBS=''
31410if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031411 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31412$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31414$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31416$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031417 PERSIST_LDFLAGS=$LDFLAGS
31418 PERSIST_CPPFLAGS=$CPPFLAGS
31419 xml2_config=''
31420 # Extract the first word of "xml2-config", so it can be a program name with args.
31421set dummy xml2-config; ac_word=$2
31422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31423$as_echo_n "checking for $ac_word... " >&6; }
31424if ${ac_cv_path_xml2_config+:} false; then :
31425 $as_echo_n "(cached) " >&6
31426else
31427 case $xml2_config in
31428 [\\/]* | ?:[\\/]*)
31429 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31430 ;;
31431 *)
31432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433for as_dir in $PATH
31434do
31435 IFS=$as_save_IFS
31436 test -z "$as_dir" && as_dir=.
31437 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031439 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31441 break 2
31442 fi
31443done
31444 done
31445IFS=$as_save_IFS
31446
31447 ;;
31448esac
31449fi
31450xml2_config=$ac_cv_path_xml2_config
31451if test -n "$xml2_config"; then
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31453$as_echo "$xml2_config" >&6; }
31454else
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31456$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031457fi
31458
cristy81beccd2011-10-03 18:17:24 +000031459 if test -n "$xml2_config"; then
31460 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31461 # the shared library installed under /usr/lib, whereas the package
31462 # installs itself under $prefix/libxml and $prefix/lib.
31463 xml2_prefix=`xml2-config --prefix`
31464 if test -d "${xml2_prefix}/include/libxml2"; then
31465 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31466 fi
31467 if test "${xml2_prefix}" != '/usr'; then
31468 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31469 fi
31470 fi
31471 failed=0
31472 passed=0
31473 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31474if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31475 passed=`expr $passed + 1`
31476else
31477 failed=`expr $failed + 1`
31478fi
31479
31480
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31482$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31483if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31484 $as_echo_n "(cached) " >&6
31485else
31486 ac_check_lib_save_LIBS=$LIBS
31487LIBS="-lxml2 $LIBS"
31488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31489/* end confdefs.h. */
31490
31491/* Override any GCC internal prototype to avoid an error.
31492 Use char because int might match the return type of a GCC
31493 builtin and then its argument prototype would still apply. */
31494#ifdef __cplusplus
31495extern "C"
31496#endif
31497char xmlSAXVersion ();
31498int
31499main ()
31500{
31501return xmlSAXVersion ();
31502 ;
31503 return 0;
31504}
31505_ACEOF
31506if ac_fn_c_try_link "$LINENO"; then :
31507 ac_cv_lib_xml2_xmlSAXVersion=yes
31508else
31509 ac_cv_lib_xml2_xmlSAXVersion=no
31510fi
31511rm -f core conftest.err conftest.$ac_objext \
31512 conftest$ac_exeext conftest.$ac_ext
31513LIBS=$ac_check_lib_save_LIBS
31514fi
31515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31516$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31517if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31518 passed=`expr $passed + 1`
31519else
31520 failed=`expr $failed + 1`
31521fi
31522
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31524$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31525if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31526 $as_echo_n "(cached) " >&6
31527else
31528 ac_check_lib_save_LIBS=$LIBS
31529LIBS="-lxml2 $LIBS"
31530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31531/* end confdefs.h. */
31532
31533/* Override any GCC internal prototype to avoid an error.
31534 Use char because int might match the return type of a GCC
31535 builtin and then its argument prototype would still apply. */
31536#ifdef __cplusplus
31537extern "C"
31538#endif
31539char xmlParseChunk ();
31540int
31541main ()
31542{
31543return xmlParseChunk ();
31544 ;
31545 return 0;
31546}
31547_ACEOF
31548if ac_fn_c_try_link "$LINENO"; then :
31549 ac_cv_lib_xml2_xmlParseChunk=yes
31550else
31551 ac_cv_lib_xml2_xmlParseChunk=no
31552fi
31553rm -f core conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31555LIBS=$ac_check_lib_save_LIBS
31556fi
31557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31558$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31559if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31560 passed=`expr $passed + 1`
31561else
31562 failed=`expr $failed + 1`
31563fi
31564
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31566$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31567if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31568 $as_echo_n "(cached) " >&6
31569else
31570 ac_check_lib_save_LIBS=$LIBS
31571LIBS="-lxml2 $LIBS"
31572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31573/* end confdefs.h. */
31574
31575/* Override any GCC internal prototype to avoid an error.
31576 Use char because int might match the return type of a GCC
31577 builtin and then its argument prototype would still apply. */
31578#ifdef __cplusplus
31579extern "C"
31580#endif
31581char xmlCreatePushParserCtxt ();
31582int
31583main ()
31584{
31585return xmlCreatePushParserCtxt ();
31586 ;
31587 return 0;
31588}
31589_ACEOF
31590if ac_fn_c_try_link "$LINENO"; then :
31591 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31592else
31593 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31594fi
31595rm -f core conftest.err conftest.$ac_objext \
31596 conftest$ac_exeext conftest.$ac_ext
31597LIBS=$ac_check_lib_save_LIBS
31598fi
31599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31600$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31601if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31602 passed=`expr $passed + 1`
31603else
31604 failed=`expr $failed + 1`
31605fi
31606
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31608$as_echo_n "checking if XML package is complete... " >&6; }
31609 if test $passed -gt 0; then
31610 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031611 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31612$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031613 have_xml='no (failed tests)'
31614 LDFLAGS="$PERSIST_LDFLAGS"
31615 CPPFLAGS="$PERSIST_CPPFLAGS"
31616 else
31617 XML_LIBS='-lxml2'
31618 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031619
cristy8b350f62009-11-15 23:12:43 +000031620$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031621
cristy09b53e12011-10-14 12:47:22 +000031622 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31623$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031624 have_xml='yes'
31625 fi
31626 else
cristy09b53e12011-10-14 12:47:22 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31628$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031629 fi
31630fi
cristy73bd4a52010-10-05 11:24:23 +000031631 if test "$have_xml" = 'yes'; then
31632 XML_DELEGATE_TRUE=
31633 XML_DELEGATE_FALSE='#'
31634else
31635 XML_DELEGATE_TRUE='#'
31636 XML_DELEGATE_FALSE=
31637fi
31638
cristy3ed852e2009-09-05 21:47:34 +000031639
31640
31641
31642# Substitute compiler name to build/link PerlMagick
31643#
31644
31645
31646#
31647# Configure install Paths
31648#
cristy7def36a2011-10-28 19:04:41 +000031649
cristy2a11bef2011-10-28 18:33:11 +000031650# Path to ImageMagick header files
31651INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031652INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31653DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031654case "${build_os}" in
31655 mingw* )
31656 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31657 ;;
31658esac
31659
31660cat >>confdefs.h <<_ACEOF
31661#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31662_ACEOF
31663
31664
cristy3ed852e2009-09-05 21:47:34 +000031665
31666# Subdirectory under lib to place ImageMagick lib files
31667LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31668
31669cat >>confdefs.h <<_ACEOF
31670#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31671_ACEOF
31672
31673
31674# Path to ImageMagick bin directory
31675EXECUTABLE_PATH="${BIN_DIR}"
31676DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31677case "${build_os}" in
31678 mingw* )
31679 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31680 ;;
31681esac
31682
31683cat >>confdefs.h <<_ACEOF
31684#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31685_ACEOF
31686
31687
31688
31689# Path to ImageMagick lib
31690LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31691DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31692case "${build_os}" in
31693 mingw* )
31694 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31695 ;;
31696esac
31697
31698cat >>confdefs.h <<_ACEOF
31699#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31700_ACEOF
31701
31702
31703
cristy3ed852e2009-09-05 21:47:34 +000031704#
31705# Subdirectory under lib to place ImageMagick coder module files
31706CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31707
31708cat >>confdefs.h <<_ACEOF
31709#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31710_ACEOF
31711
31712CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31713DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31714case "${build_os}" in
31715 mingw* )
31716 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31717 ;;
31718esac
31719
31720cat >>confdefs.h <<_ACEOF
31721#define CODER_PATH "$DEFINE_CODER_PATH"
31722_ACEOF
31723
31724
31725
31726#
31727# Subdirectory under lib to place ImageMagick filter module files
31728FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31729
31730cat >>confdefs.h <<_ACEOF
31731#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31732_ACEOF
31733
31734FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31735DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31736case "${build_os}" in
31737 mingw* )
31738 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31739 ;;
31740esac
31741
31742cat >>confdefs.h <<_ACEOF
31743#define FILTER_PATH "$DEFINE_FILTER_PATH"
31744_ACEOF
31745
31746
31747
31748#
31749# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000031750DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000031751DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31752DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031753case "${build_os}" in
31754 mingw* )
31755 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31756 ;;
31757esac
31758
31759cat >>confdefs.h <<_ACEOF
31760#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31761_ACEOF
31762
31763
31764
cristy2a11bef2011-10-28 18:33:11 +000031765# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000031766CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031767
31768cat >>confdefs.h <<_ACEOF
31769#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31770_ACEOF
31771
cristy7def36a2011-10-28 19:04:41 +000031772CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000031773DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31774case "${build_os}" in
31775 mingw* )
31776 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31777 ;;
31778esac
31779
31780cat >>confdefs.h <<_ACEOF
31781#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31782_ACEOF
31783
31784
31785
cristy2a11bef2011-10-28 18:33:11 +000031786# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000031787SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031788
31789cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031790#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031791_ACEOF
31792
cristy670aa3c2011-11-03 00:54:00 +000031793SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000031794DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031795case "${build_os}" in
31796 mingw* )
cristy4f820712011-04-01 12:35:43 +000031797 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031798 ;;
31799esac
31800
31801cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031802#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031803_ACEOF
31804
31805
31806
cristy408ebcd2011-11-14 01:36:57 +000031807# Subdirectory to place architecture-dependent configuration files
31808SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000031809
31810cat >>confdefs.h <<_ACEOF
31811#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
31812_ACEOF
31813
cristy408ebcd2011-11-14 01:36:57 +000031814SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
31815DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000031816case "${build_os}" in
31817 mingw* )
31818 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
31819 ;;
31820esac
31821
31822cat >>confdefs.h <<_ACEOF
31823#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
31824_ACEOF
31825
31826
31827
cristy3ed852e2009-09-05 21:47:34 +000031828#
31829# program_transform_name is formed for use in a Makefile, so create a
31830# modified version for use in a shell script.
31831configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31832
31833# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000031834{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31835$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031837$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031838{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31839$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031840AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031841BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031842BZIPDelegateDefault='bzip2'
31843BrowseDelegateDefault='xdg-open'
31844CGMDecodeDelegateDefault='ralcgm'
31845CatDelegateDefault='cat'
31846DNGDecodeDelegateDefault='ufraw-batch'
31847GVCDecodeDelegateDefault='dot'
31848DVIDecodeDelegateDefault='dvips'
31849EchoDelegateDefault='echo'
31850EditorDelegateDefault='xterm'
31851FIGDecodeDelegateDefault='fig2dev'
31852ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31853DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31854MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31855GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031856HPGLDecodeDelegateDefault='hp2xx'
31857HTMLDecodeDelegateDefault='html2ps'
31858ILBMDecodeDelegateDefault='ilbmtoppm'
31859ILBMEncodeDelegateDefault='ppmtoilbm'
31860LPDelegateDefault='lp'
31861LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000031862LaunchDelegateDefault='gimp'
31863MANDelegateDefault='groff'
31864MPEGDecodeDelegateDefault='ffmpeg'
31865MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031866MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031867MVDelegateDefault='mv'
31868PCLDelegateDefault='pcl6'
31869PGPDecodeDelegateDefault='pgpv'
31870POVDelegateDefault='povray'
31871if test "$native_win32_build" = 'yes'; then
31872 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031873elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031874 PSDelegateDefault='gsc'
31875else
31876 PSDelegateDefault='gs'
31877fi
31878RLEEncodeDelegateDefault='rawtorle'
31879RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000031880RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000031881SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000031882SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000031883TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031884UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031885WMFDecodeDelegateDefault='wmf2eps'
31886WWWDecodeDelegateDefault='curl'
31887XPSDelegateDefault='gxps'
31888ZipDelegateDefault='gzip'
31889
31890# Search for delegates
31891# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31892set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031895if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 $as_echo_n "(cached) " >&6
31897else
31898 case $AutotraceDecodeDelegate in
31899 [\\/]* | ?:[\\/]*)
31900 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31901 ;;
31902 *)
31903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31904for as_dir in $PATH
31905do
31906 IFS=$as_save_IFS
31907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031910 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912 break 2
31913 fi
31914done
cristy8b350f62009-11-15 23:12:43 +000031915 done
cristy3ed852e2009-09-05 21:47:34 +000031916IFS=$as_save_IFS
31917
31918 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31919 ;;
31920esac
31921fi
31922AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31923if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo "$AutotraceDecodeDelegate" >&6; }
31926else
cristy8b350f62009-11-15 23:12:43 +000031927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031928$as_echo "no" >&6; }
31929fi
31930
31931
cristy3ed852e2009-09-05 21:47:34 +000031932# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31933set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031936if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031937 $as_echo_n "(cached) " >&6
31938else
31939 case $BlenderDecodeDelegate in
31940 [\\/]* | ?:[\\/]*)
31941 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31942 ;;
31943 *)
31944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31945for as_dir in $PATH
31946do
31947 IFS=$as_save_IFS
31948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031951 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031953 break 2
31954 fi
31955done
cristy8b350f62009-11-15 23:12:43 +000031956 done
cristy3ed852e2009-09-05 21:47:34 +000031957IFS=$as_save_IFS
31958
31959 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31960 ;;
31961esac
31962fi
31963BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31964if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo "$BlenderDecodeDelegate" >&6; }
31967else
cristy8b350f62009-11-15 23:12:43 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031969$as_echo "no" >&6; }
31970fi
31971
31972
31973# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31974set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031977if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031978 $as_echo_n "(cached) " >&6
31979else
31980 case $BZIPDelegate in
31981 [\\/]* | ?:[\\/]*)
31982 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31983 ;;
31984 *)
31985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31986for as_dir in $PATH
31987do
31988 IFS=$as_save_IFS
31989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031992 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031994 break 2
31995 fi
31996done
cristy8b350f62009-11-15 23:12:43 +000031997 done
cristy3ed852e2009-09-05 21:47:34 +000031998IFS=$as_save_IFS
31999
32000 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32001 ;;
32002esac
32003fi
32004BZIPDelegate=$ac_cv_path_BZIPDelegate
32005if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo "$BZIPDelegate" >&6; }
32008else
cristy8b350f62009-11-15 23:12:43 +000032009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032010$as_echo "no" >&6; }
32011fi
32012
32013
cristyc59f0e72012-08-27 12:59:33 +000032014for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32015do
32016 # Extract the first word of "$ac_prog", so it can be a program name with args.
32017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032020if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032021 $as_echo_n "(cached) " >&6
32022else
32023 case $BrowseDelegate in
32024 [\\/]* | ?:[\\/]*)
32025 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32026 ;;
32027 *)
32028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32029for as_dir in $PATH
32030do
32031 IFS=$as_save_IFS
32032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032035 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032037 break 2
32038 fi
32039done
cristy8b350f62009-11-15 23:12:43 +000032040 done
cristy3ed852e2009-09-05 21:47:34 +000032041IFS=$as_save_IFS
32042
cristy3ed852e2009-09-05 21:47:34 +000032043 ;;
32044esac
32045fi
32046BrowseDelegate=$ac_cv_path_BrowseDelegate
32047if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032049$as_echo "$BrowseDelegate" >&6; }
32050else
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "no" >&6; }
32053fi
32054
32055
cristyc59f0e72012-08-27 12:59:33 +000032056 test -n "$BrowseDelegate" && break
32057done
32058test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32059
cristy3ed852e2009-09-05 21:47:34 +000032060# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32061set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032064if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032065 $as_echo_n "(cached) " >&6
32066else
32067 case $CGMDecodeDelegate in
32068 [\\/]* | ?:[\\/]*)
32069 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32070 ;;
32071 *)
32072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32073for as_dir in $PATH
32074do
32075 IFS=$as_save_IFS
32076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032079 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032081 break 2
32082 fi
32083done
cristy8b350f62009-11-15 23:12:43 +000032084 done
cristy3ed852e2009-09-05 21:47:34 +000032085IFS=$as_save_IFS
32086
32087 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32088 ;;
32089esac
32090fi
32091CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32092if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo "$CGMDecodeDelegate" >&6; }
32095else
cristy8b350f62009-11-15 23:12:43 +000032096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032097$as_echo "no" >&6; }
32098fi
32099
32100
32101# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32102set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032104$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032105if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032106 $as_echo_n "(cached) " >&6
32107else
32108 case $CatDelegate in
32109 [\\/]* | ?:[\\/]*)
32110 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32111 ;;
32112 *)
32113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114for as_dir in $PATH
32115do
32116 IFS=$as_save_IFS
32117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032120 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122 break 2
32123 fi
32124done
cristy8b350f62009-11-15 23:12:43 +000032125 done
cristy3ed852e2009-09-05 21:47:34 +000032126IFS=$as_save_IFS
32127
32128 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32129 ;;
32130esac
32131fi
32132CatDelegate=$ac_cv_path_CatDelegate
32133if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135$as_echo "$CatDelegate" >&6; }
32136else
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo "no" >&6; }
32139fi
32140
32141
32142# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32143set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032146if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032147 $as_echo_n "(cached) " >&6
32148else
32149 case $DNGDecodeDelegate in
32150 [\\/]* | ?:[\\/]*)
32151 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32152 ;;
32153 *)
32154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32155for as_dir in $PATH
32156do
32157 IFS=$as_save_IFS
32158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032161 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163 break 2
32164 fi
32165done
cristy8b350f62009-11-15 23:12:43 +000032166 done
cristy3ed852e2009-09-05 21:47:34 +000032167IFS=$as_save_IFS
32168
32169 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32170 ;;
32171esac
32172fi
32173DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32174if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032176$as_echo "$DNGDecodeDelegate" >&6; }
32177else
cristy8b350f62009-11-15 23:12:43 +000032178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo "no" >&6; }
32180fi
32181
32182
32183# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32184set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032187if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032188 $as_echo_n "(cached) " >&6
32189else
32190 case $GVCDecodeDelegate in
32191 [\\/]* | ?:[\\/]*)
32192 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32193 ;;
32194 *)
32195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32196for as_dir in $PATH
32197do
32198 IFS=$as_save_IFS
32199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032202 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204 break 2
32205 fi
32206done
cristy8b350f62009-11-15 23:12:43 +000032207 done
cristy3ed852e2009-09-05 21:47:34 +000032208IFS=$as_save_IFS
32209
32210 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32211 ;;
32212esac
32213fi
32214GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32215if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032217$as_echo "$GVCDecodeDelegate" >&6; }
32218else
cristy8b350f62009-11-15 23:12:43 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220$as_echo "no" >&6; }
32221fi
32222
32223
32224# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32225set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032228if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032229 $as_echo_n "(cached) " >&6
32230else
32231 case $DVIDecodeDelegate in
32232 [\\/]* | ?:[\\/]*)
32233 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32234 ;;
32235 *)
32236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32237for as_dir in $PATH
32238do
32239 IFS=$as_save_IFS
32240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032243 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032245 break 2
32246 fi
32247done
cristy8b350f62009-11-15 23:12:43 +000032248 done
cristy3ed852e2009-09-05 21:47:34 +000032249IFS=$as_save_IFS
32250
32251 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32252 ;;
32253esac
32254fi
32255DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32256if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032258$as_echo "$DVIDecodeDelegate" >&6; }
32259else
cristy8b350f62009-11-15 23:12:43 +000032260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261$as_echo "no" >&6; }
32262fi
32263
32264
32265# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32266set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032269if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032270 $as_echo_n "(cached) " >&6
32271else
32272 case $EchoDelegate in
32273 [\\/]* | ?:[\\/]*)
32274 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32275 ;;
32276 *)
32277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32278for as_dir in $PATH
32279do
32280 IFS=$as_save_IFS
32281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032284 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032286 break 2
32287 fi
32288done
cristy8b350f62009-11-15 23:12:43 +000032289 done
cristy3ed852e2009-09-05 21:47:34 +000032290IFS=$as_save_IFS
32291
32292 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32293 ;;
32294esac
32295fi
32296EchoDelegate=$ac_cv_path_EchoDelegate
32297if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032299$as_echo "$EchoDelegate" >&6; }
32300else
cristy8b350f62009-11-15 23:12:43 +000032301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032302$as_echo "no" >&6; }
32303fi
32304
32305
32306# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32307set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032310if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032311 $as_echo_n "(cached) " >&6
32312else
32313 case $EditorDelegate in
32314 [\\/]* | ?:[\\/]*)
32315 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32316 ;;
32317 *)
32318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32319for as_dir in $PATH
32320do
32321 IFS=$as_save_IFS
32322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032325 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327 break 2
32328 fi
32329done
cristy8b350f62009-11-15 23:12:43 +000032330 done
cristy3ed852e2009-09-05 21:47:34 +000032331IFS=$as_save_IFS
32332
32333 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32334 ;;
32335esac
32336fi
32337EditorDelegate=$ac_cv_path_EditorDelegate
32338if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032340$as_echo "$EditorDelegate" >&6; }
32341else
cristy8b350f62009-11-15 23:12:43 +000032342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032343$as_echo "no" >&6; }
32344fi
32345
32346
32347# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32348set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032351if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032352 $as_echo_n "(cached) " >&6
32353else
32354 case $FIGDecodeDelegate in
32355 [\\/]* | ?:[\\/]*)
32356 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32357 ;;
32358 *)
32359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32360for as_dir in $PATH
32361do
32362 IFS=$as_save_IFS
32363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032366 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368 break 2
32369 fi
32370done
cristy8b350f62009-11-15 23:12:43 +000032371 done
cristy3ed852e2009-09-05 21:47:34 +000032372IFS=$as_save_IFS
32373
32374 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32375 ;;
32376esac
32377fi
32378FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32379if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032381$as_echo "$FIGDecodeDelegate" >&6; }
32382else
cristy8b350f62009-11-15 23:12:43 +000032383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032384$as_echo "no" >&6; }
32385fi
32386
32387
32388# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32389set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032392if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032393 $as_echo_n "(cached) " >&6
32394else
32395 case $ConvertDelegate in
32396 [\\/]* | ?:[\\/]*)
32397 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32398 ;;
32399 *)
32400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32401for as_dir in $PATH
32402do
32403 IFS=$as_save_IFS
32404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032407 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032409 break 2
32410 fi
32411done
cristy8b350f62009-11-15 23:12:43 +000032412 done
cristy3ed852e2009-09-05 21:47:34 +000032413IFS=$as_save_IFS
32414
32415 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32416 ;;
32417esac
32418fi
32419ConvertDelegate=$ac_cv_path_ConvertDelegate
32420if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422$as_echo "$ConvertDelegate" >&6; }
32423else
cristy8b350f62009-11-15 23:12:43 +000032424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032425$as_echo "no" >&6; }
32426fi
32427
32428
32429# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32430set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032433if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032434 $as_echo_n "(cached) " >&6
32435else
32436 case $DisplayDelegate in
32437 [\\/]* | ?:[\\/]*)
32438 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32439 ;;
32440 *)
32441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32442for as_dir in $PATH
32443do
32444 IFS=$as_save_IFS
32445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032448 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032450 break 2
32451 fi
32452done
cristy8b350f62009-11-15 23:12:43 +000032453 done
cristy3ed852e2009-09-05 21:47:34 +000032454IFS=$as_save_IFS
32455
32456 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32457 ;;
32458esac
32459fi
32460DisplayDelegate=$ac_cv_path_DisplayDelegate
32461if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032463$as_echo "$DisplayDelegate" >&6; }
32464else
cristy8b350f62009-11-15 23:12:43 +000032465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466$as_echo "no" >&6; }
32467fi
32468
32469
32470# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32471set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032474if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032475 $as_echo_n "(cached) " >&6
32476else
32477 case $MogrifyDelegate in
32478 [\\/]* | ?:[\\/]*)
32479 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32480 ;;
32481 *)
32482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32483for as_dir in $PATH
32484do
32485 IFS=$as_save_IFS
32486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032489 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032491 break 2
32492 fi
32493done
cristy8b350f62009-11-15 23:12:43 +000032494 done
cristy3ed852e2009-09-05 21:47:34 +000032495IFS=$as_save_IFS
32496
32497 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32498 ;;
32499esac
32500fi
32501MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32502if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032504$as_echo "$MogrifyDelegate" >&6; }
32505else
cristy8b350f62009-11-15 23:12:43 +000032506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507$as_echo "no" >&6; }
32508fi
32509
32510
32511# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32512set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032515if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032516 $as_echo_n "(cached) " >&6
32517else
32518 case $GnuplotDecodeDelegate in
32519 [\\/]* | ?:[\\/]*)
32520 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32521 ;;
32522 *)
32523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32524for as_dir in $PATH
32525do
32526 IFS=$as_save_IFS
32527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032530 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032532 break 2
32533 fi
32534done
cristy8b350f62009-11-15 23:12:43 +000032535 done
cristy3ed852e2009-09-05 21:47:34 +000032536IFS=$as_save_IFS
32537
32538 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32539 ;;
32540esac
32541fi
32542GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32543if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032545$as_echo "$GnuplotDecodeDelegate" >&6; }
32546else
cristy8b350f62009-11-15 23:12:43 +000032547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548$as_echo "no" >&6; }
32549fi
32550
32551
cristy3ed852e2009-09-05 21:47:34 +000032552# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32553set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032556if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032557 $as_echo_n "(cached) " >&6
32558else
32559 case $HPGLDecodeDelegate in
32560 [\\/]* | ?:[\\/]*)
32561 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32562 ;;
32563 *)
32564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32565for as_dir in $PATH
32566do
32567 IFS=$as_save_IFS
32568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032571 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032573 break 2
32574 fi
32575done
cristy8b350f62009-11-15 23:12:43 +000032576 done
cristy3ed852e2009-09-05 21:47:34 +000032577IFS=$as_save_IFS
32578
32579 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32580 ;;
32581esac
32582fi
32583HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32584if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo "$HPGLDecodeDelegate" >&6; }
32587else
cristy8b350f62009-11-15 23:12:43 +000032588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo "no" >&6; }
32590fi
32591
32592
32593# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32594set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032597if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032598 $as_echo_n "(cached) " >&6
32599else
32600 case $HTMLDecodeDelegate in
32601 [\\/]* | ?:[\\/]*)
32602 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32603 ;;
32604 *)
32605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32606for as_dir in $PATH
32607do
32608 IFS=$as_save_IFS
32609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032612 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614 break 2
32615 fi
32616done
cristy8b350f62009-11-15 23:12:43 +000032617 done
cristy3ed852e2009-09-05 21:47:34 +000032618IFS=$as_save_IFS
32619
32620 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32621 ;;
32622esac
32623fi
32624HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32625if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627$as_echo "$HTMLDecodeDelegate" >&6; }
32628else
cristy8b350f62009-11-15 23:12:43 +000032629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo "no" >&6; }
32631fi
32632
32633
32634# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32635set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032638if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032639 $as_echo_n "(cached) " >&6
32640else
32641 case $ILBMDecodeDelegate in
32642 [\\/]* | ?:[\\/]*)
32643 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32644 ;;
32645 *)
32646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32647for as_dir in $PATH
32648do
32649 IFS=$as_save_IFS
32650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032653 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655 break 2
32656 fi
32657done
cristy8b350f62009-11-15 23:12:43 +000032658 done
cristy3ed852e2009-09-05 21:47:34 +000032659IFS=$as_save_IFS
32660
32661 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32662 ;;
32663esac
32664fi
32665ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32666if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "$ILBMDecodeDelegate" >&6; }
32669else
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "no" >&6; }
32672fi
32673
32674
32675# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32676set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032679if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032680 $as_echo_n "(cached) " >&6
32681else
32682 case $ILBMEncodeDelegate in
32683 [\\/]* | ?:[\\/]*)
32684 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32685 ;;
32686 *)
32687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32688for as_dir in $PATH
32689do
32690 IFS=$as_save_IFS
32691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032694 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696 break 2
32697 fi
32698done
cristy8b350f62009-11-15 23:12:43 +000032699 done
cristy3ed852e2009-09-05 21:47:34 +000032700IFS=$as_save_IFS
32701
32702 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32703 ;;
32704esac
32705fi
32706ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32707if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo "$ILBMEncodeDelegate" >&6; }
32710else
cristy8b350f62009-11-15 23:12:43 +000032711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo "no" >&6; }
32713fi
32714
32715
32716# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32717set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032720if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032721 $as_echo_n "(cached) " >&6
32722else
32723 case $LPDelegate in
32724 [\\/]* | ?:[\\/]*)
32725 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32726 ;;
32727 *)
32728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32729for as_dir in $PATH
32730do
32731 IFS=$as_save_IFS
32732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032735 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032737 break 2
32738 fi
32739done
cristy8b350f62009-11-15 23:12:43 +000032740 done
cristy3ed852e2009-09-05 21:47:34 +000032741IFS=$as_save_IFS
32742
32743 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32744 ;;
32745esac
32746fi
32747LPDelegate=$ac_cv_path_LPDelegate
32748if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo "$LPDelegate" >&6; }
32751else
cristy8b350f62009-11-15 23:12:43 +000032752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo "no" >&6; }
32754fi
32755
32756
32757# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32758set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032761if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032762 $as_echo_n "(cached) " >&6
32763else
32764 case $LPRDelegate in
32765 [\\/]* | ?:[\\/]*)
32766 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32767 ;;
32768 *)
32769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32770for as_dir in $PATH
32771do
32772 IFS=$as_save_IFS
32773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032776 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032778 break 2
32779 fi
32780done
cristy8b350f62009-11-15 23:12:43 +000032781 done
cristy3ed852e2009-09-05 21:47:34 +000032782IFS=$as_save_IFS
32783
32784 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32785 ;;
32786esac
32787fi
32788LPRDelegate=$ac_cv_path_LPRDelegate
32789if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo "$LPRDelegate" >&6; }
32792else
cristy8b350f62009-11-15 23:12:43 +000032793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo "no" >&6; }
32795fi
32796
32797
cristy3ed852e2009-09-05 21:47:34 +000032798# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32799set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032802if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032803 $as_echo_n "(cached) " >&6
32804else
32805 case $LaunchDelegate in
32806 [\\/]* | ?:[\\/]*)
32807 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32808 ;;
32809 *)
32810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32811for as_dir in $PATH
32812do
32813 IFS=$as_save_IFS
32814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032817 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819 break 2
32820 fi
32821done
cristy8b350f62009-11-15 23:12:43 +000032822 done
cristy3ed852e2009-09-05 21:47:34 +000032823IFS=$as_save_IFS
32824
32825 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32826 ;;
32827esac
32828fi
32829LaunchDelegate=$ac_cv_path_LaunchDelegate
32830if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "$LaunchDelegate" >&6; }
32833else
cristy8b350f62009-11-15 23:12:43 +000032834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo "no" >&6; }
32836fi
32837
32838
32839# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32840set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032843if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032844 $as_echo_n "(cached) " >&6
32845else
32846 case $MANDelegate in
32847 [\\/]* | ?:[\\/]*)
32848 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32849 ;;
32850 *)
32851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32852for as_dir in $PATH
32853do
32854 IFS=$as_save_IFS
32855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032858 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032860 break 2
32861 fi
32862done
cristy8b350f62009-11-15 23:12:43 +000032863 done
cristy3ed852e2009-09-05 21:47:34 +000032864IFS=$as_save_IFS
32865
32866 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32867 ;;
32868esac
32869fi
32870MANDelegate=$ac_cv_path_MANDelegate
32871if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873$as_echo "$MANDelegate" >&6; }
32874else
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "no" >&6; }
32877fi
32878
32879
32880# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32881set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032884if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032885 $as_echo_n "(cached) " >&6
32886else
32887 case $MPEGDecodeDelegate in
32888 [\\/]* | ?:[\\/]*)
32889 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32890 ;;
32891 *)
32892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32893for as_dir in $PATH
32894do
32895 IFS=$as_save_IFS
32896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032899 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032901 break 2
32902 fi
32903done
cristy8b350f62009-11-15 23:12:43 +000032904 done
cristy3ed852e2009-09-05 21:47:34 +000032905IFS=$as_save_IFS
32906
32907 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32908 ;;
32909esac
32910fi
32911MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32912if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "$MPEGDecodeDelegate" >&6; }
32915else
cristy8b350f62009-11-15 23:12:43 +000032916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo "no" >&6; }
32918fi
32919
32920
32921# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32922set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032925if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032926 $as_echo_n "(cached) " >&6
32927else
32928 case $MPEGEncodeDelegate in
32929 [\\/]* | ?:[\\/]*)
32930 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32931 ;;
32932 *)
32933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32934for as_dir in $PATH
32935do
32936 IFS=$as_save_IFS
32937 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032940 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942 break 2
32943 fi
32944done
cristy8b350f62009-11-15 23:12:43 +000032945 done
cristy3ed852e2009-09-05 21:47:34 +000032946IFS=$as_save_IFS
32947
32948 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32949 ;;
32950esac
32951fi
32952MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32953if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "$MPEGEncodeDelegate" >&6; }
32956else
cristy8b350f62009-11-15 23:12:43 +000032957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo "no" >&6; }
32959fi
32960
32961
cristy935c86e2010-06-05 23:50:07 +000032962# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32963set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032966if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032967 $as_echo_n "(cached) " >&6
32968else
32969 case $MrSIDDecodeDelegate in
32970 [\\/]* | ?:[\\/]*)
32971 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32972 ;;
32973 *)
32974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32975for as_dir in $PATH
32976do
32977 IFS=$as_save_IFS
32978 test -z "$as_dir" && as_dir=.
32979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000032981 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32983 break 2
32984 fi
32985done
32986 done
32987IFS=$as_save_IFS
32988
32989 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32990 ;;
32991esac
32992fi
32993MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32994if test -n "$MrSIDDecodeDelegate"; then
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32996$as_echo "$MrSIDDecodeDelegate" >&6; }
32997else
32998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32999$as_echo "no" >&6; }
33000fi
33001
33002
cristy3ed852e2009-09-05 21:47:34 +000033003# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33004set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033007if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033008 $as_echo_n "(cached) " >&6
33009else
33010 case $MVDelegate in
33011 [\\/]* | ?:[\\/]*)
33012 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33013 ;;
33014 *)
33015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33016for as_dir in $PATH
33017do
33018 IFS=$as_save_IFS
33019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033022 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024 break 2
33025 fi
33026done
cristy8b350f62009-11-15 23:12:43 +000033027 done
cristy3ed852e2009-09-05 21:47:34 +000033028IFS=$as_save_IFS
33029
33030 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33031 ;;
33032esac
33033fi
33034MVDelegate=$ac_cv_path_MVDelegate
33035if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "$MVDelegate" >&6; }
33038else
cristy8b350f62009-11-15 23:12:43 +000033039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo "no" >&6; }
33041fi
33042
33043
33044# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33045set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033048if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033049 $as_echo_n "(cached) " >&6
33050else
33051 case $PCLDelegate in
33052 [\\/]* | ?:[\\/]*)
33053 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33054 ;;
33055 *)
33056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33057for as_dir in $PATH
33058do
33059 IFS=$as_save_IFS
33060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033063 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065 break 2
33066 fi
33067done
cristy8b350f62009-11-15 23:12:43 +000033068 done
cristy3ed852e2009-09-05 21:47:34 +000033069IFS=$as_save_IFS
33070
33071 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33072 ;;
33073esac
33074fi
33075PCLDelegate=$ac_cv_path_PCLDelegate
33076if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "$PCLDelegate" >&6; }
33079else
cristy8b350f62009-11-15 23:12:43 +000033080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo "no" >&6; }
33082fi
33083
33084
33085# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33086set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033089if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033090 $as_echo_n "(cached) " >&6
33091else
33092 case $PGPDecodeDelegate in
33093 [\\/]* | ?:[\\/]*)
33094 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33095 ;;
33096 *)
33097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33098for as_dir in $PATH
33099do
33100 IFS=$as_save_IFS
33101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033104 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106 break 2
33107 fi
33108done
cristy8b350f62009-11-15 23:12:43 +000033109 done
cristy3ed852e2009-09-05 21:47:34 +000033110IFS=$as_save_IFS
33111
33112 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33113 ;;
33114esac
33115fi
33116PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33117if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "$PGPDecodeDelegate" >&6; }
33120else
cristy8b350f62009-11-15 23:12:43 +000033121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122$as_echo "no" >&6; }
33123fi
33124
33125
33126# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33127set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033130if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033131 $as_echo_n "(cached) " >&6
33132else
33133 case $POVDelegate in
33134 [\\/]* | ?:[\\/]*)
33135 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33136 ;;
33137 *)
33138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33139for as_dir in $PATH
33140do
33141 IFS=$as_save_IFS
33142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033145 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147 break 2
33148 fi
33149done
cristy8b350f62009-11-15 23:12:43 +000033150 done
cristy3ed852e2009-09-05 21:47:34 +000033151IFS=$as_save_IFS
33152
33153 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33154 ;;
33155esac
33156fi
33157POVDelegate=$ac_cv_path_POVDelegate
33158if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo "$POVDelegate" >&6; }
33161else
cristy8b350f62009-11-15 23:12:43 +000033162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163$as_echo "no" >&6; }
33164fi
33165
33166
33167for ac_prog in gsx gsc "$PSDelegateDefault"
33168do
33169 # Extract the first word of "$ac_prog", so it can be a program name with args.
33170set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033173if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033174 $as_echo_n "(cached) " >&6
33175else
33176 case $PSDelegate in
33177 [\\/]* | ?:[\\/]*)
33178 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33179 ;;
33180 *)
33181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33182for as_dir in $PATH
33183do
33184 IFS=$as_save_IFS
33185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033188 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190 break 2
33191 fi
33192done
cristy8b350f62009-11-15 23:12:43 +000033193 done
cristy3ed852e2009-09-05 21:47:34 +000033194IFS=$as_save_IFS
33195
33196 ;;
33197esac
33198fi
33199PSDelegate=$ac_cv_path_PSDelegate
33200if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033202$as_echo "$PSDelegate" >&6; }
33203else
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "no" >&6; }
33206fi
33207
33208
33209 test -n "$PSDelegate" && break
33210done
33211test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33212
33213# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33214set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033217if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033218 $as_echo_n "(cached) " >&6
33219else
33220 case $RLEEncodeDelegate in
33221 [\\/]* | ?:[\\/]*)
33222 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33223 ;;
33224 *)
33225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33226for as_dir in $PATH
33227do
33228 IFS=$as_save_IFS
33229 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033230 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033232 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234 break 2
33235 fi
33236done
cristy8b350f62009-11-15 23:12:43 +000033237 done
cristy3ed852e2009-09-05 21:47:34 +000033238IFS=$as_save_IFS
33239
33240 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33241 ;;
33242esac
33243fi
33244RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33245if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033247$as_echo "$RLEEncodeDelegate" >&6; }
33248else
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "no" >&6; }
33251fi
33252
33253
33254# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33255set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033258if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033259 $as_echo_n "(cached) " >&6
33260else
33261 case $RMDelegate in
33262 [\\/]* | ?:[\\/]*)
33263 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33264 ;;
33265 *)
33266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33267for as_dir in $PATH
33268do
33269 IFS=$as_save_IFS
33270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033273 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275 break 2
33276 fi
33277done
cristy8b350f62009-11-15 23:12:43 +000033278 done
cristy3ed852e2009-09-05 21:47:34 +000033279IFS=$as_save_IFS
33280
33281 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33282 ;;
33283esac
33284fi
33285RMDelegate=$ac_cv_path_RMDelegate
33286if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033288$as_echo "$RMDelegate" >&6; }
33289else
cristy8b350f62009-11-15 23:12:43 +000033290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033291$as_echo "no" >&6; }
33292fi
33293
33294
cristy4689cf02010-02-17 21:15:45 +000033295# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33296set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33298$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033299if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033300 $as_echo_n "(cached) " >&6
33301else
33302 case $RSVGDecodeDelegate in
33303 [\\/]* | ?:[\\/]*)
33304 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33305 ;;
33306 *)
33307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33308for as_dir in $PATH
33309do
33310 IFS=$as_save_IFS
33311 test -z "$as_dir" && as_dir=.
33312 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033314 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33316 break 2
33317 fi
33318done
33319 done
33320IFS=$as_save_IFS
33321
33322 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33323 ;;
33324esac
33325fi
33326RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33327if test -n "$RSVGDecodeDelegate"; then
33328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33329$as_echo "$RSVGDecodeDelegate" >&6; }
33330else
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33332$as_echo "no" >&6; }
33333fi
33334
33335
cristy3ed852e2009-09-05 21:47:34 +000033336# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33337set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033340if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033341 $as_echo_n "(cached) " >&6
33342else
33343 case $SCANDecodeDelegate in
33344 [\\/]* | ?:[\\/]*)
33345 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33346 ;;
33347 *)
33348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33349for as_dir in $PATH
33350do
33351 IFS=$as_save_IFS
33352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033355 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357 break 2
33358 fi
33359done
cristy8b350f62009-11-15 23:12:43 +000033360 done
cristy3ed852e2009-09-05 21:47:34 +000033361IFS=$as_save_IFS
33362
33363 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33364 ;;
33365esac
33366fi
33367SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33368if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033370$as_echo "$SCANDecodeDelegate" >&6; }
33371else
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "no" >&6; }
33374fi
33375
33376
cristyec6934f2012-08-14 18:38:40 +000033377# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33378set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33380$as_echo_n "checking for $ac_word... " >&6; }
33381if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33382 $as_echo_n "(cached) " >&6
33383else
33384 case $SVGDecodeDelegate in
33385 [\\/]* | ?:[\\/]*)
33386 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33387 ;;
33388 *)
33389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33390for as_dir in $PATH
33391do
33392 IFS=$as_save_IFS
33393 test -z "$as_dir" && as_dir=.
33394 for ac_exec_ext in '' $ac_executable_extensions; do
33395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33396 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33398 break 2
33399 fi
33400done
33401 done
33402IFS=$as_save_IFS
33403
33404 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33405 ;;
33406esac
33407fi
33408SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33409if test -n "$SVGDecodeDelegate"; then
33410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33411$as_echo "$SVGDecodeDelegate" >&6; }
33412else
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33414$as_echo "no" >&6; }
33415fi
33416
33417
cristy3ed852e2009-09-05 21:47:34 +000033418# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33419set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033422if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033423 $as_echo_n "(cached) " >&6
33424else
33425 case $TXTDelegate in
33426 [\\/]* | ?:[\\/]*)
33427 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33428 ;;
33429 *)
33430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33431for as_dir in $PATH
33432do
33433 IFS=$as_save_IFS
33434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033437 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439 break 2
33440 fi
33441done
cristy8b350f62009-11-15 23:12:43 +000033442 done
cristy3ed852e2009-09-05 21:47:34 +000033443IFS=$as_save_IFS
33444
33445 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33446 ;;
33447esac
33448fi
33449TXTDelegate=$ac_cv_path_TXTDelegate
33450if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033452$as_echo "$TXTDelegate" >&6; }
33453else
cristy8b350f62009-11-15 23:12:43 +000033454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo "no" >&6; }
33456fi
33457
33458
cristy5ac9ac82010-07-29 13:24:24 +000033459# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33460set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33462$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033463if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033464 $as_echo_n "(cached) " >&6
33465else
33466 case $UniconvertorDelegate in
33467 [\\/]* | ?:[\\/]*)
33468 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33469 ;;
33470 *)
33471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33472for as_dir in $PATH
33473do
33474 IFS=$as_save_IFS
33475 test -z "$as_dir" && as_dir=.
33476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033478 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33480 break 2
33481 fi
33482done
33483 done
33484IFS=$as_save_IFS
33485
33486 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33487 ;;
33488esac
33489fi
33490UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33491if test -n "$UniconvertorDelegate"; then
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33493$as_echo "$UniconvertorDelegate" >&6; }
33494else
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33496$as_echo "no" >&6; }
33497fi
33498
33499
cristy3ed852e2009-09-05 21:47:34 +000033500# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33501set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033504if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033505 $as_echo_n "(cached) " >&6
33506else
33507 case $WMFDecodeDelegate in
33508 [\\/]* | ?:[\\/]*)
33509 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33510 ;;
33511 *)
33512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33513for as_dir in $PATH
33514do
33515 IFS=$as_save_IFS
33516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033519 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521 break 2
33522 fi
33523done
cristy8b350f62009-11-15 23:12:43 +000033524 done
cristy3ed852e2009-09-05 21:47:34 +000033525IFS=$as_save_IFS
33526
33527 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33528 ;;
33529esac
33530fi
33531WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33532if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534$as_echo "$WMFDecodeDelegate" >&6; }
33535else
cristy8b350f62009-11-15 23:12:43 +000033536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033537$as_echo "no" >&6; }
33538fi
33539
33540
33541# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33542set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033545if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033546 $as_echo_n "(cached) " >&6
33547else
33548 case $WWWDecodeDelegate in
33549 [\\/]* | ?:[\\/]*)
33550 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33551 ;;
33552 *)
33553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33554for as_dir in $PATH
33555do
33556 IFS=$as_save_IFS
33557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033560 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562 break 2
33563 fi
33564done
cristy8b350f62009-11-15 23:12:43 +000033565 done
cristy3ed852e2009-09-05 21:47:34 +000033566IFS=$as_save_IFS
33567
33568 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33569 ;;
33570esac
33571fi
33572WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33573if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575$as_echo "$WWWDecodeDelegate" >&6; }
33576else
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "no" >&6; }
33579fi
33580
33581
33582# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33583set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033586if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033587 $as_echo_n "(cached) " >&6
33588else
33589 case $XPSDelegate in
33590 [\\/]* | ?:[\\/]*)
33591 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33592 ;;
33593 *)
33594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33595for as_dir in $PATH
33596do
33597 IFS=$as_save_IFS
33598 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033601 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603 break 2
33604 fi
33605done
cristy8b350f62009-11-15 23:12:43 +000033606 done
cristy3ed852e2009-09-05 21:47:34 +000033607IFS=$as_save_IFS
33608
33609 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33610 ;;
33611esac
33612fi
33613XPSDelegate=$ac_cv_path_XPSDelegate
33614if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo "$XPSDelegate" >&6; }
33617else
cristy8b350f62009-11-15 23:12:43 +000033618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033619$as_echo "no" >&6; }
33620fi
33621
33622
33623# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33624set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033627if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033628 $as_echo_n "(cached) " >&6
33629else
33630 case $ZipDelegate in
33631 [\\/]* | ?:[\\/]*)
33632 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33633 ;;
33634 *)
33635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33636for as_dir in $PATH
33637do
33638 IFS=$as_save_IFS
33639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033642 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644 break 2
33645 fi
33646done
cristy8b350f62009-11-15 23:12:43 +000033647 done
cristy3ed852e2009-09-05 21:47:34 +000033648IFS=$as_save_IFS
33649
33650 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33651 ;;
33652esac
33653fi
33654ZipDelegate=$ac_cv_path_ZipDelegate
33655if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "$ZipDelegate" >&6; }
33658else
cristy8b350f62009-11-15 23:12:43 +000033659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660$as_echo "no" >&6; }
33661fi
33662
33663
33664
33665# Prefer lpr to lp; lp needs options tacked on.
33666if test "$LPRDelegate" != no; then
33667 PrintDelegate="$LPRDelegate"
33668else
33669 PrintDelegate="$LPDelegate -c -s"
33670fi
33671
33672
33673# Installed ImageMagick utiltity paths
33674ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33675DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33676MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33677
33678# Set delegate booleans
33679have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33680have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33681have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33682have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33683have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033684have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033685have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33686have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033687have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33688have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33689
33690#
33691# Test for font directories
33692#
33693type_include_files=''
33694
cristy430a7312010-01-21 20:44:04 +000033695# Dejavu fonts.
33696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33697$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33698dejavu_font_dir=''
33699if test "${with_dejavu_font_dir}" != 'default'; then
33700 dejavu_font_dir="${with_dejavu_font_dir}/"
33701else
33702 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33703 if test -f "${font_dir}DejaVuSerif.ttf"; then
33704 dejavu_font_dir="${font_dir}"
33705 break 1
33706 fi
33707 done
33708fi
33709if test "${dejavu_font_dir}x" != 'x'; then
33710 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033711 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33712$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033713else
cristy09b53e12011-10-14 12:47:22 +000033714 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33715$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033716fi
33717
33718
cristy3ed852e2009-09-05 21:47:34 +000033719# Windows
33720windows_font_dir=''
33721if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33722 windows_font_dir="${with_windows_font_dir}/"
33723fi
cristy430a7312010-01-21 20:44:04 +000033724if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033725 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33726 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33727 fi
33728 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33729 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33730 fi
33731 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33732 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33733 fi
33734fi
cristy430a7312010-01-21 20:44:04 +000033735if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033736 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33737fi
33738
33739
33740# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33743ghostscript_font_dir=''
33744if test "${with_gs_font_dir}" != 'default'; then
33745 ghostscript_font_dir="${with_gs_font_dir}/"
33746else
33747 if test "${native_win32_build}" = 'yes'; then
33748 # Native Windows Build
33749 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33750 if test -f "${font_dir}a010013l.pfb"; then
33751 ghostscript_font_dir="$font_dir"
33752 break 1
33753 fi
33754 done
33755 if test "${PSDelegate}" != 'gswin32c'; then
33756 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33757 fi
33758 else
33759 # Linux / Mac OS X / Unix Build
33760 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
33761 if test -f "${font_dir}a010013l.pfb"; then
33762 ghostscript_font_dir="${font_dir}"
33763 break 1
33764 fi
33765 done
33766 if test "${ghostscript_font_dir}x" = 'x'; then
33767 if test "$PSDelegate" != 'gs'; then
33768 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33769 fi
33770 fi
33771 fi
33772fi
33773if test "${ghostscript_font_dir}x" != 'x'; then
33774 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33776$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033777else
cristy09b53e12011-10-14 12:47:22 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33779$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000033780fi
33781
33782case "${build_os}" in
33783 mingw* )
33784 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33785 ;;
33786esac
33787
33788
33789
33790#
33791# Handle case where user doesn't want frozen paths
33792#
33793if test "$with_frozenpaths" != 'yes'; then
33794 # Re-set delegate definitions to default (no paths)
33795 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033796 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33797 BZIPDelegate="$BZIPDelegateDefault"
33798 BrowseDelegate="$BrowseDelegateDefault"
33799 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33800 CatDelegate="$CatDelegateDefault"
33801 ConvertDelegate="$ConvertDelegateDefault"
33802 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33803 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33804 EchoDelegate="$EchoDelegateDefault"
33805 EditorDelegate="$EditorDelegateDefault"
33806 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33807 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33808 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33809 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33810 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33811 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33812 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033813 LaunchDelegate="$LaunchDelegateDefault"
33814 MANDelegate="$MANDelegateDefault"
33815 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33816 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033817 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033818 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33819 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033820 PCLDelegate="$PCLDelegateDefault"
33821 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33822 POVDelegate="$POVDelegateDefault"
33823 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033824 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33825 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033826 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033827 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000033828 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033829 ShowImageDelegate="$ShowImageDelegateDefault"
33830 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033831 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033832 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33833 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33834 XPSDelegate="$XPSDelegateDefault"
33835 ZipDelegate="$ZipDelegateDefault"
33836fi
33837
33838# Delegate substitutions
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
cristy3ed852e2009-09-05 21:47:34 +000033879#
33880# RPM support.
33881#
33882RPM=''
33883for ac_prog in gnutar gtar tar
33884do
33885 # Extract the first word of "$ac_prog", so it can be a program name with args.
33886set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033889if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033890 $as_echo_n "(cached) " >&6
33891else
33892 if test -n "$TAR"; then
33893 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33894else
33895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33896for as_dir in $PATH
33897do
33898 IFS=$as_save_IFS
33899 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033902 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033904 break 2
33905 fi
33906done
cristy8b350f62009-11-15 23:12:43 +000033907 done
cristy3ed852e2009-09-05 21:47:34 +000033908IFS=$as_save_IFS
33909
33910fi
33911fi
33912TAR=$ac_cv_prog_TAR
33913if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "$TAR" >&6; }
33916else
cristy8b350f62009-11-15 23:12:43 +000033917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918$as_echo "no" >&6; }
33919fi
33920
33921
33922 test -n "$TAR" && break
33923done
33924
33925for ac_prog in perl
33926do
33927 # Extract the first word of "$ac_prog", so it can be a program name with args.
33928set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033931if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033932 $as_echo_n "(cached) " >&6
33933else
33934 if test -n "$PERL"; then
33935 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33936else
33937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33938for as_dir in $PATH
33939do
33940 IFS=$as_save_IFS
33941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033944 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946 break 2
33947 fi
33948done
cristy8b350f62009-11-15 23:12:43 +000033949 done
cristy3ed852e2009-09-05 21:47:34 +000033950IFS=$as_save_IFS
33951
33952fi
33953fi
33954PERL=$ac_cv_prog_PERL
33955if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "$PERL" >&6; }
33958else
cristy8b350f62009-11-15 23:12:43 +000033959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960$as_echo "no" >&6; }
33961fi
33962
33963
33964 test -n "$PERL" && break
33965done
33966
33967for ac_prog in rpmbuild rpm
33968do
33969 # Extract the first word of "$ac_prog", so it can be a program name with args.
33970set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033973if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033974 $as_echo_n "(cached) " >&6
33975else
33976 if test -n "$RPM"; then
33977 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33978else
33979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33980for as_dir in $PATH
33981do
33982 IFS=$as_save_IFS
33983 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033986 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033988 break 2
33989 fi
33990done
cristy8b350f62009-11-15 23:12:43 +000033991 done
cristy3ed852e2009-09-05 21:47:34 +000033992IFS=$as_save_IFS
33993
33994fi
33995fi
33996RPM=$ac_cv_prog_RPM
33997if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "$RPM" >&6; }
34000else
cristy8b350f62009-11-15 23:12:43 +000034001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo "no" >&6; }
34003fi
34004
34005
34006 test -n "$RPM" && break
34007done
34008
34009
cristy73bd4a52010-10-05 11:24:23 +000034010ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34011
34012
34013AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34014
34015
34016AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34017
34018
34019AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34020
34021
34022 if test "x$RPM" != "x" ; then
34023 RPM_DELEGATE_TRUE=
34024 RPM_DELEGATE_FALSE='#'
34025else
34026 RPM_DELEGATE_TRUE='#'
34027 RPM_DELEGATE_FALSE=
34028fi
34029
cristy3ed852e2009-09-05 21:47:34 +000034030
34031#
34032# 7ZIP support (http://p7zip.sourceforge.net/)
34033#
34034P7ZIP=''
34035for ac_prog in 7za
34036do
34037 # Extract the first word of "$ac_prog", so it can be a program name with args.
34038set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034041if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034042 $as_echo_n "(cached) " >&6
34043else
34044 if test -n "$P7ZIP"; then
34045 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34046else
34047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34048for as_dir in $PATH
34049do
34050 IFS=$as_save_IFS
34051 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034054 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034056 break 2
34057 fi
34058done
cristy8b350f62009-11-15 23:12:43 +000034059 done
cristy3ed852e2009-09-05 21:47:34 +000034060IFS=$as_save_IFS
34061
34062fi
34063fi
34064P7ZIP=$ac_cv_prog_P7ZIP
34065if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034067$as_echo "$P7ZIP" >&6; }
34068else
cristy8b350f62009-11-15 23:12:43 +000034069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo "no" >&6; }
34071fi
34072
34073
34074 test -n "$P7ZIP" && break
34075done
34076
34077
cristy73bd4a52010-10-05 11:24:23 +000034078 if test "x$P7ZIP" != "x" ; then
34079 P7ZIP_DELEGATE_TRUE=
34080 P7ZIP_DELEGATE_FALSE='#'
34081else
34082 P7ZIP_DELEGATE_TRUE='#'
34083 P7ZIP_DELEGATE_FALSE=
34084fi
34085
cristy3ed852e2009-09-05 21:47:34 +000034086
34087#
34088# ZIP support (http://www.info-zip.org/Zip.html)
34089#
34090ZIP=''
34091for ac_prog in zip
34092do
34093 # Extract the first word of "$ac_prog", so it can be a program name with args.
34094set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034096$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034097if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034098 $as_echo_n "(cached) " >&6
34099else
34100 if test -n "$ZIP"; then
34101 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34102else
34103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34104for as_dir in $PATH
34105do
34106 IFS=$as_save_IFS
34107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034110 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034112 break 2
34113 fi
34114done
cristy8b350f62009-11-15 23:12:43 +000034115 done
cristy3ed852e2009-09-05 21:47:34 +000034116IFS=$as_save_IFS
34117
34118fi
34119fi
34120ZIP=$ac_cv_prog_ZIP
34121if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123$as_echo "$ZIP" >&6; }
34124else
cristy8b350f62009-11-15 23:12:43 +000034125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034126$as_echo "no" >&6; }
34127fi
34128
34129
34130 test -n "$ZIP" && break
34131done
34132
34133
cristy73bd4a52010-10-05 11:24:23 +000034134 if test "x$ZIP" != "x" ; then
34135 ZIP_DELEGATE_TRUE=
34136 ZIP_DELEGATE_FALSE='#'
34137else
34138 ZIP_DELEGATE_TRUE='#'
34139 ZIP_DELEGATE_FALSE=
34140fi
34141
cristy3ed852e2009-09-05 21:47:34 +000034142
34143#
34144# GhostPCL related configuration.
34145#
34146PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034147PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034148PCLMonoDevice=pbmraw
34149if test -z "$PCLVersion"; then
34150 PCLVersion='unknown'
34151fi
34152if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34154$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034157 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34158$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034159 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo_n "checking for pcl color device... " >&6; }
34162 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34163 :
34164 else
34165 PCLColorDevice=ppmraw
34166 fi
cristy09b53e12011-10-14 12:47:22 +000034167 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34168$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034169
34170 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo_n "checking for pcl CMYK device... " >&6; }
34173 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34174 :
34175 else
34176 PCLCMYKDevice=$PCLColorDevice
34177 fi
cristy09b53e12011-10-14 12:47:22 +000034178 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34179$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034180
34181 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo_n "checking for pcl mono device... " >&6; }
34184 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34185 :
34186 else
34187 PCLMonoDevice=$PCLColorDevice
34188 fi
cristy09b53e12011-10-14 12:47:22 +000034189 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34190$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034191fi
34192
34193
34194
34195
34196
34197
34198#
34199# GhostXPS related configuration.
34200#
34201XPSColorDevice=ppmraw
34202XPSCMYKDevice=bmpsep8
34203XPSMonoDevice=pbmraw
34204if test -z "$XPSVersion"; then
34205 XPSVersion='unknown'
34206fi
34207if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034208 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34209$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34213$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034214 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216$as_echo_n "checking for xps color device... " >&6; }
34217 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34218 :
34219 else
34220 XPSColorDevice=ppmraw
34221 fi
cristy09b53e12011-10-14 12:47:22 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34223$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034224
34225 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo_n "checking for xps CMYK device... " >&6; }
34228 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34229 :
34230 else
34231 XPSCMYKDevice=$XPSColorDevice
34232 fi
cristy09b53e12011-10-14 12:47:22 +000034233 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34234$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034235
34236 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo_n "checking for xps mono device... " >&6; }
34239 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34240 :
34241 else
34242 XPSMonoDevice=$XPSColorDevice
34243 fi
cristy09b53e12011-10-14 12:47:22 +000034244 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34245$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034246fi
34247
34248
34249
34250
34251
34252
34253#
34254# Ghostscript related configuration.
34255#
cristya97426c2011-02-04 01:41:27 +000034256GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034257GSColorDevice=pnmraw
34258GSCMYKDevice=pam
34259GSMonoDevice=pbmraw
34260GSPDFDevice=pdfwrite
34261GSPSDevice=pswrite
34262GSEPSDevice=epswrite
34263GSVersion='unknown'
34264if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034265 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34266$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034269 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34270$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272$as_echo_n "checking for Ghostscript version... " >&6; }
34273 if GSVersion=`$PSDelegate --version`; then
34274 :
34275 else
34276 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34277 fi
cristy09b53e12011-10-14 12:47:22 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34279$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034280
34281 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo_n "checking for gs alpha device... " >&6; }
34284 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34285 :
34286 else
34287 GSAlphaDevice=pnmraw
34288 fi
cristy09b53e12011-10-14 12:47:22 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34290$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034291
34292 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034294$as_echo_n "checking for gs color device... " >&6; }
34295 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34296 :
34297 else
34298 GSColorDevice=pnmraw
34299 fi
cristy09b53e12011-10-14 12:47:22 +000034300 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34301$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034302
34303 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034305$as_echo_n "checking for gs CMYK device... " >&6; }
34306 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34307 :
34308 else
34309 GSCMYKDevice=bmpsep8
34310 fi
cristy09b53e12011-10-14 12:47:22 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34312$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034313
34314 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034316$as_echo_n "checking for gs mono device... " >&6; }
34317 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34318 :
34319 else
34320 GSMonoDevice=$GSColorDevice
34321 fi
cristy09b53e12011-10-14 12:47:22 +000034322 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34323$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034324
34325 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034327$as_echo_n "checking for gs PDF writing device... " >&6; }
34328 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34329 :
34330 else
34331 GSPDFDevice=nodevice
34332 fi
cristy09b53e12011-10-14 12:47:22 +000034333 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34334$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034335
34336 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo_n "checking for gs PS writing device... " >&6; }
34339 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34340 :
34341 else
34342 GSPSDevice=nodevice
34343 fi
cristy09b53e12011-10-14 12:47:22 +000034344 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34345$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034346
34347 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034349$as_echo_n "checking for gs EPS writing device... " >&6; }
34350 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34351 :
34352 else
34353 GSEPSDevice=nodevice
34354 fi
cristy09b53e12011-10-14 12:47:22 +000034355 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34356$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034357fi
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368#
34369# PerlMagick-related configuration
34370#
34371
34372# Look for PERL if PerlMagick requested
34373# If name/path of desired PERL interpreter is specified, look for that one first
34374have_perl='no'
34375if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034376 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34377$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34381$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034382 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034385if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034386 $as_echo_n "(cached) " >&6
34387else
34388 ac_cv_path_PERL="$with_perl"
34389fi
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo "$ac_cv_path_PERL" >&6; };
34392 PERL=$ac_cv_path_PERL
34393 have_perl="$ac_cv_path_PERL"
34394 else
34395 for ac_prog in perl perl5
34396do
34397 # Extract the first word of "$ac_prog", so it can be a program name with args.
34398set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034401if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034402 $as_echo_n "(cached) " >&6
34403else
34404 case $PERL in
34405 [\\/]* | ?:[\\/]*)
34406 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34407 ;;
34408 *)
34409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34410for as_dir in $PATH
34411do
34412 IFS=$as_save_IFS
34413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034416 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034418 break 2
34419 fi
34420done
cristy8b350f62009-11-15 23:12:43 +000034421 done
cristy3ed852e2009-09-05 21:47:34 +000034422IFS=$as_save_IFS
34423
34424 ;;
34425esac
34426fi
34427PERL=$ac_cv_path_PERL
34428if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034430$as_echo "$PERL" >&6; }
34431else
cristy8b350f62009-11-15 23:12:43 +000034432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034433$as_echo "no" >&6; }
34434fi
34435
34436
34437 test -n "$PERL" && break
34438done
34439 if test "$ac_cv_path_PERL"; then
34440 have_perl="$ac_cv_path_PERL"
34441 fi
34442 fi
34443fi
34444
cristy949301e2010-01-06 01:38:40 +000034445if test "$with_perl" != 'yes' ; then
34446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34447fi
34448
34449PERL_SUPPORTS_DESTDIR='no'
34450
cristy3ed852e2009-09-05 21:47:34 +000034451with_perl_static='no'
34452with_perl_dynamic='no'
34453if test "$have_perl" != 'no'; then
34454 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34455 with_perl_static='yes'
34456 fi
34457 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34458 with_perl_dynamic='yes'
34459 fi
34460 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034461
34462
34463
34464
34465 if test -n "$PERL"; then :
34466
34467 ax_perl_version="5.8.1"
34468
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34470$as_echo_n "checking for perl version... " >&6; }
34471
34472 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34473
34474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34475$as_echo "$perl_version" >&6; }
34476
34477 PERL_VERSION=$perl_version
34478
34479
34480
34481
34482
34483 # Used to indicate true or false condition
34484 ax_compare_version=false
34485
34486 # Convert the two version strings to be compared into a format that
34487 # allows a simple string comparison. The end result is that a version
34488 # string of the form 1.12.5-r617 will be converted to the form
34489 # 0001001200050617. In other words, each number is zero padded to four
34490 # digits, and non digits are removed.
34491
34492 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34493 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34494 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34495 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34496 -e 's/[^0-9]//g'`
34497
34498
34499 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34500 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34501 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34502 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34503 -e 's/[^0-9]//g'`
34504
34505
34506 ax_compare_version=`echo "x$ax_compare_version_A
34507x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34508
34509
34510
34511 if test "$ax_compare_version" = "true" ; then
34512
34513 :
34514 PERL_SUPPORTS_DESTDIR='yes'
34515
34516 else
34517 :
34518 PERL_SUPPORTS_DESTDIR='no'
34519
34520 fi
34521
34522
34523else
34524
34525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34526$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34527 PERL_SUPPORTS_DESTDIR='no'
34528
cristy3ed852e2009-09-05 21:47:34 +000034529fi
cristy73bd4a52010-10-05 11:24:23 +000034530
34531fi
34532 if test "$have_perl" != 'no'; then
34533 WITH_PERL_TRUE=
34534 WITH_PERL_FALSE='#'
34535else
34536 WITH_PERL_TRUE='#'
34537 WITH_PERL_FALSE=
34538fi
34539
34540 if test $with_perl_static = 'yes'; then
34541 WITH_PERL_STATIC_TRUE=
34542 WITH_PERL_STATIC_FALSE='#'
34543else
34544 WITH_PERL_STATIC_TRUE='#'
34545 WITH_PERL_STATIC_FALSE=
34546fi
34547
34548 if test $with_perl_dynamic = 'yes'; then
34549 WITH_PERL_DYNAMIC_TRUE=
34550 WITH_PERL_DYNAMIC_FALSE='#'
34551else
34552 WITH_PERL_DYNAMIC_TRUE='#'
34553 WITH_PERL_DYNAMIC_FALSE=
34554fi
34555
cristy3ed852e2009-09-05 21:47:34 +000034556
34557
34558# Determine path to pick up MagickCore library from for use with building PerlMagick
34559MAGICKCORE_PATH="${LIB_DIR}"
34560if test $with_perl_static = 'yes'; then
34561 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34562 libtool_objdir=$objdir
34563
34564 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034565 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034566fi
34567
34568
34569# Create a simple string containing format names for all delegate libraries
34570DELEGATES=''
34571if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34572if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34573if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34574if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34575if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34576if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34577if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34578if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34579if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34580if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34581if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34582if test "$have_jpeg" = 'yes'; then
34583 DELEGATES="$DELEGATES jpeg";
34584 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34585fi
34586if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034587if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034588if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34589if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034590if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034591if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34592if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034593if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034594if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34595if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34596if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34597if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34598if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34599if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34600if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34601
34602
34603
34604#
34605# Handle special compiler flags
34606#
34607
34608# Add '-p' if prof source profiling support enabled
34609if test "$enable_prof" = 'yes'; then
34610 CFLAGS="-p $CFLAGS"
34611 CXXFLAGS="-p $CXXFLAGS"
34612 LDFLAGS="-p $LDFLAGS"
34613fi
34614
34615# Add '-pg' if gprof source profiling support enabled
34616if test "$enable_gprof" = 'yes'; then
34617 CFLAGS="-pg $CFLAGS"
34618 CXXFLAGS="-pg $CXXFLAGS"
34619 LDFLAGS="-pg $LDFLAGS"
34620fi
34621
34622# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34623# This is a gcc-specific feature
34624if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034626$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034627if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034628 $as_echo_n "(cached) " >&6
34629else
34630 ac_check_lib_save_LIBS=$LIBS
34631LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034633/* end confdefs.h. */
34634
34635/* Override any GCC internal prototype to avoid an error.
34636 Use char because int might match the return type of a GCC
34637 builtin and then its argument prototype would still apply. */
34638#ifdef __cplusplus
34639extern "C"
34640#endif
34641char _gcov_init ();
34642int
34643main ()
34644{
34645return _gcov_init ();
34646 ;
34647 return 0;
34648}
34649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034650if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034651 ac_cv_lib_gcov__gcov_init=yes
34652else
cristy8b350f62009-11-15 23:12:43 +000034653 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034654fi
cristy8b350f62009-11-15 23:12:43 +000034655rm -f core conftest.err conftest.$ac_objext \
34656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034657LIBS=$ac_check_lib_save_LIBS
34658fi
cristy8b350f62009-11-15 23:12:43 +000034659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034661if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034662 cat >>confdefs.h <<_ACEOF
34663#define HAVE_LIBGCOV 1
34664_ACEOF
34665
34666 LIBS="-lgcov $LIBS"
34667
34668fi
34669
cristy8b350f62009-11-15 23:12:43 +000034670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034671$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034672if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034673 $as_echo_n "(cached) " >&6
34674else
34675 ac_check_lib_save_LIBS=$LIBS
34676LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034678/* end confdefs.h. */
34679
34680/* Override any GCC internal prototype to avoid an error.
34681 Use char because int might match the return type of a GCC
34682 builtin and then its argument prototype would still apply. */
34683#ifdef __cplusplus
34684extern "C"
34685#endif
34686char __gcov_init ();
34687int
34688main ()
34689{
34690return __gcov_init ();
34691 ;
34692 return 0;
34693}
34694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034695if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034696 ac_cv_lib_gcov___gcov_init=yes
34697else
cristy8b350f62009-11-15 23:12:43 +000034698 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034699fi
cristy8b350f62009-11-15 23:12:43 +000034700rm -f core conftest.err conftest.$ac_objext \
34701 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034702LIBS=$ac_check_lib_save_LIBS
34703fi
cristy8b350f62009-11-15 23:12:43 +000034704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034705$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034706if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034707 cat >>confdefs.h <<_ACEOF
34708#define HAVE_LIBGCOV 1
34709_ACEOF
34710
34711 LIBS="-lgcov $LIBS"
34712
34713fi
34714
34715 case "$target_os" in
34716 darwin*)
34717 OSX_GCOV_LDFLAG="-Wl,-single_module"
34718 ;;
34719 *)
34720 OSX_GCOV_LDFLAG=""
34721 ;;
34722 esac
34723
34724 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34725 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34726 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34727fi
34728
34729#
34730# Build library dependency list for libMagickCore
34731#
34732
cristyc6722092012-10-14 00:19:31 +000034733if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000034734 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 +000034735else
cristy3a75f062012-09-08 23:29:40 +000034736 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 +000034737fi
34738
34739
34740#
34741# Remove extraneous spaces from output variables (asthetic)
34742#
34743X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34744X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34745X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34746X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34747
34748CC=`echo $CC | sed -e 's/ */ /g'`
34749CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34750CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34751CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34752DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34753DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34754LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34755TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34756MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34757#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34758
34759# Pass only user-provided LIBS as "global" libraries
34760LIBS=$USER_LIBS
34761
34762#AC_SUBST(CPPFLAGS)
34763
34764#AC_SUBST(LDFLAGS)
34765#AC_SUBST(X_PRE_LIBS)
34766#AC_SUBST(X_LIBS)
34767#AC_SUBST(X_EXTRA_LIBS)
34768
34769MAGICK_CFLAGS=$CFLAGS
34770MAGICK_CXXFLAGS="$CXXFLAGS"
34771MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34772MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34773MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000034774MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034775
34776
34777
34778
34779
34780
34781
34782
cristyfd9dcd42010-08-08 18:07:02 +000034783
cristy3ed852e2009-09-05 21:47:34 +000034784# Set configured scripts to executable.
34785ac_config_commands="$ac_config_commands default"
34786
cristy2bd4b6e2012-07-22 15:29:11 +000034787ac_config_commands="$ac_config_commands magick.sh.in"
34788
cristy3ed852e2009-09-05 21:47:34 +000034789ac_config_commands="$ac_config_commands MagickCore-config.in"
34790
cristy3ed852e2009-09-05 21:47:34 +000034791ac_config_commands="$ac_config_commands MagickWand-config.in"
34792
cristy3ed852e2009-09-05 21:47:34 +000034793ac_config_commands="$ac_config_commands Magick++-config.in"
34794
34795ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34796
34797
cristy09b53e12011-10-14 12:47:22 +000034798{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34799$as_echo "$as_me: -------------------------------------------------------------" >&6;}
34800{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
34801$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034802cat >confcache <<\_ACEOF
34803# This file is a shell script that caches the results of configure
34804# tests run on this system so they can be shared between configure
34805# scripts and configure runs, see configure's option --config-cache.
34806# It is not useful on other systems. If it contains results you don't
34807# want to keep, you may remove or edit it.
34808#
34809# config.status only pays attention to the cache file if you give it
34810# the --recheck option to rerun configure.
34811#
34812# `ac_cv_env_foo' variables (set or unset) will be overridden when
34813# loading this file, other *unset* `ac_cv_foo' will be assigned the
34814# following values.
34815
34816_ACEOF
34817
34818# The following way of writing the cache mishandles newlines in values,
34819# but we know of no workaround that is simple, portable, and efficient.
34820# So, we kill variables containing newlines.
34821# Ultrix sh set writes to stderr and can't be redirected directly,
34822# and sets the high bit in the cache file unless we assign to the vars.
34823(
34824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34825 eval ac_val=\$$ac_var
34826 case $ac_val in #(
34827 *${as_nl}*)
34828 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34831 esac
34832 case $ac_var in #(
34833 _ | IFS | as_nl) ;; #(
34834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034835 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034836 esac ;;
34837 esac
34838 done
34839
34840 (set) 2>&1 |
34841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34842 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034843 # `set' does not quote correctly, so add quotes: double-quote
34844 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034845 sed -n \
34846 "s/'/'\\\\''/g;
34847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34848 ;; #(
34849 *)
34850 # `set' quotes correctly as required by POSIX, so do not add quotes.
34851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34852 ;;
34853 esac |
34854 sort
34855) |
34856 sed '
34857 /^ac_cv_env_/b end
34858 t clear
34859 :clear
34860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34861 t end
34862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34863 :end' >>confcache
34864if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34865 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034866 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034867 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034868$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034869 if test ! -f "$cache_file" || test -h "$cache_file"; then
34870 cat confcache >"$cache_file"
34871 else
34872 case $cache_file in #(
34873 */* | ?:*)
34874 mv -f confcache "$cache_file"$$ &&
34875 mv -f "$cache_file"$$ "$cache_file" ;; #(
34876 *)
34877 mv -f confcache "$cache_file" ;;
34878 esac
34879 fi
34880 fi
cristy3ed852e2009-09-05 21:47:34 +000034881 else
cristy8b350f62009-11-15 23:12:43 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034883$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34884 fi
34885fi
34886rm -f confcache
34887
34888test "x$prefix" = xNONE && prefix=$ac_default_prefix
34889# Let make expand exec_prefix.
34890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34891
34892DEFS=-DHAVE_CONFIG_H
34893
34894ac_libobjs=
34895ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034896U=
cristy3ed852e2009-09-05 21:47:34 +000034897for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34898 # 1. Remove the extension, and $U if already installed.
34899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34900 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34902 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034905done
34906LIBOBJS=$ac_libobjs
34907
34908LTLIBOBJS=$ac_ltlibobjs
34909
34910
cristyc0890a62012-07-19 00:18:20 +000034911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34912$as_echo_n "checking that generated files are newer than configure... " >&6; }
34913 if test -n "$am_sleep_pid"; then
34914 # Hide warnings about reused PIDs.
34915 wait $am_sleep_pid 2>/dev/null
34916 fi
34917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
34918$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000034919 if test -n "$EXEEXT"; then
34920 am__EXEEXT_TRUE=
34921 am__EXEEXT_FALSE='#'
34922else
34923 am__EXEEXT_TRUE='#'
34924 am__EXEEXT_FALSE=
34925fi
cristy3ed852e2009-09-05 21:47:34 +000034926
cristy73bd4a52010-10-05 11:24:23 +000034927if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034928 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034929Usually this means the macro was only invoked conditionally." "$LINENO" 5
34930fi
34931if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034932 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034933Usually this means the macro was only invoked conditionally." "$LINENO" 5
34934fi
34935if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034936 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034937Usually this means the macro was only invoked conditionally." "$LINENO" 5
34938fi
34939if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034940 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034941Usually this means the macro was only invoked conditionally." "$LINENO" 5
34942fi
34943if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034944 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034945Usually this means the macro was only invoked conditionally." "$LINENO" 5
34946fi
34947if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034948 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034949Usually this means the macro was only invoked conditionally." "$LINENO" 5
34950fi
34951if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034952 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034953Usually this means the macro was only invoked conditionally." "$LINENO" 5
34954fi
34955if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034956 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034957Usually this means the macro was only invoked conditionally." "$LINENO" 5
34958fi
cristy73bd4a52010-10-05 11:24:23 +000034959if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034960 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034961Usually this means the macro was only invoked conditionally." "$LINENO" 5
34962fi
34963if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034964 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034965Usually this means the macro was only invoked conditionally." "$LINENO" 5
34966fi
cristy73bd4a52010-10-05 11:24:23 +000034967if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034968 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034969Usually this means the macro was only invoked conditionally." "$LINENO" 5
34970fi
cristy71d8c202012-03-20 17:05:01 +000034971if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
34972 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
34973Usually this means the macro was only invoked conditionally." "$LINENO" 5
34974fi
cristy73bd4a52010-10-05 11:24:23 +000034975
34976if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034977 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034978Usually this means the macro was only invoked conditionally." "$LINENO" 5
34979fi
34980if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034981 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034982Usually this means the macro was only invoked conditionally." "$LINENO" 5
34983fi
34984if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034985 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034986Usually this means the macro was only invoked conditionally." "$LINENO" 5
34987fi
34988if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034989 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034990Usually this means the macro was only invoked conditionally." "$LINENO" 5
34991fi
34992if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034993 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034994Usually this means the macro was only invoked conditionally." "$LINENO" 5
34995fi
34996if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034997 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034998Usually this means the macro was only invoked conditionally." "$LINENO" 5
34999fi
cristy5eef09f2012-10-16 12:08:28 +000035000if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35001 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35002Usually this means the macro was only invoked conditionally." "$LINENO" 5
35003fi
cristy73bd4a52010-10-05 11:24:23 +000035004if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035005 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035006Usually this means the macro was only invoked conditionally." "$LINENO" 5
35007fi
35008if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035009 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035010Usually this means the macro was only invoked conditionally." "$LINENO" 5
35011fi
35012if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035013 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035014Usually this means the macro was only invoked conditionally." "$LINENO" 5
35015fi
35016if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035017 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035018Usually this means the macro was only invoked conditionally." "$LINENO" 5
35019fi
35020if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035021 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035022Usually this means the macro was only invoked conditionally." "$LINENO" 5
35023fi
35024if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035025 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035026Usually this means the macro was only invoked conditionally." "$LINENO" 5
35027fi
35028if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035029 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035030Usually this means the macro was only invoked conditionally." "$LINENO" 5
35031fi
35032if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035033 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035034Usually this means the macro was only invoked conditionally." "$LINENO" 5
35035fi
35036if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035037 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035038Usually this means the macro was only invoked conditionally." "$LINENO" 5
35039fi
35040if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035041 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035042Usually this means the macro was only invoked conditionally." "$LINENO" 5
35043fi
35044if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035045 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035046Usually this means the macro was only invoked conditionally." "$LINENO" 5
35047fi
35048if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035049 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035050Usually this means the macro was only invoked conditionally." "$LINENO" 5
35051fi
35052if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035053 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035054Usually this means the macro was only invoked conditionally." "$LINENO" 5
35055fi
35056if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035057 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035058Usually this means the macro was only invoked conditionally." "$LINENO" 5
35059fi
cristyfbb0ef02010-12-19 02:32:11 +000035060if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35061 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35062Usually this means the macro was only invoked conditionally." "$LINENO" 5
35063fi
cristy73bd4a52010-10-05 11:24:23 +000035064if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035065 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035066Usually this means the macro was only invoked conditionally." "$LINENO" 5
35067fi
cristy41cbe8a2011-10-27 01:35:18 +000035068if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35069 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35070Usually this means the macro was only invoked conditionally." "$LINENO" 5
35071fi
cristya054b762012-03-26 23:16:00 +000035072if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35073 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035074Usually this means the macro was only invoked conditionally." "$LINENO" 5
35075fi
cristy73bd4a52010-10-05 11:24:23 +000035076if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035077 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035078Usually this means the macro was only invoked conditionally." "$LINENO" 5
35079fi
35080if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035081 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035082Usually this means the macro was only invoked conditionally." "$LINENO" 5
35083fi
35084if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035085 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035086Usually this means the macro was only invoked conditionally." "$LINENO" 5
35087fi
35088if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035089 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035090Usually this means the macro was only invoked conditionally." "$LINENO" 5
35091fi
cristyb1860752011-03-14 00:27:46 +000035092if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35093 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35094Usually this means the macro was only invoked conditionally." "$LINENO" 5
35095fi
cristy73bd4a52010-10-05 11:24:23 +000035096if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035097 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035098Usually this means the macro was only invoked conditionally." "$LINENO" 5
35099fi
35100if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035101 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035102Usually this means the macro was only invoked conditionally." "$LINENO" 5
35103fi
35104if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035105 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035106Usually this means the macro was only invoked conditionally." "$LINENO" 5
35107fi
35108if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035109 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035110Usually this means the macro was only invoked conditionally." "$LINENO" 5
35111fi
35112if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035113 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035114Usually this means the macro was only invoked conditionally." "$LINENO" 5
35115fi
35116if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035117 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035118Usually this means the macro was only invoked conditionally." "$LINENO" 5
35119fi
35120if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035121 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035122Usually this means the macro was only invoked conditionally." "$LINENO" 5
35123fi
35124if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035125 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035126Usually this means the macro was only invoked conditionally." "$LINENO" 5
35127fi
cristy3ed852e2009-09-05 21:47:34 +000035128
cristyda16f162011-02-19 23:52:17 +000035129: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035130ac_write_fail=0
35131ac_clean_files_save=$ac_clean_files
35132ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035133{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035134$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035135as_write_fail=0
35136cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035137#! $SHELL
35138# Generated by $as_me.
35139# Run this file to recreate the current configuration.
35140# Compiler output produced by configure, useful for debugging
35141# configure, is in config.log if it exists.
35142
35143debug=false
35144ac_cs_recheck=false
35145ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035146
cristy8b350f62009-11-15 23:12:43 +000035147SHELL=\${CONFIG_SHELL-$SHELL}
35148export SHELL
35149_ASEOF
35150cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35151## -------------------- ##
35152## M4sh Initialization. ##
35153## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035154
35155# Be more Bourne compatible
35156DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035158 emulate sh
35159 NULLCMD=:
35160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35161 # is contrary to our usage. Disable this feature.
35162 alias -g '${1+"$@"}'='"$@"'
35163 setopt NO_GLOB_SUBST
35164else
cristy8b350f62009-11-15 23:12:43 +000035165 case `(set -o) 2>/dev/null` in #(
35166 *posix*) :
35167 set -o posix ;; #(
35168 *) :
35169 ;;
cristy3ed852e2009-09-05 21:47:34 +000035170esac
cristy3ed852e2009-09-05 21:47:34 +000035171fi
35172
35173
cristy3ed852e2009-09-05 21:47:34 +000035174as_nl='
35175'
35176export as_nl
35177# Printing a long string crashes Solaris 7 /usr/bin/printf.
35178as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035181# Prefer a ksh shell builtin over an external printf program on Solaris,
35182# but without wasting forks for bash or zsh.
35183if test -z "$BASH_VERSION$ZSH_VERSION" \
35184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35185 as_echo='print -r --'
35186 as_echo_n='print -rn --'
35187elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035188 as_echo='printf %s\n'
35189 as_echo_n='printf %s'
35190else
35191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35193 as_echo_n='/usr/ucb/echo -n'
35194 else
35195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35196 as_echo_n_body='eval
35197 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035198 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035199 *"$as_nl"*)
35200 expr "X$arg" : "X\\(.*\\)$as_nl";
35201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35202 esac;
35203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35204 '
35205 export as_echo_n_body
35206 as_echo_n='sh -c $as_echo_n_body as_echo'
35207 fi
35208 export as_echo_body
35209 as_echo='sh -c $as_echo_body as_echo'
35210fi
35211
35212# The user is always right.
35213if test "${PATH_SEPARATOR+set}" != set; then
35214 PATH_SEPARATOR=:
35215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35217 PATH_SEPARATOR=';'
35218 }
35219fi
35220
cristy3ed852e2009-09-05 21:47:34 +000035221
35222# IFS
35223# We need space, tab and new line, in precisely that order. Quoting is
35224# there to prevent editors from complaining about space-tab.
35225# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35226# splitting by setting IFS to empty value.)
35227IFS=" "" $as_nl"
35228
35229# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035230as_myself=
cristy8b350f62009-11-15 23:12:43 +000035231case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035232 *[\\/]* ) as_myself=$0 ;;
35233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35234for as_dir in $PATH
35235do
35236 IFS=$as_save_IFS
35237 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35239 done
cristy3ed852e2009-09-05 21:47:34 +000035240IFS=$as_save_IFS
35241
35242 ;;
35243esac
35244# We did not find ourselves, most probably we were run as `sh COMMAND'
35245# in which case we are not to be found in the path.
35246if test "x$as_myself" = x; then
35247 as_myself=$0
35248fi
35249if test ! -f "$as_myself"; then
35250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035251 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035252fi
35253
cristy8b350f62009-11-15 23:12:43 +000035254# Unset variables that we do not need and which cause bugs (e.g. in
35255# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35256# suppresses any "Segmentation fault" message there. '((' could
35257# trigger a bug in pdksh 5.2.14.
35258for as_var in BASH_ENV ENV MAIL MAILPATH
35259do eval test x\${$as_var+set} = xset \
35260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035261done
35262PS1='$ '
35263PS2='> '
35264PS4='+ '
35265
35266# NLS nuisances.
35267LC_ALL=C
35268export LC_ALL
35269LANGUAGE=C
35270export LANGUAGE
35271
cristy8b350f62009-11-15 23:12:43 +000035272# CDPATH.
35273(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35274
35275
cristy98dddb52010-11-04 00:30:15 +000035276# as_fn_error STATUS ERROR [LINENO LOG_FD]
35277# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035278# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35279# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035280# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035281as_fn_error ()
35282{
cristy98dddb52010-11-04 00:30:15 +000035283 as_status=$1; test $as_status -eq 0 && as_status=1
35284 if test "$4"; then
35285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035287 fi
cristy98dddb52010-11-04 00:30:15 +000035288 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035289 as_fn_exit $as_status
35290} # as_fn_error
35291
35292
35293# as_fn_set_status STATUS
35294# -----------------------
35295# Set $? to STATUS, without forking.
35296as_fn_set_status ()
35297{
35298 return $1
35299} # as_fn_set_status
35300
35301# as_fn_exit STATUS
35302# -----------------
35303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35304as_fn_exit ()
35305{
35306 set +e
35307 as_fn_set_status $1
35308 exit $1
35309} # as_fn_exit
35310
35311# as_fn_unset VAR
35312# ---------------
35313# Portably unset VAR.
35314as_fn_unset ()
35315{
35316 { eval $1=; unset $1;}
35317}
35318as_unset=as_fn_unset
35319# as_fn_append VAR VALUE
35320# ----------------------
35321# Append the text in VALUE to the end of the definition contained in VAR. Take
35322# advantage of any shell optimizations that allow amortized linear growth over
35323# repeated appends, instead of the typical quadratic growth present in naive
35324# implementations.
35325if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35326 eval 'as_fn_append ()
35327 {
35328 eval $1+=\$2
35329 }'
35330else
35331 as_fn_append ()
35332 {
35333 eval $1=\$$1\$2
35334 }
35335fi # as_fn_append
35336
35337# as_fn_arith ARG...
35338# ------------------
35339# Perform arithmetic evaluation on the ARGs, and store the result in the
35340# global $as_val. Take advantage of shells that can avoid forks. The arguments
35341# must be portable across $(()) and expr.
35342if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35343 eval 'as_fn_arith ()
35344 {
35345 as_val=$(( $* ))
35346 }'
35347else
35348 as_fn_arith ()
35349 {
35350 as_val=`expr "$@" || test $? -eq 1`
35351 }
35352fi # as_fn_arith
35353
35354
cristy3ed852e2009-09-05 21:47:34 +000035355if expr a : '\(a\)' >/dev/null 2>&1 &&
35356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35357 as_expr=expr
35358else
35359 as_expr=false
35360fi
35361
35362if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35363 as_basename=basename
35364else
35365 as_basename=false
35366fi
35367
cristy8b350f62009-11-15 23:12:43 +000035368if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35369 as_dirname=dirname
35370else
35371 as_dirname=false
35372fi
cristy3ed852e2009-09-05 21:47:34 +000035373
cristy3ed852e2009-09-05 21:47:34 +000035374as_me=`$as_basename -- "$0" ||
35375$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35376 X"$0" : 'X\(//\)$' \| \
35377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35378$as_echo X/"$0" |
35379 sed '/^.*\/\([^/][^/]*\)\/*$/{
35380 s//\1/
35381 q
35382 }
35383 /^X\/\(\/\/\)$/{
35384 s//\1/
35385 q
35386 }
35387 /^X\/\(\/\).*/{
35388 s//\1/
35389 q
35390 }
35391 s/.*/./; q'`
35392
cristy8b350f62009-11-15 23:12:43 +000035393# Avoid depending upon Character Ranges.
35394as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35395as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35396as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35397as_cr_digits='0123456789'
35398as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035399
35400ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035401case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035402-n*)
cristy8b350f62009-11-15 23:12:43 +000035403 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035405 xy) ECHO_C='\c';;
35406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35407 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035408 esac;;
35409*)
35410 ECHO_N='-n';;
35411esac
cristy3ed852e2009-09-05 21:47:34 +000035412
35413rm -f conf$$ conf$$.exe conf$$.file
35414if test -d conf$$.dir; then
35415 rm -f conf$$.dir/conf$$.file
35416else
35417 rm -f conf$$.dir
35418 mkdir conf$$.dir 2>/dev/null
35419fi
35420if (echo >conf$$.file) 2>/dev/null; then
35421 if ln -s conf$$.file conf$$ 2>/dev/null; then
35422 as_ln_s='ln -s'
35423 # ... but there are two gotchas:
35424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035426 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035428 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035429 elif ln conf$$.file conf$$ 2>/dev/null; then
35430 as_ln_s=ln
35431 else
cristy14fefe52012-05-21 00:59:18 +000035432 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035433 fi
35434else
cristy14fefe52012-05-21 00:59:18 +000035435 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035436fi
35437rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35438rmdir conf$$.dir 2>/dev/null
35439
cristy8b350f62009-11-15 23:12:43 +000035440
35441# as_fn_mkdir_p
35442# -------------
35443# Create "$as_dir" as a directory, including parents if necessary.
35444as_fn_mkdir_p ()
35445{
35446
35447 case $as_dir in #(
35448 -*) as_dir=./$as_dir;;
35449 esac
35450 test -d "$as_dir" || eval $as_mkdir_p || {
35451 as_dirs=
35452 while :; do
35453 case $as_dir in #(
35454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35455 *) as_qdir=$as_dir;;
35456 esac
35457 as_dirs="'$as_qdir' $as_dirs"
35458 as_dir=`$as_dirname -- "$as_dir" ||
35459$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35460 X"$as_dir" : 'X\(//\)[^/]' \| \
35461 X"$as_dir" : 'X\(//\)$' \| \
35462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35463$as_echo X"$as_dir" |
35464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35465 s//\1/
35466 q
35467 }
35468 /^X\(\/\/\)[^/].*/{
35469 s//\1/
35470 q
35471 }
35472 /^X\(\/\/\)$/{
35473 s//\1/
35474 q
35475 }
35476 /^X\(\/\).*/{
35477 s//\1/
35478 q
35479 }
35480 s/.*/./; q'`
35481 test -d "$as_dir" && break
35482 done
35483 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035484 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035485
35486
35487} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035488if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035489 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035490else
35491 test -d ./-p && rmdir ./-p
35492 as_mkdir_p=false
35493fi
35494
cristy14fefe52012-05-21 00:59:18 +000035495
35496# as_fn_executable_p FILE
35497# -----------------------
35498# Test if FILE is an executable regular file.
35499as_fn_executable_p ()
35500{
35501 test -f "$1" && test -x "$1"
35502} # as_fn_executable_p
35503as_test_x='test -x'
35504as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035505
35506# Sed expression to map a string onto a valid CPP name.
35507as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35508
35509# Sed expression to map a string onto a valid variable name.
35510as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35511
35512
35513exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035514## ----------------------------------- ##
35515## Main body of $CONFIG_STATUS script. ##
35516## ----------------------------------- ##
35517_ASEOF
35518test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035519
cristy8b350f62009-11-15 23:12:43 +000035520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35521# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035522# report actual input values of CONFIG_FILES etc. instead of their
35523# values after options handling.
35524ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035525This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035526generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035527
35528 CONFIG_FILES = $CONFIG_FILES
35529 CONFIG_HEADERS = $CONFIG_HEADERS
35530 CONFIG_LINKS = $CONFIG_LINKS
35531 CONFIG_COMMANDS = $CONFIG_COMMANDS
35532 $ $0 $@
35533
35534on `(hostname || uname -n) 2>/dev/null | sed 1q`
35535"
35536
35537_ACEOF
35538
35539case $ac_config_files in *"
35540"*) set x $ac_config_files; shift; ac_config_files=$*;;
35541esac
35542
35543case $ac_config_headers in *"
35544"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35545esac
35546
35547
35548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35549# Files that config.status was made for.
35550config_files="$ac_config_files"
35551config_headers="$ac_config_headers"
35552config_commands="$ac_config_commands"
35553
35554_ACEOF
35555
35556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35557ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035558\`$as_me' instantiates files and other configuration actions
35559from templates according to the current configuration. Unless the files
35560and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035561
cristy8b350f62009-11-15 23:12:43 +000035562Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035563
35564 -h, --help print this help, then exit
35565 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035566 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035567 -q, --quiet, --silent
35568 do not print progress messages
35569 -d, --debug don't remove temporary files
35570 --recheck update $as_me by reconfiguring in the same conditions
35571 --file=FILE[:TEMPLATE]
35572 instantiate the configuration file FILE
35573 --header=FILE[:TEMPLATE]
35574 instantiate the configuration header FILE
35575
35576Configuration files:
35577$config_files
35578
35579Configuration headers:
35580$config_headers
35581
35582Configuration commands:
35583$config_commands
35584
cristy8b350f62009-11-15 23:12:43 +000035585Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035586
35587_ACEOF
35588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035589ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035590ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035591ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035592configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035593 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035594
cristy14fefe52012-05-21 00:59:18 +000035595Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035596This config.status script is free software; the Free Software Foundation
35597gives unlimited permission to copy, distribute and modify it."
35598
35599ac_pwd='$ac_pwd'
35600srcdir='$srcdir'
35601INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035602MKDIR_P='$MKDIR_P'
35603AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035604test -n "\$AWK" || AWK=awk
35605_ACEOF
35606
35607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35608# The default lists apply if the user does not specify any file.
35609ac_need_defaults=:
35610while test $# != 0
35611do
35612 case $1 in
cristyda16f162011-02-19 23:52:17 +000035613 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35616 ac_shift=:
35617 ;;
cristyda16f162011-02-19 23:52:17 +000035618 --*=)
35619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35620 ac_optarg=
35621 ac_shift=:
35622 ;;
cristy3ed852e2009-09-05 21:47:34 +000035623 *)
35624 ac_option=$1
35625 ac_optarg=$2
35626 ac_shift=shift
35627 ;;
35628 esac
35629
35630 case $ac_option in
35631 # Handling of the options.
35632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35633 ac_cs_recheck=: ;;
35634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35635 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035636 --config | --confi | --conf | --con | --co | --c )
35637 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035638 --debug | --debu | --deb | --de | --d | -d )
35639 debug=: ;;
35640 --file | --fil | --fi | --f )
35641 $ac_shift
35642 case $ac_optarg in
35643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035644 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035645 esac
cristy8b350f62009-11-15 23:12:43 +000035646 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035647 ac_need_defaults=false;;
35648 --header | --heade | --head | --hea )
35649 $ac_shift
35650 case $ac_optarg in
35651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35652 esac
cristy8b350f62009-11-15 23:12:43 +000035653 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035654 ac_need_defaults=false;;
35655 --he | --h)
35656 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035657 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035658Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035659 --help | --hel | -h )
35660 $as_echo "$ac_cs_usage"; exit ;;
35661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35663 ac_cs_silent=: ;;
35664
35665 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035666 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035667Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035668
cristy8b350f62009-11-15 23:12:43 +000035669 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035670 ac_need_defaults=false ;;
35671
35672 esac
35673 shift
35674done
35675
35676ac_configure_extra_args=
35677
35678if $ac_cs_silent; then
35679 exec 6>/dev/null
35680 ac_configure_extra_args="$ac_configure_extra_args --silent"
35681fi
35682
35683_ACEOF
35684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35685if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000035686 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000035687 shift
35688 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35689 CONFIG_SHELL='$SHELL'
35690 export CONFIG_SHELL
35691 exec "\$@"
35692fi
35693
35694_ACEOF
35695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35696exec 5>>config.log
35697{
35698 echo
35699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35700## Running $as_me. ##
35701_ASBOX
35702 $as_echo "$ac_log"
35703} >&5
35704
35705_ACEOF
35706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035707#
35708# INIT-COMMANDS
35709#
35710PACKAGE="$PACKAGE"
35711AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35712
35713
35714# The HP-UX ksh and POSIX shell print the target directory to stdout
35715# if CDPATH is set.
35716(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35717
35718sed_quote_subst='$sed_quote_subst'
35719double_quote_subst='$double_quote_subst'
35720delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035721SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35722Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35723GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35724EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35725FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35726SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35727ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35728LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35729macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35730macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35731AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35732DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35733OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35734enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35735enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35736pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35737enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000035738PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035739host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35740host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35741host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35742build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35743build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35744build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35745NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35746LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35747max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35748ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35749exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35750lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35751lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35752lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035753lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35754lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035755reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35756reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35757deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35758file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035759file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35760want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35761sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035762AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35763AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035764archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035765STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35766RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35767old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35768old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35769old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35770lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35771CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35772CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35773compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35774GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35775lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35776lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35777lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35778lt_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 +000035779nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35780lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035781objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35782MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35783lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035784lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035785lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035786lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35787lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35788need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035789MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035790DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35791NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35792LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35793OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35794OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35795libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35796shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35797extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35798archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35799enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35800export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35801whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35802compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35803old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35804old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35805archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35806archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35807module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35808module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35809with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35810allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35811no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35812hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035813hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35814hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35815hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35816hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35817hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35818hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35819inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35820link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035821always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35822export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35823exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35824include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35825prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035826postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035827file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35828variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35829need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35830need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35831version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35832runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35833shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35834shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35835libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35836library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35837soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35838install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35839postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35840postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35841finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35842finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35843hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35844sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35845sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35846hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35847enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35848enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35849enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35850old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35851striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35852compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35853predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35854postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35855predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35856postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35857compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35858LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35859reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35860reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35861old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35862compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35863GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35864lt_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 +000035865lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035866lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035867lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35868lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35869archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35870enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35871export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35872whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35873compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35874old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35875old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35876archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35877archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35878module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35879module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35880with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35881allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35882no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35883hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035884hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35885hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35886hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35887hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35888hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35889hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35890inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35891link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035892always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35893export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35894exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35895include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35896prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035897postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035898file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35899hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35900compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35901predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35902postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35903predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35904postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35905compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035906
35907LTCC='$LTCC'
35908LTCFLAGS='$LTCFLAGS'
35909compiler='$compiler_DEFAULT'
35910
cristy0c60a692010-11-04 01:09:47 +000035911# A function that is used when there is no print builtin or printf.
35912func_fallback_echo ()
35913{
35914 eval 'cat <<_LTECHO_EOF
35915\$1
35916_LTECHO_EOF'
35917}
35918
cristy73bd4a52010-10-05 11:24:23 +000035919# Quote evaled strings.
35920for var in SED \
35921GREP \
35922EGREP \
35923FGREP \
cristy0c60a692010-11-04 01:09:47 +000035924SHELL \
35925ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035926LD \
cristy0c60a692010-11-04 01:09:47 +000035927AS \
35928DLLTOOL \
35929OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000035930PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000035931NM \
35932LN_S \
35933lt_SP2NL \
35934lt_NL2SP \
35935reload_flag \
35936deplibs_check_method \
35937file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035938file_magic_glob \
35939want_nocaseglob \
35940sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035941AR \
35942AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035943archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035944STRIP \
35945RANLIB \
35946CC \
35947CFLAGS \
35948compiler \
35949lt_cv_sys_global_symbol_pipe \
35950lt_cv_sys_global_symbol_to_cdecl \
35951lt_cv_sys_global_symbol_to_c_name_address \
35952lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035953nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035954lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035955lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035956lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035957lt_prog_compiler_static \
35958lt_cv_prog_compiler_c_o \
35959need_locks \
cristyda16f162011-02-19 23:52:17 +000035960MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035961DSYMUTIL \
35962NMEDIT \
35963LIPO \
35964OTOOL \
35965OTOOL64 \
35966shrext_cmds \
35967export_dynamic_flag_spec \
35968whole_archive_flag_spec \
35969compiler_needs_object \
35970with_gnu_ld \
35971allow_undefined_flag \
35972no_undefined_flag \
35973hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000035974hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035975exclude_expsyms \
35976include_expsyms \
35977file_list_spec \
35978variables_saved_for_relink \
35979libname_spec \
35980library_names_spec \
35981soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035982install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035983finish_eval \
35984old_striplib \
35985striplib \
35986compiler_lib_search_dirs \
35987predep_objects \
35988postdep_objects \
35989predeps \
35990postdeps \
35991compiler_lib_search_path \
35992LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035993reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035994compiler_CXX \
35995lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035996lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035997lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035998lt_prog_compiler_static_CXX \
35999lt_cv_prog_compiler_c_o_CXX \
36000export_dynamic_flag_spec_CXX \
36001whole_archive_flag_spec_CXX \
36002compiler_needs_object_CXX \
36003with_gnu_ld_CXX \
36004allow_undefined_flag_CXX \
36005no_undefined_flag_CXX \
36006hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036007hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036008exclude_expsyms_CXX \
36009include_expsyms_CXX \
36010file_list_spec_CXX \
36011compiler_lib_search_dirs_CXX \
36012predep_objects_CXX \
36013postdep_objects_CXX \
36014predeps_CXX \
36015postdeps_CXX \
36016compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036017 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036018 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036019 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036020 ;;
36021 *)
36022 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36023 ;;
36024 esac
36025done
36026
36027# Double-quote double-evaled strings.
36028for var in reload_cmds \
36029old_postinstall_cmds \
36030old_postuninstall_cmds \
36031old_archive_cmds \
36032extract_expsyms_cmds \
36033old_archive_from_new_cmds \
36034old_archive_from_expsyms_cmds \
36035archive_cmds \
36036archive_expsym_cmds \
36037module_cmds \
36038module_expsym_cmds \
36039export_symbols_cmds \
36040prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036041postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036042postinstall_cmds \
36043postuninstall_cmds \
36044finish_cmds \
36045sys_lib_search_path_spec \
36046sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036047reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036048old_archive_cmds_CXX \
36049old_archive_from_new_cmds_CXX \
36050old_archive_from_expsyms_cmds_CXX \
36051archive_cmds_CXX \
36052archive_expsym_cmds_CXX \
36053module_cmds_CXX \
36054module_expsym_cmds_CXX \
36055export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036056prelink_cmds_CXX \
36057postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036058 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036059 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036061 ;;
36062 *)
36063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36064 ;;
36065 esac
36066done
36067
cristy73bd4a52010-10-05 11:24:23 +000036068ac_aux_dir='$ac_aux_dir'
36069xsi_shell='$xsi_shell'
36070lt_shell_append='$lt_shell_append'
36071
36072# See if we are running on zsh, and set the options which allow our
36073# commands through without removal of \ escapes INIT.
36074if test -n "\${ZSH_VERSION+set}" ; then
36075 setopt NO_GLOB_SUBST
36076fi
36077
36078
36079 PACKAGE='$PACKAGE'
36080 VERSION='$VERSION'
36081 TIMESTAMP='$TIMESTAMP'
36082 RM='$RM'
36083 ofile='$ofile'
36084
36085
36086
36087
36088
36089
cristy3ed852e2009-09-05 21:47:34 +000036090_ACEOF
36091
36092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36093
36094# Handling of arguments.
36095for ac_config_target in $ac_config_targets
36096do
36097 case $ac_config_target in
36098 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036099 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036100 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036101 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36102 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36103 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36104 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36105 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036106 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036107 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036108 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36109 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36110 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36111 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36112 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036113 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036114 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36115 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036116 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36117 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36118 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036119 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36120 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36121 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36122 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36123 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36124 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36125 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36126 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36127 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36128 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36129 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36130 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36131 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36132 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36133 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36134 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36135 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036136 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36137 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36139 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036140 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036141 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036142 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036143 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036144 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36145 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36146
cristy98dddb52010-11-04 00:30:15 +000036147 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036148 esac
36149done
36150
36151
36152# If the user did not use the arguments to specify the items to instantiate,
36153# then the envvar interface is used. Set only those that are not.
36154# We use the long form for the default assignment because of an extremely
36155# bizarre bug on SunOS 4.1.3.
36156if $ac_need_defaults; then
36157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36160fi
36161
36162# Have a temporary directory for convenience. Make it in the build tree
36163# simply because there is no reason against having it here, and in addition,
36164# creating and moving files from /tmp can sometimes cause problems.
36165# Hook for its removal unless debugging.
36166# Note that there is a small window in which the directory will not be cleaned:
36167# after its creation but before its name has been assigned to `$tmp'.
36168$debug ||
36169{
cristyda16f162011-02-19 23:52:17 +000036170 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036171 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036172 : "${ac_tmp:=$tmp}"
36173 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036174' 0
cristy8b350f62009-11-15 23:12:43 +000036175 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036176}
36177# Create a (secure) tmp directory for tmp files.
36178
36179{
36180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036181 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036182} ||
36183{
36184 tmp=./conf$$-$RANDOM
36185 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036186} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036187ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036188
36189# Set up the scripts for CONFIG_FILES section.
36190# No need to generate them if there are no CONFIG_FILES.
36191# This happens for instance with `./config.status config.h'.
36192if test -n "$CONFIG_FILES"; then
36193
36194
cristy8b350f62009-11-15 23:12:43 +000036195ac_cr=`echo X | tr X '\015'`
36196# On cygwin, bash can eat \r inside `` if the user requested igncr.
36197# But we know of no other shell where ac_cr would be empty at this
36198# point, so we can use a bashism as a fallback.
36199if test "x$ac_cr" = x; then
36200 eval ac_cr=\$\'\\r\'
36201fi
cristy3ed852e2009-09-05 21:47:34 +000036202ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36203if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036204 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036205else
36206 ac_cs_awk_cr=$ac_cr
36207fi
36208
cristyda16f162011-02-19 23:52:17 +000036209echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036210_ACEOF
36211
36212
36213{
36214 echo "cat >conf$$subs.awk <<_ACEOF" &&
36215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36216 echo "_ACEOF"
36217} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36219ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036220ac_delim='%!_!# '
36221for ac_last_try in false false false false false :; do
36222 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036224
36225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36226 if test $ac_delim_n = $ac_delim_num; then
36227 break
36228 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036230 else
36231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36232 fi
36233done
36234rm -f conf$$subs.sh
36235
36236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036237cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036238_ACEOF
36239sed -n '
36240h
36241s/^/S["/; s/!.*/"]=/
36242p
36243g
36244s/^[^!]*!//
36245:repl
36246t repl
36247s/'"$ac_delim"'$//
36248t delim
36249:nl
36250h
cristycd4c5312009-11-22 01:19:08 +000036251s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036252t more1
36253s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36254p
36255n
36256b repl
36257:more1
36258s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36259p
36260g
36261s/.\{148\}//
36262t nl
36263:delim
36264h
cristycd4c5312009-11-22 01:19:08 +000036265s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036266t more2
36267s/["\\]/\\&/g; s/^/"/; s/$/"/
36268p
36269b
36270:more2
36271s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36272p
36273g
36274s/.\{148\}//
36275t delim
36276' <conf$$subs.awk | sed '
36277/^[^""]/{
36278 N
36279 s/\n//
36280}
36281' >>$CONFIG_STATUS || ac_write_fail=1
36282rm -f conf$$subs.awk
36283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36284_ACAWK
cristyda16f162011-02-19 23:52:17 +000036285cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036286 for (key in S) S_is_set[key] = 1
36287 FS = ""
36288
36289}
36290{
36291 line = $ 0
36292 nfields = split(line, field, "@")
36293 substed = 0
36294 len = length(field[1])
36295 for (i = 2; i < nfields; i++) {
36296 key = field[i]
36297 keylen = length(key)
36298 if (S_is_set[key]) {
36299 value = S[key]
36300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36301 len += length(value) + length(field[++i])
36302 substed = 1
36303 } else
36304 len += 1 + keylen
36305 }
36306
36307 print line
36308}
36309
36310_ACAWK
36311_ACEOF
36312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36313if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36315else
36316 cat
cristyda16f162011-02-19 23:52:17 +000036317fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036318 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036319_ACEOF
36320
cristy98dddb52010-11-04 00:30:15 +000036321# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36322# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036323# trailing colons and then remove the whole line if VPATH becomes empty
36324# (actually we leave an empty line to preserve line numbers).
36325if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036326 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36327h
36328s///
36329s/^/:/
36330s/[ ]*$/:/
36331s/:\$(srcdir):/:/g
36332s/:\${srcdir}:/:/g
36333s/:@srcdir@:/:/g
36334s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036335s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036336x
36337s/\(=[ ]*\).*/\1/
36338G
36339s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036340s/^[^=]*=[ ]*$//
36341}'
36342fi
36343
36344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36345fi # test -n "$CONFIG_FILES"
36346
36347# Set up the scripts for CONFIG_HEADERS section.
36348# No need to generate them if there are no CONFIG_HEADERS.
36349# This happens for instance with `./config.status Makefile'.
36350if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036351cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036352BEGIN {
36353_ACEOF
36354
36355# Transform confdefs.h into an awk script `defines.awk', embedded as
36356# here-document in config.status, that substitutes the proper values into
36357# config.h.in to produce config.h.
36358
36359# Create a delimiter string that does not exist in confdefs.h, to ease
36360# handling of long lines.
36361ac_delim='%!_!# '
36362for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036363 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36364 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036365 break
36366 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036367 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036368 else
36369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36370 fi
36371done
36372
36373# For the awk script, D is an array of macro values keyed by name,
36374# likewise P contains macro parameters if any. Preserve backslash
36375# newline sequences.
36376
36377ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36378sed -n '
36379s/.\{148\}/&'"$ac_delim"'/g
36380t rset
36381:rset
36382s/^[ ]*#[ ]*define[ ][ ]*/ /
36383t def
36384d
36385:def
36386s/\\$//
36387t bsnl
36388s/["\\]/\\&/g
36389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36390D["\1"]=" \3"/p
36391s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36392d
36393:bsnl
36394s/["\\]/\\&/g
36395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36396D["\1"]=" \3\\\\\\n"\\/p
36397t cont
36398s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36399t cont
36400d
36401:cont
36402n
36403s/.\{148\}/&'"$ac_delim"'/g
36404t clear
36405:clear
36406s/\\$//
36407t bsnlc
36408s/["\\]/\\&/g; s/^/"/; s/$/"/p
36409d
36410:bsnlc
36411s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36412b cont
36413' <confdefs.h | sed '
36414s/'"$ac_delim"'/"\\\
36415"/g' >>$CONFIG_STATUS || ac_write_fail=1
36416
36417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36418 for (key in D) D_is_set[key] = 1
36419 FS = ""
36420}
36421/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36422 line = \$ 0
36423 split(line, arg, " ")
36424 if (arg[1] == "#") {
36425 defundef = arg[2]
36426 mac1 = arg[3]
36427 } else {
36428 defundef = substr(arg[1], 2)
36429 mac1 = arg[2]
36430 }
36431 split(mac1, mac2, "(") #)
36432 macro = mac2[1]
36433 prefix = substr(line, 1, index(line, defundef) - 1)
36434 if (D_is_set[macro]) {
36435 # Preserve the white space surrounding the "#".
36436 print prefix "define", macro P[macro] D[macro]
36437 next
36438 } else {
36439 # Replace #undef with comments. This is necessary, for example,
36440 # in the case of _POSIX_SOURCE, which is predefined and required
36441 # on some systems where configure will not decide to define it.
36442 if (defundef == "undef") {
36443 print "/*", prefix defundef, macro, "*/"
36444 next
36445 }
36446 }
36447}
36448{ print }
36449_ACAWK
36450_ACEOF
36451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036452 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036453fi # test -n "$CONFIG_HEADERS"
36454
36455
36456eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36457shift
36458for ac_tag
36459do
36460 case $ac_tag in
36461 :[FHLC]) ac_mode=$ac_tag; continue;;
36462 esac
36463 case $ac_mode$ac_tag in
36464 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036465 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036466 :[FH]-) ac_tag=-:-;;
36467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36468 esac
36469 ac_save_IFS=$IFS
36470 IFS=:
36471 set x $ac_tag
36472 IFS=$ac_save_IFS
36473 shift
36474 ac_file=$1
36475 shift
36476
36477 case $ac_mode in
36478 :L) ac_source=$1;;
36479 :[FH])
36480 ac_file_inputs=
36481 for ac_f
36482 do
36483 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036484 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036485 *) # Look for the file first in the build tree, then in the source tree
36486 # (if the path is not absolute). The absolute path cannot be DOS-style,
36487 # because $ac_f cannot contain `:'.
36488 test -f "$ac_f" ||
36489 case $ac_f in
36490 [\\/$]*) false;;
36491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36492 esac ||
cristy98dddb52010-11-04 00:30:15 +000036493 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036494 esac
36495 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036496 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036497 done
36498
36499 # Let's still pretend it is `configure' which instantiates (i.e., don't
36500 # use $as_me), people would be surprised to read:
36501 # /* config.h. Generated by config.status. */
36502 configure_input='Generated from '`
36503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36504 `' by configure.'
36505 if test x"$ac_file" != x-; then
36506 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036508$as_echo "$as_me: creating $ac_file" >&6;}
36509 fi
36510 # Neutralize special characters interpreted by sed in replacement strings.
36511 case $configure_input in #(
36512 *\&* | *\|* | *\\* )
36513 ac_sed_conf_input=`$as_echo "$configure_input" |
36514 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36515 *) ac_sed_conf_input=$configure_input;;
36516 esac
36517
36518 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036519 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036521 esac
36522 ;;
36523 esac
36524
36525 ac_dir=`$as_dirname -- "$ac_file" ||
36526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36527 X"$ac_file" : 'X\(//\)[^/]' \| \
36528 X"$ac_file" : 'X\(//\)$' \| \
36529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36530$as_echo X"$ac_file" |
36531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36532 s//\1/
36533 q
36534 }
36535 /^X\(\/\/\)[^/].*/{
36536 s//\1/
36537 q
36538 }
36539 /^X\(\/\/\)$/{
36540 s//\1/
36541 q
36542 }
36543 /^X\(\/\).*/{
36544 s//\1/
36545 q
36546 }
36547 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036548 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036549 ac_builddir=.
36550
36551case "$ac_dir" in
36552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36553*)
36554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36555 # A ".." for each directory in $ac_dir_suffix.
36556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36557 case $ac_top_builddir_sub in
36558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36560 esac ;;
36561esac
36562ac_abs_top_builddir=$ac_pwd
36563ac_abs_builddir=$ac_pwd$ac_dir_suffix
36564# for backward compatibility:
36565ac_top_builddir=$ac_top_build_prefix
36566
36567case $srcdir in
36568 .) # We are building in place.
36569 ac_srcdir=.
36570 ac_top_srcdir=$ac_top_builddir_sub
36571 ac_abs_top_srcdir=$ac_pwd ;;
36572 [\\/]* | ?:[\\/]* ) # Absolute name.
36573 ac_srcdir=$srcdir$ac_dir_suffix;
36574 ac_top_srcdir=$srcdir
36575 ac_abs_top_srcdir=$srcdir ;;
36576 *) # Relative name.
36577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36578 ac_top_srcdir=$ac_top_build_prefix$srcdir
36579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36580esac
36581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36582
36583
36584 case $ac_mode in
36585 :F)
36586 #
36587 # CONFIG_FILE
36588 #
36589
36590 case $INSTALL in
36591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36593 esac
cristy73bd4a52010-10-05 11:24:23 +000036594 ac_MKDIR_P=$MKDIR_P
36595 case $MKDIR_P in
36596 [\\/$]* | ?:[\\/]* ) ;;
36597 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36598 esac
cristy3ed852e2009-09-05 21:47:34 +000036599_ACEOF
36600
36601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36602# If the template does not know about datarootdir, expand it.
36603# FIXME: This hack should be removed a few years after 2.60.
36604ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036605ac_sed_dataroot='
36606/datarootdir/ {
36607 p
36608 q
36609}
36610/@datadir@/p
36611/@docdir@/p
36612/@infodir@/p
36613/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036614/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036615case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36616*datarootdir*) ac_datarootdir_seen=yes;;
36617*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036619$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36620_ACEOF
36621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36622 ac_datarootdir_hack='
36623 s&@datadir@&$datadir&g
36624 s&@docdir@&$docdir&g
36625 s&@infodir@&$infodir&g
36626 s&@localedir@&$localedir&g
36627 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036628 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036629esac
36630_ACEOF
36631
36632# Neutralize VPATH when `$srcdir' = `.'.
36633# Shell code in configure.ac might set extrasub.
36634# FIXME: do we really want to maintain this feature?
36635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36636ac_sed_extra="$ac_vpsub
36637$extrasub
36638_ACEOF
36639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36640:t
36641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36642s|@configure_input@|$ac_sed_conf_input|;t t
36643s&@top_builddir@&$ac_top_builddir_sub&;t t
36644s&@top_build_prefix@&$ac_top_build_prefix&;t t
36645s&@srcdir@&$ac_srcdir&;t t
36646s&@abs_srcdir@&$ac_abs_srcdir&;t t
36647s&@top_srcdir@&$ac_top_srcdir&;t t
36648s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36649s&@builddir@&$ac_builddir&;t t
36650s&@abs_builddir@&$ac_abs_builddir&;t t
36651s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36652s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036653s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036654$ac_datarootdir_hack
36655"
cristyda16f162011-02-19 23:52:17 +000036656eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36657 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036658
36659test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036660 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36661 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36662 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036664which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036665$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036666which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036667
cristyda16f162011-02-19 23:52:17 +000036668 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036669 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036670 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36671 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036672 esac \
cristy98dddb52010-11-04 00:30:15 +000036673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036674 ;;
36675 :H)
36676 #
36677 # CONFIG_HEADER
36678 #
36679 if test x"$ac_file" != x-; then
36680 {
36681 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36683 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036685 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036686 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036687$as_echo "$as_me: $ac_file is unchanged" >&6;}
36688 else
36689 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036690 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036692 fi
36693 else
36694 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036696 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036697 fi
cristy73bd4a52010-10-05 11:24:23 +000036698# Compute "$ac_file"'s index in $config_headers.
36699_am_arg="$ac_file"
36700_am_stamp_count=1
36701for _am_header in $config_headers :; do
36702 case $_am_header in
36703 $_am_arg | $_am_arg:* )
36704 break ;;
36705 * )
36706 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36707 esac
36708done
36709echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36710$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36711 X"$_am_arg" : 'X\(//\)[^/]' \| \
36712 X"$_am_arg" : 'X\(//\)$' \| \
36713 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36714$as_echo X"$_am_arg" |
36715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36716 s//\1/
36717 q
36718 }
36719 /^X\(\/\/\)[^/].*/{
36720 s//\1/
36721 q
36722 }
36723 /^X\(\/\/\)$/{
36724 s//\1/
36725 q
36726 }
36727 /^X\(\/\).*/{
36728 s//\1/
36729 q
36730 }
36731 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036732 ;;
36733
cristy8b350f62009-11-15 23:12:43 +000036734 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036735$as_echo "$as_me: executing $ac_file commands" >&6;}
36736 ;;
36737 esac
36738
36739
36740 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036741 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036742ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36743ac_prefix_conf_PKG=`echo MagickCore`
36744ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36745ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36746ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36747if test ".$ac_prefix_conf_INP" = "."; then
36748 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36749 case "$ac_file" in
36750 *.h) ac_prefix_conf_INP=$ac_file ;;
36751 *)
36752 esac
36753 test ".$ac_prefix_conf_INP" != "." && break
36754 done
36755fi
36756if test ".$ac_prefix_conf_INP" = "."; then
36757 case "$ac_prefix_conf_OUT" in
36758 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36759 ;;
36760 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36761 ;;
36762 *) ac_prefix_conf_INP=config.h
36763 ;;
36764 esac
36765fi
36766if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036767 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036768else
36769 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36770 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36771 fi fi
36772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36773$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36774 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036775 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36776 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36777 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36778 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36779 $as_echo "#endif/" >> conftest.prefix
36780 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36781 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36782 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036783 # now executing _script on _DEF input to create _OUT output file
36784 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36785 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36786 echo ' ' >>$tmp/pconfig.h
36787 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36788
36789 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36790 echo ' ' >>$tmp/pconfig.h
36791 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36792 echo "#endif" >>$tmp/pconfig.h
36793 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36795$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36796 else
36797 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36798$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36799 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36800 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36801 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36802$as_echo X"$ac_prefix_conf_OUT" |
36803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36804 s//\1/
36805 q
36806 }
36807 /^X\(\/\/\)[^/].*/{
36808 s//\1/
36809 q
36810 }
36811 /^X\(\/\/\)$/{
36812 s//\1/
36813 q
36814 }
36815 /^X\(\/\).*/{
36816 s//\1/
36817 q
36818 }
36819 s/.*/./; q'`
36820 as_dir="$ac_dir"; as_fn_mkdir_p
36821 rm -f "$ac_prefix_conf_OUT"
36822 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36823 fi
36824 cp conftest.prefix _configs.sed
36825 else
cristy98dddb52010-11-04 00:30:15 +000036826 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 +000036827 fi
36828 rm -f conftest.*
36829fi
36830 ;;
36831 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36832 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36833 # are listed without --file. Let's play safe and only enable the eval
36834 # if we detect the quoting.
36835 case $CONFIG_FILES in
36836 *\'*) eval set x "$CONFIG_FILES" ;;
36837 *) set x $CONFIG_FILES ;;
36838 esac
36839 shift
36840 for mf
36841 do
36842 # Strip MF so we end up with the name of the file.
36843 mf=`echo "$mf" | sed -e 's/:.*$//'`
36844 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000036845 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000036846 # some people rename them; so instead we look at the file content.
36847 # Grep'ing the first line is not enough: some people post-process
36848 # each Makefile.in and add a new line on top of each file to say so.
36849 # Grep'ing the whole file is not good either: AIX grep has a line
36850 # limit of 2048, but all sed's we know have understand at least 4000.
36851 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36852 dirpart=`$as_dirname -- "$mf" ||
36853$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36854 X"$mf" : 'X\(//\)[^/]' \| \
36855 X"$mf" : 'X\(//\)$' \| \
36856 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36857$as_echo X"$mf" |
36858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36859 s//\1/
36860 q
36861 }
36862 /^X\(\/\/\)[^/].*/{
36863 s//\1/
36864 q
36865 }
36866 /^X\(\/\/\)$/{
36867 s//\1/
36868 q
36869 }
36870 /^X\(\/\).*/{
36871 s//\1/
36872 q
36873 }
36874 s/.*/./; q'`
36875 else
36876 continue
36877 fi
36878 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000036879 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000036880 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36881 test -z "$DEPDIR" && continue
36882 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36883 test -z "am__include" && continue
36884 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000036885 # Find all dependency output files, they are included files with
36886 # $(DEPDIR) in their names. We invoke sed twice because it is the
36887 # simplest approach to changing $(DEPDIR) to its actual value in the
36888 # expansion.
36889 for file in `sed -n "
36890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000036891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000036892 # Make sure the directory exists.
36893 test -f "$dirpart/$file" && continue
36894 fdir=`$as_dirname -- "$file" ||
36895$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36896 X"$file" : 'X\(//\)[^/]' \| \
36897 X"$file" : 'X\(//\)$' \| \
36898 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36899$as_echo X"$file" |
36900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36901 s//\1/
36902 q
36903 }
36904 /^X\(\/\/\)[^/].*/{
36905 s//\1/
36906 q
36907 }
36908 /^X\(\/\/\)$/{
36909 s//\1/
36910 q
36911 }
36912 /^X\(\/\).*/{
36913 s//\1/
36914 q
36915 }
36916 s/.*/./; q'`
36917 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36918 # echo "creating $dirpart/$file"
36919 echo '# dummy' > "$dirpart/$file"
36920 done
36921 done
36922}
36923 ;;
36924 "libtool":C)
36925
36926 # See if we are running on zsh, and set the options which allow our
36927 # commands through without removal of \ escapes.
36928 if test -n "${ZSH_VERSION+set}" ; then
36929 setopt NO_GLOB_SUBST
36930 fi
36931
36932 cfgfile="${ofile}T"
36933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36934 $RM "$cfgfile"
36935
36936 cat <<_LT_EOF >> "$cfgfile"
36937#! $SHELL
36938
36939# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36940# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36941# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36942# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36943#
36944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000036945# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36946# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000036947# Written by Gordon Matzigkeit, 1996
36948#
36949# This file is part of GNU Libtool.
36950#
36951# GNU Libtool is free software; you can redistribute it and/or
36952# modify it under the terms of the GNU General Public License as
36953# published by the Free Software Foundation; either version 2 of
36954# the License, or (at your option) any later version.
36955#
36956# As a special exception to the GNU General Public License,
36957# if you distribute this file as part of a program or library that
36958# is built using GNU Libtool, you may include this file under the
36959# same distribution terms that you use for the rest of that program.
36960#
36961# GNU Libtool is distributed in the hope that it will be useful,
36962# but WITHOUT ANY WARRANTY; without even the implied warranty of
36963# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36964# GNU General Public License for more details.
36965#
36966# You should have received a copy of the GNU General Public License
36967# along with GNU Libtool; see the file COPYING. If not, a copy
36968# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36969# obtained by writing to the Free Software Foundation, Inc.,
36970# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36971
36972
36973# The names of the tagged configurations supported by this script.
36974available_tags="CXX "
36975
36976# ### BEGIN LIBTOOL CONFIG
36977
36978# A sed program that does not truncate output.
36979SED=$lt_SED
36980
36981# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36982Xsed="\$SED -e 1s/^X//"
36983
36984# A grep program that handles long lines.
36985GREP=$lt_GREP
36986
36987# An ERE matcher.
36988EGREP=$lt_EGREP
36989
36990# A literal string matcher.
36991FGREP=$lt_FGREP
36992
cristy0c60a692010-11-04 01:09:47 +000036993# Shell to use when invoking shell scripts.
36994SHELL=$lt_SHELL
36995
36996# An echo program that protects backslashes.
36997ECHO=$lt_ECHO
36998
cristy73bd4a52010-10-05 11:24:23 +000036999# Which release of libtool.m4 was used?
37000macro_version=$macro_version
37001macro_revision=$macro_revision
37002
37003# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037004AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037005
37006# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037007DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037008
37009# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037010OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037011
37012# Whether or not to build shared libraries.
37013build_libtool_libs=$enable_shared
37014
37015# Whether or not to build static libraries.
37016build_old_libs=$enable_static
37017
37018# What type of objects to build.
37019pic_mode=$pic_mode
37020
37021# Whether or not to optimize for fast installation.
37022fast_install=$enable_fast_install
37023
cristy99bd5232011-12-07 14:38:20 +000037024# The PATH separator for the build system.
37025PATH_SEPARATOR=$lt_PATH_SEPARATOR
37026
cristy73bd4a52010-10-05 11:24:23 +000037027# The host system.
37028host_alias=$host_alias
37029host=$host
37030host_os=$host_os
37031
37032# The build system.
37033build_alias=$build_alias
37034build=$build
37035build_os=$build_os
37036
37037# A BSD- or MS-compatible name lister.
37038NM=$lt_NM
37039
37040# Whether we need soft or hard links.
37041LN_S=$lt_LN_S
37042
37043# What is the maximum length of a command?
37044max_cmd_len=$max_cmd_len
37045
37046# Object file suffix (normally "o").
37047objext=$ac_objext
37048
37049# Executable file suffix (normally "").
37050exeext=$exeext
37051
37052# whether the shell understands "unset".
37053lt_unset=$lt_unset
37054
37055# turn spaces into newlines.
37056SP2NL=$lt_lt_SP2NL
37057
37058# turn newlines into spaces.
37059NL2SP=$lt_lt_NL2SP
37060
cristyda16f162011-02-19 23:52:17 +000037061# convert \$build file names to \$host format.
37062to_host_file_cmd=$lt_cv_to_host_file_cmd
37063
37064# convert \$build files to toolchain format.
37065to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37066
cristy73bd4a52010-10-05 11:24:23 +000037067# Method to check whether dependent libraries are shared objects.
37068deplibs_check_method=$lt_deplibs_check_method
37069
cristyda16f162011-02-19 23:52:17 +000037070# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037071file_magic_cmd=$lt_file_magic_cmd
37072
cristyda16f162011-02-19 23:52:17 +000037073# How to find potential files when deplibs_check_method = "file_magic".
37074file_magic_glob=$lt_file_magic_glob
37075
37076# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37077want_nocaseglob=$lt_want_nocaseglob
37078
37079# Command to associate shared and link libraries.
37080sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37081
cristy73bd4a52010-10-05 11:24:23 +000037082# The archiver.
37083AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037084
37085# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037086AR_FLAGS=$lt_AR_FLAGS
37087
cristyda16f162011-02-19 23:52:17 +000037088# How to feed a file listing to the archiver.
37089archiver_list_spec=$lt_archiver_list_spec
37090
cristy73bd4a52010-10-05 11:24:23 +000037091# A symbol stripping program.
37092STRIP=$lt_STRIP
37093
37094# Commands used to install an old-style archive.
37095RANLIB=$lt_RANLIB
37096old_postinstall_cmds=$lt_old_postinstall_cmds
37097old_postuninstall_cmds=$lt_old_postuninstall_cmds
37098
cristy0c60a692010-11-04 01:09:47 +000037099# Whether to use a lock for old archive extraction.
37100lock_old_archive_extraction=$lock_old_archive_extraction
37101
cristy73bd4a52010-10-05 11:24:23 +000037102# A C compiler.
37103LTCC=$lt_CC
37104
37105# LTCC compiler flags.
37106LTCFLAGS=$lt_CFLAGS
37107
37108# Take the output of nm and produce a listing of raw symbols and C names.
37109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37110
37111# Transform the output of nm in a proper C declaration.
37112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37113
37114# Transform the output of nm in a C name address pair.
37115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37116
37117# Transform the output of nm in a C name address pair when lib prefix is needed.
37118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37119
cristyda16f162011-02-19 23:52:17 +000037120# Specify filename containing input files for \$NM.
37121nm_file_list_spec=$lt_nm_file_list_spec
37122
37123# The root where to search for dependent libraries,and in which our libraries should be installed.
37124lt_sysroot=$lt_sysroot
37125
cristy73bd4a52010-10-05 11:24:23 +000037126# The name of the directory that contains temporary libtool files.
37127objdir=$objdir
37128
cristy73bd4a52010-10-05 11:24:23 +000037129# Used to examine libraries when file_magic_cmd begins with "file".
37130MAGIC_CMD=$MAGIC_CMD
37131
37132# Must we lock files when doing compilation?
37133need_locks=$lt_need_locks
37134
cristyda16f162011-02-19 23:52:17 +000037135# Manifest tool.
37136MANIFEST_TOOL=$lt_MANIFEST_TOOL
37137
cristy73bd4a52010-10-05 11:24:23 +000037138# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37139DSYMUTIL=$lt_DSYMUTIL
37140
37141# Tool to change global to local symbols on Mac OS X.
37142NMEDIT=$lt_NMEDIT
37143
37144# Tool to manipulate fat objects and archives on Mac OS X.
37145LIPO=$lt_LIPO
37146
37147# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37148OTOOL=$lt_OTOOL
37149
37150# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37151OTOOL64=$lt_OTOOL64
37152
37153# Old archive suffix (normally "a").
37154libext=$libext
37155
37156# Shared library suffix (normally ".so").
37157shrext_cmds=$lt_shrext_cmds
37158
37159# The commands to extract the exported symbol list from a shared archive.
37160extract_expsyms_cmds=$lt_extract_expsyms_cmds
37161
37162# Variables whose values should be saved in libtool wrapper scripts and
37163# restored at link time.
37164variables_saved_for_relink=$lt_variables_saved_for_relink
37165
37166# Do we need the "lib" prefix for modules?
37167need_lib_prefix=$need_lib_prefix
37168
37169# Do we need a version for libraries?
37170need_version=$need_version
37171
37172# Library versioning type.
37173version_type=$version_type
37174
37175# Shared library runtime path variable.
37176runpath_var=$runpath_var
37177
37178# Shared library path variable.
37179shlibpath_var=$shlibpath_var
37180
37181# Is shlibpath searched before the hard-coded library search path?
37182shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37183
37184# Format of library name prefix.
37185libname_spec=$lt_libname_spec
37186
37187# List of archive names. First name is the real one, the rest are links.
37188# The last name is the one that the linker finds with -lNAME
37189library_names_spec=$lt_library_names_spec
37190
37191# The coded name of the library, if different from the real name.
37192soname_spec=$lt_soname_spec
37193
cristy0c60a692010-11-04 01:09:47 +000037194# Permission mode override for installation of shared libraries.
37195install_override_mode=$lt_install_override_mode
37196
cristy73bd4a52010-10-05 11:24:23 +000037197# Command to use after installation of a shared archive.
37198postinstall_cmds=$lt_postinstall_cmds
37199
37200# Command to use after uninstallation of a shared archive.
37201postuninstall_cmds=$lt_postuninstall_cmds
37202
37203# Commands used to finish a libtool library installation in a directory.
37204finish_cmds=$lt_finish_cmds
37205
37206# As "finish_cmds", except a single script fragment to be evaled but
37207# not shown.
37208finish_eval=$lt_finish_eval
37209
37210# Whether we should hardcode library paths into libraries.
37211hardcode_into_libs=$hardcode_into_libs
37212
37213# Compile-time system search path for libraries.
37214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37215
37216# Run-time system search path for libraries.
37217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37218
37219# Whether dlopen is supported.
37220dlopen_support=$enable_dlopen
37221
37222# Whether dlopen of programs is supported.
37223dlopen_self=$enable_dlopen_self
37224
37225# Whether dlopen of statically linked programs is supported.
37226dlopen_self_static=$enable_dlopen_self_static
37227
37228# Commands to strip libraries.
37229old_striplib=$lt_old_striplib
37230striplib=$lt_striplib
37231
37232
37233# The linker used to build libraries.
37234LD=$lt_LD
37235
cristy0c60a692010-11-04 01:09:47 +000037236# How to create reloadable object files.
37237reload_flag=$lt_reload_flag
37238reload_cmds=$lt_reload_cmds
37239
cristy73bd4a52010-10-05 11:24:23 +000037240# Commands used to build an old-style archive.
37241old_archive_cmds=$lt_old_archive_cmds
37242
37243# A language specific compiler.
37244CC=$lt_compiler
37245
37246# Is the compiler the GNU compiler?
37247with_gcc=$GCC
37248
37249# Compiler flag to turn off builtin functions.
37250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37251
cristy73bd4a52010-10-05 11:24:23 +000037252# Additional compiler flags for building library objects.
37253pic_flag=$lt_lt_prog_compiler_pic
37254
cristyda16f162011-02-19 23:52:17 +000037255# How to pass a linker flag through the compiler.
37256wl=$lt_lt_prog_compiler_wl
37257
cristy73bd4a52010-10-05 11:24:23 +000037258# Compiler flag to prevent dynamic linking.
37259link_static_flag=$lt_lt_prog_compiler_static
37260
37261# Does compiler simultaneously support -c and -o options?
37262compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37263
37264# Whether or not to add -lc for building shared libraries.
37265build_libtool_need_lc=$archive_cmds_need_lc
37266
37267# Whether or not to disallow shared libs when runtime libs are static.
37268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37269
37270# Compiler flag to allow reflexive dlopens.
37271export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37272
37273# Compiler flag to generate shared objects directly from archives.
37274whole_archive_flag_spec=$lt_whole_archive_flag_spec
37275
37276# Whether the compiler copes with passing no objects directly.
37277compiler_needs_object=$lt_compiler_needs_object
37278
37279# Create an old-style archive from a shared archive.
37280old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37281
37282# Create a temporary old-style archive to link instead of a shared archive.
37283old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37284
37285# Commands used to build a shared archive.
37286archive_cmds=$lt_archive_cmds
37287archive_expsym_cmds=$lt_archive_expsym_cmds
37288
37289# Commands used to build a loadable module if different from building
37290# a shared archive.
37291module_cmds=$lt_module_cmds
37292module_expsym_cmds=$lt_module_expsym_cmds
37293
37294# Whether we are building with GNU ld or not.
37295with_gnu_ld=$lt_with_gnu_ld
37296
37297# Flag that allows shared libraries with undefined symbols to be built.
37298allow_undefined_flag=$lt_allow_undefined_flag
37299
37300# Flag that enforces no undefined symbols.
37301no_undefined_flag=$lt_no_undefined_flag
37302
37303# Flag to hardcode \$libdir into a binary during linking.
37304# This must work even if \$libdir does not exist
37305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37306
cristy73bd4a52010-10-05 11:24:23 +000037307# Whether we need a single "-rpath" flag with a separated argument.
37308hardcode_libdir_separator=$lt_hardcode_libdir_separator
37309
37310# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37311# DIR into the resulting binary.
37312hardcode_direct=$hardcode_direct
37313
37314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37315# DIR into the resulting binary and the resulting library dependency is
37316# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37317# library is relocated.
37318hardcode_direct_absolute=$hardcode_direct_absolute
37319
37320# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37321# into the resulting binary.
37322hardcode_minus_L=$hardcode_minus_L
37323
37324# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37325# into the resulting binary.
37326hardcode_shlibpath_var=$hardcode_shlibpath_var
37327
37328# Set to "yes" if building a shared library automatically hardcodes DIR
37329# into the library and all subsequent libraries and executables linked
37330# against it.
37331hardcode_automatic=$hardcode_automatic
37332
37333# Set to yes if linker adds runtime paths of dependent libraries
37334# to runtime path list.
37335inherit_rpath=$inherit_rpath
37336
37337# Whether libtool must link a program against all its dependency libraries.
37338link_all_deplibs=$link_all_deplibs
37339
cristy73bd4a52010-10-05 11:24:23 +000037340# Set to "yes" if exported symbols are required.
37341always_export_symbols=$always_export_symbols
37342
37343# The commands to list exported symbols.
37344export_symbols_cmds=$lt_export_symbols_cmds
37345
37346# Symbols that should not be listed in the preloaded symbols.
37347exclude_expsyms=$lt_exclude_expsyms
37348
37349# Symbols that must always be exported.
37350include_expsyms=$lt_include_expsyms
37351
37352# Commands necessary for linking programs (against libraries) with templates.
37353prelink_cmds=$lt_prelink_cmds
37354
cristyda16f162011-02-19 23:52:17 +000037355# Commands necessary for finishing linking programs.
37356postlink_cmds=$lt_postlink_cmds
37357
cristy73bd4a52010-10-05 11:24:23 +000037358# Specify filename containing input files.
37359file_list_spec=$lt_file_list_spec
37360
37361# How to hardcode a shared library path into an executable.
37362hardcode_action=$hardcode_action
37363
37364# The directories searched by this compiler when creating a shared library.
37365compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37366
37367# Dependencies to place before and after the objects being linked to
37368# create a shared library.
37369predep_objects=$lt_predep_objects
37370postdep_objects=$lt_postdep_objects
37371predeps=$lt_predeps
37372postdeps=$lt_postdeps
37373
37374# The library search path used internally by the compiler when linking
37375# a shared library.
37376compiler_lib_search_path=$lt_compiler_lib_search_path
37377
37378# ### END LIBTOOL CONFIG
37379
37380_LT_EOF
37381
37382 case $host_os in
37383 aix3*)
37384 cat <<\_LT_EOF >> "$cfgfile"
37385# AIX sometimes has problems with the GCC collect2 program. For some
37386# reason, if we set the COLLECT_NAMES environment variable, the problems
37387# vanish in a puff of smoke.
37388if test "X${COLLECT_NAMES+set}" != Xset; then
37389 COLLECT_NAMES=
37390 export COLLECT_NAMES
37391fi
37392_LT_EOF
37393 ;;
37394 esac
37395
37396
37397ltmain="$ac_aux_dir/ltmain.sh"
37398
37399
37400 # We use sed instead of cat because bash on DJGPP gets confused if
37401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37402 # text mode, it properly converts lines to CR/LF. This bash problem
37403 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037404 sed '$q' "$ltmain" >> "$cfgfile" \
37405 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037406
cristyda16f162011-02-19 23:52:17 +000037407 if test x"$xsi_shell" = xyes; then
37408 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37409func_dirname ()\
37410{\
37411\ case ${1} in\
37412\ */*) func_dirname_result="${1%/*}${2}" ;;\
37413\ * ) func_dirname_result="${3}" ;;\
37414\ esac\
37415} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37416 && mv -f "$cfgfile.tmp" "$cfgfile" \
37417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37418test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037419
37420
cristyda16f162011-02-19 23:52:17 +000037421 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37422func_basename ()\
37423{\
37424\ func_basename_result="${1##*/}"\
37425} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37426 && mv -f "$cfgfile.tmp" "$cfgfile" \
37427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37428test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037429
37430
cristyda16f162011-02-19 23:52:17 +000037431 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37432func_dirname_and_basename ()\
37433{\
37434\ case ${1} in\
37435\ */*) func_dirname_result="${1%/*}${2}" ;;\
37436\ * ) func_dirname_result="${3}" ;;\
37437\ esac\
37438\ func_basename_result="${1##*/}"\
37439} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37440 && mv -f "$cfgfile.tmp" "$cfgfile" \
37441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37442test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037443
cristyda16f162011-02-19 23:52:17 +000037444
37445 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37446func_stripname ()\
37447{\
37448\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37449\ # positional parameters, so assign one to ordinary parameter first.\
37450\ func_stripname_result=${3}\
37451\ func_stripname_result=${func_stripname_result#"${1}"}\
37452\ func_stripname_result=${func_stripname_result%"${2}"}\
37453} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37454 && mv -f "$cfgfile.tmp" "$cfgfile" \
37455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37456test 0 -eq $? || _lt_function_replace_fail=:
37457
37458
37459 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37460func_split_long_opt ()\
37461{\
37462\ func_split_long_opt_name=${1%%=*}\
37463\ func_split_long_opt_arg=${1#*=}\
37464} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37465 && mv -f "$cfgfile.tmp" "$cfgfile" \
37466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37467test 0 -eq $? || _lt_function_replace_fail=:
37468
37469
37470 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37471func_split_short_opt ()\
37472{\
37473\ func_split_short_opt_arg=${1#??}\
37474\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37475} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37476 && mv -f "$cfgfile.tmp" "$cfgfile" \
37477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37478test 0 -eq $? || _lt_function_replace_fail=:
37479
37480
37481 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37482func_lo2o ()\
37483{\
37484\ case ${1} in\
37485\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37486\ *) func_lo2o_result=${1} ;;\
37487\ esac\
37488} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37489 && mv -f "$cfgfile.tmp" "$cfgfile" \
37490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37491test 0 -eq $? || _lt_function_replace_fail=:
37492
37493
37494 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37495func_xform ()\
37496{\
37497 func_xform_result=${1%.*}.lo\
37498} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37499 && mv -f "$cfgfile.tmp" "$cfgfile" \
37500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37501test 0 -eq $? || _lt_function_replace_fail=:
37502
37503
37504 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37505func_arith ()\
37506{\
37507 func_arith_result=$(( $* ))\
37508} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37509 && mv -f "$cfgfile.tmp" "$cfgfile" \
37510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37511test 0 -eq $? || _lt_function_replace_fail=:
37512
37513
37514 sed -e '/^func_len ()$/,/^} # func_len /c\
37515func_len ()\
37516{\
37517 func_len_result=${#1}\
37518} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37519 && mv -f "$cfgfile.tmp" "$cfgfile" \
37520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37521test 0 -eq $? || _lt_function_replace_fail=:
37522
37523fi
37524
37525if test x"$lt_shell_append" = xyes; then
37526 sed -e '/^func_append ()$/,/^} # func_append /c\
37527func_append ()\
37528{\
37529 eval "${1}+=\\${2}"\
37530} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37531 && mv -f "$cfgfile.tmp" "$cfgfile" \
37532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37533test 0 -eq $? || _lt_function_replace_fail=:
37534
37535
37536 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37537func_append_quoted ()\
37538{\
37539\ func_quote_for_eval "${2}"\
37540\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37541} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37542 && mv -f "$cfgfile.tmp" "$cfgfile" \
37543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37544test 0 -eq $? || _lt_function_replace_fail=:
37545
37546
37547 # Save a `func_append' function call where possible by direct use of '+='
37548 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37549 && mv -f "$cfgfile.tmp" "$cfgfile" \
37550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37551 test 0 -eq $? || _lt_function_replace_fail=:
37552else
37553 # Save a `func_append' function call even when '+=' is not available
37554 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37555 && mv -f "$cfgfile.tmp" "$cfgfile" \
37556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37557 test 0 -eq $? || _lt_function_replace_fail=:
37558fi
37559
37560if test x"$_lt_function_replace_fail" = x":"; then
37561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37562$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37563fi
37564
37565
37566 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37568 chmod +x "$ofile"
37569
37570
37571 cat <<_LT_EOF >> "$ofile"
37572
37573# ### BEGIN LIBTOOL TAG CONFIG: CXX
37574
37575# The linker used to build libraries.
37576LD=$lt_LD_CXX
37577
cristy0c60a692010-11-04 01:09:47 +000037578# How to create reloadable object files.
37579reload_flag=$lt_reload_flag_CXX
37580reload_cmds=$lt_reload_cmds_CXX
37581
cristy73bd4a52010-10-05 11:24:23 +000037582# Commands used to build an old-style archive.
37583old_archive_cmds=$lt_old_archive_cmds_CXX
37584
37585# A language specific compiler.
37586CC=$lt_compiler_CXX
37587
37588# Is the compiler the GNU compiler?
37589with_gcc=$GCC_CXX
37590
37591# Compiler flag to turn off builtin functions.
37592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37593
cristy73bd4a52010-10-05 11:24:23 +000037594# Additional compiler flags for building library objects.
37595pic_flag=$lt_lt_prog_compiler_pic_CXX
37596
cristyda16f162011-02-19 23:52:17 +000037597# How to pass a linker flag through the compiler.
37598wl=$lt_lt_prog_compiler_wl_CXX
37599
cristy73bd4a52010-10-05 11:24:23 +000037600# Compiler flag to prevent dynamic linking.
37601link_static_flag=$lt_lt_prog_compiler_static_CXX
37602
37603# Does compiler simultaneously support -c and -o options?
37604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37605
37606# Whether or not to add -lc for building shared libraries.
37607build_libtool_need_lc=$archive_cmds_need_lc_CXX
37608
37609# Whether or not to disallow shared libs when runtime libs are static.
37610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37611
37612# Compiler flag to allow reflexive dlopens.
37613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37614
37615# Compiler flag to generate shared objects directly from archives.
37616whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37617
37618# Whether the compiler copes with passing no objects directly.
37619compiler_needs_object=$lt_compiler_needs_object_CXX
37620
37621# Create an old-style archive from a shared archive.
37622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37623
37624# Create a temporary old-style archive to link instead of a shared archive.
37625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37626
37627# Commands used to build a shared archive.
37628archive_cmds=$lt_archive_cmds_CXX
37629archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37630
37631# Commands used to build a loadable module if different from building
37632# a shared archive.
37633module_cmds=$lt_module_cmds_CXX
37634module_expsym_cmds=$lt_module_expsym_cmds_CXX
37635
37636# Whether we are building with GNU ld or not.
37637with_gnu_ld=$lt_with_gnu_ld_CXX
37638
37639# Flag that allows shared libraries with undefined symbols to be built.
37640allow_undefined_flag=$lt_allow_undefined_flag_CXX
37641
37642# Flag that enforces no undefined symbols.
37643no_undefined_flag=$lt_no_undefined_flag_CXX
37644
37645# Flag to hardcode \$libdir into a binary during linking.
37646# This must work even if \$libdir does not exist
37647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37648
cristy73bd4a52010-10-05 11:24:23 +000037649# Whether we need a single "-rpath" flag with a separated argument.
37650hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37651
37652# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37653# DIR into the resulting binary.
37654hardcode_direct=$hardcode_direct_CXX
37655
37656# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37657# DIR into the resulting binary and the resulting library dependency is
37658# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37659# library is relocated.
37660hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37661
37662# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37663# into the resulting binary.
37664hardcode_minus_L=$hardcode_minus_L_CXX
37665
37666# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37667# into the resulting binary.
37668hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37669
37670# Set to "yes" if building a shared library automatically hardcodes DIR
37671# into the library and all subsequent libraries and executables linked
37672# against it.
37673hardcode_automatic=$hardcode_automatic_CXX
37674
37675# Set to yes if linker adds runtime paths of dependent libraries
37676# to runtime path list.
37677inherit_rpath=$inherit_rpath_CXX
37678
37679# Whether libtool must link a program against all its dependency libraries.
37680link_all_deplibs=$link_all_deplibs_CXX
37681
cristy73bd4a52010-10-05 11:24:23 +000037682# Set to "yes" if exported symbols are required.
37683always_export_symbols=$always_export_symbols_CXX
37684
37685# The commands to list exported symbols.
37686export_symbols_cmds=$lt_export_symbols_cmds_CXX
37687
37688# Symbols that should not be listed in the preloaded symbols.
37689exclude_expsyms=$lt_exclude_expsyms_CXX
37690
37691# Symbols that must always be exported.
37692include_expsyms=$lt_include_expsyms_CXX
37693
37694# Commands necessary for linking programs (against libraries) with templates.
37695prelink_cmds=$lt_prelink_cmds_CXX
37696
cristyda16f162011-02-19 23:52:17 +000037697# Commands necessary for finishing linking programs.
37698postlink_cmds=$lt_postlink_cmds_CXX
37699
cristy73bd4a52010-10-05 11:24:23 +000037700# Specify filename containing input files.
37701file_list_spec=$lt_file_list_spec_CXX
37702
37703# How to hardcode a shared library path into an executable.
37704hardcode_action=$hardcode_action_CXX
37705
37706# The directories searched by this compiler when creating a shared library.
37707compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37708
37709# Dependencies to place before and after the objects being linked to
37710# create a shared library.
37711predep_objects=$lt_predep_objects_CXX
37712postdep_objects=$lt_postdep_objects_CXX
37713predeps=$lt_predeps_CXX
37714postdeps=$lt_postdeps_CXX
37715
37716# The library search path used internally by the compiler when linking
37717# a shared library.
37718compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37719
37720# ### END LIBTOOL TAG CONFIG: CXX
37721_LT_EOF
37722
37723 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037724 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000037725 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037726 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037727 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37728 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37729
37730 esac
37731done # for ac_tag
37732
37733
cristy8b350f62009-11-15 23:12:43 +000037734as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037735_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037736ac_clean_files=$ac_clean_files_save
37737
37738test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037739 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037740
37741
37742# configure is writing to config.log, and then calls config.status.
37743# config.status does its own redirection, appending to config.log.
37744# Unfortunately, on DOS this fails, as config.log is still kept open
37745# by configure, so config.status won't be able to write to it; its
37746# output is simply discarded. So we exec the FD to /dev/null,
37747# effectively closing config.log, so it can be properly (re)opened and
37748# appended to by config.status. When coming back to configure, we
37749# need to make the FD available again.
37750if test "$no_create" != yes; then
37751 ac_cs_success=:
37752 ac_config_status_args=
37753 test "$silent" = yes &&
37754 ac_config_status_args="$ac_config_status_args --quiet"
37755 exec 5>/dev/null
37756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37757 exec 5>>config.log
37758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37759 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037760 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037761fi
37762if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037764$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37765fi
37766
37767
37768rm -f magick-version
37769
cristy430a7312010-01-21 20:44:04 +000037770result_dejavu_font_dir='none'
37771if test "${dejavu_font_dir}x" != 'x'; then
37772 result_dejavu_font_dir=$dejavu_font_dir
37773fi
37774
cristy3ed852e2009-09-05 21:47:34 +000037775result_ghostscript_font_dir='none'
37776if test "${ghostscript_font_dir}x" != 'x'; then
37777 result_ghostscript_font_dir=$ghostscript_font_dir
37778fi
37779
37780result_windows_font_dir='none'
37781if test "${windows_font_dir}x" != 'x'; then
37782 result_windows_font_dir=${windows_font_dir}
37783fi
37784
cristy09b53e12011-10-14 12:47:22 +000037785{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000037786ImageMagick is configured as follows. Please verify that this configuration
37787matches your expectations.
37788
37789Host system type: $host
37790Build system type: $build
37791
37792 Option Value
37793-------------------------------------------------------------------------------
37794Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37795Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000037796Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000037797GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37798Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37799High Dynamic Range Imagery
37800 --enable-hdri=$enable_hdri $enable_hdri
37801
37802Delegate Configuration:
37803BZLIB --with-bzlib=$with_bzlib $have_bzlib
37804Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037805Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037806DJVU --with-djvu=$with_djvu $have_djvu
37807DPS --with-dps=$with_dps $have_dps
37808FFTW --with-fftw=$with_fftw $have_fftw
37809FlashPIX --with-fpx=$with_fpx $have_fpx
37810FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37811FreeType --with-freetype=$with_freetype $have_freetype
37812GhostPCL None $PCLDelegate ($PCLVersion)
37813GhostXPS None $XPSDelegate ($XPSVersion)
37814Ghostscript None $PSDelegate ($GSVersion)
37815Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37816Ghostscript lib --with-gslib=$with_gslib $have_gslib
37817Graphviz --with-gvc=$with_gvc $have_gvc
37818JBIG --with-jbig=$with_jbig $have_jbig
37819JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37820JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037821LCMS v1 --with-lcms=$with_lcms $have_lcms
37822LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037823LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000037824LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000037825LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037826Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37827OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000037828PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000037829PERL --with-perl=$with_perl $have_perl
37830PNG --with-png=$with_png $have_png
37831RSVG --with-rsvg=$with_rsvg $have_rsvg
37832TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037833WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037834Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000037835WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000037836X11 --with-x=$with_x $have_x
37837XML --with-xml=$with_xml $have_xml
37838ZLIB --with-zlib=$with_zlib $have_zlib
37839
37840X11 Configuration:
37841 X_CFLAGS = $X_CFLAGS
37842 X_PRE_LIBS = $X_PRE_LIBS
37843 X_LIBS = $X_LIBS
37844 X_EXTRA_LIBS = $X_EXTRA_LIBS
37845
37846Options used to compile and link:
37847 PREFIX = $PREFIX_DIR
37848 EXEC-PREFIX = $EXEC_PREFIX_DIR
37849 VERSION = $PACKAGE_VERSION
37850 CC = $CC
37851 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037852 CPPFLAGS = $MAGICK_CPPFLAGS
37853 PCFLAGS = $MAGICK_PCFLAGS
37854 DEFS = $DEFS
37855 LDFLAGS = $LDFLAGS
37856 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37857 LIBS = $MAGICK_LIBS
37858 CXX = $CXX
37859 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037860 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037861" >&5
cristy09b53e12011-10-14 12:47:22 +000037862$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000037863ImageMagick is configured as follows. Please verify that this configuration
37864matches your expectations.
37865
37866Host system type: $host
37867Build system type: $build
37868
37869 Option Value
37870-------------------------------------------------------------------------------
37871Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37872Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000037873Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000037874GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37875Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37876High Dynamic Range Imagery
37877 --enable-hdri=$enable_hdri $enable_hdri
37878
37879Delegate Configuration:
37880BZLIB --with-bzlib=$with_bzlib $have_bzlib
37881Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037882Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037883DJVU --with-djvu=$with_djvu $have_djvu
37884DPS --with-dps=$with_dps $have_dps
37885FFTW --with-fftw=$with_fftw $have_fftw
37886FlashPIX --with-fpx=$with_fpx $have_fpx
37887FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37888FreeType --with-freetype=$with_freetype $have_freetype
37889GhostPCL None $PCLDelegate ($PCLVersion)
37890GhostXPS None $XPSDelegate ($XPSVersion)
37891Ghostscript None $PSDelegate ($GSVersion)
37892Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37893Ghostscript lib --with-gslib=$with_gslib $have_gslib
37894Graphviz --with-gvc=$with_gvc $have_gvc
37895JBIG --with-jbig=$with_jbig $have_jbig
37896JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37897JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037898LCMS v1 --with-lcms=$with_lcms $have_lcms
37899LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037900LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000037901LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000037902LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037903Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37904OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000037905PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000037906PERL --with-perl=$with_perl $have_perl
37907PNG --with-png=$with_png $have_png
37908RSVG --with-rsvg=$with_rsvg $have_rsvg
37909TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037910WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037911Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000037912WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000037913X11 --with-x=$with_x $have_x
37914XML --with-xml=$with_xml $have_xml
37915ZLIB --with-zlib=$with_zlib $have_zlib
37916
37917X11 Configuration:
37918 X_CFLAGS = $X_CFLAGS
37919 X_PRE_LIBS = $X_PRE_LIBS
37920 X_LIBS = $X_LIBS
37921 X_EXTRA_LIBS = $X_EXTRA_LIBS
37922
37923Options used to compile and link:
37924 PREFIX = $PREFIX_DIR
37925 EXEC-PREFIX = $EXEC_PREFIX_DIR
37926 VERSION = $PACKAGE_VERSION
37927 CC = $CC
37928 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037929 CPPFLAGS = $MAGICK_CPPFLAGS
37930 PCFLAGS = $MAGICK_PCFLAGS
37931 DEFS = $DEFS
37932 LDFLAGS = $LDFLAGS
37933 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37934 LIBS = $MAGICK_LIBS
37935 CXX = $CXX
37936 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037937 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000037938" >&6;}