blob: 94bab0618f2bf345ddacc1401b9b128511adadd7 [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
cristyaf4cbf32012-10-16 23:47:41 +00003636MAGICK_SVN_REVISION=9640:9642M
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#
cristyaf4cbf32012-10-16 23:47:41 +000020631build_modules='no'
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
cristyaf4cbf32012-10-16 23:47:41 +000027598 if test "$have_ltdl" != 'yes' ; then
27599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27601as_fn_error 1 "libltdl is required for modules build
27602See \`config.log' for more details" "$LINENO" 5; }
27603 fi
cristy5eef09f2012-10-16 12:08:28 +000027604fi
27605 if test "$have_ltdl" != 'no'; then
27606 WITH_LTDL_TRUE=
27607 WITH_LTDL_FALSE='#'
27608else
27609 WITH_LTDL_TRUE='#'
27610 WITH_LTDL_FALSE=
27611fi
27612
27613
cristy3ed852e2009-09-05 21:47:34 +000027614#
27615# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27616#
27617LIB_DL=''
27618if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629/* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27632#ifdef __cplusplus
27633extern "C"
27634#endif
27635char dlopen ();
27636int
27637main ()
27638{
27639return dlopen ();
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 ac_cv_lib_dl_dlopen=yes
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651LIBS=$ac_check_lib_save_LIBS
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027655if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 LIB_DL='-ldl'
27657fi
27658
27659 LIBS="$LIB_DL $LIBS"
27660fi
27661
27662
27663
27664#
27665# Check for Autotrace delegate library.
27666#
27667
27668# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027669if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 withval=$with_autotrace; with_autotrace=$withval
27671else
27672 with_autotrace='no'
27673fi
27674
27675
27676if test "$with_autotrace" != 'yes'; then
27677 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27678fi
27679
27680have_autotrace='no'
27681AUTOTRACE_CFLAGS=""
27682AUTOTRACE_LIBS=""
27683AUTOTRACE_PKG=""
27684if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27686$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027687
27688pkg_failed=no
27689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27690$as_echo_n "checking for AUTOTRACE... " >&6; }
27691
27692if test -n "$AUTOTRACE_CFLAGS"; then
27693 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27694 elif test -n "$PKG_CONFIG"; then
27695 if test -n "$PKG_CONFIG" && \
27696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27697 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27698 ac_status=$?
27699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700 test $ac_status = 0; }; then
27701 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27702else
27703 pkg_failed=yes
27704fi
27705 else
27706 pkg_failed=untried
27707fi
27708if test -n "$AUTOTRACE_LIBS"; then
27709 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27710 elif test -n "$PKG_CONFIG"; then
27711 if test -n "$PKG_CONFIG" && \
27712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27713 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27714 ac_status=$?
27715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27716 test $ac_status = 0; }; then
27717 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27718else
27719 pkg_failed=yes
27720fi
27721 else
27722 pkg_failed=untried
27723fi
27724
27725
27726
27727if test $pkg_failed = yes; then
27728
27729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27730 _pkg_short_errors_supported=yes
27731else
27732 _pkg_short_errors_supported=no
27733fi
27734 if test $_pkg_short_errors_supported = yes; then
27735 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27736 else
27737 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27738 fi
27739 # Put the nasty error message in config.log where it belongs
27740 echo "$AUTOTRACE_PKG_ERRORS" >&5
27741
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27743$as_echo "no" >&6; }
27744 have_autotrace=no
27745elif test $pkg_failed = untried; then
27746 have_autotrace=no
27747else
27748 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27749 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27751$as_echo "yes" >&6; }
27752 have_autotrace=yes
27753fi
cristy09b53e12011-10-14 12:47:22 +000027754 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27755$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027756fi
27757
27758if test "$have_autotrace" = 'yes'; then
27759 failed=0
27760
cristy8b350f62009-11-15 23:12:43 +000027761$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027762
cristyc6722092012-10-14 00:19:31 +000027763 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027764 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27765 fi
27766fi
27767
cristy73bd4a52010-10-05 11:24:23 +000027768 if test "$have_autotrace" = 'yes'; then
27769 AUTOTRACE_DELEGATE_TRUE=
27770 AUTOTRACE_DELEGATE_FALSE='#'
27771else
27772 AUTOTRACE_DELEGATE_TRUE='#'
27773 AUTOTRACE_DELEGATE_FALSE=
27774fi
27775
cristy3ed852e2009-09-05 21:47:34 +000027776
27777
27778
27779
27780#
27781# Check for Display Postscript delegate library.
27782#
27783
27784# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027785if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027786 withval=$with_dps; with_dps=$withval
27787else
27788 with_dps='yes'
27789fi
27790
27791
27792if test "$with_dps" != 'yes'; then
27793 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27794fi
27795
27796have_dps='no'
27797DPS_LIBS=''
27798if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027799 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27800$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027802$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027803 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27804$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027805 failed=0
27806 passed=0
27807 PERSIST_CPPFLAGS="$CPPFLAGS"
27808 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027809 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 +000027810if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027811 passed=`expr $passed + 1`
27812else
27813 failed=`expr $failed + 1`
27814fi
27815
27816
27817 # DPS issues:
27818 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27819 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27820 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27821 # ImageMagick itself doesn't use -lXt.
27822 have_libdps='no'
27823 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027825$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027826if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027827 $as_echo_n "(cached) " >&6
27828else
27829 ac_check_lib_save_LIBS=$LIBS
27830LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027832/* end confdefs.h. */
27833
27834/* Override any GCC internal prototype to avoid an error.
27835 Use char because int might match the return type of a GCC
27836 builtin and then its argument prototype would still apply. */
27837#ifdef __cplusplus
27838extern "C"
27839#endif
27840char DPSInitialize ();
27841int
27842main ()
27843{
27844return DPSInitialize ();
27845 ;
27846 return 0;
27847}
27848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027850 ac_cv_lib_dps_DPSInitialize=yes
27851else
cristy8b350f62009-11-15 23:12:43 +000027852 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027853fi
cristy8b350f62009-11-15 23:12:43 +000027854rm -f core conftest.err conftest.$ac_objext \
27855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027856LIBS=$ac_check_lib_save_LIBS
27857fi
cristy8b350f62009-11-15 23:12:43 +000027858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027859$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027860if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027861 have_libdps='yes'
27862else
27863 have_libdps='no'
27864fi
27865
27866 if test "$have_libdps" != 'yes'; then
27867 # Unset cache variable so we can try again.
27868 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027871if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 $as_echo_n "(cached) " >&6
27873else
27874 ac_check_lib_save_LIBS=$LIBS
27875LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027877/* end confdefs.h. */
27878
27879/* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27882#ifdef __cplusplus
27883extern "C"
27884#endif
27885char DPSInitialize ();
27886int
27887main ()
27888{
27889return DPSInitialize ();
27890 ;
27891 return 0;
27892}
27893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 ac_cv_lib_dps_DPSInitialize=yes
27896else
cristy8b350f62009-11-15 23:12:43 +000027897 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027898fi
cristy8b350f62009-11-15 23:12:43 +000027899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027901LIBS=$ac_check_lib_save_LIBS
27902fi
cristy8b350f62009-11-15 23:12:43 +000027903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027905if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 have_libdps='yes'
27907else
27908 have_libdps='no'
27909fi
27910
27911 if test "$have_libdps" = 'yes'; then
27912 LIBDPS_XT='-lXt'
27913 fi
27914 fi
27915 if test "$have_libdps" = 'yes'; then
27916 passed=`expr $passed + 1`
27917 else
27918 failed=`expr $failed + 1`
27919 fi
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027922if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char XDPSPixelsPerPoint ();
27937int
27938main ()
27939{
27940return XDPSPixelsPerPoint ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27947else
cristy8b350f62009-11-15 23:12:43 +000027948 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027949fi
cristy8b350f62009-11-15 23:12:43 +000027950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy8b350f62009-11-15 23:12:43 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027956if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 passed=`expr $passed + 1`
27958else
27959 failed=`expr $failed + 1`
27960fi
27961
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking if DPS package is complete... " >&6; }
27964 if test $passed -gt 0; then
27965 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27967$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027968 have_dps='no (failed tests)'
27969 CPPFLAGS="$PERSIST_CPPFLAGS"
27970 else
27971 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27972 LIBS="$DPS_LIBS $LIBS"
27973
cristy8b350f62009-11-15 23:12:43 +000027974$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027975
cristy09b53e12011-10-14 12:47:22 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27977$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027978 have_dps='yes'
27979 fi
27980 else
cristy09b53e12011-10-14 12:47:22 +000027981 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27982$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027983 CPPFLAGS=$PERSIST_CPPFLAGS
27984 fi
27985fi
cristy73bd4a52010-10-05 11:24:23 +000027986 if test "$have_dps" = 'yes'; then
27987 DPS_DELEGATE_TRUE=
27988 DPS_DELEGATE_FALSE='#'
27989else
27990 DPS_DELEGATE_TRUE='#'
27991 DPS_DELEGATE_FALSE=
27992fi
27993
cristy3ed852e2009-09-05 21:47:34 +000027994
27995
27996
27997#
27998# Check for DJVU delegate library.
27999#
28000
28001# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028002if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 withval=$with_djvu; with_djvu=$withval
28004else
28005 with_djvu='yes'
28006fi
28007
28008
28009if test "$with_djvu" != 'yes'; then
28010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28011fi
28012
28013have_djvu='no'
28014DJVU_LIBS=''
28015if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028016 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28017$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28021$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028022 failed=0
28023 passed=0
cristy8b350f62009-11-15 23:12:43 +000028024 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 +000028025if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028026 passed=`expr $passed + 1`
28027else
28028 failed=`expr $failed + 1`
28029fi
28030
28031
cristy8b350f62009-11-15 23:12:43 +000028032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028033$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028034if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 $as_echo_n "(cached) " >&6
28036else
28037 ac_check_lib_save_LIBS=$LIBS
28038LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028040/* end confdefs.h. */
28041
28042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28045#ifdef __cplusplus
28046extern "C"
28047#endif
28048char ddjvu_context_create ();
28049int
28050main ()
28051{
28052return ddjvu_context_create ();
28053 ;
28054 return 0;
28055}
28056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28059else
cristy8b350f62009-11-15 23:12:43 +000028060 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028061fi
cristy8b350f62009-11-15 23:12:43 +000028062rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064LIBS=$ac_check_lib_save_LIBS
28065fi
cristy8b350f62009-11-15 23:12:43 +000028066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028068if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 passed=`expr $passed + 1`
28070else
28071 failed=`expr $failed + 1`
28072fi
28073
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking if DJVU package is complete... " >&6; }
28076 if test $passed -gt 0; then
28077 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28079$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028080 have_djvu='no (failed tests)'
28081 else
28082 DJVU_LIBS='-ldjvulibre'
28083 LIBS="$DJVU_LIBS $LIBS"
28084
cristy8b350f62009-11-15 23:12:43 +000028085$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028086
cristy09b53e12011-10-14 12:47:22 +000028087 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28088$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028089 have_djvu='yes'
28090 fi
28091 else
cristy09b53e12011-10-14 12:47:22 +000028092 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28093$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028094 fi
28095fi
cristy73bd4a52010-10-05 11:24:23 +000028096 if test "$have_djvu" = 'yes'; then
28097 DJVU_DELEGATE_TRUE=
28098 DJVU_DELEGATE_FALSE='#'
28099else
28100 DJVU_DELEGATE_TRUE='#'
28101 DJVU_DELEGATE_FALSE=
28102fi
28103
cristy3ed852e2009-09-05 21:47:34 +000028104
28105
28106
28107#
cristy430a7312010-01-21 20:44:04 +000028108# Set DejaVu font directory.
28109#
28110
28111# Check whether --with-dejavu-font-dir was given.
28112if test "${with_dejavu_font_dir+set}" = set; then :
28113 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28114else
28115 with_dejavu_font_dir='default'
28116fi
28117
28118
28119if test "$with_dejavu_font_dir" != 'default'; then
28120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28121fi
28122
28123
28124#
cristy3ed852e2009-09-05 21:47:34 +000028125# Check for FFTW delegate library.
28126#
28127
28128# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028129if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 withval=$with_fftw; with_fftw=$withval
28131else
28132 with_fftw='yes'
28133fi
28134
28135
28136if test "$with_fftw" != 'yes'; then
28137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28138fi
28139
cristy81beccd2011-10-03 18:17:24 +000028140have_fftw='no'
28141FFTW_LIBS=''
28142if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28144$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28146$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28148$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028149 failed=0
28150 passed=0
28151 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28152if test "x$ac_cv_header_fftw3_h" = xyes; then :
28153 passed=`expr $passed + 1`
28154else
28155 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028156fi
28157
cristy81beccd2011-10-03 18:17:24 +000028158
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28160$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28161if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28162 $as_echo_n "(cached) " >&6
28163else
28164 ac_check_lib_save_LIBS=$LIBS
28165LIBS="-lfftw3 $LIBS"
28166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28167/* end confdefs.h. */
28168
28169/* Override any GCC internal prototype to avoid an error.
28170 Use char because int might match the return type of a GCC
28171 builtin and then its argument prototype would still apply. */
28172#ifdef __cplusplus
28173extern "C"
28174#endif
28175char fftw_execute ();
28176int
28177main ()
28178{
28179return fftw_execute ();
28180 ;
28181 return 0;
28182}
28183_ACEOF
28184if ac_fn_c_try_link "$LINENO"; then :
28185 ac_cv_lib_fftw3_fftw_execute=yes
28186else
28187 ac_cv_lib_fftw3_fftw_execute=no
28188fi
28189rm -f core conftest.err conftest.$ac_objext \
28190 conftest$ac_exeext conftest.$ac_ext
28191LIBS=$ac_check_lib_save_LIBS
28192fi
28193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28194$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28195if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28196 passed=`expr $passed + 1`
28197else
28198 failed=`expr $failed + 1`
28199fi
28200
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28202$as_echo_n "checking if FFTW package is complete... " >&6; }
28203 if test $passed -gt 0; then
28204 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028205 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28206$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028207 have_fftw='no (failed tests)'
28208 else
28209 FFTW_LIBS='-lfftw3'
28210 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028211
cristy8b350f62009-11-15 23:12:43 +000028212$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028213
cristy09b53e12011-10-14 12:47:22 +000028214 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28215$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028216 have_fftw='yes'
28217 fi
28218 else
cristy09b53e12011-10-14 12:47:22 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28220$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028221 fi
28222fi
cristy73bd4a52010-10-05 11:24:23 +000028223 if test "$have_fftw" = 'yes'; then
28224 FFTW_DELEGATE_TRUE=
28225 FFTW_DELEGATE_FALSE='#'
28226else
28227 FFTW_DELEGATE_TRUE='#'
28228 FFTW_DELEGATE_FALSE=
28229fi
28230
cristy3ed852e2009-09-05 21:47:34 +000028231
28232
28233
28234#
28235# Check for FlashPIX delegate library.
28236#
28237
28238# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028239if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028240 withval=$with_fpx; with_fpx=$withval
28241else
28242 with_fpx='yes'
28243fi
28244
28245
28246if test "$with_fpx" != 'yes'; then
28247 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28248fi
28249
28250have_fpx='no'
28251FPX_LIBS=''
28252if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028253 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28254$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028256$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28258$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028259 failed=0
28260 passed=0
28261 ac_ext=cpp
28262ac_cpp='$CXXCPP $CPPFLAGS'
28263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28266
28267
cristy8b350f62009-11-15 23:12:43 +000028268ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028269if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028270 passed=`expr $passed + 1`
28271else
28272 failed=`expr $failed + 1`
28273fi
28274
28275
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028278if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 $as_echo_n "(cached) " >&6
28280else
28281 ac_check_lib_save_LIBS=$LIBS
28282LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028284/* end confdefs.h. */
28285
28286/* Override any GCC internal prototype to avoid an error.
28287 Use char because int might match the return type of a GCC
28288 builtin and then its argument prototype would still apply. */
28289#ifdef __cplusplus
28290extern "C"
28291#endif
28292char FPX_OpenImageByFilename ();
28293int
28294main ()
28295{
28296return FPX_OpenImageByFilename ();
28297 ;
28298 return 0;
28299}
28300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028301if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28303else
cristy8b350f62009-11-15 23:12:43 +000028304 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028305fi
cristy8b350f62009-11-15 23:12:43 +000028306rm -f core conftest.err conftest.$ac_objext \
28307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028308LIBS=$ac_check_lib_save_LIBS
28309fi
cristy8b350f62009-11-15 23:12:43 +000028310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028312if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 passed=`expr $passed + 1`
28314else
28315 failed=`expr $failed + 1`
28316fi
28317
28318 ac_ext=c
28319ac_cpp='$CPP $CPPFLAGS'
28320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322ac_compiler_gnu=$ac_cv_c_compiler_gnu
28323
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28326 if test $passed -gt 0; then
28327 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028328 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28329$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028330 have_fpx='no (failed tests)'
28331 else
28332 FPX_LIBS='-lfpx'
28333
cristy8b350f62009-11-15 23:12:43 +000028334$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028335
cristy09b53e12011-10-14 12:47:22 +000028336 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28337$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028338 have_fpx='yes'
28339 PERLMAINCC="$CXX"
28340 fi
28341 else
cristy09b53e12011-10-14 12:47:22 +000028342 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28343$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028344 fi
28345fi
cristy73bd4a52010-10-05 11:24:23 +000028346 if test "$have_fpx" = 'yes'; then
28347 FPX_DELEGATE_TRUE=
28348 FPX_DELEGATE_FALSE='#'
28349else
28350 FPX_DELEGATE_TRUE='#'
28351 FPX_DELEGATE_FALSE=
28352fi
28353
cristy3ed852e2009-09-05 21:47:34 +000028354
28355
28356
28357#
28358# Check for fontconfig delegate library.
28359#
28360
28361# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028362if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028363 withval=$with_fontconfig; with_fontconfig=$withval
28364else
cristyfc3d0222012-02-07 15:05:57 +000028365 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028366fi
28367
28368
28369if test "$with_fontconfig" != 'yes'; then
28370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28371fi
28372
28373have_fontconfig='no'
28374FONTCONFIG_CFLAGS=""
28375FONTCONFIG_LIBS=""
28376FONTCONFIG_PKG=""
28377if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28379$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028380
28381pkg_failed=no
28382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28383$as_echo_n "checking for FONTCONFIG... " >&6; }
28384
28385if test -n "$FONTCONFIG_CFLAGS"; then
28386 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28387 elif test -n "$PKG_CONFIG"; then
28388 if test -n "$PKG_CONFIG" && \
28389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28390 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28391 ac_status=$?
28392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28393 test $ac_status = 0; }; then
28394 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28395else
28396 pkg_failed=yes
28397fi
28398 else
28399 pkg_failed=untried
28400fi
28401if test -n "$FONTCONFIG_LIBS"; then
28402 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28403 elif test -n "$PKG_CONFIG"; then
28404 if test -n "$PKG_CONFIG" && \
28405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28406 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28407 ac_status=$?
28408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28409 test $ac_status = 0; }; then
28410 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28411else
28412 pkg_failed=yes
28413fi
28414 else
28415 pkg_failed=untried
28416fi
28417
28418
28419
28420if test $pkg_failed = yes; then
28421
28422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28423 _pkg_short_errors_supported=yes
28424else
28425 _pkg_short_errors_supported=no
28426fi
28427 if test $_pkg_short_errors_supported = yes; then
28428 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28429 else
28430 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28431 fi
28432 # Put the nasty error message in config.log where it belongs
28433 echo "$FONTCONFIG_PKG_ERRORS" >&5
28434
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28436$as_echo "no" >&6; }
28437 have_fontconfig=no
28438elif test $pkg_failed = untried; then
28439 have_fontconfig=no
28440else
28441 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28442 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28444$as_echo "yes" >&6; }
28445 have_fontconfig=yes
28446fi
cristy09b53e12011-10-14 12:47:22 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28448$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028449fi
28450
28451if test "$have_fontconfig" = 'yes'; then
28452
cristy8b350f62009-11-15 23:12:43 +000028453$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028454
cristyc6722092012-10-14 00:19:31 +000028455 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028456 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028457 fi
cristy3ed852e2009-09-05 21:47:34 +000028458fi
28459
cristy73bd4a52010-10-05 11:24:23 +000028460 if test "$have_fontconfig" = 'yes'; then
28461 FONTCONFIG_DELEGATE_TRUE=
28462 FONTCONFIG_DELEGATE_FALSE='#'
28463else
28464 FONTCONFIG_DELEGATE_TRUE='#'
28465 FONTCONFIG_DELEGATE_FALSE=
28466fi
28467
cristy3ed852e2009-09-05 21:47:34 +000028468
28469
28470
28471
28472#
cristy81beccd2011-10-03 18:17:24 +000028473# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028474#
28475
28476# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028477if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028478 withval=$with_freetype; with_freetype=$withval
28479else
28480 with_freetype='yes'
28481fi
28482
28483
cristy81beccd2011-10-03 18:17:24 +000028484
cristy3ed852e2009-09-05 21:47:34 +000028485if test "$with_freetype" != 'yes'; then
28486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28487fi
28488
cristy81beccd2011-10-03 18:17:24 +000028489have_freetype='no'
28490FREETYPE_LIBS=''
28491if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28493$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28495$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28497$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028498 failed=0
28499 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028500 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028501 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028502 freetype_config=''
28503 # Allow the user to specify the location of freetype.
28504 if test "$with_freetype" != 'yes'; then
28505 if test -x "${with_freetype}/bin/freetype-config"; then
28506 freetype_config="${with_freetype}/bin/freetype-config"
28507 elif test -x "${with_freetype}"; then
28508 freetype_config=${with_freetype}
28509 fi
28510 fi
28511 if test -z "$freetype_config"; then
28512 # Extract the first word of "freetype-config", so it can be a program name with args.
28513set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28515$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028516if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028517 $as_echo_n "(cached) " >&6
28518else
cristy98ca0f52011-10-08 23:19:10 +000028519 case $freetype_config in
28520 [\\/]* | ?:[\\/]*)
28521 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28522 ;;
28523 *)
28524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028525for as_dir in $PATH
28526do
28527 IFS=$as_save_IFS
28528 test -z "$as_dir" && as_dir=.
28529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028531 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28533 break 2
28534 fi
28535done
28536 done
28537IFS=$as_save_IFS
28538
cristy98ca0f52011-10-08 23:19:10 +000028539 ;;
28540esac
cristy81beccd2011-10-03 18:17:24 +000028541fi
cristy98ca0f52011-10-08 23:19:10 +000028542freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028543if test -n "$freetype_config"; then
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28545$as_echo "$freetype_config" >&6; }
28546else
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28548$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028549fi
28550
cristy98ca0f52011-10-08 23:19:10 +000028551 fi
28552 if test -n "$freetype_config"; then
28553 freetype_prefix=`${freetype_config} --prefix`
28554 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28555 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28556 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028557 fi
28558
28559 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028561$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28562if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28563 $as_echo_n "(cached) " >&6
28564else
28565 ac_check_lib_save_LIBS=$LIBS
28566LIBS="-lfreetype $LIBS"
28567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28568/* end confdefs.h. */
28569
28570/* Override any GCC internal prototype to avoid an error.
28571 Use char because int might match the return type of a GCC
28572 builtin and then its argument prototype would still apply. */
28573#ifdef __cplusplus
28574extern "C"
28575#endif
28576char FT_Init_FreeType ();
28577int
28578main ()
28579{
28580return FT_Init_FreeType ();
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585if ac_fn_c_try_link "$LINENO"; then :
28586 ac_cv_lib_freetype_FT_Init_FreeType=yes
28587else
28588 ac_cv_lib_freetype_FT_Init_FreeType=no
28589fi
28590rm -f core conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
28592LIBS=$ac_check_lib_save_LIBS
28593fi
28594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28595$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28596if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28597 FREETYPE_LIBS='-lfreetype'
28598fi
28599
cristy98ca0f52011-10-08 23:19:10 +000028600 if test "$FREETYPE_LIBS" != ''; then
28601 passed=`expr $passed + 1`
28602 else
28603 failed=`expr $failed + 1`
28604 LDFLAGS="$PERSIST_LDFLAGS"
28605 fi
cristy81beccd2011-10-03 18:17:24 +000028606 fi
28607
28608 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28609if test "x$ac_cv_header_ft2build_h" = xyes; then :
28610 FT2BUILD_H='#include <ft2build.h>'
28611else
28612 ft2build=''
28613fi
28614
28615
28616 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28617"
28618if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28619 have_freetype_h='yes'
28620else
28621 have_freetype_h='no'
28622fi
28623
28624
cristy98ca0f52011-10-08 23:19:10 +000028625 if test "$have_freetype_h" = 'yes'; then
28626 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028627 else
cristy98ca0f52011-10-08 23:19:10 +000028628 failed=`expr $failed + 1`
28629 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028630 fi
28631
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28633$as_echo_n "checking if FreeType package is complete... " >&6; }
28634 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028635 if test $failed -gt 0; then
28636 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028637 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28638$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028639 have_freetype='no (failed tests)'
28640 else
28641 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028642
cristy8b350f62009-11-15 23:12:43 +000028643$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028644
cristy98ca0f52011-10-08 23:19:10 +000028645 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028646
28647$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28648
cristy81beccd2011-10-03 18:17:24 +000028649 fi
cristy09b53e12011-10-14 12:47:22 +000028650 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28651$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028652 have_freetype='yes'
28653 fi
cristy81beccd2011-10-03 18:17:24 +000028654 else
cristy09b53e12011-10-14 12:47:22 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28656$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028657 fi
28658fi
cristy73bd4a52010-10-05 11:24:23 +000028659 if test "$have_freetype" = 'yes'; then
28660 FREETYPE_DELEGATE_TRUE=
28661 FREETYPE_DELEGATE_FALSE='#'
28662else
28663 FREETYPE_DELEGATE_TRUE='#'
28664 FREETYPE_DELEGATE_FALSE=
28665fi
28666
cristy3ed852e2009-09-05 21:47:34 +000028667
28668
28669
cristy3ed852e2009-09-05 21:47:34 +000028670#
28671# Check for Ghostscript library or framework.
28672#
28673# Test for iapi.h & test for gsapi_new_instance in -lgs
28674# or -framework Ghostscript
28675
28676
28677# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028678if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 withval=$with_gslib; with_gslib=$withval
28680else
28681 with_gslib='no'
28682fi
28683
28684
cristyb7931f12009-09-25 10:22:21 +000028685gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028686if test "$with_gslib" != 'yes'; then
28687 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28688fi
28689
28690have_gslib='no'
28691GS_LIBS=''
28692if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28694$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028696$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028697 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28698$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028699 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028700 failed=0
28701 passed=0
cristy8b350f62009-11-15 23:12:43 +000028702 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 +000028703if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 passed=`expr $passed + 1`
28705else
28706 failed=`expr $failed + 1`
28707fi
28708
28709
cristy8b350f62009-11-15 23:12:43 +000028710 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 +000028711if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028712 passed=`expr $passed + 1`
28713else
28714 failed=`expr $failed + 1`
28715fi
28716
28717
cristy73bd4a52010-10-05 11:24:23 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28719$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028720if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028721 $as_echo_n "(cached) " >&6
28722else
28723 ac_check_framework_save_LIBS=$LIBS
28724LIBS="-framework Ghostscript $LIBS"
28725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28726/* end confdefs.h. */
28727
28728/* Override any GCC internal prototype to avoid an error.
28729 Use char because int might match the return type of a GCC
28730 builtin and then its argument prototype would still apply. */
28731#ifdef __cplusplus
28732extern "C"
28733#endif
28734char gsapi_new_instance ();
28735int
28736main ()
28737{
28738return gsapi_new_instance ();
28739 ;
28740 return 0;
28741}
28742_ACEOF
28743if ac_fn_c_try_link "$LINENO"; then :
28744 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28745else
28746 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28747fi
28748rm -f core conftest.err conftest.$ac_objext \
28749 conftest$ac_exeext conftest.$ac_ext
28750LIBS=$ac_check_framework_save_LIBS
28751fi
28752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28753$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28754if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28755 framework=`expr $framework + 1`
28756else
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028758$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028759if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028760 $as_echo_n "(cached) " >&6
28761else
28762 ac_check_lib_save_LIBS=$LIBS
28763LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028765/* end confdefs.h. */
28766
28767/* Override any GCC internal prototype to avoid an error.
28768 Use char because int might match the return type of a GCC
28769 builtin and then its argument prototype would still apply. */
28770#ifdef __cplusplus
28771extern "C"
28772#endif
28773char gsapi_new_instance ();
28774int
28775main ()
28776{
28777return gsapi_new_instance ();
28778 ;
28779 return 0;
28780}
28781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028783 ac_cv_lib_gs_gsapi_new_instance=yes
28784else
cristy8b350f62009-11-15 23:12:43 +000028785 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028786fi
cristy8b350f62009-11-15 23:12:43 +000028787rm -f core conftest.err conftest.$ac_objext \
28788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028789LIBS=$ac_check_lib_save_LIBS
28790fi
cristy8b350f62009-11-15 23:12:43 +000028791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028792$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028793if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028794 passed=`expr $passed + 1`
28795else
28796 failed=`expr $failed + 1`
28797fi
cristy73bd4a52010-10-05 11:24:23 +000028798
28799fi
cristy8b350f62009-11-15 23:12:43 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28802 if test $passed -gt 0; then
28803 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28805$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028806 have_gslib='no (failed tests)'
28807 else
28808 if test $framework -gt 0; then
28809 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028810 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000028811 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
28812$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028813 else
cristy09b53e12011-10-14 12:47:22 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
28815$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028816 GS_LIBS='-lgs'
28817 fi
28818 LIBS="$GS_LIBS $LIBS"
28819
cristy8b350f62009-11-15 23:12:43 +000028820$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028821
28822 have_gslib='yes'
28823 fi
28824 else
cristy09b53e12011-10-14 12:47:22 +000028825 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28826$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028827 fi
28828fi
cristy73bd4a52010-10-05 11:24:23 +000028829 if test "$have_gslib" = 'yes'; then
28830 GS_DELEGATE_TRUE=
28831 GS_DELEGATE_FALSE='#'
28832else
28833 GS_DELEGATE_TRUE='#'
28834 GS_DELEGATE_FALSE=
28835fi
28836
cristy3ed852e2009-09-05 21:47:34 +000028837
28838
28839# Set default font search path
28840
28841# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028842if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 withval=$with_fontpath; with_fontpath=$withval
28844else
28845 with_fontpath=''
28846fi
28847
28848
28849if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28850 with_fontpath=''
28851else
28852
28853cat >>confdefs.h <<_ACEOF
28854#define MAGICK_FONT_PATH "$with_fontpath"
28855_ACEOF
28856
28857fi
28858if test "$with_fontpath=" != ''; then
28859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28860fi
28861
28862# Set Ghostscript font directory
28863
28864# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028865if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028866 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28867else
28868 with_gs_font_dir='default'
28869fi
28870
28871
28872if test "$with_gs_font_dir" != 'default'; then
28873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28874fi
28875
28876
28877#
28878# Check for GVC delegate library.
28879#
28880
28881# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028882if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 withval=$with_gvc; with_gvc=$withval
28884else
cristy1b70dc82012-07-01 23:15:05 +000028885 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000028886fi
28887
28888
28889if test "$with_gvc" != 'yes'; then
28890 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28891fi
28892
28893GVC_PKG=""
28894if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028895 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28896$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028897
28898pkg_failed=no
28899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28900$as_echo_n "checking for GVC... " >&6; }
28901
28902if test -n "$GVC_CFLAGS"; then
28903 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28904 elif test -n "$PKG_CONFIG"; then
28905 if test -n "$PKG_CONFIG" && \
28906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28907 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28908 ac_status=$?
28909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28910 test $ac_status = 0; }; then
28911 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28912else
28913 pkg_failed=yes
28914fi
28915 else
28916 pkg_failed=untried
28917fi
28918if test -n "$GVC_LIBS"; then
28919 pkg_cv_GVC_LIBS="$GVC_LIBS"
28920 elif test -n "$PKG_CONFIG"; then
28921 if test -n "$PKG_CONFIG" && \
28922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28923 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28924 ac_status=$?
28925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28926 test $ac_status = 0; }; then
28927 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28928else
28929 pkg_failed=yes
28930fi
28931 else
28932 pkg_failed=untried
28933fi
28934
28935
28936
28937if test $pkg_failed = yes; then
28938
28939if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28940 _pkg_short_errors_supported=yes
28941else
28942 _pkg_short_errors_supported=no
28943fi
28944 if test $_pkg_short_errors_supported = yes; then
28945 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28946 else
28947 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28948 fi
28949 # Put the nasty error message in config.log where it belongs
28950 echo "$GVC_PKG_ERRORS" >&5
28951
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28953$as_echo "no" >&6; }
28954 have_gvc=no
28955elif test $pkg_failed = untried; then
28956 have_gvc=no
28957else
28958 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28959 GVC_LIBS=$pkg_cv_GVC_LIBS
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28961$as_echo "yes" >&6; }
28962 have_gvc=yes
28963fi
cristy09b53e12011-10-14 12:47:22 +000028964 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28965$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028966fi
28967
28968if test "$have_gvc" = 'yes'; then
28969
cristy8b350f62009-11-15 23:12:43 +000028970$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028971
cristyc6722092012-10-14 00:19:31 +000028972 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028973 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28974 fi
28975fi
28976
cristy73bd4a52010-10-05 11:24:23 +000028977 if test "$have_gvc" = 'yes'; then
28978 GVC_DELEGATE_TRUE=
28979 GVC_DELEGATE_FALSE='#'
28980else
28981 GVC_DELEGATE_TRUE='#'
28982 GVC_DELEGATE_FALSE=
28983fi
28984
cristy3ed852e2009-09-05 21:47:34 +000028985
28986
28987
28988
28989#
28990# Check for JBIG delegate library.
28991#
28992
28993
28994# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028995if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028996 withval=$with_jbig; with_jbig=$withval
28997else
28998 with_jbig='yes'
28999fi
29000
29001
29002have_jbig='no'
29003JBIG_LIBS=''
29004if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29006$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29010$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029011 failed=0
29012 passed=0
cristy8b350f62009-11-15 23:12:43 +000029013 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029014if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029015 passed=`expr $passed + 1`
29016else
29017 failed=`expr $failed + 1`
29018fi
29019
29020
cristy8b350f62009-11-15 23:12:43 +000029021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029022$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029023if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029024 $as_echo_n "(cached) " >&6
29025else
29026 ac_check_lib_save_LIBS=$LIBS
29027LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029029/* end confdefs.h. */
29030
29031/* Override any GCC internal prototype to avoid an error.
29032 Use char because int might match the return type of a GCC
29033 builtin and then its argument prototype would still apply. */
29034#ifdef __cplusplus
29035extern "C"
29036#endif
29037char jbg_dec_init ();
29038int
29039main ()
29040{
29041return jbg_dec_init ();
29042 ;
29043 return 0;
29044}
29045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029046if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029047 ac_cv_lib_jbig_jbg_dec_init=yes
29048else
cristy8b350f62009-11-15 23:12:43 +000029049 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029050fi
cristy8b350f62009-11-15 23:12:43 +000029051rm -f core conftest.err conftest.$ac_objext \
29052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029053LIBS=$ac_check_lib_save_LIBS
29054fi
cristy8b350f62009-11-15 23:12:43 +000029055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029056$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029057if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029058 passed=`expr $passed + 1`
29059else
29060 failed=`expr $failed + 1`
29061fi
29062
cristy8b350f62009-11-15 23:12:43 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029064$as_echo_n "checking if JBIG package is complete... " >&6; }
29065 if test $passed -gt 0; then
29066 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029067 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29068$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029069 have_jbig='no (failed tests)'
29070 else
29071 JBIG_LIBS='-ljbig'
29072 LIBS="$JBIG_LIBS $LIBS"
29073
cristy8b350f62009-11-15 23:12:43 +000029074$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029075
cristy09b53e12011-10-14 12:47:22 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29077$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029078 have_jbig='yes'
29079 fi
29080 else
cristy09b53e12011-10-14 12:47:22 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29082$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029083 fi
29084fi
cristy73bd4a52010-10-05 11:24:23 +000029085 if test "$have_jbig" = 'yes'; then
29086 JBIG_DELEGATE_TRUE=
29087 JBIG_DELEGATE_FALSE='#'
29088else
29089 JBIG_DELEGATE_TRUE='#'
29090 JBIG_DELEGATE_FALSE=
29091fi
29092
cristy3ed852e2009-09-05 21:47:34 +000029093
29094
29095
29096#
29097# Check for JPEG delegate library.
29098#
29099
29100# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029101if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029102 withval=$with_jpeg; with_jpeg=$withval
29103else
29104 with_jpeg='yes'
29105fi
29106
29107
29108if test "$with_jpeg" != 'yes'; then
29109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29110fi
29111
29112have_jpeg='no'
29113JPEG_LIBS=''
29114if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029115 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29116$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029118$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29120$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029121 failed=0
29122 passed=0
cristy8b350f62009-11-15 23:12:43 +000029123 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029124if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029125 passed=`expr $passed + 1`
29126else
29127 failed=`expr $failed + 1`
29128fi
29129
29130
cristy8b350f62009-11-15 23:12:43 +000029131 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029132if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 passed=`expr $passed + 1`
29134else
29135 failed=`expr $failed + 1`
29136fi
29137
29138
cristy8b350f62009-11-15 23:12:43 +000029139 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029140if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 passed=`expr $passed + 1`
29142else
29143 failed=`expr $failed + 1`
29144fi
29145
29146
cristy8b350f62009-11-15 23:12:43 +000029147 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029148if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029149 passed=`expr $passed + 1`
29150else
29151 failed=`expr $failed + 1`
29152fi
29153
29154
cristy8b350f62009-11-15 23:12:43 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029156$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029157if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029158 $as_echo_n "(cached) " >&6
29159else
29160 ac_check_lib_save_LIBS=$LIBS
29161LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029163/* end confdefs.h. */
29164
29165/* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29168#ifdef __cplusplus
29169extern "C"
29170#endif
29171char jpeg_read_header ();
29172int
29173main ()
29174{
29175return jpeg_read_header ();
29176 ;
29177 return 0;
29178}
29179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029181 ac_cv_lib_jpeg_jpeg_read_header=yes
29182else
cristy8b350f62009-11-15 23:12:43 +000029183 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029184fi
cristy8b350f62009-11-15 23:12:43 +000029185rm -f core conftest.err conftest.$ac_objext \
29186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029187LIBS=$ac_check_lib_save_LIBS
29188fi
cristy8b350f62009-11-15 23:12:43 +000029189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029191if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 passed=`expr $passed + 1`
29193else
29194 failed=`expr $failed + 1`
29195fi
29196
29197
29198# Test for compatible JPEG library
29199if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029201$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029202if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029203 $as_echo_n "(cached) " >&6
29204else
cristy8b350f62009-11-15 23:12:43 +000029205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029206/* end confdefs.h. */
29207#include <stdio.h>
29208#include <stdlib.h>
29209#include <jpeglib.h>
29210
29211int
29212main ()
29213{
29214
29215#if JPEG_LIB_VERSION < 62
29216#error IJG JPEG library must be version 6b or newer!
29217#endif
29218return 0;
29219
29220 ;
29221 return 0;
29222}
29223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029224if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029225 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29226else
cristy8b350f62009-11-15 23:12:43 +000029227 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029228fi
cristy3ed852e2009-09-05 21:47:34 +000029229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29230fi
cristy8b350f62009-11-15 23:12:43 +000029231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29233fi
cristy8b350f62009-11-15 23:12:43 +000029234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029235$as_echo_n "checking if JPEG package is complete... " >&6; }
29236 if test $passed -gt 0; then
29237 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029238 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29239$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029240 have_jpeg='no (failed tests)'
29241 else
29242 JPEG_LIBS='-ljpeg'
29243 LIBS="$JPEG_LIBS $LIBS"
29244
cristy8b350f62009-11-15 23:12:43 +000029245$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029246
cristy09b53e12011-10-14 12:47:22 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29248$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029249 have_jpeg='yes'
29250 fi
29251 else
cristy09b53e12011-10-14 12:47:22 +000029252 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29253$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029254 fi
29255fi
cristy73bd4a52010-10-05 11:24:23 +000029256 if test "$have_jpeg" = 'yes'; then
29257 JPEG_DELEGATE_TRUE=
29258 JPEG_DELEGATE_FALSE='#'
29259else
29260 JPEG_DELEGATE_TRUE='#'
29261 JPEG_DELEGATE_FALSE=
29262fi
29263
cristy3ed852e2009-09-05 21:47:34 +000029264
29265
29266
29267#
29268# Check for JPEG Version 2 delegate library.
29269#
29270
29271# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029272if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 withval=$with_jp2; with_jp2=$withval
29274else
29275 with_jp2='yes'
29276fi
29277
29278
29279if test "$with_jp2" != 'yes'; then
29280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29281fi
29282
29283have_jp2='no'
29284JP2_LIBS=''
29285if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29287$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29291$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029292 failed=0
29293 passed=0
cristy8b350f62009-11-15 23:12:43 +000029294 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 +000029295if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029296 passed=`expr $passed + 1`
29297else
29298 failed=`expr $failed + 1`
29299fi
29300
29301
cristy8b350f62009-11-15 23:12:43 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029303$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029304if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029305 $as_echo_n "(cached) " >&6
29306else
29307 ac_check_lib_save_LIBS=$LIBS
29308LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029310/* end confdefs.h. */
29311
29312/* Override any GCC internal prototype to avoid an error.
29313 Use char because int might match the return type of a GCC
29314 builtin and then its argument prototype would still apply. */
29315#ifdef __cplusplus
29316extern "C"
29317#endif
29318char jas_stream_fopen ();
29319int
29320main ()
29321{
29322return jas_stream_fopen ();
29323 ;
29324 return 0;
29325}
29326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 ac_cv_lib_jasper_jas_stream_fopen=yes
29329else
cristy8b350f62009-11-15 23:12:43 +000029330 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029331fi
cristy8b350f62009-11-15 23:12:43 +000029332rm -f core conftest.err conftest.$ac_objext \
29333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029334LIBS=$ac_check_lib_save_LIBS
29335fi
cristy8b350f62009-11-15 23:12:43 +000029336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029337$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 passed=`expr $passed + 1`
29340else
29341 failed=`expr $failed + 1`
29342fi
29343
cristy8b350f62009-11-15 23:12:43 +000029344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029345$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29346 if test $passed -gt 0; then
29347 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029348 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29349$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029350 have_jp2='no (failed tests)'
29351 else
29352 JP2_LIBS='-ljasper'
29353 LIBS="$JP2_LIBS $LIBS"
29354
cristy8b350f62009-11-15 23:12:43 +000029355$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029356
cristy09b53e12011-10-14 12:47:22 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29358$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029359 have_jp2='yes'
29360 fi
29361 else
cristy09b53e12011-10-14 12:47:22 +000029362 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29363$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029364 fi
29365fi
cristy73bd4a52010-10-05 11:24:23 +000029366 if test "$have_jp2" = 'yes'; then
29367 JP2_DELEGATE_TRUE=
29368 JP2_DELEGATE_FALSE='#'
29369else
29370 JP2_DELEGATE_TRUE='#'
29371 JP2_DELEGATE_FALSE=
29372fi
29373
cristy3ed852e2009-09-05 21:47:34 +000029374
29375
29376
29377#
29378# Check for LCMS delegate library.
29379#
cristy71203402010-06-18 13:12:03 +000029380# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029381
29382# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029383if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029384 withval=$with_lcms; with_lcms=$withval
29385else
29386 with_lcms='yes'
29387fi
29388
cristy71203402010-06-18 13:12:03 +000029389if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29391fi
29392
cristy71203402010-06-18 13:12:03 +000029393# Disable LCMS2.
29394
29395# Check whether --with-lcms2 was given.
29396if test "${with_lcms2+set}" = set; then :
29397 withval=$with_lcms2; with_lcms2=$withval
29398else
29399 with_lcms2='yes'
29400fi
29401
29402if test "$with_lcms2" != 'yes' ; then
29403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29404fi
29405
29406have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029407LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029408if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029409 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29410$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29412$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29414$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029415 failed=0
29416 passed=0
29417 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029418
29419 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029420 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029421if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029422 have_lcms_header='yes'
29423fi
29424
29425
29426 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029427
29428$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29429
cristy71203402010-06-18 13:12:03 +000029430 passed=`expr $passed + 1`
29431 fi
29432
29433 # Check for <lcms2/lcms2.h)
29434 if test "$have_lcms_header" != 'yes'; then
29435 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 +000029436if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029437 have_lcms_header='yes'
29438fi
29439
29440
cristy71203402010-06-18 13:12:03 +000029441 if test "$have_lcms_header" = 'yes'; then
29442 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029443
cristy71203402010-06-18 13:12:03 +000029444$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029445
cristy71203402010-06-18 13:12:03 +000029446 fi
cristyd09bcf92010-03-25 03:04:45 +000029447 fi
cristy71203402010-06-18 13:12:03 +000029448
29449 # Failed to find lcms header?
29450 if test "$have_lcms_header" != 'yes'; then
29451 failed=`expr $failed + 1`
29452 fi
29453
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29455$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029456if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029457 $as_echo_n "(cached) " >&6
29458else
29459 ac_check_lib_save_LIBS=$LIBS
29460LIBS="-llcms2 $LIBS"
29461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29462/* end confdefs.h. */
29463
29464/* Override any GCC internal prototype to avoid an error.
29465 Use char because int might match the return type of a GCC
29466 builtin and then its argument prototype would still apply. */
29467#ifdef __cplusplus
29468extern "C"
29469#endif
cristy71203402010-06-18 13:12:03 +000029470char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029471int
29472main ()
29473{
cristy71203402010-06-18 13:12:03 +000029474return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029475 ;
29476 return 0;
29477}
29478_ACEOF
29479if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029480 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029481else
cristy71203402010-06-18 13:12:03 +000029482 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029483fi
29484rm -f core conftest.err conftest.$ac_objext \
29485 conftest$ac_exeext conftest.$ac_ext
29486LIBS=$ac_check_lib_save_LIBS
29487fi
cristy71203402010-06-18 13:12:03 +000029488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29489$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029490if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029491 passed=`expr $passed + 1`
29492else
29493 failed=`expr $failed + 1`
29494fi
29495
cristy71203402010-06-18 13:12:03 +000029496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29497$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029498 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029499 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029500 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29501$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029502 have_lcms2='no (failed tests)'
29503 else
29504 LCMS_LIBS='-llcms2'
29505 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029506 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29507$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029508 have_lcms2='yes'
29509 fi
cristyd09bcf92010-03-25 03:04:45 +000029510 else
cristy09b53e12011-10-14 12:47:22 +000029511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29512$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029513 fi
29514fi
29515
cristy71203402010-06-18 13:12:03 +000029516#
29517# Check for LCMS v1 (1.11 or later)
29518#
29519if test $have_lcms2 = 'yes'; then
29520 with_lcms='no'
29521fi
29522
29523have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029524if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29526$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29528$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29530$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029531 failed=0
29532 passed=0
29533 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029534
29535 # Check for <lcms.h>
29536 if test "$have_lcms_header" != 'yes'; then
29537 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029538if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029539 have_lcms_header='yes'
29540fi
29541
29542
cristy71203402010-06-18 13:12:03 +000029543 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029544 passed=`expr $passed + 1`
29545
cristy8b350f62009-11-15 23:12:43 +000029546$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029547
cristy71203402010-06-18 13:12:03 +000029548 fi
29549 fi
29550
29551 # Check for <lcms/lcms.h>
29552 if test "$have_lcms_header" != 'yes'; then
29553 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 +000029554if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029555 have_lcms_header='yes'
29556fi
29557
29558
cristy71203402010-06-18 13:12:03 +000029559 if test "$have_lcms_header" = 'yes'; then
29560 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029561
cristy8b350f62009-11-15 23:12:43 +000029562$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029563
cristy71203402010-06-18 13:12:03 +000029564 fi
cristy3ed852e2009-09-05 21:47:34 +000029565 fi
cristy71203402010-06-18 13:12:03 +000029566
29567 # Failed to find lcms header?
29568 if test "$have_lcms_header" != 'yes'; then
29569 failed=`expr $failed + 1`
29570 fi
29571
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29573$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029574if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 $as_echo_n "(cached) " >&6
29576else
29577 ac_check_lib_save_LIBS=$LIBS
29578LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029580/* end confdefs.h. */
29581
29582/* Override any GCC internal prototype to avoid an error.
29583 Use char because int might match the return type of a GCC
29584 builtin and then its argument prototype would still apply. */
29585#ifdef __cplusplus
29586extern "C"
29587#endif
cristy71203402010-06-18 13:12:03 +000029588char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029589int
29590main ()
29591{
cristy71203402010-06-18 13:12:03 +000029592return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029593 ;
29594 return 0;
29595}
29596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029597if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029598 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029599else
cristy71203402010-06-18 13:12:03 +000029600 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029601fi
cristy8b350f62009-11-15 23:12:43 +000029602rm -f core conftest.err conftest.$ac_objext \
29603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029604LIBS=$ac_check_lib_save_LIBS
29605fi
cristy71203402010-06-18 13:12:03 +000029606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29607$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029608if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029609 passed=`expr $passed + 1`
29610else
29611 failed=`expr $failed + 1`
29612fi
29613
cristy8b350f62009-11-15 23:12:43 +000029614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029615$as_echo_n "checking if LCMS package is complete... " >&6; }
29616 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029617 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29619$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029620 have_lcms='no (failed tests)'
29621 else
29622 LCMS_LIBS='-llcms'
29623 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29625$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029626 have_lcms='yes'
29627 fi
cristy3ed852e2009-09-05 21:47:34 +000029628 else
cristy09b53e12011-10-14 12:47:22 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29630$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029631 fi
29632fi
cristy71203402010-06-18 13:12:03 +000029633
cristy73bd4a52010-10-05 11:24:23 +000029634 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29635 LCMS_DELEGATE_TRUE=
29636 LCMS_DELEGATE_FALSE='#'
29637else
29638 LCMS_DELEGATE_TRUE='#'
29639 LCMS_DELEGATE_FALSE=
29640fi
29641
cristy71203402010-06-18 13:12:03 +000029642if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29643
29644$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29645
29646fi
29647
cristy3ed852e2009-09-05 21:47:34 +000029648
29649
29650
29651#
29652# Check for the LQR (Liquid Rescale) delegate library.
29653#
29654
29655# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029656if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029657 withval=$with_lqr; with_lqr=$withval
29658else
29659 with_lqr='yes'
29660fi
29661
29662
29663if test "$with_lqr" != 'yes'; then
29664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29665fi
29666
29667have_lqr='no'
29668LQR_CFLAGS=""
29669LQR_LIBS=""
29670LQR_PKG=""
29671if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029672 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29673$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029674
29675pkg_failed=no
29676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29677$as_echo_n "checking for LQR... " >&6; }
29678
29679if test -n "$LQR_CFLAGS"; then
29680 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29681 elif test -n "$PKG_CONFIG"; then
29682 if test -n "$PKG_CONFIG" && \
29683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29684 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29685 ac_status=$?
29686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29687 test $ac_status = 0; }; then
29688 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29689else
29690 pkg_failed=yes
29691fi
29692 else
29693 pkg_failed=untried
29694fi
29695if test -n "$LQR_LIBS"; then
29696 pkg_cv_LQR_LIBS="$LQR_LIBS"
29697 elif test -n "$PKG_CONFIG"; then
29698 if test -n "$PKG_CONFIG" && \
29699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29700 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29701 ac_status=$?
29702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29703 test $ac_status = 0; }; then
29704 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29705else
29706 pkg_failed=yes
29707fi
29708 else
29709 pkg_failed=untried
29710fi
29711
29712
29713
29714if test $pkg_failed = yes; then
29715
29716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29717 _pkg_short_errors_supported=yes
29718else
29719 _pkg_short_errors_supported=no
29720fi
29721 if test $_pkg_short_errors_supported = yes; then
29722 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29723 else
29724 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29725 fi
29726 # Put the nasty error message in config.log where it belongs
29727 echo "$LQR_PKG_ERRORS" >&5
29728
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730$as_echo "no" >&6; }
29731 have_lqr=no
29732elif test $pkg_failed = untried; then
29733 have_lqr=no
29734else
29735 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29736 LQR_LIBS=$pkg_cv_LQR_LIBS
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29738$as_echo "yes" >&6; }
29739 have_lqr=yes
29740fi
cristy09b53e12011-10-14 12:47:22 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29742$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029743fi
29744
29745if test "$have_lqr" = 'yes'; then
29746
cristy8b350f62009-11-15 23:12:43 +000029747$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029748
29749 CFLAGS="$LQR_CFLAGS $CFLAGS"
29750fi
29751
cristy73bd4a52010-10-05 11:24:23 +000029752 if test "$have_lqr" = 'yes'; then
29753 LQR_DELEGATE_TRUE=
29754 LQR_DELEGATE_FALSE='#'
29755else
29756 LQR_DELEGATE_TRUE='#'
29757 LQR_DELEGATE_FALSE=
29758fi
29759
cristy3ed852e2009-09-05 21:47:34 +000029760
29761
29762
29763
cristy81beccd2011-10-03 18:17:24 +000029764# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029765
29766# Check whether --with-lzma was given.
29767if test "${with_lzma+set}" = set; then :
29768 withval=$with_lzma; with_lzma=$withval
29769else
29770 with_lzma='yes'
29771fi
29772
cristy81beccd2011-10-03 18:17:24 +000029773if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29775fi
29776
cristyb94e5002011-11-14 13:20:10 +000029777LZMA_PKG=""
29778if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29780$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000029781
29782pkg_failed=no
29783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000029784$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000029785
29786if test -n "$LZMA_CFLAGS"; then
29787 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
29788 elif test -n "$PKG_CONFIG"; then
29789 if test -n "$PKG_CONFIG" && \
29790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29791 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29792 ac_status=$?
29793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29794 test $ac_status = 0; }; then
29795 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
29796else
29797 pkg_failed=yes
29798fi
29799 else
29800 pkg_failed=untried
29801fi
29802if test -n "$LZMA_LIBS"; then
29803 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
29804 elif test -n "$PKG_CONFIG"; then
29805 if test -n "$PKG_CONFIG" && \
29806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
29807 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
29808 ac_status=$?
29809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29810 test $ac_status = 0; }; then
29811 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
29812else
29813 pkg_failed=yes
29814fi
29815 else
29816 pkg_failed=untried
29817fi
29818
29819
29820
29821if test $pkg_failed = yes; then
29822
29823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29824 _pkg_short_errors_supported=yes
29825else
29826 _pkg_short_errors_supported=no
29827fi
29828 if test $_pkg_short_errors_supported = yes; then
29829 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
29830 else
29831 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
29832 fi
29833 # Put the nasty error message in config.log where it belongs
29834 echo "$LZMA_PKG_ERRORS" >&5
29835
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837$as_echo "no" >&6; }
29838 have_lzma=no
29839elif test $pkg_failed = untried; then
29840 have_lzma=no
29841else
29842 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
29843 LZMA_LIBS=$pkg_cv_LZMA_LIBS
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29845$as_echo "yes" >&6; }
29846 have_lzma=yes
29847fi
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000029849$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000029850fi
29851
cristyb94e5002011-11-14 13:20:10 +000029852if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000029853
29854$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29855
cristyc6722092012-10-14 00:19:31 +000029856 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000029857 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000029858 fi
cristyfbb0ef02010-12-19 02:32:11 +000029859fi
cristyb94e5002011-11-14 13:20:10 +000029860
cristyfbb0ef02010-12-19 02:32:11 +000029861 if test "$have_lzma" = 'yes'; then
29862 LZMA_DELEGATE_TRUE=
29863 LZMA_DELEGATE_FALSE='#'
29864else
29865 LZMA_DELEGATE_TRUE='#'
29866 LZMA_DELEGATE_FALSE=
29867fi
29868
29869
29870
29871
cristyb94e5002011-11-14 13:20:10 +000029872
cristy3ed852e2009-09-05 21:47:34 +000029873#
29874# Check for the OpenEXR delegate library.
29875#
29876
29877# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029878if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029879 withval=$with_openexr; with_openexr=$withval
29880else
29881 with_openexr='yes'
29882fi
29883
29884
29885if test "$with_openexr" != 'yes'; then
29886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29887fi
29888
29889have_openexr='no'
29890OPENEXR_CFLAGS=""
29891OPENEXR_LIBS=""
29892OPENEXR_PKG=""
29893if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29895$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029896
29897pkg_failed=no
29898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29899$as_echo_n "checking for OPENEXR... " >&6; }
29900
29901if test -n "$OPENEXR_CFLAGS"; then
29902 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29903 elif test -n "$PKG_CONFIG"; then
29904 if test -n "$PKG_CONFIG" && \
29905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29906 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29907 ac_status=$?
29908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29909 test $ac_status = 0; }; then
29910 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29911else
29912 pkg_failed=yes
29913fi
29914 else
29915 pkg_failed=untried
29916fi
29917if test -n "$OPENEXR_LIBS"; then
29918 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29919 elif test -n "$PKG_CONFIG"; then
29920 if test -n "$PKG_CONFIG" && \
29921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29922 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29923 ac_status=$?
29924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29925 test $ac_status = 0; }; then
29926 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29927else
29928 pkg_failed=yes
29929fi
29930 else
29931 pkg_failed=untried
29932fi
29933
29934
29935
29936if test $pkg_failed = yes; then
29937
29938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29939 _pkg_short_errors_supported=yes
29940else
29941 _pkg_short_errors_supported=no
29942fi
29943 if test $_pkg_short_errors_supported = yes; then
29944 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29945 else
29946 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29947 fi
29948 # Put the nasty error message in config.log where it belongs
29949 echo "$OPENEXR_PKG_ERRORS" >&5
29950
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29952$as_echo "no" >&6; }
29953 have_openexr=no
29954elif test $pkg_failed = untried; then
29955 have_openexr=no
29956else
29957 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29958 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29960$as_echo "yes" >&6; }
29961 have_openexr=yes
29962fi
cristy09b53e12011-10-14 12:47:22 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29964$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029965fi
29966
29967if test "$have_openexr" = 'yes'; then
29968
cristy8b350f62009-11-15 23:12:43 +000029969$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029970
cristyc6722092012-10-14 00:19:31 +000029971 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029972 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29973 fi
29974fi
29975
cristy73bd4a52010-10-05 11:24:23 +000029976 if test "$have_openexr" = 'yes'; then
29977 OPENEXR_DELEGATE_TRUE=
29978 OPENEXR_DELEGATE_FALSE='#'
29979else
29980 OPENEXR_DELEGATE_TRUE='#'
29981 OPENEXR_DELEGATE_FALSE=
29982fi
29983
cristy3ed852e2009-09-05 21:47:34 +000029984
29985
29986
29987
29988#
cristy41cbe8a2011-10-27 01:35:18 +000029989# Check for PANGO delegate library.
29990#
29991
29992# Check whether --with-pango was given.
29993if test "${with_pango+set}" = set; then :
29994 withval=$with_pango; with_pango=$withval
29995else
cristyfc3d0222012-02-07 15:05:57 +000029996 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000029997fi
29998
29999
30000if test "$with_pango" != 'yes'; then
30001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30002fi
30003
30004have_pango='no'
cristya054b762012-03-26 23:16:00 +000030005have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030006PANGO_CFLAGS=""
30007PANGO_LIBS=""
30008PANGO_PKG=""
30009if test "x$with_pango" = "xyes"; then
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30011$as_echo "-------------------------------------------------------------" >&6; }
30012
30013pkg_failed=no
30014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30015$as_echo_n "checking for PANGO... " >&6; }
30016
30017if test -n "$PANGO_CFLAGS"; then
30018 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30019 elif test -n "$PKG_CONFIG"; then
30020 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30022 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030023 ac_status=$?
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030026 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030027else
30028 pkg_failed=yes
30029fi
30030 else
30031 pkg_failed=untried
30032fi
30033if test -n "$PANGO_LIBS"; then
30034 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30035 elif test -n "$PKG_CONFIG"; then
30036 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30038 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030039 ac_status=$?
30040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30041 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030042 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030043else
30044 pkg_failed=yes
30045fi
30046 else
30047 pkg_failed=untried
30048fi
30049
30050
30051
30052if test $pkg_failed = yes; then
30053
30054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30055 _pkg_short_errors_supported=yes
30056else
30057 _pkg_short_errors_supported=no
30058fi
30059 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030060 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030061 else
cristya054b762012-03-26 23:16:00 +000030062 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030063 fi
30064 # Put the nasty error message in config.log where it belongs
30065 echo "$PANGO_PKG_ERRORS" >&5
30066
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30068$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030069 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030070elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030071 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030072else
30073 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30074 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30076$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030077 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030078fi
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30080$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030081
30082pkg_failed=no
30083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30084$as_echo_n "checking for PANGO... " >&6; }
30085
30086if test -n "$PANGO_CFLAGS"; then
30087 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30088 elif test -n "$PKG_CONFIG"; then
30089 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30091 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030092 ac_status=$?
30093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30094 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030095 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030096else
30097 pkg_failed=yes
30098fi
30099 else
30100 pkg_failed=untried
30101fi
30102if test -n "$PANGO_LIBS"; then
30103 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30104 elif test -n "$PKG_CONFIG"; then
30105 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30107 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030108 ac_status=$?
30109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30110 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030111 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030112else
30113 pkg_failed=yes
30114fi
30115 else
30116 pkg_failed=untried
30117fi
30118
30119
30120
30121if test $pkg_failed = yes; then
30122
30123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30124 _pkg_short_errors_supported=yes
30125else
30126 _pkg_short_errors_supported=no
30127fi
30128 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030129 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030130 else
cristy2542fc62011-12-06 17:50:25 +000030131 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030132 fi
30133 # Put the nasty error message in config.log where it belongs
30134 echo "$PANGO_PKG_ERRORS" >&5
30135
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30137$as_echo "no" >&6; }
30138 have_pango=no
30139elif test $pkg_failed = untried; then
30140 have_pango=no
30141else
30142 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30143 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30145$as_echo "yes" >&6; }
30146 have_pango=yes
30147fi
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30149$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030150fi
30151
30152if test "$have_pango" = 'yes'; then
30153
30154$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30155
cristyc6722092012-10-14 00:19:31 +000030156 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030157 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30158 fi
30159fi
30160
cristya054b762012-03-26 23:16:00 +000030161if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030162
cristya054b762012-03-26 23:16:00 +000030163$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030164
cristyc6722092012-10-14 00:19:31 +000030165 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030166 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030167 fi
30168fi
30169
30170 if test "$have_pango" = 'yes'; then
30171 PANGO_DELEGATE_TRUE=
30172 PANGO_DELEGATE_FALSE='#'
30173else
30174 PANGO_DELEGATE_TRUE='#'
30175 PANGO_DELEGATE_FALSE=
30176fi
30177
cristya054b762012-03-26 23:16:00 +000030178 if test "$have_pangocairo" = 'yes'; then
30179 PANGOCAIRO_DELEGATE_TRUE=
30180 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030181else
cristya054b762012-03-26 23:16:00 +000030182 PANGOCAIRO_DELEGATE_TRUE='#'
30183 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030184fi
30185
30186
30187
30188
30189
30190#
cristy3ed852e2009-09-05 21:47:34 +000030191# Check for PNG delegate library.
30192#
30193
30194# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030195if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030196 withval=$with_png; with_png=$withval
30197else
30198 with_png='yes'
30199fi
30200
30201
30202if test "$with_png" != 'yes'; then
30203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30204fi
30205
cristy81beccd2011-10-03 18:17:24 +000030206have_png='no'
30207PNG_LIBS=''
30208
30209if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030210 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30211$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30213$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030214 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30215$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030216 failed=0
30217 passed=0
30218 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30219if test "x$ac_cv_header_png_h" = xyes; then :
30220 passed=`expr $passed + 1`
30221else
30222 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030223fi
30224
cristy81beccd2011-10-03 18:17:24 +000030225
30226
30227 if test $passed -gt 0; then
30228 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030229 if test "$have_png" = 'no' ; then
30230 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030231 pnglib='png'
30232 else
30233 pnglib="png1${var}"
30234 fi
30235
30236# Test for compatible LIBPNG library
30237 failed=0
30238 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030239 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030240 if test "${pnglib}" != 'png' ; then
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30242$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30244/* end confdefs.h. */
30245#include <stdio.h>
30246#include <stdlib.h>
30247#include <png.h>
30248
30249int
30250main ()
30251{
30252
30253#if PNG_LIBPNG_VER_MINOR != ${var}
30254#error LIBPNG library must be version 1${var}!
30255Kaboom, Kaboom
30256#endif
30257return 0;
30258
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263if ac_fn_c_try_compile "$LINENO"; then :
30264 ac_cv_libpng_ok='yes'
30265else
30266 ac_cv_libpng_ok='no'
30267fi
30268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30269 if test "$ac_cv_libpng_ok" = 'yes' ; then
30270 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30272$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030273 else
30274 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30276$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030277 fi
30278 else
30279 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030280 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30281$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030282 fi
30283 fi
30284
30285 if test $passed -gt 0 -a $failed -le 0; then
30286 if test "1${var}" = '15' ; then
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30288$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30289if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30290 $as_echo_n "(cached) " >&6
30291else
30292 ac_check_lib_save_LIBS=$LIBS
30293LIBS="-lpng15 $LIBS"
30294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30295/* end confdefs.h. */
30296
30297/* Override any GCC internal prototype to avoid an error.
30298 Use char because int might match the return type of a GCC
30299 builtin and then its argument prototype would still apply. */
30300#ifdef __cplusplus
30301extern "C"
30302#endif
30303char png_get_io_ptr ();
30304int
30305main ()
30306{
30307return png_get_io_ptr ();
30308 ;
30309 return 0;
30310}
30311_ACEOF
30312if ac_fn_c_try_link "$LINENO"; then :
30313 ac_cv_lib_png15_png_get_io_ptr=yes
30314else
30315 ac_cv_lib_png15_png_get_io_ptr=no
30316fi
30317rm -f core conftest.err conftest.$ac_objext \
30318 conftest$ac_exeext conftest.$ac_ext
30319LIBS=$ac_check_lib_save_LIBS
30320fi
30321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30322$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30323if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30324 passed=`expr $passed + 1`
30325else
30326 failed=`expr $failed + 1`
30327fi
30328
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30330$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30331if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30332 $as_echo_n "(cached) " >&6
30333else
30334 ac_check_lib_save_LIBS=$LIBS
30335LIBS="-lpng15 $LIBS"
30336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30337/* end confdefs.h. */
30338
30339/* Override any GCC internal prototype to avoid an error.
30340 Use char because int might match the return type of a GCC
30341 builtin and then its argument prototype would still apply. */
30342#ifdef __cplusplus
30343extern "C"
30344#endif
30345char png_longjmp ();
30346int
30347main ()
30348{
30349return png_longjmp ();
30350 ;
30351 return 0;
30352}
30353_ACEOF
30354if ac_fn_c_try_link "$LINENO"; then :
30355 ac_cv_lib_png15_png_longjmp=yes
30356else
30357 ac_cv_lib_png15_png_longjmp=no
30358fi
30359rm -f core conftest.err conftest.$ac_objext \
30360 conftest$ac_exeext conftest.$ac_ext
30361LIBS=$ac_check_lib_save_LIBS
30362fi
30363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30364$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30365if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30366 passed=`expr $passed + 1`
30367else
30368 failed=`expr $failed + 1`
30369fi
30370
30371 fi
30372 if test "1${var}" = '14' ; then
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30374$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30375if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30376 $as_echo_n "(cached) " >&6
30377else
30378 ac_check_lib_save_LIBS=$LIBS
30379LIBS="-lpng14 $LIBS"
30380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30381/* end confdefs.h. */
30382
30383/* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30386#ifdef __cplusplus
30387extern "C"
30388#endif
30389char png_get_io_ptr ();
30390int
30391main ()
30392{
30393return png_get_io_ptr ();
30394 ;
30395 return 0;
30396}
30397_ACEOF
30398if ac_fn_c_try_link "$LINENO"; then :
30399 ac_cv_lib_png14_png_get_io_ptr=yes
30400else
30401 ac_cv_lib_png14_png_get_io_ptr=no
30402fi
30403rm -f core conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
30405LIBS=$ac_check_lib_save_LIBS
30406fi
30407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30408$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30409if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30410 passed=`expr $passed + 1`
30411else
30412 failed=`expr $failed + 1`
30413fi
30414
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30416$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30417if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30418 $as_echo_n "(cached) " >&6
30419else
30420 ac_check_lib_save_LIBS=$LIBS
30421LIBS="-lpng14 $LIBS"
30422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30423/* end confdefs.h. */
30424
30425/* Override any GCC internal prototype to avoid an error.
30426 Use char because int might match the return type of a GCC
30427 builtin and then its argument prototype would still apply. */
30428#ifdef __cplusplus
30429extern "C"
30430#endif
30431char png_get_io_state ();
30432int
30433main ()
30434{
30435return png_get_io_state ();
30436 ;
30437 return 0;
30438}
30439_ACEOF
30440if ac_fn_c_try_link "$LINENO"; then :
30441 ac_cv_lib_png14_png_get_io_state=yes
30442else
30443 ac_cv_lib_png14_png_get_io_state=no
30444fi
30445rm -f core conftest.err conftest.$ac_objext \
30446 conftest$ac_exeext conftest.$ac_ext
30447LIBS=$ac_check_lib_save_LIBS
30448fi
30449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30450$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30451if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30452 passed=`expr $passed + 1`
30453else
30454 failed=`expr $failed + 1`
30455fi
30456
30457 fi
30458 if test "1${var}" = '12' ; then
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30460$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30461if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30462 $as_echo_n "(cached) " >&6
30463else
30464 ac_check_lib_save_LIBS=$LIBS
30465LIBS="-lpng12 $LIBS"
30466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467/* end confdefs.h. */
30468
30469/* Override any GCC internal prototype to avoid an error.
30470 Use char because int might match the return type of a GCC
30471 builtin and then its argument prototype would still apply. */
30472#ifdef __cplusplus
30473extern "C"
30474#endif
30475char png_get_io_ptr ();
30476int
30477main ()
30478{
30479return png_get_io_ptr ();
30480 ;
30481 return 0;
30482}
30483_ACEOF
30484if ac_fn_c_try_link "$LINENO"; then :
30485 ac_cv_lib_png12_png_get_io_ptr=yes
30486else
30487 ac_cv_lib_png12_png_get_io_ptr=no
30488fi
30489rm -f core conftest.err conftest.$ac_objext \
30490 conftest$ac_exeext conftest.$ac_ext
30491LIBS=$ac_check_lib_save_LIBS
30492fi
30493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30494$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30495if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30496 passed=`expr $passed + 1`
30497else
30498 failed=`expr $failed + 1`
30499fi
30500
30501 fi
30502 if test "1${var}" = '1' ; then
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30504$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30505if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30506 $as_echo_n "(cached) " >&6
30507else
30508 ac_check_lib_save_LIBS=$LIBS
30509LIBS="-lpng $LIBS"
30510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30511/* end confdefs.h. */
30512
30513/* Override any GCC internal prototype to avoid an error.
30514 Use char because int might match the return type of a GCC
30515 builtin and then its argument prototype would still apply. */
30516#ifdef __cplusplus
30517extern "C"
30518#endif
30519char png_get_io_ptr ();
30520int
30521main ()
30522{
30523return png_get_io_ptr ();
30524 ;
30525 return 0;
30526}
30527_ACEOF
30528if ac_fn_c_try_link "$LINENO"; then :
30529 ac_cv_lib_png_png_get_io_ptr=yes
30530else
30531 ac_cv_lib_png_png_get_io_ptr=no
30532fi
30533rm -f core conftest.err conftest.$ac_objext \
30534 conftest$ac_exeext conftest.$ac_ext
30535LIBS=$ac_check_lib_save_LIBS
30536fi
30537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30538$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30539if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30540 passed=`expr $passed + 1`
30541else
30542 failed=`expr $failed + 1`
30543fi
30544
30545 fi
30546 if test $passed -gt 0 -a $failed -le 0 ; then
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30548$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30549 if test $passed -gt 0 ; then
30550 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30552$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030553 have_png='no (failed tests)'
30554 else
30555 PNG_LIBS="-l${pnglib}"
30556 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030557
cristy8b350f62009-11-15 23:12:43 +000030558$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030559
cristy09b53e12011-10-14 12:47:22 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30561$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030562 have_png='yes'
30563 fi
30564 fi
30565 fi
30566 fi
30567 fi
30568 done
30569 fi
cristy3ed852e2009-09-05 21:47:34 +000030570fi
cristy64877302011-08-23 19:10:31 +000030571
cristy73bd4a52010-10-05 11:24:23 +000030572 if test "$have_png" = 'yes'; then
30573 PNG_DELEGATE_TRUE=
30574 PNG_DELEGATE_FALSE='#'
30575else
30576 PNG_DELEGATE_TRUE='#'
30577 PNG_DELEGATE_FALSE=
30578fi
30579
cristy3ed852e2009-09-05 21:47:34 +000030580
cristy50d3f5c2011-09-10 20:09:06 +000030581
cristy3ed852e2009-09-05 21:47:34 +000030582
30583
30584#
30585# Check for RSVG delegate library.
30586#
30587
30588# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030589if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030590 withval=$with_rsvg; with_rsvg=$withval
30591else
cristy1164d5f2012-08-15 00:58:25 +000030592 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030593fi
30594
30595
30596if test "$with_rsvg" != 'yes'; then
30597 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30598fi
30599
30600have_rsvg='no'
30601have_cairo='no'
30602RSVG_CFLAGS=""
30603RSVG_LIBS=""
30604RSVG_PKG=""
30605if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030606 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30607$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030608
30609pkg_failed=no
30610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30611$as_echo_n "checking for RSVG... " >&6; }
30612
30613if test -n "$RSVG_CFLAGS"; then
30614 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30615 elif test -n "$PKG_CONFIG"; then
30616 if test -n "$PKG_CONFIG" && \
30617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30618 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30619 ac_status=$?
30620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30621 test $ac_status = 0; }; then
30622 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30623else
30624 pkg_failed=yes
30625fi
30626 else
30627 pkg_failed=untried
30628fi
30629if test -n "$RSVG_LIBS"; then
30630 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30631 elif test -n "$PKG_CONFIG"; then
30632 if test -n "$PKG_CONFIG" && \
30633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30634 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30635 ac_status=$?
30636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30637 test $ac_status = 0; }; then
30638 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30639else
30640 pkg_failed=yes
30641fi
30642 else
30643 pkg_failed=untried
30644fi
30645
30646
30647
30648if test $pkg_failed = yes; then
30649
30650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30651 _pkg_short_errors_supported=yes
30652else
30653 _pkg_short_errors_supported=no
30654fi
30655 if test $_pkg_short_errors_supported = yes; then
30656 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30657 else
30658 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30659 fi
30660 # Put the nasty error message in config.log where it belongs
30661 echo "$RSVG_PKG_ERRORS" >&5
30662
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30664$as_echo "no" >&6; }
30665 have_rsvg=no
30666elif test $pkg_failed = untried; then
30667 have_rsvg=no
30668else
30669 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30670 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30672$as_echo "yes" >&6; }
30673 have_rsvg=yes
30674fi
cristy09b53e12011-10-14 12:47:22 +000030675 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30676$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030677
30678pkg_failed=no
30679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30680$as_echo_n "checking for CAIRO_SVG... " >&6; }
30681
30682if test -n "$CAIRO_SVG_CFLAGS"; then
30683 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30684 elif test -n "$PKG_CONFIG"; then
30685 if test -n "$PKG_CONFIG" && \
30686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30687 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30688 ac_status=$?
30689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30690 test $ac_status = 0; }; then
30691 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30692else
30693 pkg_failed=yes
30694fi
30695 else
30696 pkg_failed=untried
30697fi
30698if test -n "$CAIRO_SVG_LIBS"; then
30699 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30700 elif test -n "$PKG_CONFIG"; then
30701 if test -n "$PKG_CONFIG" && \
30702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30703 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30704 ac_status=$?
30705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30706 test $ac_status = 0; }; then
30707 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30708else
30709 pkg_failed=yes
30710fi
30711 else
30712 pkg_failed=untried
30713fi
30714
30715
30716
30717if test $pkg_failed = yes; then
30718
30719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30720 _pkg_short_errors_supported=yes
30721else
30722 _pkg_short_errors_supported=no
30723fi
30724 if test $_pkg_short_errors_supported = yes; then
30725 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30726 else
30727 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30728 fi
30729 # Put the nasty error message in config.log where it belongs
30730 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30731
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30733$as_echo "no" >&6; }
30734 have_cairo=no
30735elif test $pkg_failed = untried; then
30736 have_cairo=no
30737else
30738 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30739 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30741$as_echo "yes" >&6; }
30742 have_cairo=yes
30743fi
cristy09b53e12011-10-14 12:47:22 +000030744 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30745$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030746fi
30747
30748if test "$have_rsvg" = 'yes'; then
30749
cristy8b350f62009-11-15 23:12:43 +000030750$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030751
cristyc6722092012-10-14 00:19:31 +000030752 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030753 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30754 fi
30755fi
30756
30757if test "$have_cairo" = 'yes'; then
30758
cristy8b350f62009-11-15 23:12:43 +000030759$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030760
cristyc6722092012-10-14 00:19:31 +000030761 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030762 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30763 fi
30764fi
30765
cristy73bd4a52010-10-05 11:24:23 +000030766 if test "$have_rsvg" = 'yes'; then
30767 RSVG_DELEGATE_TRUE=
30768 RSVG_DELEGATE_FALSE='#'
30769else
30770 RSVG_DELEGATE_TRUE='#'
30771 RSVG_DELEGATE_FALSE=
30772fi
30773
30774 if test "$have_cairo" = 'yes'; then
30775 CAIRO_DELEGATE_TRUE=
30776 CAIRO_DELEGATE_FALSE='#'
30777else
30778 CAIRO_DELEGATE_TRUE='#'
30779 CAIRO_DELEGATE_FALSE=
30780fi
30781
cristy3ed852e2009-09-05 21:47:34 +000030782
30783
30784
30785
30786#
30787# Check for TIFF delegate library.
30788#
30789
30790# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030791if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030792 withval=$with_tiff; with_tiff=$withval
30793else
30794 with_tiff='yes'
30795fi
30796
30797
30798if test "$with_tiff" != 'yes'; then
30799 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30800fi
30801
30802have_tiff='no'
30803TIFF_LIBS=''
30804if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030805 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30806$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030808$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030809 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30810$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030811 failed=0
30812 passed=0
cristy8b350f62009-11-15 23:12:43 +000030813 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030814if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030815 passed=`expr $passed + 1`
30816else
30817 failed=`expr $failed + 1`
30818fi
30819
30820
cristy8b350f62009-11-15 23:12:43 +000030821 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030822if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030823 passed=`expr $passed + 1`
30824else
30825 failed=`expr $failed + 1`
30826fi
30827
30828
cristy8b350f62009-11-15 23:12:43 +000030829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030830$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030831if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030832 $as_echo_n "(cached) " >&6
30833else
30834 ac_check_lib_save_LIBS=$LIBS
30835LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030837/* end confdefs.h. */
30838
30839/* Override any GCC internal prototype to avoid an error.
30840 Use char because int might match the return type of a GCC
30841 builtin and then its argument prototype would still apply. */
30842#ifdef __cplusplus
30843extern "C"
30844#endif
30845char TIFFOpen ();
30846int
30847main ()
30848{
30849return TIFFOpen ();
30850 ;
30851 return 0;
30852}
30853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030855 ac_cv_lib_tiff_TIFFOpen=yes
30856else
cristy8b350f62009-11-15 23:12:43 +000030857 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030858fi
cristy8b350f62009-11-15 23:12:43 +000030859rm -f core conftest.err conftest.$ac_objext \
30860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030861LIBS=$ac_check_lib_save_LIBS
30862fi
cristy8b350f62009-11-15 23:12:43 +000030863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030864$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030865if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030866 passed=`expr $passed + 1`
30867else
30868 failed=`expr $failed + 1`
30869fi
30870
cristy8b350f62009-11-15 23:12:43 +000030871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030872$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030873if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030874 $as_echo_n "(cached) " >&6
30875else
30876 ac_check_lib_save_LIBS=$LIBS
30877LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030879/* end confdefs.h. */
30880
30881/* Override any GCC internal prototype to avoid an error.
30882 Use char because int might match the return type of a GCC
30883 builtin and then its argument prototype would still apply. */
30884#ifdef __cplusplus
30885extern "C"
30886#endif
30887char TIFFClientOpen ();
30888int
30889main ()
30890{
30891return TIFFClientOpen ();
30892 ;
30893 return 0;
30894}
30895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030897 ac_cv_lib_tiff_TIFFClientOpen=yes
30898else
cristy8b350f62009-11-15 23:12:43 +000030899 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030900fi
cristy8b350f62009-11-15 23:12:43 +000030901rm -f core conftest.err conftest.$ac_objext \
30902 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030903LIBS=$ac_check_lib_save_LIBS
30904fi
cristy8b350f62009-11-15 23:12:43 +000030905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030907if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030908 passed=`expr $passed + 1`
30909else
30910 failed=`expr $failed + 1`
30911fi
30912
cristy8b350f62009-11-15 23:12:43 +000030913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030914$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030915if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030916 $as_echo_n "(cached) " >&6
30917else
30918 ac_check_lib_save_LIBS=$LIBS
30919LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030921/* end confdefs.h. */
30922
30923/* Override any GCC internal prototype to avoid an error.
30924 Use char because int might match the return type of a GCC
30925 builtin and then its argument prototype would still apply. */
30926#ifdef __cplusplus
30927extern "C"
30928#endif
30929char TIFFIsByteSwapped ();
30930int
30931main ()
30932{
30933return TIFFIsByteSwapped ();
30934 ;
30935 return 0;
30936}
30937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030939 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30940else
cristy8b350f62009-11-15 23:12:43 +000030941 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030942fi
cristy8b350f62009-11-15 23:12:43 +000030943rm -f core conftest.err conftest.$ac_objext \
30944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030945LIBS=$ac_check_lib_save_LIBS
30946fi
cristy8b350f62009-11-15 23:12:43 +000030947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030949if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030950 passed=`expr $passed + 1`
30951else
30952 failed=`expr $failed + 1`
30953fi
30954
cristy8b350f62009-11-15 23:12:43 +000030955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030957if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030958 $as_echo_n "(cached) " >&6
30959else
30960 ac_check_lib_save_LIBS=$LIBS
30961LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030963/* end confdefs.h. */
30964
30965/* Override any GCC internal prototype to avoid an error.
30966 Use char because int might match the return type of a GCC
30967 builtin and then its argument prototype would still apply. */
30968#ifdef __cplusplus
30969extern "C"
30970#endif
30971char TIFFReadRGBATile ();
30972int
30973main ()
30974{
30975return TIFFReadRGBATile ();
30976 ;
30977 return 0;
30978}
30979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030981 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30982else
cristy8b350f62009-11-15 23:12:43 +000030983 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030984fi
cristy8b350f62009-11-15 23:12:43 +000030985rm -f core conftest.err conftest.$ac_objext \
30986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030987LIBS=$ac_check_lib_save_LIBS
30988fi
cristy8b350f62009-11-15 23:12:43 +000030989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030990$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030991if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030992 passed=`expr $passed + 1`
30993else
30994 failed=`expr $failed + 1`
30995fi
30996
cristy8b350f62009-11-15 23:12:43 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030998$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030999if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031000 $as_echo_n "(cached) " >&6
31001else
31002 ac_check_lib_save_LIBS=$LIBS
31003LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031005/* end confdefs.h. */
31006
31007/* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
31010#ifdef __cplusplus
31011extern "C"
31012#endif
31013char TIFFReadRGBAStrip ();
31014int
31015main ()
31016{
31017return TIFFReadRGBAStrip ();
31018 ;
31019 return 0;
31020}
31021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031023 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31024else
cristy8b350f62009-11-15 23:12:43 +000031025 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031026fi
cristy8b350f62009-11-15 23:12:43 +000031027rm -f core conftest.err conftest.$ac_objext \
31028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031029LIBS=$ac_check_lib_save_LIBS
31030fi
cristy8b350f62009-11-15 23:12:43 +000031031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031032$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031033if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031034 passed=`expr $passed + 1`
31035else
31036 failed=`expr $failed + 1`
31037fi
31038
cristy8b350f62009-11-15 23:12:43 +000031039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040$as_echo_n "checking if TIFF package is complete... " >&6; }
31041 if test $passed -gt 0; then
31042 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031043 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31044$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031045 have_tiff='no (failed tests)'
31046 else
31047 TIFF_LIBS='-ltiff'
31048 LIBS="$TIFF_LIBS $LIBS"
31049
cristy8b350f62009-11-15 23:12:43 +000031050$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031051
cristy09b53e12011-10-14 12:47:22 +000031052 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31053$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031054 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031055 for ac_header in tiffconf.h
31056do :
31057 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031058if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031059 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031060#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031061_ACEOF
31062
31063fi
31064
31065done
31066
cristy8b350f62009-11-15 23:12:43 +000031067 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031068 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31069 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31070 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031071do :
31072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031075 cat >>confdefs.h <<_ACEOF
31076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31077_ACEOF
31078
31079fi
31080done
31081
31082 fi
31083 else
cristy09b53e12011-10-14 12:47:22 +000031084 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31085$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031086 fi
31087fi
cristy73bd4a52010-10-05 11:24:23 +000031088 if test "$have_tiff" = 'yes'; then
31089 TIFF_DELEGATE_TRUE=
31090 TIFF_DELEGATE_FALSE='#'
31091else
31092 TIFF_DELEGATE_TRUE='#'
31093 TIFF_DELEGATE_FALSE=
31094fi
31095
cristy3ed852e2009-09-05 21:47:34 +000031096
31097
31098
31099#
cristyb1860752011-03-14 00:27:46 +000031100# Check for WEBP delegate library.
31101#
31102
31103# Check whether --with-webp was given.
31104if test "${with_webp+set}" = set; then :
31105 withval=$with_webp; with_webp=$withval
31106else
31107 with_webp='yes'
31108fi
31109
31110
31111if test "$with_webp" != 'yes'; then
31112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31113fi
31114
31115have_webp='no'
31116WEBP_LIBS=''
31117if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031118 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31119$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31121$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031122 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31123$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031124 failed=0
31125 passed=0
31126 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31127if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31128 passed=`expr $passed + 1`
31129else
31130 failed=`expr $failed + 1`
31131fi
31132
31133
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31135$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31136if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31137 $as_echo_n "(cached) " >&6
31138else
31139 ac_check_lib_save_LIBS=$LIBS
31140LIBS="-lwebp $LIBS"
31141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31142/* end confdefs.h. */
31143
31144/* Override any GCC internal prototype to avoid an error.
31145 Use char because int might match the return type of a GCC
31146 builtin and then its argument prototype would still apply. */
31147#ifdef __cplusplus
31148extern "C"
31149#endif
31150char WebPDecodeRGB ();
31151int
31152main ()
31153{
31154return WebPDecodeRGB ();
31155 ;
31156 return 0;
31157}
31158_ACEOF
31159if ac_fn_c_try_link "$LINENO"; then :
31160 ac_cv_lib_webp_WebPDecodeRGB=yes
31161else
31162 ac_cv_lib_webp_WebPDecodeRGB=no
31163fi
31164rm -f core conftest.err conftest.$ac_objext \
31165 conftest$ac_exeext conftest.$ac_ext
31166LIBS=$ac_check_lib_save_LIBS
31167fi
31168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31169$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31170if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31171 passed=`expr $passed + 1`
31172else
31173 failed=`expr $failed + 1`
31174fi
31175
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31177$as_echo_n "checking if WEBP package is complete... " >&6; }
31178 if test $passed -gt 0; then
31179 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31181$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031182 have_webp='no (failed tests)'
31183 else
31184 WEBP_LIBS='-lwebp'
31185 LIBS="$WEBP_LIBS $LIBS"
31186
31187$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31188
cristy09b53e12011-10-14 12:47:22 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31190$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031191 have_webp='yes'
31192 fi
31193 else
cristy09b53e12011-10-14 12:47:22 +000031194 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31195$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031196 fi
31197fi
31198 if test "$have_webp" = 'yes'; then
31199 WEBP_DELEGATE_TRUE=
31200 WEBP_DELEGATE_FALSE='#'
31201else
31202 WEBP_DELEGATE_TRUE='#'
31203 WEBP_DELEGATE_FALSE=
31204fi
31205
31206
31207
31208
31209#
cristy3ed852e2009-09-05 21:47:34 +000031210# Set Windows font directory.
31211#
31212
31213# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031214if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031215 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31216else
31217 with_windows_font_dir=''
31218fi
31219
31220if test "$with_windows_font_dir" != '' ; then
31221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31222fi
31223
31224
31225#
31226# Check for WMF delegate library.
31227#
31228
31229# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031230if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 withval=$with_wmf; with_wmf=$withval
31232else
cristyfc3d0222012-02-07 15:05:57 +000031233 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031234fi
31235
31236
31237if test "$with_wmf" != 'yes'; then
31238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31239fi
31240
31241have_wmf='no'
31242WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031243WMF_LIBS_DEPS=''
31244OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031245if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31247$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31251$as_echo "" >&6; }
31252 have_libwmf='no'
31253 have_libwmflite='no'
31254 have_libwmf_ipa_h='no'
31255
31256 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31257"
31258if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31259 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031260fi
31261
31262
cristy03f7cf92011-12-15 01:40:41 +000031263 if test "$have_libwmf_ipa_h" = 'yes'; then
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31265$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31266if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031267 $as_echo_n "(cached) " >&6
31268else
31269 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031270LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031272/* end confdefs.h. */
31273
31274/* Override any GCC internal prototype to avoid an error.
31275 Use char because int might match the return type of a GCC
31276 builtin and then its argument prototype would still apply. */
31277#ifdef __cplusplus
31278extern "C"
31279#endif
cristy03f7cf92011-12-15 01:40:41 +000031280char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031281int
31282main ()
31283{
cristy03f7cf92011-12-15 01:40:41 +000031284return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031285 ;
31286 return 0;
31287}
31288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031289if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031290 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031291else
cristy03f7cf92011-12-15 01:40:41 +000031292 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031293fi
cristy8b350f62009-11-15 23:12:43 +000031294rm -f core conftest.err conftest.$ac_objext \
31295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031296LIBS=$ac_check_lib_save_LIBS
31297fi
cristy03f7cf92011-12-15 01:40:41 +000031298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31299$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31300if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31301 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031302fi
31303
cristy03f7cf92011-12-15 01:40:41 +000031304 if test "$have_libwmflite" = 'yes'; then
31305
31306$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31307
31308 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031309 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031310 have_wmf='yes'
31311 else
31312 WMF_LIBS_DEPS=''
31313 WMF_CONFIG_LIBS=`libwmf-config --libs`
31314 for lib in xml2 expat freetype jpeg png z; do
31315 testlib="-l${lib}"
31316 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31317 done
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31319$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31320if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31321 $as_echo_n "(cached) " >&6
31322else
31323 ac_check_lib_save_LIBS=$LIBS
31324LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31326/* end confdefs.h. */
31327
31328/* Override any GCC internal prototype to avoid an error.
31329 Use char because int might match the return type of a GCC
31330 builtin and then its argument prototype would still apply. */
31331#ifdef __cplusplus
31332extern "C"
31333#endif
31334char wmf_api_create ();
31335int
31336main ()
31337{
31338return wmf_api_create ();
31339 ;
31340 return 0;
31341}
31342_ACEOF
31343if ac_fn_c_try_link "$LINENO"; then :
31344 ac_cv_lib_wmf_wmf_api_create=yes
31345else
31346 ac_cv_lib_wmf_wmf_api_create=no
31347fi
31348rm -f core conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
31350LIBS=$ac_check_lib_save_LIBS
31351fi
31352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31353$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31354if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31355 have_libwmf='yes'
31356fi
31357
31358 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031359
cristy8b350f62009-11-15 23:12:43 +000031360$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031361
cristy03f7cf92011-12-15 01:40:41 +000031362 WMF_LIBS='-lwmf'
31363 LIBS="$WMF_LIBS $LIBS"
31364 have_wmf='yes'
31365 else
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31367$as_echo "no -- some components failed test" >&6; }
31368 have_wmf='no (failed tests)'
31369 have_wmflite='no (failed tests)'
31370 LIBS="$OLIBS"
31371 WMF_LIBS=''
31372 fi
glennrp33e524b2011-08-24 17:41:57 +000031373 fi
cristy03f7cf92011-12-15 01:40:41 +000031374 fi
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31376$as_echo_n "checking if WMF package is complete... " >&6; }
31377 if test "$have_wmf" = 'yes'; then
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31379$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031380 else
cristy03f7cf92011-12-15 01:40:41 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31382$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031383 fi
cristy3ed852e2009-09-05 21:47:34 +000031384fi
cristy73bd4a52010-10-05 11:24:23 +000031385 if test "$have_wmf" = 'yes'; then
31386 WMF_DELEGATE_TRUE=
31387 WMF_DELEGATE_FALSE='#'
31388else
31389 WMF_DELEGATE_TRUE='#'
31390 WMF_DELEGATE_FALSE=
31391fi
31392
cristy3ed852e2009-09-05 21:47:34 +000031393
31394
31395
cristy81beccd2011-10-03 18:17:24 +000031396
31397
cristy3ed852e2009-09-05 21:47:34 +000031398#
31399# Check for XML delegate library.
31400#
31401
31402# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031403if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031404 withval=$with_xml; with_xml=$withval
31405else
cristyfc3d0222012-02-07 15:05:57 +000031406 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031407fi
31408
31409
cristy81beccd2011-10-03 18:17:24 +000031410if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31412fi
31413
cristy81beccd2011-10-03 18:17:24 +000031414have_xml='no'
31415XML_LIBS=''
31416if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031417 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31418$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31420$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31422$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031423 PERSIST_LDFLAGS=$LDFLAGS
31424 PERSIST_CPPFLAGS=$CPPFLAGS
31425 xml2_config=''
31426 # Extract the first word of "xml2-config", so it can be a program name with args.
31427set dummy xml2-config; ac_word=$2
31428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31429$as_echo_n "checking for $ac_word... " >&6; }
31430if ${ac_cv_path_xml2_config+:} false; then :
31431 $as_echo_n "(cached) " >&6
31432else
31433 case $xml2_config in
31434 [\\/]* | ?:[\\/]*)
31435 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31436 ;;
31437 *)
31438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31439for as_dir in $PATH
31440do
31441 IFS=$as_save_IFS
31442 test -z "$as_dir" && as_dir=.
31443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031445 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31447 break 2
31448 fi
31449done
31450 done
31451IFS=$as_save_IFS
31452
31453 ;;
31454esac
31455fi
31456xml2_config=$ac_cv_path_xml2_config
31457if test -n "$xml2_config"; then
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31459$as_echo "$xml2_config" >&6; }
31460else
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31462$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031463fi
31464
cristy81beccd2011-10-03 18:17:24 +000031465 if test -n "$xml2_config"; then
31466 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31467 # the shared library installed under /usr/lib, whereas the package
31468 # installs itself under $prefix/libxml and $prefix/lib.
31469 xml2_prefix=`xml2-config --prefix`
31470 if test -d "${xml2_prefix}/include/libxml2"; then
31471 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31472 fi
31473 if test "${xml2_prefix}" != '/usr'; then
31474 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31475 fi
31476 fi
31477 failed=0
31478 passed=0
31479 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31480if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31481 passed=`expr $passed + 1`
31482else
31483 failed=`expr $failed + 1`
31484fi
31485
31486
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31488$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31489if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31490 $as_echo_n "(cached) " >&6
31491else
31492 ac_check_lib_save_LIBS=$LIBS
31493LIBS="-lxml2 $LIBS"
31494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31495/* end confdefs.h. */
31496
31497/* Override any GCC internal prototype to avoid an error.
31498 Use char because int might match the return type of a GCC
31499 builtin and then its argument prototype would still apply. */
31500#ifdef __cplusplus
31501extern "C"
31502#endif
31503char xmlSAXVersion ();
31504int
31505main ()
31506{
31507return xmlSAXVersion ();
31508 ;
31509 return 0;
31510}
31511_ACEOF
31512if ac_fn_c_try_link "$LINENO"; then :
31513 ac_cv_lib_xml2_xmlSAXVersion=yes
31514else
31515 ac_cv_lib_xml2_xmlSAXVersion=no
31516fi
31517rm -f core conftest.err conftest.$ac_objext \
31518 conftest$ac_exeext conftest.$ac_ext
31519LIBS=$ac_check_lib_save_LIBS
31520fi
31521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31522$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31523if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31524 passed=`expr $passed + 1`
31525else
31526 failed=`expr $failed + 1`
31527fi
31528
31529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31530$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31531if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31532 $as_echo_n "(cached) " >&6
31533else
31534 ac_check_lib_save_LIBS=$LIBS
31535LIBS="-lxml2 $LIBS"
31536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31537/* end confdefs.h. */
31538
31539/* Override any GCC internal prototype to avoid an error.
31540 Use char because int might match the return type of a GCC
31541 builtin and then its argument prototype would still apply. */
31542#ifdef __cplusplus
31543extern "C"
31544#endif
31545char xmlParseChunk ();
31546int
31547main ()
31548{
31549return xmlParseChunk ();
31550 ;
31551 return 0;
31552}
31553_ACEOF
31554if ac_fn_c_try_link "$LINENO"; then :
31555 ac_cv_lib_xml2_xmlParseChunk=yes
31556else
31557 ac_cv_lib_xml2_xmlParseChunk=no
31558fi
31559rm -f core conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
31561LIBS=$ac_check_lib_save_LIBS
31562fi
31563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31564$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31565if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31566 passed=`expr $passed + 1`
31567else
31568 failed=`expr $failed + 1`
31569fi
31570
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31572$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31573if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31574 $as_echo_n "(cached) " >&6
31575else
31576 ac_check_lib_save_LIBS=$LIBS
31577LIBS="-lxml2 $LIBS"
31578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31579/* end confdefs.h. */
31580
31581/* Override any GCC internal prototype to avoid an error.
31582 Use char because int might match the return type of a GCC
31583 builtin and then its argument prototype would still apply. */
31584#ifdef __cplusplus
31585extern "C"
31586#endif
31587char xmlCreatePushParserCtxt ();
31588int
31589main ()
31590{
31591return xmlCreatePushParserCtxt ();
31592 ;
31593 return 0;
31594}
31595_ACEOF
31596if ac_fn_c_try_link "$LINENO"; then :
31597 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31598else
31599 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31600fi
31601rm -f core conftest.err conftest.$ac_objext \
31602 conftest$ac_exeext conftest.$ac_ext
31603LIBS=$ac_check_lib_save_LIBS
31604fi
31605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31606$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31607if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31608 passed=`expr $passed + 1`
31609else
31610 failed=`expr $failed + 1`
31611fi
31612
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31614$as_echo_n "checking if XML package is complete... " >&6; }
31615 if test $passed -gt 0; then
31616 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31618$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031619 have_xml='no (failed tests)'
31620 LDFLAGS="$PERSIST_LDFLAGS"
31621 CPPFLAGS="$PERSIST_CPPFLAGS"
31622 else
31623 XML_LIBS='-lxml2'
31624 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031625
cristy8b350f62009-11-15 23:12:43 +000031626$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031627
cristy09b53e12011-10-14 12:47:22 +000031628 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31629$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031630 have_xml='yes'
31631 fi
31632 else
cristy09b53e12011-10-14 12:47:22 +000031633 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31634$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031635 fi
31636fi
cristy73bd4a52010-10-05 11:24:23 +000031637 if test "$have_xml" = 'yes'; then
31638 XML_DELEGATE_TRUE=
31639 XML_DELEGATE_FALSE='#'
31640else
31641 XML_DELEGATE_TRUE='#'
31642 XML_DELEGATE_FALSE=
31643fi
31644
cristy3ed852e2009-09-05 21:47:34 +000031645
31646
31647
31648# Substitute compiler name to build/link PerlMagick
31649#
31650
31651
31652#
31653# Configure install Paths
31654#
cristy7def36a2011-10-28 19:04:41 +000031655
cristy2a11bef2011-10-28 18:33:11 +000031656# Path to ImageMagick header files
31657INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031658INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31659DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031660case "${build_os}" in
31661 mingw* )
31662 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31663 ;;
31664esac
31665
31666cat >>confdefs.h <<_ACEOF
31667#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31668_ACEOF
31669
31670
cristy3ed852e2009-09-05 21:47:34 +000031671
31672# Subdirectory under lib to place ImageMagick lib files
31673LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31674
31675cat >>confdefs.h <<_ACEOF
31676#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31677_ACEOF
31678
31679
31680# Path to ImageMagick bin directory
31681EXECUTABLE_PATH="${BIN_DIR}"
31682DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31683case "${build_os}" in
31684 mingw* )
31685 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31686 ;;
31687esac
31688
31689cat >>confdefs.h <<_ACEOF
31690#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31691_ACEOF
31692
31693
31694
31695# Path to ImageMagick lib
31696LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31697DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31698case "${build_os}" in
31699 mingw* )
31700 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31701 ;;
31702esac
31703
31704cat >>confdefs.h <<_ACEOF
31705#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31706_ACEOF
31707
31708
31709
cristy3ed852e2009-09-05 21:47:34 +000031710#
31711# Subdirectory under lib to place ImageMagick coder module files
31712CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31713
31714cat >>confdefs.h <<_ACEOF
31715#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31716_ACEOF
31717
31718CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31719DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31720case "${build_os}" in
31721 mingw* )
31722 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31723 ;;
31724esac
31725
31726cat >>confdefs.h <<_ACEOF
31727#define CODER_PATH "$DEFINE_CODER_PATH"
31728_ACEOF
31729
31730
31731
31732#
31733# Subdirectory under lib to place ImageMagick filter module files
31734FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31735
31736cat >>confdefs.h <<_ACEOF
31737#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31738_ACEOF
31739
31740FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31741DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31742case "${build_os}" in
31743 mingw* )
31744 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31745 ;;
31746esac
31747
31748cat >>confdefs.h <<_ACEOF
31749#define FILTER_PATH "$DEFINE_FILTER_PATH"
31750_ACEOF
31751
31752
31753
31754#
31755# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000031756DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000031757DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31758DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031759case "${build_os}" in
31760 mingw* )
31761 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31762 ;;
31763esac
31764
31765cat >>confdefs.h <<_ACEOF
31766#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31767_ACEOF
31768
31769
31770
cristy2a11bef2011-10-28 18:33:11 +000031771# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000031772CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031773
31774cat >>confdefs.h <<_ACEOF
31775#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31776_ACEOF
31777
cristy7def36a2011-10-28 19:04:41 +000031778CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000031779DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31780case "${build_os}" in
31781 mingw* )
31782 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31783 ;;
31784esac
31785
31786cat >>confdefs.h <<_ACEOF
31787#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31788_ACEOF
31789
31790
31791
cristy2a11bef2011-10-28 18:33:11 +000031792# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000031793SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031794
31795cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031796#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031797_ACEOF
31798
cristy670aa3c2011-11-03 00:54:00 +000031799SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000031800DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031801case "${build_os}" in
31802 mingw* )
cristy4f820712011-04-01 12:35:43 +000031803 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031804 ;;
31805esac
31806
31807cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031808#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031809_ACEOF
31810
31811
31812
cristy408ebcd2011-11-14 01:36:57 +000031813# Subdirectory to place architecture-dependent configuration files
31814SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000031815
31816cat >>confdefs.h <<_ACEOF
31817#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
31818_ACEOF
31819
cristy408ebcd2011-11-14 01:36:57 +000031820SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
31821DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000031822case "${build_os}" in
31823 mingw* )
31824 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
31825 ;;
31826esac
31827
31828cat >>confdefs.h <<_ACEOF
31829#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
31830_ACEOF
31831
31832
31833
cristy3ed852e2009-09-05 21:47:34 +000031834#
31835# program_transform_name is formed for use in a Makefile, so create a
31836# modified version for use in a shell script.
31837configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31838
31839# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000031840{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31841$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031844{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31845$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031846AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031847BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031848BZIPDelegateDefault='bzip2'
31849BrowseDelegateDefault='xdg-open'
31850CGMDecodeDelegateDefault='ralcgm'
31851CatDelegateDefault='cat'
31852DNGDecodeDelegateDefault='ufraw-batch'
31853GVCDecodeDelegateDefault='dot'
31854DVIDecodeDelegateDefault='dvips'
31855EchoDelegateDefault='echo'
31856EditorDelegateDefault='xterm'
31857FIGDecodeDelegateDefault='fig2dev'
31858ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31859DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31860MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31861GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031862HPGLDecodeDelegateDefault='hp2xx'
31863HTMLDecodeDelegateDefault='html2ps'
31864ILBMDecodeDelegateDefault='ilbmtoppm'
31865ILBMEncodeDelegateDefault='ppmtoilbm'
31866LPDelegateDefault='lp'
31867LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000031868LaunchDelegateDefault='gimp'
31869MANDelegateDefault='groff'
31870MPEGDecodeDelegateDefault='ffmpeg'
31871MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031872MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031873MVDelegateDefault='mv'
31874PCLDelegateDefault='pcl6'
31875PGPDecodeDelegateDefault='pgpv'
31876POVDelegateDefault='povray'
31877if test "$native_win32_build" = 'yes'; then
31878 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031879elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031880 PSDelegateDefault='gsc'
31881else
31882 PSDelegateDefault='gs'
31883fi
31884RLEEncodeDelegateDefault='rawtorle'
31885RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000031886RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000031887SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000031888SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000031889TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031890UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031891WMFDecodeDelegateDefault='wmf2eps'
31892WWWDecodeDelegateDefault='curl'
31893XPSDelegateDefault='gxps'
31894ZipDelegateDefault='gzip'
31895
31896# Search for delegates
31897# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31898set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031901if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031902 $as_echo_n "(cached) " >&6
31903else
31904 case $AutotraceDecodeDelegate in
31905 [\\/]* | ?:[\\/]*)
31906 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31907 ;;
31908 *)
31909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31910for as_dir in $PATH
31911do
31912 IFS=$as_save_IFS
31913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031916 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918 break 2
31919 fi
31920done
cristy8b350f62009-11-15 23:12:43 +000031921 done
cristy3ed852e2009-09-05 21:47:34 +000031922IFS=$as_save_IFS
31923
31924 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31925 ;;
31926esac
31927fi
31928AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31929if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031931$as_echo "$AutotraceDecodeDelegate" >&6; }
31932else
cristy8b350f62009-11-15 23:12:43 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031934$as_echo "no" >&6; }
31935fi
31936
31937
cristy3ed852e2009-09-05 21:47:34 +000031938# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31939set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031942if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031943 $as_echo_n "(cached) " >&6
31944else
31945 case $BlenderDecodeDelegate in
31946 [\\/]* | ?:[\\/]*)
31947 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31948 ;;
31949 *)
31950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31951for as_dir in $PATH
31952do
31953 IFS=$as_save_IFS
31954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031957 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959 break 2
31960 fi
31961done
cristy8b350f62009-11-15 23:12:43 +000031962 done
cristy3ed852e2009-09-05 21:47:34 +000031963IFS=$as_save_IFS
31964
31965 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31966 ;;
31967esac
31968fi
31969BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31970if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031972$as_echo "$BlenderDecodeDelegate" >&6; }
31973else
cristy8b350f62009-11-15 23:12:43 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031975$as_echo "no" >&6; }
31976fi
31977
31978
31979# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31980set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031983if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031984 $as_echo_n "(cached) " >&6
31985else
31986 case $BZIPDelegate in
31987 [\\/]* | ?:[\\/]*)
31988 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31989 ;;
31990 *)
31991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31992for as_dir in $PATH
31993do
31994 IFS=$as_save_IFS
31995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000031998 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000 break 2
32001 fi
32002done
cristy8b350f62009-11-15 23:12:43 +000032003 done
cristy3ed852e2009-09-05 21:47:34 +000032004IFS=$as_save_IFS
32005
32006 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32007 ;;
32008esac
32009fi
32010BZIPDelegate=$ac_cv_path_BZIPDelegate
32011if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo "$BZIPDelegate" >&6; }
32014else
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo "no" >&6; }
32017fi
32018
32019
cristyc59f0e72012-08-27 12:59:33 +000032020for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32021do
32022 # Extract the first word of "$ac_prog", so it can be a program name with args.
32023set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032026if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032027 $as_echo_n "(cached) " >&6
32028else
32029 case $BrowseDelegate in
32030 [\\/]* | ?:[\\/]*)
32031 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32032 ;;
32033 *)
32034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32035for as_dir in $PATH
32036do
32037 IFS=$as_save_IFS
32038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032041 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043 break 2
32044 fi
32045done
cristy8b350f62009-11-15 23:12:43 +000032046 done
cristy3ed852e2009-09-05 21:47:34 +000032047IFS=$as_save_IFS
32048
cristy3ed852e2009-09-05 21:47:34 +000032049 ;;
32050esac
32051fi
32052BrowseDelegate=$ac_cv_path_BrowseDelegate
32053if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032055$as_echo "$BrowseDelegate" >&6; }
32056else
cristy8b350f62009-11-15 23:12:43 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo "no" >&6; }
32059fi
32060
32061
cristyc59f0e72012-08-27 12:59:33 +000032062 test -n "$BrowseDelegate" && break
32063done
32064test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32065
cristy3ed852e2009-09-05 21:47:34 +000032066# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32067set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032070if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032071 $as_echo_n "(cached) " >&6
32072else
32073 case $CGMDecodeDelegate in
32074 [\\/]* | ?:[\\/]*)
32075 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32076 ;;
32077 *)
32078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32079for as_dir in $PATH
32080do
32081 IFS=$as_save_IFS
32082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032085 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032087 break 2
32088 fi
32089done
cristy8b350f62009-11-15 23:12:43 +000032090 done
cristy3ed852e2009-09-05 21:47:34 +000032091IFS=$as_save_IFS
32092
32093 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32094 ;;
32095esac
32096fi
32097CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32098if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo "$CGMDecodeDelegate" >&6; }
32101else
cristy8b350f62009-11-15 23:12:43 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo "no" >&6; }
32104fi
32105
32106
32107# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32108set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032110$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032111if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032112 $as_echo_n "(cached) " >&6
32113else
32114 case $CatDelegate in
32115 [\\/]* | ?:[\\/]*)
32116 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32117 ;;
32118 *)
32119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32120for as_dir in $PATH
32121do
32122 IFS=$as_save_IFS
32123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032126 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128 break 2
32129 fi
32130done
cristy8b350f62009-11-15 23:12:43 +000032131 done
cristy3ed852e2009-09-05 21:47:34 +000032132IFS=$as_save_IFS
32133
32134 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32135 ;;
32136esac
32137fi
32138CatDelegate=$ac_cv_path_CatDelegate
32139if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo "$CatDelegate" >&6; }
32142else
cristy8b350f62009-11-15 23:12:43 +000032143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032144$as_echo "no" >&6; }
32145fi
32146
32147
32148# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32149set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032152if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032153 $as_echo_n "(cached) " >&6
32154else
32155 case $DNGDecodeDelegate in
32156 [\\/]* | ?:[\\/]*)
32157 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32158 ;;
32159 *)
32160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32161for as_dir in $PATH
32162do
32163 IFS=$as_save_IFS
32164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032167 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169 break 2
32170 fi
32171done
cristy8b350f62009-11-15 23:12:43 +000032172 done
cristy3ed852e2009-09-05 21:47:34 +000032173IFS=$as_save_IFS
32174
32175 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32176 ;;
32177esac
32178fi
32179DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32180if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo "$DNGDecodeDelegate" >&6; }
32183else
cristy8b350f62009-11-15 23:12:43 +000032184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032185$as_echo "no" >&6; }
32186fi
32187
32188
32189# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32190set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032193if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032194 $as_echo_n "(cached) " >&6
32195else
32196 case $GVCDecodeDelegate in
32197 [\\/]* | ?:[\\/]*)
32198 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32199 ;;
32200 *)
32201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32202for as_dir in $PATH
32203do
32204 IFS=$as_save_IFS
32205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032208 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210 break 2
32211 fi
32212done
cristy8b350f62009-11-15 23:12:43 +000032213 done
cristy3ed852e2009-09-05 21:47:34 +000032214IFS=$as_save_IFS
32215
32216 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32217 ;;
32218esac
32219fi
32220GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32221if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032223$as_echo "$GVCDecodeDelegate" >&6; }
32224else
cristy8b350f62009-11-15 23:12:43 +000032225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032226$as_echo "no" >&6; }
32227fi
32228
32229
32230# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32231set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032234if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032235 $as_echo_n "(cached) " >&6
32236else
32237 case $DVIDecodeDelegate in
32238 [\\/]* | ?:[\\/]*)
32239 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32240 ;;
32241 *)
32242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32243for as_dir in $PATH
32244do
32245 IFS=$as_save_IFS
32246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032249 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251 break 2
32252 fi
32253done
cristy8b350f62009-11-15 23:12:43 +000032254 done
cristy3ed852e2009-09-05 21:47:34 +000032255IFS=$as_save_IFS
32256
32257 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32258 ;;
32259esac
32260fi
32261DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32262if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032264$as_echo "$DVIDecodeDelegate" >&6; }
32265else
cristy8b350f62009-11-15 23:12:43 +000032266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267$as_echo "no" >&6; }
32268fi
32269
32270
32271# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32272set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032275if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032276 $as_echo_n "(cached) " >&6
32277else
32278 case $EchoDelegate in
32279 [\\/]* | ?:[\\/]*)
32280 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32281 ;;
32282 *)
32283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32284for as_dir in $PATH
32285do
32286 IFS=$as_save_IFS
32287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032290 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032292 break 2
32293 fi
32294done
cristy8b350f62009-11-15 23:12:43 +000032295 done
cristy3ed852e2009-09-05 21:47:34 +000032296IFS=$as_save_IFS
32297
32298 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32299 ;;
32300esac
32301fi
32302EchoDelegate=$ac_cv_path_EchoDelegate
32303if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032305$as_echo "$EchoDelegate" >&6; }
32306else
cristy8b350f62009-11-15 23:12:43 +000032307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032308$as_echo "no" >&6; }
32309fi
32310
32311
32312# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32313set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032316if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032317 $as_echo_n "(cached) " >&6
32318else
32319 case $EditorDelegate in
32320 [\\/]* | ?:[\\/]*)
32321 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32322 ;;
32323 *)
32324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32325for as_dir in $PATH
32326do
32327 IFS=$as_save_IFS
32328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032331 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333 break 2
32334 fi
32335done
cristy8b350f62009-11-15 23:12:43 +000032336 done
cristy3ed852e2009-09-05 21:47:34 +000032337IFS=$as_save_IFS
32338
32339 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32340 ;;
32341esac
32342fi
32343EditorDelegate=$ac_cv_path_EditorDelegate
32344if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032346$as_echo "$EditorDelegate" >&6; }
32347else
cristy8b350f62009-11-15 23:12:43 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032349$as_echo "no" >&6; }
32350fi
32351
32352
32353# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32354set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032357if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032358 $as_echo_n "(cached) " >&6
32359else
32360 case $FIGDecodeDelegate in
32361 [\\/]* | ?:[\\/]*)
32362 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32363 ;;
32364 *)
32365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32366for as_dir in $PATH
32367do
32368 IFS=$as_save_IFS
32369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032372 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032374 break 2
32375 fi
32376done
cristy8b350f62009-11-15 23:12:43 +000032377 done
cristy3ed852e2009-09-05 21:47:34 +000032378IFS=$as_save_IFS
32379
32380 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32381 ;;
32382esac
32383fi
32384FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32385if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032387$as_echo "$FIGDecodeDelegate" >&6; }
32388else
cristy8b350f62009-11-15 23:12:43 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390$as_echo "no" >&6; }
32391fi
32392
32393
32394# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32395set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032398if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032399 $as_echo_n "(cached) " >&6
32400else
32401 case $ConvertDelegate in
32402 [\\/]* | ?:[\\/]*)
32403 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32404 ;;
32405 *)
32406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32407for as_dir in $PATH
32408do
32409 IFS=$as_save_IFS
32410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032413 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032415 break 2
32416 fi
32417done
cristy8b350f62009-11-15 23:12:43 +000032418 done
cristy3ed852e2009-09-05 21:47:34 +000032419IFS=$as_save_IFS
32420
32421 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32422 ;;
32423esac
32424fi
32425ConvertDelegate=$ac_cv_path_ConvertDelegate
32426if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032428$as_echo "$ConvertDelegate" >&6; }
32429else
cristy8b350f62009-11-15 23:12:43 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "no" >&6; }
32432fi
32433
32434
32435# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32436set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032439if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032440 $as_echo_n "(cached) " >&6
32441else
32442 case $DisplayDelegate in
32443 [\\/]* | ?:[\\/]*)
32444 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32445 ;;
32446 *)
32447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32448for as_dir in $PATH
32449do
32450 IFS=$as_save_IFS
32451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032454 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456 break 2
32457 fi
32458done
cristy8b350f62009-11-15 23:12:43 +000032459 done
cristy3ed852e2009-09-05 21:47:34 +000032460IFS=$as_save_IFS
32461
32462 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32463 ;;
32464esac
32465fi
32466DisplayDelegate=$ac_cv_path_DisplayDelegate
32467if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032469$as_echo "$DisplayDelegate" >&6; }
32470else
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "no" >&6; }
32473fi
32474
32475
32476# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32477set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032480if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032481 $as_echo_n "(cached) " >&6
32482else
32483 case $MogrifyDelegate in
32484 [\\/]* | ?:[\\/]*)
32485 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32486 ;;
32487 *)
32488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32489for as_dir in $PATH
32490do
32491 IFS=$as_save_IFS
32492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032495 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032497 break 2
32498 fi
32499done
cristy8b350f62009-11-15 23:12:43 +000032500 done
cristy3ed852e2009-09-05 21:47:34 +000032501IFS=$as_save_IFS
32502
32503 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32504 ;;
32505esac
32506fi
32507MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32508if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032510$as_echo "$MogrifyDelegate" >&6; }
32511else
cristy8b350f62009-11-15 23:12:43 +000032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513$as_echo "no" >&6; }
32514fi
32515
32516
32517# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32518set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032521if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032522 $as_echo_n "(cached) " >&6
32523else
32524 case $GnuplotDecodeDelegate in
32525 [\\/]* | ?:[\\/]*)
32526 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32527 ;;
32528 *)
32529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32530for as_dir in $PATH
32531do
32532 IFS=$as_save_IFS
32533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032536 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032538 break 2
32539 fi
32540done
cristy8b350f62009-11-15 23:12:43 +000032541 done
cristy3ed852e2009-09-05 21:47:34 +000032542IFS=$as_save_IFS
32543
32544 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32545 ;;
32546esac
32547fi
32548GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32549if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032551$as_echo "$GnuplotDecodeDelegate" >&6; }
32552else
cristy8b350f62009-11-15 23:12:43 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "no" >&6; }
32555fi
32556
32557
cristy3ed852e2009-09-05 21:47:34 +000032558# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32559set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032562if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032563 $as_echo_n "(cached) " >&6
32564else
32565 case $HPGLDecodeDelegate in
32566 [\\/]* | ?:[\\/]*)
32567 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32568 ;;
32569 *)
32570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32571for as_dir in $PATH
32572do
32573 IFS=$as_save_IFS
32574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032577 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032579 break 2
32580 fi
32581done
cristy8b350f62009-11-15 23:12:43 +000032582 done
cristy3ed852e2009-09-05 21:47:34 +000032583IFS=$as_save_IFS
32584
32585 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32586 ;;
32587esac
32588fi
32589HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32590if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "$HPGLDecodeDelegate" >&6; }
32593else
cristy8b350f62009-11-15 23:12:43 +000032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "no" >&6; }
32596fi
32597
32598
32599# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32600set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032603if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032604 $as_echo_n "(cached) " >&6
32605else
32606 case $HTMLDecodeDelegate in
32607 [\\/]* | ?:[\\/]*)
32608 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32609 ;;
32610 *)
32611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32612for as_dir in $PATH
32613do
32614 IFS=$as_save_IFS
32615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032618 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620 break 2
32621 fi
32622done
cristy8b350f62009-11-15 23:12:43 +000032623 done
cristy3ed852e2009-09-05 21:47:34 +000032624IFS=$as_save_IFS
32625
32626 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32627 ;;
32628esac
32629fi
32630HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32631if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032633$as_echo "$HTMLDecodeDelegate" >&6; }
32634else
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "no" >&6; }
32637fi
32638
32639
32640# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32641set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032644if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032645 $as_echo_n "(cached) " >&6
32646else
32647 case $ILBMDecodeDelegate in
32648 [\\/]* | ?:[\\/]*)
32649 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32650 ;;
32651 *)
32652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32653for as_dir in $PATH
32654do
32655 IFS=$as_save_IFS
32656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032659 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661 break 2
32662 fi
32663done
cristy8b350f62009-11-15 23:12:43 +000032664 done
cristy3ed852e2009-09-05 21:47:34 +000032665IFS=$as_save_IFS
32666
32667 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32668 ;;
32669esac
32670fi
32671ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32672if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032674$as_echo "$ILBMDecodeDelegate" >&6; }
32675else
cristy8b350f62009-11-15 23:12:43 +000032676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677$as_echo "no" >&6; }
32678fi
32679
32680
32681# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32682set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032685if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032686 $as_echo_n "(cached) " >&6
32687else
32688 case $ILBMEncodeDelegate in
32689 [\\/]* | ?:[\\/]*)
32690 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32691 ;;
32692 *)
32693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32694for as_dir in $PATH
32695do
32696 IFS=$as_save_IFS
32697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032700 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702 break 2
32703 fi
32704done
cristy8b350f62009-11-15 23:12:43 +000032705 done
cristy3ed852e2009-09-05 21:47:34 +000032706IFS=$as_save_IFS
32707
32708 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32709 ;;
32710esac
32711fi
32712ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32713if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032715$as_echo "$ILBMEncodeDelegate" >&6; }
32716else
cristy8b350f62009-11-15 23:12:43 +000032717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718$as_echo "no" >&6; }
32719fi
32720
32721
32722# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32723set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032726if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032727 $as_echo_n "(cached) " >&6
32728else
32729 case $LPDelegate in
32730 [\\/]* | ?:[\\/]*)
32731 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32732 ;;
32733 *)
32734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32735for as_dir in $PATH
32736do
32737 IFS=$as_save_IFS
32738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032741 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743 break 2
32744 fi
32745done
cristy8b350f62009-11-15 23:12:43 +000032746 done
cristy3ed852e2009-09-05 21:47:34 +000032747IFS=$as_save_IFS
32748
32749 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32750 ;;
32751esac
32752fi
32753LPDelegate=$ac_cv_path_LPDelegate
32754if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo "$LPDelegate" >&6; }
32757else
cristy8b350f62009-11-15 23:12:43 +000032758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759$as_echo "no" >&6; }
32760fi
32761
32762
32763# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32764set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032767if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032768 $as_echo_n "(cached) " >&6
32769else
32770 case $LPRDelegate in
32771 [\\/]* | ?:[\\/]*)
32772 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32773 ;;
32774 *)
32775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32776for as_dir in $PATH
32777do
32778 IFS=$as_save_IFS
32779 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032780 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032782 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784 break 2
32785 fi
32786done
cristy8b350f62009-11-15 23:12:43 +000032787 done
cristy3ed852e2009-09-05 21:47:34 +000032788IFS=$as_save_IFS
32789
32790 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32791 ;;
32792esac
32793fi
32794LPRDelegate=$ac_cv_path_LPRDelegate
32795if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032797$as_echo "$LPRDelegate" >&6; }
32798else
cristy8b350f62009-11-15 23:12:43 +000032799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo "no" >&6; }
32801fi
32802
32803
cristy3ed852e2009-09-05 21:47:34 +000032804# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32805set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032808if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032809 $as_echo_n "(cached) " >&6
32810else
32811 case $LaunchDelegate in
32812 [\\/]* | ?:[\\/]*)
32813 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32814 ;;
32815 *)
32816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32817for as_dir in $PATH
32818do
32819 IFS=$as_save_IFS
32820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032823 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825 break 2
32826 fi
32827done
cristy8b350f62009-11-15 23:12:43 +000032828 done
cristy3ed852e2009-09-05 21:47:34 +000032829IFS=$as_save_IFS
32830
32831 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32832 ;;
32833esac
32834fi
32835LaunchDelegate=$ac_cv_path_LaunchDelegate
32836if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032838$as_echo "$LaunchDelegate" >&6; }
32839else
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "no" >&6; }
32842fi
32843
32844
32845# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32846set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032849if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032850 $as_echo_n "(cached) " >&6
32851else
32852 case $MANDelegate in
32853 [\\/]* | ?:[\\/]*)
32854 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32855 ;;
32856 *)
32857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32858for as_dir in $PATH
32859do
32860 IFS=$as_save_IFS
32861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032864 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866 break 2
32867 fi
32868done
cristy8b350f62009-11-15 23:12:43 +000032869 done
cristy3ed852e2009-09-05 21:47:34 +000032870IFS=$as_save_IFS
32871
32872 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32873 ;;
32874esac
32875fi
32876MANDelegate=$ac_cv_path_MANDelegate
32877if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo "$MANDelegate" >&6; }
32880else
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "no" >&6; }
32883fi
32884
32885
32886# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32887set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032890if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032891 $as_echo_n "(cached) " >&6
32892else
32893 case $MPEGDecodeDelegate in
32894 [\\/]* | ?:[\\/]*)
32895 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32896 ;;
32897 *)
32898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32899for as_dir in $PATH
32900do
32901 IFS=$as_save_IFS
32902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032905 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907 break 2
32908 fi
32909done
cristy8b350f62009-11-15 23:12:43 +000032910 done
cristy3ed852e2009-09-05 21:47:34 +000032911IFS=$as_save_IFS
32912
32913 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32914 ;;
32915esac
32916fi
32917MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32918if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032920$as_echo "$MPEGDecodeDelegate" >&6; }
32921else
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "no" >&6; }
32924fi
32925
32926
32927# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32928set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032931if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032932 $as_echo_n "(cached) " >&6
32933else
32934 case $MPEGEncodeDelegate in
32935 [\\/]* | ?:[\\/]*)
32936 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32937 ;;
32938 *)
32939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32940for as_dir in $PATH
32941do
32942 IFS=$as_save_IFS
32943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032946 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948 break 2
32949 fi
32950done
cristy8b350f62009-11-15 23:12:43 +000032951 done
cristy3ed852e2009-09-05 21:47:34 +000032952IFS=$as_save_IFS
32953
32954 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32955 ;;
32956esac
32957fi
32958MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32959if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032961$as_echo "$MPEGEncodeDelegate" >&6; }
32962else
cristy8b350f62009-11-15 23:12:43 +000032963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo "no" >&6; }
32965fi
32966
32967
cristy935c86e2010-06-05 23:50:07 +000032968# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32969set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32971$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032972if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032973 $as_echo_n "(cached) " >&6
32974else
32975 case $MrSIDDecodeDelegate in
32976 [\\/]* | ?:[\\/]*)
32977 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32978 ;;
32979 *)
32980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32981for as_dir in $PATH
32982do
32983 IFS=$as_save_IFS
32984 test -z "$as_dir" && as_dir=.
32985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000032987 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32989 break 2
32990 fi
32991done
32992 done
32993IFS=$as_save_IFS
32994
32995 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32996 ;;
32997esac
32998fi
32999MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33000if test -n "$MrSIDDecodeDelegate"; then
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33002$as_echo "$MrSIDDecodeDelegate" >&6; }
33003else
33004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33005$as_echo "no" >&6; }
33006fi
33007
33008
cristy3ed852e2009-09-05 21:47:34 +000033009# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33010set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033013if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033014 $as_echo_n "(cached) " >&6
33015else
33016 case $MVDelegate in
33017 [\\/]* | ?:[\\/]*)
33018 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33019 ;;
33020 *)
33021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33022for as_dir in $PATH
33023do
33024 IFS=$as_save_IFS
33025 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033028 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030 break 2
33031 fi
33032done
cristy8b350f62009-11-15 23:12:43 +000033033 done
cristy3ed852e2009-09-05 21:47:34 +000033034IFS=$as_save_IFS
33035
33036 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33037 ;;
33038esac
33039fi
33040MVDelegate=$ac_cv_path_MVDelegate
33041if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033043$as_echo "$MVDelegate" >&6; }
33044else
cristy8b350f62009-11-15 23:12:43 +000033045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo "no" >&6; }
33047fi
33048
33049
33050# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33051set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033054if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033055 $as_echo_n "(cached) " >&6
33056else
33057 case $PCLDelegate in
33058 [\\/]* | ?:[\\/]*)
33059 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33060 ;;
33061 *)
33062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33063for as_dir in $PATH
33064do
33065 IFS=$as_save_IFS
33066 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033067 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033069 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071 break 2
33072 fi
33073done
cristy8b350f62009-11-15 23:12:43 +000033074 done
cristy3ed852e2009-09-05 21:47:34 +000033075IFS=$as_save_IFS
33076
33077 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33078 ;;
33079esac
33080fi
33081PCLDelegate=$ac_cv_path_PCLDelegate
33082if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033084$as_echo "$PCLDelegate" >&6; }
33085else
cristy8b350f62009-11-15 23:12:43 +000033086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo "no" >&6; }
33088fi
33089
33090
33091# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33092set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033095if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033096 $as_echo_n "(cached) " >&6
33097else
33098 case $PGPDecodeDelegate in
33099 [\\/]* | ?:[\\/]*)
33100 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33101 ;;
33102 *)
33103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33104for as_dir in $PATH
33105do
33106 IFS=$as_save_IFS
33107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033108 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033110 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112 break 2
33113 fi
33114done
cristy8b350f62009-11-15 23:12:43 +000033115 done
cristy3ed852e2009-09-05 21:47:34 +000033116IFS=$as_save_IFS
33117
33118 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33119 ;;
33120esac
33121fi
33122PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33123if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033125$as_echo "$PGPDecodeDelegate" >&6; }
33126else
cristy8b350f62009-11-15 23:12:43 +000033127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo "no" >&6; }
33129fi
33130
33131
33132# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33133set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033136if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033137 $as_echo_n "(cached) " >&6
33138else
33139 case $POVDelegate in
33140 [\\/]* | ?:[\\/]*)
33141 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33142 ;;
33143 *)
33144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33145for as_dir in $PATH
33146do
33147 IFS=$as_save_IFS
33148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033151 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153 break 2
33154 fi
33155done
cristy8b350f62009-11-15 23:12:43 +000033156 done
cristy3ed852e2009-09-05 21:47:34 +000033157IFS=$as_save_IFS
33158
33159 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33160 ;;
33161esac
33162fi
33163POVDelegate=$ac_cv_path_POVDelegate
33164if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033166$as_echo "$POVDelegate" >&6; }
33167else
cristy8b350f62009-11-15 23:12:43 +000033168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo "no" >&6; }
33170fi
33171
33172
33173for ac_prog in gsx gsc "$PSDelegateDefault"
33174do
33175 # Extract the first word of "$ac_prog", so it can be a program name with args.
33176set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033179if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033180 $as_echo_n "(cached) " >&6
33181else
33182 case $PSDelegate in
33183 [\\/]* | ?:[\\/]*)
33184 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33185 ;;
33186 *)
33187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188for as_dir in $PATH
33189do
33190 IFS=$as_save_IFS
33191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033194 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196 break 2
33197 fi
33198done
cristy8b350f62009-11-15 23:12:43 +000033199 done
cristy3ed852e2009-09-05 21:47:34 +000033200IFS=$as_save_IFS
33201
33202 ;;
33203esac
33204fi
33205PSDelegate=$ac_cv_path_PSDelegate
33206if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "$PSDelegate" >&6; }
33209else
cristy8b350f62009-11-15 23:12:43 +000033210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033211$as_echo "no" >&6; }
33212fi
33213
33214
33215 test -n "$PSDelegate" && break
33216done
33217test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33218
33219# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33220set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033223if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033224 $as_echo_n "(cached) " >&6
33225else
33226 case $RLEEncodeDelegate in
33227 [\\/]* | ?:[\\/]*)
33228 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33229 ;;
33230 *)
33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33232for as_dir in $PATH
33233do
33234 IFS=$as_save_IFS
33235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033238 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240 break 2
33241 fi
33242done
cristy8b350f62009-11-15 23:12:43 +000033243 done
cristy3ed852e2009-09-05 21:47:34 +000033244IFS=$as_save_IFS
33245
33246 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33247 ;;
33248esac
33249fi
33250RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33251if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "$RLEEncodeDelegate" >&6; }
33254else
cristy8b350f62009-11-15 23:12:43 +000033255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo "no" >&6; }
33257fi
33258
33259
33260# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33261set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033264if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033265 $as_echo_n "(cached) " >&6
33266else
33267 case $RMDelegate in
33268 [\\/]* | ?:[\\/]*)
33269 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33270 ;;
33271 *)
33272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33273for as_dir in $PATH
33274do
33275 IFS=$as_save_IFS
33276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033279 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033281 break 2
33282 fi
33283done
cristy8b350f62009-11-15 23:12:43 +000033284 done
cristy3ed852e2009-09-05 21:47:34 +000033285IFS=$as_save_IFS
33286
33287 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33288 ;;
33289esac
33290fi
33291RMDelegate=$ac_cv_path_RMDelegate
33292if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033294$as_echo "$RMDelegate" >&6; }
33295else
cristy8b350f62009-11-15 23:12:43 +000033296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297$as_echo "no" >&6; }
33298fi
33299
33300
cristy4689cf02010-02-17 21:15:45 +000033301# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33302set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033305if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033306 $as_echo_n "(cached) " >&6
33307else
33308 case $RSVGDecodeDelegate in
33309 [\\/]* | ?:[\\/]*)
33310 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33311 ;;
33312 *)
33313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33314for as_dir in $PATH
33315do
33316 IFS=$as_save_IFS
33317 test -z "$as_dir" && as_dir=.
33318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033320 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33322 break 2
33323 fi
33324done
33325 done
33326IFS=$as_save_IFS
33327
33328 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33329 ;;
33330esac
33331fi
33332RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33333if test -n "$RSVGDecodeDelegate"; then
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33335$as_echo "$RSVGDecodeDelegate" >&6; }
33336else
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33338$as_echo "no" >&6; }
33339fi
33340
33341
cristy3ed852e2009-09-05 21:47:34 +000033342# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33343set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033346if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033347 $as_echo_n "(cached) " >&6
33348else
33349 case $SCANDecodeDelegate in
33350 [\\/]* | ?:[\\/]*)
33351 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33352 ;;
33353 *)
33354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33355for as_dir in $PATH
33356do
33357 IFS=$as_save_IFS
33358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033361 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363 break 2
33364 fi
33365done
cristy8b350f62009-11-15 23:12:43 +000033366 done
cristy3ed852e2009-09-05 21:47:34 +000033367IFS=$as_save_IFS
33368
33369 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33370 ;;
33371esac
33372fi
33373SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33374if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033376$as_echo "$SCANDecodeDelegate" >&6; }
33377else
cristy8b350f62009-11-15 23:12:43 +000033378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo "no" >&6; }
33380fi
33381
33382
cristyec6934f2012-08-14 18:38:40 +000033383# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33384set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33386$as_echo_n "checking for $ac_word... " >&6; }
33387if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33388 $as_echo_n "(cached) " >&6
33389else
33390 case $SVGDecodeDelegate in
33391 [\\/]* | ?:[\\/]*)
33392 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33393 ;;
33394 *)
33395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33396for as_dir in $PATH
33397do
33398 IFS=$as_save_IFS
33399 test -z "$as_dir" && as_dir=.
33400 for ac_exec_ext in '' $ac_executable_extensions; do
33401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33402 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33404 break 2
33405 fi
33406done
33407 done
33408IFS=$as_save_IFS
33409
33410 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33411 ;;
33412esac
33413fi
33414SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33415if test -n "$SVGDecodeDelegate"; then
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33417$as_echo "$SVGDecodeDelegate" >&6; }
33418else
33419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33420$as_echo "no" >&6; }
33421fi
33422
33423
cristy3ed852e2009-09-05 21:47:34 +000033424# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33425set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033428if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033429 $as_echo_n "(cached) " >&6
33430else
33431 case $TXTDelegate in
33432 [\\/]* | ?:[\\/]*)
33433 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33434 ;;
33435 *)
33436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33437for as_dir in $PATH
33438do
33439 IFS=$as_save_IFS
33440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033443 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445 break 2
33446 fi
33447done
cristy8b350f62009-11-15 23:12:43 +000033448 done
cristy3ed852e2009-09-05 21:47:34 +000033449IFS=$as_save_IFS
33450
33451 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33452 ;;
33453esac
33454fi
33455TXTDelegate=$ac_cv_path_TXTDelegate
33456if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033458$as_echo "$TXTDelegate" >&6; }
33459else
cristy8b350f62009-11-15 23:12:43 +000033460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo "no" >&6; }
33462fi
33463
33464
cristy5ac9ac82010-07-29 13:24:24 +000033465# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33466set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33468$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033469if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033470 $as_echo_n "(cached) " >&6
33471else
33472 case $UniconvertorDelegate in
33473 [\\/]* | ?:[\\/]*)
33474 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33475 ;;
33476 *)
33477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33478for as_dir in $PATH
33479do
33480 IFS=$as_save_IFS
33481 test -z "$as_dir" && as_dir=.
33482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033484 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33486 break 2
33487 fi
33488done
33489 done
33490IFS=$as_save_IFS
33491
33492 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33493 ;;
33494esac
33495fi
33496UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33497if test -n "$UniconvertorDelegate"; then
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33499$as_echo "$UniconvertorDelegate" >&6; }
33500else
33501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33502$as_echo "no" >&6; }
33503fi
33504
33505
cristy3ed852e2009-09-05 21:47:34 +000033506# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33507set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033510if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033511 $as_echo_n "(cached) " >&6
33512else
33513 case $WMFDecodeDelegate in
33514 [\\/]* | ?:[\\/]*)
33515 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33516 ;;
33517 *)
33518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33519for as_dir in $PATH
33520do
33521 IFS=$as_save_IFS
33522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033525 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033527 break 2
33528 fi
33529done
cristy8b350f62009-11-15 23:12:43 +000033530 done
cristy3ed852e2009-09-05 21:47:34 +000033531IFS=$as_save_IFS
33532
33533 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33534 ;;
33535esac
33536fi
33537WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33538if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033540$as_echo "$WMFDecodeDelegate" >&6; }
33541else
cristy8b350f62009-11-15 23:12:43 +000033542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo "no" >&6; }
33544fi
33545
33546
33547# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33548set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033551if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033552 $as_echo_n "(cached) " >&6
33553else
33554 case $WWWDecodeDelegate in
33555 [\\/]* | ?:[\\/]*)
33556 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33557 ;;
33558 *)
33559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33560for as_dir in $PATH
33561do
33562 IFS=$as_save_IFS
33563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033566 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033568 break 2
33569 fi
33570done
cristy8b350f62009-11-15 23:12:43 +000033571 done
cristy3ed852e2009-09-05 21:47:34 +000033572IFS=$as_save_IFS
33573
33574 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33575 ;;
33576esac
33577fi
33578WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33579if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "$WWWDecodeDelegate" >&6; }
33582else
cristy8b350f62009-11-15 23:12:43 +000033583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo "no" >&6; }
33585fi
33586
33587
33588# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33589set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033592if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033593 $as_echo_n "(cached) " >&6
33594else
33595 case $XPSDelegate in
33596 [\\/]* | ?:[\\/]*)
33597 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33598 ;;
33599 *)
33600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33601for as_dir in $PATH
33602do
33603 IFS=$as_save_IFS
33604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033607 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609 break 2
33610 fi
33611done
cristy8b350f62009-11-15 23:12:43 +000033612 done
cristy3ed852e2009-09-05 21:47:34 +000033613IFS=$as_save_IFS
33614
33615 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33616 ;;
33617esac
33618fi
33619XPSDelegate=$ac_cv_path_XPSDelegate
33620if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033622$as_echo "$XPSDelegate" >&6; }
33623else
cristy8b350f62009-11-15 23:12:43 +000033624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo "no" >&6; }
33626fi
33627
33628
33629# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33630set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033633if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033634 $as_echo_n "(cached) " >&6
33635else
33636 case $ZipDelegate in
33637 [\\/]* | ?:[\\/]*)
33638 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33639 ;;
33640 *)
33641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642for as_dir in $PATH
33643do
33644 IFS=$as_save_IFS
33645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033648 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033650 break 2
33651 fi
33652done
cristy8b350f62009-11-15 23:12:43 +000033653 done
cristy3ed852e2009-09-05 21:47:34 +000033654IFS=$as_save_IFS
33655
33656 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33657 ;;
33658esac
33659fi
33660ZipDelegate=$ac_cv_path_ZipDelegate
33661if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033663$as_echo "$ZipDelegate" >&6; }
33664else
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo "no" >&6; }
33667fi
33668
33669
33670
33671# Prefer lpr to lp; lp needs options tacked on.
33672if test "$LPRDelegate" != no; then
33673 PrintDelegate="$LPRDelegate"
33674else
33675 PrintDelegate="$LPDelegate -c -s"
33676fi
33677
33678
33679# Installed ImageMagick utiltity paths
33680ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33681DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33682MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33683
33684# Set delegate booleans
33685have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33686have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33687have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33688have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33689have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033690have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033691have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33692have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033693have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33694have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33695
33696#
33697# Test for font directories
33698#
33699type_include_files=''
33700
cristy430a7312010-01-21 20:44:04 +000033701# Dejavu fonts.
33702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33703$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33704dejavu_font_dir=''
33705if test "${with_dejavu_font_dir}" != 'default'; then
33706 dejavu_font_dir="${with_dejavu_font_dir}/"
33707else
33708 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33709 if test -f "${font_dir}DejaVuSerif.ttf"; then
33710 dejavu_font_dir="${font_dir}"
33711 break 1
33712 fi
33713 done
33714fi
33715if test "${dejavu_font_dir}x" != 'x'; then
33716 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033717 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33718$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033719else
cristy09b53e12011-10-14 12:47:22 +000033720 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33721$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033722fi
33723
33724
cristy3ed852e2009-09-05 21:47:34 +000033725# Windows
33726windows_font_dir=''
33727if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33728 windows_font_dir="${with_windows_font_dir}/"
33729fi
cristy430a7312010-01-21 20:44:04 +000033730if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033731 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33732 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33733 fi
33734 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33735 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33736 fi
33737 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33738 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33739 fi
33740fi
cristy430a7312010-01-21 20:44:04 +000033741if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033742 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33743fi
33744
33745
33746# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33749ghostscript_font_dir=''
33750if test "${with_gs_font_dir}" != 'default'; then
33751 ghostscript_font_dir="${with_gs_font_dir}/"
33752else
33753 if test "${native_win32_build}" = 'yes'; then
33754 # Native Windows Build
33755 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33756 if test -f "${font_dir}a010013l.pfb"; then
33757 ghostscript_font_dir="$font_dir"
33758 break 1
33759 fi
33760 done
33761 if test "${PSDelegate}" != 'gswin32c'; then
33762 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33763 fi
33764 else
33765 # Linux / Mac OS X / Unix Build
33766 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
33767 if test -f "${font_dir}a010013l.pfb"; then
33768 ghostscript_font_dir="${font_dir}"
33769 break 1
33770 fi
33771 done
33772 if test "${ghostscript_font_dir}x" = 'x'; then
33773 if test "$PSDelegate" != 'gs'; then
33774 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33775 fi
33776 fi
33777 fi
33778fi
33779if test "${ghostscript_font_dir}x" != 'x'; then
33780 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33782$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033783else
cristy09b53e12011-10-14 12:47:22 +000033784 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33785$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000033786fi
33787
33788case "${build_os}" in
33789 mingw* )
33790 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33791 ;;
33792esac
33793
33794
33795
33796#
33797# Handle case where user doesn't want frozen paths
33798#
33799if test "$with_frozenpaths" != 'yes'; then
33800 # Re-set delegate definitions to default (no paths)
33801 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033802 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33803 BZIPDelegate="$BZIPDelegateDefault"
33804 BrowseDelegate="$BrowseDelegateDefault"
33805 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33806 CatDelegate="$CatDelegateDefault"
33807 ConvertDelegate="$ConvertDelegateDefault"
33808 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33809 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33810 EchoDelegate="$EchoDelegateDefault"
33811 EditorDelegate="$EditorDelegateDefault"
33812 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33813 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33814 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33815 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33816 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33817 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33818 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033819 LaunchDelegate="$LaunchDelegateDefault"
33820 MANDelegate="$MANDelegateDefault"
33821 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33822 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033823 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033824 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33825 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033826 PCLDelegate="$PCLDelegateDefault"
33827 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33828 POVDelegate="$POVDelegateDefault"
33829 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033830 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33831 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033832 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033833 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000033834 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033835 ShowImageDelegate="$ShowImageDelegateDefault"
33836 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033837 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033838 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33839 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33840 XPSDelegate="$XPSDelegateDefault"
33841 ZipDelegate="$ZipDelegateDefault"
33842fi
33843
33844# Delegate substitutions
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
33879
33880
33881
33882
33883
33884
cristy3ed852e2009-09-05 21:47:34 +000033885#
33886# RPM support.
33887#
33888RPM=''
33889for ac_prog in gnutar gtar tar
33890do
33891 # Extract the first word of "$ac_prog", so it can be a program name with args.
33892set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033895if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033896 $as_echo_n "(cached) " >&6
33897else
33898 if test -n "$TAR"; then
33899 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33900else
33901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33902for as_dir in $PATH
33903do
33904 IFS=$as_save_IFS
33905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033908 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910 break 2
33911 fi
33912done
cristy8b350f62009-11-15 23:12:43 +000033913 done
cristy3ed852e2009-09-05 21:47:34 +000033914IFS=$as_save_IFS
33915
33916fi
33917fi
33918TAR=$ac_cv_prog_TAR
33919if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo "$TAR" >&6; }
33922else
cristy8b350f62009-11-15 23:12:43 +000033923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo "no" >&6; }
33925fi
33926
33927
33928 test -n "$TAR" && break
33929done
33930
33931for ac_prog in perl
33932do
33933 # Extract the first word of "$ac_prog", so it can be a program name with args.
33934set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033937if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033938 $as_echo_n "(cached) " >&6
33939else
33940 if test -n "$PERL"; then
33941 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33942else
33943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33944for as_dir in $PATH
33945do
33946 IFS=$as_save_IFS
33947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033950 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952 break 2
33953 fi
33954done
cristy8b350f62009-11-15 23:12:43 +000033955 done
cristy3ed852e2009-09-05 21:47:34 +000033956IFS=$as_save_IFS
33957
33958fi
33959fi
33960PERL=$ac_cv_prog_PERL
33961if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033963$as_echo "$PERL" >&6; }
33964else
cristy8b350f62009-11-15 23:12:43 +000033965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo "no" >&6; }
33967fi
33968
33969
33970 test -n "$PERL" && break
33971done
33972
33973for ac_prog in rpmbuild rpm
33974do
33975 # Extract the first word of "$ac_prog", so it can be a program name with args.
33976set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033979if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033980 $as_echo_n "(cached) " >&6
33981else
33982 if test -n "$RPM"; then
33983 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33984else
33985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33986for as_dir in $PATH
33987do
33988 IFS=$as_save_IFS
33989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033992 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033994 break 2
33995 fi
33996done
cristy8b350f62009-11-15 23:12:43 +000033997 done
cristy3ed852e2009-09-05 21:47:34 +000033998IFS=$as_save_IFS
33999
34000fi
34001fi
34002RPM=$ac_cv_prog_RPM
34003if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034005$as_echo "$RPM" >&6; }
34006else
cristy8b350f62009-11-15 23:12:43 +000034007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034008$as_echo "no" >&6; }
34009fi
34010
34011
34012 test -n "$RPM" && break
34013done
34014
34015
cristy73bd4a52010-10-05 11:24:23 +000034016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34017
34018
34019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34020
34021
34022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34023
34024
34025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34026
34027
34028 if test "x$RPM" != "x" ; then
34029 RPM_DELEGATE_TRUE=
34030 RPM_DELEGATE_FALSE='#'
34031else
34032 RPM_DELEGATE_TRUE='#'
34033 RPM_DELEGATE_FALSE=
34034fi
34035
cristy3ed852e2009-09-05 21:47:34 +000034036
34037#
34038# 7ZIP support (http://p7zip.sourceforge.net/)
34039#
34040P7ZIP=''
34041for ac_prog in 7za
34042do
34043 # Extract the first word of "$ac_prog", so it can be a program name with args.
34044set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034047if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034048 $as_echo_n "(cached) " >&6
34049else
34050 if test -n "$P7ZIP"; then
34051 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34052else
34053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34054for as_dir in $PATH
34055do
34056 IFS=$as_save_IFS
34057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034060 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034062 break 2
34063 fi
34064done
cristy8b350f62009-11-15 23:12:43 +000034065 done
cristy3ed852e2009-09-05 21:47:34 +000034066IFS=$as_save_IFS
34067
34068fi
34069fi
34070P7ZIP=$ac_cv_prog_P7ZIP
34071if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034073$as_echo "$P7ZIP" >&6; }
34074else
cristy8b350f62009-11-15 23:12:43 +000034075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo "no" >&6; }
34077fi
34078
34079
34080 test -n "$P7ZIP" && break
34081done
34082
34083
cristy73bd4a52010-10-05 11:24:23 +000034084 if test "x$P7ZIP" != "x" ; then
34085 P7ZIP_DELEGATE_TRUE=
34086 P7ZIP_DELEGATE_FALSE='#'
34087else
34088 P7ZIP_DELEGATE_TRUE='#'
34089 P7ZIP_DELEGATE_FALSE=
34090fi
34091
cristy3ed852e2009-09-05 21:47:34 +000034092
34093#
34094# ZIP support (http://www.info-zip.org/Zip.html)
34095#
34096ZIP=''
34097for ac_prog in zip
34098do
34099 # Extract the first word of "$ac_prog", so it can be a program name with args.
34100set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034102$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034103if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034104 $as_echo_n "(cached) " >&6
34105else
34106 if test -n "$ZIP"; then
34107 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34108else
34109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34110for as_dir in $PATH
34111do
34112 IFS=$as_save_IFS
34113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034116 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118 break 2
34119 fi
34120done
cristy8b350f62009-11-15 23:12:43 +000034121 done
cristy3ed852e2009-09-05 21:47:34 +000034122IFS=$as_save_IFS
34123
34124fi
34125fi
34126ZIP=$ac_cv_prog_ZIP
34127if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129$as_echo "$ZIP" >&6; }
34130else
cristy8b350f62009-11-15 23:12:43 +000034131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132$as_echo "no" >&6; }
34133fi
34134
34135
34136 test -n "$ZIP" && break
34137done
34138
34139
cristy73bd4a52010-10-05 11:24:23 +000034140 if test "x$ZIP" != "x" ; then
34141 ZIP_DELEGATE_TRUE=
34142 ZIP_DELEGATE_FALSE='#'
34143else
34144 ZIP_DELEGATE_TRUE='#'
34145 ZIP_DELEGATE_FALSE=
34146fi
34147
cristy3ed852e2009-09-05 21:47:34 +000034148
34149#
34150# GhostPCL related configuration.
34151#
34152PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034153PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034154PCLMonoDevice=pbmraw
34155if test -z "$PCLVersion"; then
34156 PCLVersion='unknown'
34157fi
34158if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34160$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034163 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34164$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034165 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034167$as_echo_n "checking for pcl color device... " >&6; }
34168 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34169 :
34170 else
34171 PCLColorDevice=ppmraw
34172 fi
cristy09b53e12011-10-14 12:47:22 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34174$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034175
34176 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034178$as_echo_n "checking for pcl CMYK device... " >&6; }
34179 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34180 :
34181 else
34182 PCLCMYKDevice=$PCLColorDevice
34183 fi
cristy09b53e12011-10-14 12:47:22 +000034184 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34185$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034186
34187 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo_n "checking for pcl mono device... " >&6; }
34190 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34191 :
34192 else
34193 PCLMonoDevice=$PCLColorDevice
34194 fi
cristy09b53e12011-10-14 12:47:22 +000034195 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34196$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034197fi
34198
34199
34200
34201
34202
34203
34204#
34205# GhostXPS related configuration.
34206#
34207XPSColorDevice=ppmraw
34208XPSCMYKDevice=bmpsep8
34209XPSMonoDevice=pbmraw
34210if test -z "$XPSVersion"; then
34211 XPSVersion='unknown'
34212fi
34213if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034214 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34215$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034218 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34219$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034220 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo_n "checking for xps color device... " >&6; }
34223 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34224 :
34225 else
34226 XPSColorDevice=ppmraw
34227 fi
cristy09b53e12011-10-14 12:47:22 +000034228 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34229$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034230
34231 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo_n "checking for xps CMYK device... " >&6; }
34234 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34235 :
34236 else
34237 XPSCMYKDevice=$XPSColorDevice
34238 fi
cristy09b53e12011-10-14 12:47:22 +000034239 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34240$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034241
34242 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244$as_echo_n "checking for xps mono device... " >&6; }
34245 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34246 :
34247 else
34248 XPSMonoDevice=$XPSColorDevice
34249 fi
cristy09b53e12011-10-14 12:47:22 +000034250 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34251$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034252fi
34253
34254
34255
34256
34257
34258
34259#
34260# Ghostscript related configuration.
34261#
cristya97426c2011-02-04 01:41:27 +000034262GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034263GSColorDevice=pnmraw
34264GSCMYKDevice=pam
34265GSMonoDevice=pbmraw
34266GSPDFDevice=pdfwrite
34267GSPSDevice=pswrite
34268GSEPSDevice=epswrite
34269GSVersion='unknown'
34270if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034271 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34272$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34276$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034278$as_echo_n "checking for Ghostscript version... " >&6; }
34279 if GSVersion=`$PSDelegate --version`; then
34280 :
34281 else
34282 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34283 fi
cristy09b53e12011-10-14 12:47:22 +000034284 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34285$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034286
34287 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289$as_echo_n "checking for gs alpha device... " >&6; }
34290 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34291 :
34292 else
34293 GSAlphaDevice=pnmraw
34294 fi
cristy09b53e12011-10-14 12:47:22 +000034295 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34296$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034297
34298 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo_n "checking for gs color device... " >&6; }
34301 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34302 :
34303 else
34304 GSColorDevice=pnmraw
34305 fi
cristy09b53e12011-10-14 12:47:22 +000034306 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34307$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034308
34309 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034311$as_echo_n "checking for gs CMYK device... " >&6; }
34312 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34313 :
34314 else
34315 GSCMYKDevice=bmpsep8
34316 fi
cristy09b53e12011-10-14 12:47:22 +000034317 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34318$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034319
34320 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo_n "checking for gs mono device... " >&6; }
34323 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34324 :
34325 else
34326 GSMonoDevice=$GSColorDevice
34327 fi
cristy09b53e12011-10-14 12:47:22 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34329$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034330
34331 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333$as_echo_n "checking for gs PDF writing device... " >&6; }
34334 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34335 :
34336 else
34337 GSPDFDevice=nodevice
34338 fi
cristy09b53e12011-10-14 12:47:22 +000034339 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34340$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034341
34342 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034344$as_echo_n "checking for gs PS writing device... " >&6; }
34345 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34346 :
34347 else
34348 GSPSDevice=nodevice
34349 fi
cristy09b53e12011-10-14 12:47:22 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34351$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034352
34353 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355$as_echo_n "checking for gs EPS writing device... " >&6; }
34356 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34357 :
34358 else
34359 GSEPSDevice=nodevice
34360 fi
cristy09b53e12011-10-14 12:47:22 +000034361 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34362$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034363fi
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374#
34375# PerlMagick-related configuration
34376#
34377
34378# Look for PERL if PerlMagick requested
34379# If name/path of desired PERL interpreter is specified, look for that one first
34380have_perl='no'
34381if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34383$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034385$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34387$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034388 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034391if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034392 $as_echo_n "(cached) " >&6
34393else
34394 ac_cv_path_PERL="$with_perl"
34395fi
cristy8b350f62009-11-15 23:12:43 +000034396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo "$ac_cv_path_PERL" >&6; };
34398 PERL=$ac_cv_path_PERL
34399 have_perl="$ac_cv_path_PERL"
34400 else
34401 for ac_prog in perl perl5
34402do
34403 # Extract the first word of "$ac_prog", so it can be a program name with args.
34404set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034407if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034408 $as_echo_n "(cached) " >&6
34409else
34410 case $PERL in
34411 [\\/]* | ?:[\\/]*)
34412 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34413 ;;
34414 *)
34415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34416for as_dir in $PATH
34417do
34418 IFS=$as_save_IFS
34419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034422 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034424 break 2
34425 fi
34426done
cristy8b350f62009-11-15 23:12:43 +000034427 done
cristy3ed852e2009-09-05 21:47:34 +000034428IFS=$as_save_IFS
34429
34430 ;;
34431esac
34432fi
34433PERL=$ac_cv_path_PERL
34434if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034436$as_echo "$PERL" >&6; }
34437else
cristy8b350f62009-11-15 23:12:43 +000034438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo "no" >&6; }
34440fi
34441
34442
34443 test -n "$PERL" && break
34444done
34445 if test "$ac_cv_path_PERL"; then
34446 have_perl="$ac_cv_path_PERL"
34447 fi
34448 fi
34449fi
34450
cristy949301e2010-01-06 01:38:40 +000034451if test "$with_perl" != 'yes' ; then
34452 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34453fi
34454
34455PERL_SUPPORTS_DESTDIR='no'
34456
cristy3ed852e2009-09-05 21:47:34 +000034457with_perl_static='no'
34458with_perl_dynamic='no'
34459if test "$have_perl" != 'no'; then
34460 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34461 with_perl_static='yes'
34462 fi
34463 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34464 with_perl_dynamic='yes'
34465 fi
34466 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034467
34468
34469
34470
34471 if test -n "$PERL"; then :
34472
34473 ax_perl_version="5.8.1"
34474
34475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34476$as_echo_n "checking for perl version... " >&6; }
34477
34478 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34479
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34481$as_echo "$perl_version" >&6; }
34482
34483 PERL_VERSION=$perl_version
34484
34485
34486
34487
34488
34489 # Used to indicate true or false condition
34490 ax_compare_version=false
34491
34492 # Convert the two version strings to be compared into a format that
34493 # allows a simple string comparison. The end result is that a version
34494 # string of the form 1.12.5-r617 will be converted to the form
34495 # 0001001200050617. In other words, each number is zero padded to four
34496 # digits, and non digits are removed.
34497
34498 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34499 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34500 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34501 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34502 -e 's/[^0-9]//g'`
34503
34504
34505 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34506 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34507 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34508 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34509 -e 's/[^0-9]//g'`
34510
34511
34512 ax_compare_version=`echo "x$ax_compare_version_A
34513x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34514
34515
34516
34517 if test "$ax_compare_version" = "true" ; then
34518
34519 :
34520 PERL_SUPPORTS_DESTDIR='yes'
34521
34522 else
34523 :
34524 PERL_SUPPORTS_DESTDIR='no'
34525
34526 fi
34527
34528
34529else
34530
34531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34532$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34533 PERL_SUPPORTS_DESTDIR='no'
34534
cristy3ed852e2009-09-05 21:47:34 +000034535fi
cristy73bd4a52010-10-05 11:24:23 +000034536
34537fi
34538 if test "$have_perl" != 'no'; then
34539 WITH_PERL_TRUE=
34540 WITH_PERL_FALSE='#'
34541else
34542 WITH_PERL_TRUE='#'
34543 WITH_PERL_FALSE=
34544fi
34545
34546 if test $with_perl_static = 'yes'; then
34547 WITH_PERL_STATIC_TRUE=
34548 WITH_PERL_STATIC_FALSE='#'
34549else
34550 WITH_PERL_STATIC_TRUE='#'
34551 WITH_PERL_STATIC_FALSE=
34552fi
34553
34554 if test $with_perl_dynamic = 'yes'; then
34555 WITH_PERL_DYNAMIC_TRUE=
34556 WITH_PERL_DYNAMIC_FALSE='#'
34557else
34558 WITH_PERL_DYNAMIC_TRUE='#'
34559 WITH_PERL_DYNAMIC_FALSE=
34560fi
34561
cristy3ed852e2009-09-05 21:47:34 +000034562
34563
34564# Determine path to pick up MagickCore library from for use with building PerlMagick
34565MAGICKCORE_PATH="${LIB_DIR}"
34566if test $with_perl_static = 'yes'; then
34567 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34568 libtool_objdir=$objdir
34569
34570 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034571 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034572fi
34573
34574
34575# Create a simple string containing format names for all delegate libraries
34576DELEGATES=''
34577if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34578if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34579if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34580if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34581if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34582if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34583if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34584if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34585if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34586if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34587if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34588if test "$have_jpeg" = 'yes'; then
34589 DELEGATES="$DELEGATES jpeg";
34590 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34591fi
34592if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034593if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034594if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34595if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034596if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034597if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34598if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034599if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034600if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34601if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34602if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34603if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34604if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34605if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34606if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34607
34608
34609
34610#
34611# Handle special compiler flags
34612#
34613
34614# Add '-p' if prof source profiling support enabled
34615if test "$enable_prof" = 'yes'; then
34616 CFLAGS="-p $CFLAGS"
34617 CXXFLAGS="-p $CXXFLAGS"
34618 LDFLAGS="-p $LDFLAGS"
34619fi
34620
34621# Add '-pg' if gprof source profiling support enabled
34622if test "$enable_gprof" = 'yes'; then
34623 CFLAGS="-pg $CFLAGS"
34624 CXXFLAGS="-pg $CXXFLAGS"
34625 LDFLAGS="-pg $LDFLAGS"
34626fi
34627
34628# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34629# This is a gcc-specific feature
34630if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034633if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034634 $as_echo_n "(cached) " >&6
34635else
34636 ac_check_lib_save_LIBS=$LIBS
34637LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034639/* end confdefs.h. */
34640
34641/* Override any GCC internal prototype to avoid an error.
34642 Use char because int might match the return type of a GCC
34643 builtin and then its argument prototype would still apply. */
34644#ifdef __cplusplus
34645extern "C"
34646#endif
34647char _gcov_init ();
34648int
34649main ()
34650{
34651return _gcov_init ();
34652 ;
34653 return 0;
34654}
34655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034657 ac_cv_lib_gcov__gcov_init=yes
34658else
cristy8b350f62009-11-15 23:12:43 +000034659 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034660fi
cristy8b350f62009-11-15 23:12:43 +000034661rm -f core conftest.err conftest.$ac_objext \
34662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034663LIBS=$ac_check_lib_save_LIBS
34664fi
cristy8b350f62009-11-15 23:12:43 +000034665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034666$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034667if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034668 cat >>confdefs.h <<_ACEOF
34669#define HAVE_LIBGCOV 1
34670_ACEOF
34671
34672 LIBS="-lgcov $LIBS"
34673
34674fi
34675
cristy8b350f62009-11-15 23:12:43 +000034676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034677$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034678if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034679 $as_echo_n "(cached) " >&6
34680else
34681 ac_check_lib_save_LIBS=$LIBS
34682LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034684/* end confdefs.h. */
34685
34686/* Override any GCC internal prototype to avoid an error.
34687 Use char because int might match the return type of a GCC
34688 builtin and then its argument prototype would still apply. */
34689#ifdef __cplusplus
34690extern "C"
34691#endif
34692char __gcov_init ();
34693int
34694main ()
34695{
34696return __gcov_init ();
34697 ;
34698 return 0;
34699}
34700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034702 ac_cv_lib_gcov___gcov_init=yes
34703else
cristy8b350f62009-11-15 23:12:43 +000034704 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034705fi
cristy8b350f62009-11-15 23:12:43 +000034706rm -f core conftest.err conftest.$ac_objext \
34707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034708LIBS=$ac_check_lib_save_LIBS
34709fi
cristy8b350f62009-11-15 23:12:43 +000034710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034711$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034712if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034713 cat >>confdefs.h <<_ACEOF
34714#define HAVE_LIBGCOV 1
34715_ACEOF
34716
34717 LIBS="-lgcov $LIBS"
34718
34719fi
34720
34721 case "$target_os" in
34722 darwin*)
34723 OSX_GCOV_LDFLAG="-Wl,-single_module"
34724 ;;
34725 *)
34726 OSX_GCOV_LDFLAG=""
34727 ;;
34728 esac
34729
34730 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34731 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34732 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34733fi
34734
34735#
34736# Build library dependency list for libMagickCore
34737#
34738
cristyc6722092012-10-14 00:19:31 +000034739if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000034740 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 +000034741else
cristy3a75f062012-09-08 23:29:40 +000034742 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 +000034743fi
34744
34745
34746#
34747# Remove extraneous spaces from output variables (asthetic)
34748#
34749X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34750X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34751X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34752X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34753
34754CC=`echo $CC | sed -e 's/ */ /g'`
34755CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34756CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34757CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34758DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34759DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34760LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34761TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34762MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34763#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34764
34765# Pass only user-provided LIBS as "global" libraries
34766LIBS=$USER_LIBS
34767
34768#AC_SUBST(CPPFLAGS)
34769
34770#AC_SUBST(LDFLAGS)
34771#AC_SUBST(X_PRE_LIBS)
34772#AC_SUBST(X_LIBS)
34773#AC_SUBST(X_EXTRA_LIBS)
34774
34775MAGICK_CFLAGS=$CFLAGS
34776MAGICK_CXXFLAGS="$CXXFLAGS"
34777MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34778MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34779MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000034780MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000034781
34782
34783
34784
34785
34786
34787
34788
cristyfd9dcd42010-08-08 18:07:02 +000034789
cristy3ed852e2009-09-05 21:47:34 +000034790# Set configured scripts to executable.
34791ac_config_commands="$ac_config_commands default"
34792
cristy2bd4b6e2012-07-22 15:29:11 +000034793ac_config_commands="$ac_config_commands magick.sh.in"
34794
cristy3ed852e2009-09-05 21:47:34 +000034795ac_config_commands="$ac_config_commands MagickCore-config.in"
34796
cristy3ed852e2009-09-05 21:47:34 +000034797ac_config_commands="$ac_config_commands MagickWand-config.in"
34798
cristy3ed852e2009-09-05 21:47:34 +000034799ac_config_commands="$ac_config_commands Magick++-config.in"
34800
34801ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34802
34803
cristy09b53e12011-10-14 12:47:22 +000034804{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34805$as_echo "$as_me: -------------------------------------------------------------" >&6;}
34806{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
34807$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034808cat >confcache <<\_ACEOF
34809# This file is a shell script that caches the results of configure
34810# tests run on this system so they can be shared between configure
34811# scripts and configure runs, see configure's option --config-cache.
34812# It is not useful on other systems. If it contains results you don't
34813# want to keep, you may remove or edit it.
34814#
34815# config.status only pays attention to the cache file if you give it
34816# the --recheck option to rerun configure.
34817#
34818# `ac_cv_env_foo' variables (set or unset) will be overridden when
34819# loading this file, other *unset* `ac_cv_foo' will be assigned the
34820# following values.
34821
34822_ACEOF
34823
34824# The following way of writing the cache mishandles newlines in values,
34825# but we know of no workaround that is simple, portable, and efficient.
34826# So, we kill variables containing newlines.
34827# Ultrix sh set writes to stderr and can't be redirected directly,
34828# and sets the high bit in the cache file unless we assign to the vars.
34829(
34830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34831 eval ac_val=\$$ac_var
34832 case $ac_val in #(
34833 *${as_nl}*)
34834 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034836$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34837 esac
34838 case $ac_var in #(
34839 _ | IFS | as_nl) ;; #(
34840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034841 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034842 esac ;;
34843 esac
34844 done
34845
34846 (set) 2>&1 |
34847 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34848 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034849 # `set' does not quote correctly, so add quotes: double-quote
34850 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034851 sed -n \
34852 "s/'/'\\\\''/g;
34853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34854 ;; #(
34855 *)
34856 # `set' quotes correctly as required by POSIX, so do not add quotes.
34857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34858 ;;
34859 esac |
34860 sort
34861) |
34862 sed '
34863 /^ac_cv_env_/b end
34864 t clear
34865 :clear
34866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34867 t end
34868 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34869 :end' >>confcache
34870if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34871 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034872 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034873 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034874$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034875 if test ! -f "$cache_file" || test -h "$cache_file"; then
34876 cat confcache >"$cache_file"
34877 else
34878 case $cache_file in #(
34879 */* | ?:*)
34880 mv -f confcache "$cache_file"$$ &&
34881 mv -f "$cache_file"$$ "$cache_file" ;; #(
34882 *)
34883 mv -f confcache "$cache_file" ;;
34884 esac
34885 fi
34886 fi
cristy3ed852e2009-09-05 21:47:34 +000034887 else
cristy8b350f62009-11-15 23:12:43 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034889$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34890 fi
34891fi
34892rm -f confcache
34893
34894test "x$prefix" = xNONE && prefix=$ac_default_prefix
34895# Let make expand exec_prefix.
34896test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34897
34898DEFS=-DHAVE_CONFIG_H
34899
34900ac_libobjs=
34901ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034902U=
cristy3ed852e2009-09-05 21:47:34 +000034903for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34904 # 1. Remove the extension, and $U if already installed.
34905 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34906 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34907 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34908 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034909 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34910 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034911done
34912LIBOBJS=$ac_libobjs
34913
34914LTLIBOBJS=$ac_ltlibobjs
34915
34916
cristyc0890a62012-07-19 00:18:20 +000034917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34918$as_echo_n "checking that generated files are newer than configure... " >&6; }
34919 if test -n "$am_sleep_pid"; then
34920 # Hide warnings about reused PIDs.
34921 wait $am_sleep_pid 2>/dev/null
34922 fi
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
34924$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000034925 if test -n "$EXEEXT"; then
34926 am__EXEEXT_TRUE=
34927 am__EXEEXT_FALSE='#'
34928else
34929 am__EXEEXT_TRUE='#'
34930 am__EXEEXT_FALSE=
34931fi
cristy3ed852e2009-09-05 21:47:34 +000034932
cristy73bd4a52010-10-05 11:24:23 +000034933if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034934 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034935Usually this means the macro was only invoked conditionally." "$LINENO" 5
34936fi
34937if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034938 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034939Usually this means the macro was only invoked conditionally." "$LINENO" 5
34940fi
34941if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034942 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034943Usually this means the macro was only invoked conditionally." "$LINENO" 5
34944fi
34945if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034946 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034947Usually this means the macro was only invoked conditionally." "$LINENO" 5
34948fi
34949if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034950 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034951Usually this means the macro was only invoked conditionally." "$LINENO" 5
34952fi
34953if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034954 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034955Usually this means the macro was only invoked conditionally." "$LINENO" 5
34956fi
34957if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034958 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034959Usually this means the macro was only invoked conditionally." "$LINENO" 5
34960fi
34961if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034962 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034963Usually this means the macro was only invoked conditionally." "$LINENO" 5
34964fi
cristy73bd4a52010-10-05 11:24:23 +000034965if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034966 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034967Usually this means the macro was only invoked conditionally." "$LINENO" 5
34968fi
34969if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034970 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034971Usually this means the macro was only invoked conditionally." "$LINENO" 5
34972fi
cristy73bd4a52010-10-05 11:24:23 +000034973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034974 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034975Usually this means the macro was only invoked conditionally." "$LINENO" 5
34976fi
cristy71d8c202012-03-20 17:05:01 +000034977if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
34978 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
34979Usually this means the macro was only invoked conditionally." "$LINENO" 5
34980fi
cristy73bd4a52010-10-05 11:24:23 +000034981
34982if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034983 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034984Usually this means the macro was only invoked conditionally." "$LINENO" 5
34985fi
34986if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034987 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034988Usually this means the macro was only invoked conditionally." "$LINENO" 5
34989fi
34990if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034991 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034992Usually this means the macro was only invoked conditionally." "$LINENO" 5
34993fi
34994if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034995 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034996Usually this means the macro was only invoked conditionally." "$LINENO" 5
34997fi
34998if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034999 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035000Usually this means the macro was only invoked conditionally." "$LINENO" 5
35001fi
35002if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035003 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035004Usually this means the macro was only invoked conditionally." "$LINENO" 5
35005fi
cristy5eef09f2012-10-16 12:08:28 +000035006if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35007 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35008Usually this means the macro was only invoked conditionally." "$LINENO" 5
35009fi
cristy73bd4a52010-10-05 11:24:23 +000035010if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035011 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035012Usually this means the macro was only invoked conditionally." "$LINENO" 5
35013fi
35014if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035015 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035016Usually this means the macro was only invoked conditionally." "$LINENO" 5
35017fi
35018if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035019 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035020Usually this means the macro was only invoked conditionally." "$LINENO" 5
35021fi
35022if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035023 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035024Usually this means the macro was only invoked conditionally." "$LINENO" 5
35025fi
35026if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035027 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035028Usually this means the macro was only invoked conditionally." "$LINENO" 5
35029fi
35030if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035031 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035032Usually this means the macro was only invoked conditionally." "$LINENO" 5
35033fi
35034if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035035 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035036Usually this means the macro was only invoked conditionally." "$LINENO" 5
35037fi
35038if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035039 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035040Usually this means the macro was only invoked conditionally." "$LINENO" 5
35041fi
35042if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035043 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035044Usually this means the macro was only invoked conditionally." "$LINENO" 5
35045fi
35046if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035047 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035048Usually this means the macro was only invoked conditionally." "$LINENO" 5
35049fi
35050if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035051 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035052Usually this means the macro was only invoked conditionally." "$LINENO" 5
35053fi
35054if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035055 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035056Usually this means the macro was only invoked conditionally." "$LINENO" 5
35057fi
35058if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035059 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035060Usually this means the macro was only invoked conditionally." "$LINENO" 5
35061fi
35062if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035063 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035064Usually this means the macro was only invoked conditionally." "$LINENO" 5
35065fi
cristyfbb0ef02010-12-19 02:32:11 +000035066if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35067 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35068Usually this means the macro was only invoked conditionally." "$LINENO" 5
35069fi
cristy73bd4a52010-10-05 11:24:23 +000035070if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035071 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035072Usually this means the macro was only invoked conditionally." "$LINENO" 5
35073fi
cristy41cbe8a2011-10-27 01:35:18 +000035074if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35075 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35076Usually this means the macro was only invoked conditionally." "$LINENO" 5
35077fi
cristya054b762012-03-26 23:16:00 +000035078if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35079 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035080Usually this means the macro was only invoked conditionally." "$LINENO" 5
35081fi
cristy73bd4a52010-10-05 11:24:23 +000035082if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035083 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035084Usually this means the macro was only invoked conditionally." "$LINENO" 5
35085fi
35086if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035087 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035088Usually this means the macro was only invoked conditionally." "$LINENO" 5
35089fi
35090if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035091 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035092Usually this means the macro was only invoked conditionally." "$LINENO" 5
35093fi
35094if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035095 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035096Usually this means the macro was only invoked conditionally." "$LINENO" 5
35097fi
cristyb1860752011-03-14 00:27:46 +000035098if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35099 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35100Usually this means the macro was only invoked conditionally." "$LINENO" 5
35101fi
cristy73bd4a52010-10-05 11:24:23 +000035102if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035103 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035104Usually this means the macro was only invoked conditionally." "$LINENO" 5
35105fi
35106if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035107 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035108Usually this means the macro was only invoked conditionally." "$LINENO" 5
35109fi
35110if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035111 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035112Usually this means the macro was only invoked conditionally." "$LINENO" 5
35113fi
35114if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035115 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035116Usually this means the macro was only invoked conditionally." "$LINENO" 5
35117fi
35118if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035119 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035120Usually this means the macro was only invoked conditionally." "$LINENO" 5
35121fi
35122if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035123 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035124Usually this means the macro was only invoked conditionally." "$LINENO" 5
35125fi
35126if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035127 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035128Usually this means the macro was only invoked conditionally." "$LINENO" 5
35129fi
35130if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035131 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035132Usually this means the macro was only invoked conditionally." "$LINENO" 5
35133fi
cristy3ed852e2009-09-05 21:47:34 +000035134
cristyda16f162011-02-19 23:52:17 +000035135: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035136ac_write_fail=0
35137ac_clean_files_save=$ac_clean_files
35138ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035139{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035140$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035141as_write_fail=0
35142cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035143#! $SHELL
35144# Generated by $as_me.
35145# Run this file to recreate the current configuration.
35146# Compiler output produced by configure, useful for debugging
35147# configure, is in config.log if it exists.
35148
35149debug=false
35150ac_cs_recheck=false
35151ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035152
cristy8b350f62009-11-15 23:12:43 +000035153SHELL=\${CONFIG_SHELL-$SHELL}
35154export SHELL
35155_ASEOF
35156cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35157## -------------------- ##
35158## M4sh Initialization. ##
35159## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035160
35161# Be more Bourne compatible
35162DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035163if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035164 emulate sh
35165 NULLCMD=:
35166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35167 # is contrary to our usage. Disable this feature.
35168 alias -g '${1+"$@"}'='"$@"'
35169 setopt NO_GLOB_SUBST
35170else
cristy8b350f62009-11-15 23:12:43 +000035171 case `(set -o) 2>/dev/null` in #(
35172 *posix*) :
35173 set -o posix ;; #(
35174 *) :
35175 ;;
cristy3ed852e2009-09-05 21:47:34 +000035176esac
cristy3ed852e2009-09-05 21:47:34 +000035177fi
35178
35179
cristy3ed852e2009-09-05 21:47:34 +000035180as_nl='
35181'
35182export as_nl
35183# Printing a long string crashes Solaris 7 /usr/bin/printf.
35184as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035187# Prefer a ksh shell builtin over an external printf program on Solaris,
35188# but without wasting forks for bash or zsh.
35189if test -z "$BASH_VERSION$ZSH_VERSION" \
35190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35191 as_echo='print -r --'
35192 as_echo_n='print -rn --'
35193elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035194 as_echo='printf %s\n'
35195 as_echo_n='printf %s'
35196else
35197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35199 as_echo_n='/usr/ucb/echo -n'
35200 else
35201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35202 as_echo_n_body='eval
35203 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035204 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035205 *"$as_nl"*)
35206 expr "X$arg" : "X\\(.*\\)$as_nl";
35207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35208 esac;
35209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35210 '
35211 export as_echo_n_body
35212 as_echo_n='sh -c $as_echo_n_body as_echo'
35213 fi
35214 export as_echo_body
35215 as_echo='sh -c $as_echo_body as_echo'
35216fi
35217
35218# The user is always right.
35219if test "${PATH_SEPARATOR+set}" != set; then
35220 PATH_SEPARATOR=:
35221 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35222 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35223 PATH_SEPARATOR=';'
35224 }
35225fi
35226
cristy3ed852e2009-09-05 21:47:34 +000035227
35228# IFS
35229# We need space, tab and new line, in precisely that order. Quoting is
35230# there to prevent editors from complaining about space-tab.
35231# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35232# splitting by setting IFS to empty value.)
35233IFS=" "" $as_nl"
35234
35235# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035236as_myself=
cristy8b350f62009-11-15 23:12:43 +000035237case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035238 *[\\/]* ) as_myself=$0 ;;
35239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35240for as_dir in $PATH
35241do
35242 IFS=$as_save_IFS
35243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35245 done
cristy3ed852e2009-09-05 21:47:34 +000035246IFS=$as_save_IFS
35247
35248 ;;
35249esac
35250# We did not find ourselves, most probably we were run as `sh COMMAND'
35251# in which case we are not to be found in the path.
35252if test "x$as_myself" = x; then
35253 as_myself=$0
35254fi
35255if test ! -f "$as_myself"; then
35256 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035257 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035258fi
35259
cristy8b350f62009-11-15 23:12:43 +000035260# Unset variables that we do not need and which cause bugs (e.g. in
35261# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35262# suppresses any "Segmentation fault" message there. '((' could
35263# trigger a bug in pdksh 5.2.14.
35264for as_var in BASH_ENV ENV MAIL MAILPATH
35265do eval test x\${$as_var+set} = xset \
35266 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035267done
35268PS1='$ '
35269PS2='> '
35270PS4='+ '
35271
35272# NLS nuisances.
35273LC_ALL=C
35274export LC_ALL
35275LANGUAGE=C
35276export LANGUAGE
35277
cristy8b350f62009-11-15 23:12:43 +000035278# CDPATH.
35279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35280
35281
cristy98dddb52010-11-04 00:30:15 +000035282# as_fn_error STATUS ERROR [LINENO LOG_FD]
35283# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035284# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35285# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035286# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035287as_fn_error ()
35288{
cristy98dddb52010-11-04 00:30:15 +000035289 as_status=$1; test $as_status -eq 0 && as_status=1
35290 if test "$4"; then
35291 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35292 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035293 fi
cristy98dddb52010-11-04 00:30:15 +000035294 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035295 as_fn_exit $as_status
35296} # as_fn_error
35297
35298
35299# as_fn_set_status STATUS
35300# -----------------------
35301# Set $? to STATUS, without forking.
35302as_fn_set_status ()
35303{
35304 return $1
35305} # as_fn_set_status
35306
35307# as_fn_exit STATUS
35308# -----------------
35309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35310as_fn_exit ()
35311{
35312 set +e
35313 as_fn_set_status $1
35314 exit $1
35315} # as_fn_exit
35316
35317# as_fn_unset VAR
35318# ---------------
35319# Portably unset VAR.
35320as_fn_unset ()
35321{
35322 { eval $1=; unset $1;}
35323}
35324as_unset=as_fn_unset
35325# as_fn_append VAR VALUE
35326# ----------------------
35327# Append the text in VALUE to the end of the definition contained in VAR. Take
35328# advantage of any shell optimizations that allow amortized linear growth over
35329# repeated appends, instead of the typical quadratic growth present in naive
35330# implementations.
35331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35332 eval 'as_fn_append ()
35333 {
35334 eval $1+=\$2
35335 }'
35336else
35337 as_fn_append ()
35338 {
35339 eval $1=\$$1\$2
35340 }
35341fi # as_fn_append
35342
35343# as_fn_arith ARG...
35344# ------------------
35345# Perform arithmetic evaluation on the ARGs, and store the result in the
35346# global $as_val. Take advantage of shells that can avoid forks. The arguments
35347# must be portable across $(()) and expr.
35348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35349 eval 'as_fn_arith ()
35350 {
35351 as_val=$(( $* ))
35352 }'
35353else
35354 as_fn_arith ()
35355 {
35356 as_val=`expr "$@" || test $? -eq 1`
35357 }
35358fi # as_fn_arith
35359
35360
cristy3ed852e2009-09-05 21:47:34 +000035361if expr a : '\(a\)' >/dev/null 2>&1 &&
35362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35363 as_expr=expr
35364else
35365 as_expr=false
35366fi
35367
35368if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35369 as_basename=basename
35370else
35371 as_basename=false
35372fi
35373
cristy8b350f62009-11-15 23:12:43 +000035374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35375 as_dirname=dirname
35376else
35377 as_dirname=false
35378fi
cristy3ed852e2009-09-05 21:47:34 +000035379
cristy3ed852e2009-09-05 21:47:34 +000035380as_me=`$as_basename -- "$0" ||
35381$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35382 X"$0" : 'X\(//\)$' \| \
35383 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35384$as_echo X/"$0" |
35385 sed '/^.*\/\([^/][^/]*\)\/*$/{
35386 s//\1/
35387 q
35388 }
35389 /^X\/\(\/\/\)$/{
35390 s//\1/
35391 q
35392 }
35393 /^X\/\(\/\).*/{
35394 s//\1/
35395 q
35396 }
35397 s/.*/./; q'`
35398
cristy8b350f62009-11-15 23:12:43 +000035399# Avoid depending upon Character Ranges.
35400as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35401as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35402as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35403as_cr_digits='0123456789'
35404as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035405
35406ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035407case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035408-n*)
cristy8b350f62009-11-15 23:12:43 +000035409 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035410 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035411 xy) ECHO_C='\c';;
35412 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35413 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035414 esac;;
35415*)
35416 ECHO_N='-n';;
35417esac
cristy3ed852e2009-09-05 21:47:34 +000035418
35419rm -f conf$$ conf$$.exe conf$$.file
35420if test -d conf$$.dir; then
35421 rm -f conf$$.dir/conf$$.file
35422else
35423 rm -f conf$$.dir
35424 mkdir conf$$.dir 2>/dev/null
35425fi
35426if (echo >conf$$.file) 2>/dev/null; then
35427 if ln -s conf$$.file conf$$ 2>/dev/null; then
35428 as_ln_s='ln -s'
35429 # ... but there are two gotchas:
35430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035432 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035434 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035435 elif ln conf$$.file conf$$ 2>/dev/null; then
35436 as_ln_s=ln
35437 else
cristy14fefe52012-05-21 00:59:18 +000035438 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035439 fi
35440else
cristy14fefe52012-05-21 00:59:18 +000035441 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035442fi
35443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35444rmdir conf$$.dir 2>/dev/null
35445
cristy8b350f62009-11-15 23:12:43 +000035446
35447# as_fn_mkdir_p
35448# -------------
35449# Create "$as_dir" as a directory, including parents if necessary.
35450as_fn_mkdir_p ()
35451{
35452
35453 case $as_dir in #(
35454 -*) as_dir=./$as_dir;;
35455 esac
35456 test -d "$as_dir" || eval $as_mkdir_p || {
35457 as_dirs=
35458 while :; do
35459 case $as_dir in #(
35460 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35461 *) as_qdir=$as_dir;;
35462 esac
35463 as_dirs="'$as_qdir' $as_dirs"
35464 as_dir=`$as_dirname -- "$as_dir" ||
35465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35466 X"$as_dir" : 'X\(//\)[^/]' \| \
35467 X"$as_dir" : 'X\(//\)$' \| \
35468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35469$as_echo X"$as_dir" |
35470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35471 s//\1/
35472 q
35473 }
35474 /^X\(\/\/\)[^/].*/{
35475 s//\1/
35476 q
35477 }
35478 /^X\(\/\/\)$/{
35479 s//\1/
35480 q
35481 }
35482 /^X\(\/\).*/{
35483 s//\1/
35484 q
35485 }
35486 s/.*/./; q'`
35487 test -d "$as_dir" && break
35488 done
35489 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035490 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035491
35492
35493} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035494if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035495 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035496else
35497 test -d ./-p && rmdir ./-p
35498 as_mkdir_p=false
35499fi
35500
cristy14fefe52012-05-21 00:59:18 +000035501
35502# as_fn_executable_p FILE
35503# -----------------------
35504# Test if FILE is an executable regular file.
35505as_fn_executable_p ()
35506{
35507 test -f "$1" && test -x "$1"
35508} # as_fn_executable_p
35509as_test_x='test -x'
35510as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035511
35512# Sed expression to map a string onto a valid CPP name.
35513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35514
35515# Sed expression to map a string onto a valid variable name.
35516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35517
35518
35519exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035520## ----------------------------------- ##
35521## Main body of $CONFIG_STATUS script. ##
35522## ----------------------------------- ##
35523_ASEOF
35524test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035525
cristy8b350f62009-11-15 23:12:43 +000035526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35527# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035528# report actual input values of CONFIG_FILES etc. instead of their
35529# values after options handling.
35530ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035531This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035532generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035533
35534 CONFIG_FILES = $CONFIG_FILES
35535 CONFIG_HEADERS = $CONFIG_HEADERS
35536 CONFIG_LINKS = $CONFIG_LINKS
35537 CONFIG_COMMANDS = $CONFIG_COMMANDS
35538 $ $0 $@
35539
35540on `(hostname || uname -n) 2>/dev/null | sed 1q`
35541"
35542
35543_ACEOF
35544
35545case $ac_config_files in *"
35546"*) set x $ac_config_files; shift; ac_config_files=$*;;
35547esac
35548
35549case $ac_config_headers in *"
35550"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35551esac
35552
35553
35554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35555# Files that config.status was made for.
35556config_files="$ac_config_files"
35557config_headers="$ac_config_headers"
35558config_commands="$ac_config_commands"
35559
35560_ACEOF
35561
35562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35563ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035564\`$as_me' instantiates files and other configuration actions
35565from templates according to the current configuration. Unless the files
35566and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035567
cristy8b350f62009-11-15 23:12:43 +000035568Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035569
35570 -h, --help print this help, then exit
35571 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035572 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035573 -q, --quiet, --silent
35574 do not print progress messages
35575 -d, --debug don't remove temporary files
35576 --recheck update $as_me by reconfiguring in the same conditions
35577 --file=FILE[:TEMPLATE]
35578 instantiate the configuration file FILE
35579 --header=FILE[:TEMPLATE]
35580 instantiate the configuration header FILE
35581
35582Configuration files:
35583$config_files
35584
35585Configuration headers:
35586$config_headers
35587
35588Configuration commands:
35589$config_commands
35590
cristy8b350f62009-11-15 23:12:43 +000035591Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035592
35593_ACEOF
35594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035595ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035596ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035597ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035598configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035599 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035600
cristy14fefe52012-05-21 00:59:18 +000035601Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035602This config.status script is free software; the Free Software Foundation
35603gives unlimited permission to copy, distribute and modify it."
35604
35605ac_pwd='$ac_pwd'
35606srcdir='$srcdir'
35607INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035608MKDIR_P='$MKDIR_P'
35609AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035610test -n "\$AWK" || AWK=awk
35611_ACEOF
35612
35613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35614# The default lists apply if the user does not specify any file.
35615ac_need_defaults=:
35616while test $# != 0
35617do
35618 case $1 in
cristyda16f162011-02-19 23:52:17 +000035619 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35622 ac_shift=:
35623 ;;
cristyda16f162011-02-19 23:52:17 +000035624 --*=)
35625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35626 ac_optarg=
35627 ac_shift=:
35628 ;;
cristy3ed852e2009-09-05 21:47:34 +000035629 *)
35630 ac_option=$1
35631 ac_optarg=$2
35632 ac_shift=shift
35633 ;;
35634 esac
35635
35636 case $ac_option in
35637 # Handling of the options.
35638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35639 ac_cs_recheck=: ;;
35640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35641 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035642 --config | --confi | --conf | --con | --co | --c )
35643 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035644 --debug | --debu | --deb | --de | --d | -d )
35645 debug=: ;;
35646 --file | --fil | --fi | --f )
35647 $ac_shift
35648 case $ac_optarg in
35649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035650 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035651 esac
cristy8b350f62009-11-15 23:12:43 +000035652 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035653 ac_need_defaults=false;;
35654 --header | --heade | --head | --hea )
35655 $ac_shift
35656 case $ac_optarg in
35657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35658 esac
cristy8b350f62009-11-15 23:12:43 +000035659 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035660 ac_need_defaults=false;;
35661 --he | --h)
35662 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035663 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035664Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035665 --help | --hel | -h )
35666 $as_echo "$ac_cs_usage"; exit ;;
35667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35669 ac_cs_silent=: ;;
35670
35671 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035672 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035673Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035674
cristy8b350f62009-11-15 23:12:43 +000035675 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035676 ac_need_defaults=false ;;
35677
35678 esac
35679 shift
35680done
35681
35682ac_configure_extra_args=
35683
35684if $ac_cs_silent; then
35685 exec 6>/dev/null
35686 ac_configure_extra_args="$ac_configure_extra_args --silent"
35687fi
35688
35689_ACEOF
35690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35691if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000035692 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000035693 shift
35694 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35695 CONFIG_SHELL='$SHELL'
35696 export CONFIG_SHELL
35697 exec "\$@"
35698fi
35699
35700_ACEOF
35701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35702exec 5>>config.log
35703{
35704 echo
35705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35706## Running $as_me. ##
35707_ASBOX
35708 $as_echo "$ac_log"
35709} >&5
35710
35711_ACEOF
35712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035713#
35714# INIT-COMMANDS
35715#
35716PACKAGE="$PACKAGE"
35717AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35718
35719
35720# The HP-UX ksh and POSIX shell print the target directory to stdout
35721# if CDPATH is set.
35722(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35723
35724sed_quote_subst='$sed_quote_subst'
35725double_quote_subst='$double_quote_subst'
35726delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035727SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35728Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35729GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35730EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35731FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35732SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35733ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35734LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35735macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35736macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35737AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35738DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35739OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35740enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35741enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35742pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35743enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000035744PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035745host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35746host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35747host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35748build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35749build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35750build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35751NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35752LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35753max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35754ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35755exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35756lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35757lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35758lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035759lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35760lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035761reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35762reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35763deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35764file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035765file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35766want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35767sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035768AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35769AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035770archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035771STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35772RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35773old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35774old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35775old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35776lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35777CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35778CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35779compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35780GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35781lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35782lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35783lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35784lt_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 +000035785nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35786lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035787objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35788MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35789lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035790lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035791lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035792lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35793lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35794need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035795MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035796DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35797NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35798LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35799OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35800OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35801libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35802shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35803extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35804archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35805enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35806export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35807whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35808compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35809old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35810old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35811archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35812archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35813module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35814module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35815with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35816allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35817no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35818hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035819hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35820hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35821hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35822hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35823hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35824hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35825inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35826link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035827always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35828export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35829exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35830include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35831prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035832postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035833file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35834variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35835need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35836need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35837version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35838runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35839shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35840shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35841libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35842library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35843soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35844install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35845postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35846postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35847finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35848finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35849hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35850sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35851sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35852hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35853enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35854enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35855enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35856old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35857striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35858compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35859predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35860postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35861predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35862postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35863compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35864LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35865reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35866reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35867old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35868compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35869GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35870lt_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 +000035871lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035872lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035873lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35874lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35875archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35876enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35877export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35878whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35879compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35880old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35881old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35882archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35883archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35884module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35885module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35886with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35887allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35888no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35889hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035890hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35891hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35892hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35893hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35894hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35895hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35896inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35897link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035898always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35899export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35900exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35901include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35902prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035903postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035904file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35905hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35906compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35907predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35908postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35909predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35910postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35911compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035912
35913LTCC='$LTCC'
35914LTCFLAGS='$LTCFLAGS'
35915compiler='$compiler_DEFAULT'
35916
cristy0c60a692010-11-04 01:09:47 +000035917# A function that is used when there is no print builtin or printf.
35918func_fallback_echo ()
35919{
35920 eval 'cat <<_LTECHO_EOF
35921\$1
35922_LTECHO_EOF'
35923}
35924
cristy73bd4a52010-10-05 11:24:23 +000035925# Quote evaled strings.
35926for var in SED \
35927GREP \
35928EGREP \
35929FGREP \
cristy0c60a692010-11-04 01:09:47 +000035930SHELL \
35931ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035932LD \
cristy0c60a692010-11-04 01:09:47 +000035933AS \
35934DLLTOOL \
35935OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000035936PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000035937NM \
35938LN_S \
35939lt_SP2NL \
35940lt_NL2SP \
35941reload_flag \
35942deplibs_check_method \
35943file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035944file_magic_glob \
35945want_nocaseglob \
35946sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035947AR \
35948AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035949archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035950STRIP \
35951RANLIB \
35952CC \
35953CFLAGS \
35954compiler \
35955lt_cv_sys_global_symbol_pipe \
35956lt_cv_sys_global_symbol_to_cdecl \
35957lt_cv_sys_global_symbol_to_c_name_address \
35958lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035959nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035960lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035961lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035962lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035963lt_prog_compiler_static \
35964lt_cv_prog_compiler_c_o \
35965need_locks \
cristyda16f162011-02-19 23:52:17 +000035966MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035967DSYMUTIL \
35968NMEDIT \
35969LIPO \
35970OTOOL \
35971OTOOL64 \
35972shrext_cmds \
35973export_dynamic_flag_spec \
35974whole_archive_flag_spec \
35975compiler_needs_object \
35976with_gnu_ld \
35977allow_undefined_flag \
35978no_undefined_flag \
35979hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000035980hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035981exclude_expsyms \
35982include_expsyms \
35983file_list_spec \
35984variables_saved_for_relink \
35985libname_spec \
35986library_names_spec \
35987soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035988install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035989finish_eval \
35990old_striplib \
35991striplib \
35992compiler_lib_search_dirs \
35993predep_objects \
35994postdep_objects \
35995predeps \
35996postdeps \
35997compiler_lib_search_path \
35998LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035999reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036000compiler_CXX \
36001lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036002lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036003lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036004lt_prog_compiler_static_CXX \
36005lt_cv_prog_compiler_c_o_CXX \
36006export_dynamic_flag_spec_CXX \
36007whole_archive_flag_spec_CXX \
36008compiler_needs_object_CXX \
36009with_gnu_ld_CXX \
36010allow_undefined_flag_CXX \
36011no_undefined_flag_CXX \
36012hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036013hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036014exclude_expsyms_CXX \
36015include_expsyms_CXX \
36016file_list_spec_CXX \
36017compiler_lib_search_dirs_CXX \
36018predep_objects_CXX \
36019postdep_objects_CXX \
36020predeps_CXX \
36021postdeps_CXX \
36022compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036023 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036024 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036025 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036026 ;;
36027 *)
36028 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36029 ;;
36030 esac
36031done
36032
36033# Double-quote double-evaled strings.
36034for var in reload_cmds \
36035old_postinstall_cmds \
36036old_postuninstall_cmds \
36037old_archive_cmds \
36038extract_expsyms_cmds \
36039old_archive_from_new_cmds \
36040old_archive_from_expsyms_cmds \
36041archive_cmds \
36042archive_expsym_cmds \
36043module_cmds \
36044module_expsym_cmds \
36045export_symbols_cmds \
36046prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036047postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036048postinstall_cmds \
36049postuninstall_cmds \
36050finish_cmds \
36051sys_lib_search_path_spec \
36052sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036053reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036054old_archive_cmds_CXX \
36055old_archive_from_new_cmds_CXX \
36056old_archive_from_expsyms_cmds_CXX \
36057archive_cmds_CXX \
36058archive_expsym_cmds_CXX \
36059module_cmds_CXX \
36060module_expsym_cmds_CXX \
36061export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036062prelink_cmds_CXX \
36063postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036064 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036065 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036067 ;;
36068 *)
36069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36070 ;;
36071 esac
36072done
36073
cristy73bd4a52010-10-05 11:24:23 +000036074ac_aux_dir='$ac_aux_dir'
36075xsi_shell='$xsi_shell'
36076lt_shell_append='$lt_shell_append'
36077
36078# See if we are running on zsh, and set the options which allow our
36079# commands through without removal of \ escapes INIT.
36080if test -n "\${ZSH_VERSION+set}" ; then
36081 setopt NO_GLOB_SUBST
36082fi
36083
36084
36085 PACKAGE='$PACKAGE'
36086 VERSION='$VERSION'
36087 TIMESTAMP='$TIMESTAMP'
36088 RM='$RM'
36089 ofile='$ofile'
36090
36091
36092
36093
36094
36095
cristy3ed852e2009-09-05 21:47:34 +000036096_ACEOF
36097
36098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36099
36100# Handling of arguments.
36101for ac_config_target in $ac_config_targets
36102do
36103 case $ac_config_target in
36104 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036105 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036106 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036107 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36108 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36109 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36110 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36111 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036112 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036113 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036114 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36115 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36116 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36117 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36118 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036119 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036120 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36121 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036122 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36123 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36124 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036125 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36126 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36127 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36128 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36129 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36130 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36131 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36132 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36133 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36134 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36135 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36136 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36137 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36138 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36139 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36140 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36141 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036142 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36143 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036144 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36145 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036146 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036147 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036148 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036149 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036150 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36151 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36152
cristy98dddb52010-11-04 00:30:15 +000036153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036154 esac
36155done
36156
36157
36158# If the user did not use the arguments to specify the items to instantiate,
36159# then the envvar interface is used. Set only those that are not.
36160# We use the long form for the default assignment because of an extremely
36161# bizarre bug on SunOS 4.1.3.
36162if $ac_need_defaults; then
36163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36166fi
36167
36168# Have a temporary directory for convenience. Make it in the build tree
36169# simply because there is no reason against having it here, and in addition,
36170# creating and moving files from /tmp can sometimes cause problems.
36171# Hook for its removal unless debugging.
36172# Note that there is a small window in which the directory will not be cleaned:
36173# after its creation but before its name has been assigned to `$tmp'.
36174$debug ||
36175{
cristyda16f162011-02-19 23:52:17 +000036176 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036177 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036178 : "${ac_tmp:=$tmp}"
36179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036180' 0
cristy8b350f62009-11-15 23:12:43 +000036181 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036182}
36183# Create a (secure) tmp directory for tmp files.
36184
36185{
36186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036187 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036188} ||
36189{
36190 tmp=./conf$$-$RANDOM
36191 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036192} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036193ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036194
36195# Set up the scripts for CONFIG_FILES section.
36196# No need to generate them if there are no CONFIG_FILES.
36197# This happens for instance with `./config.status config.h'.
36198if test -n "$CONFIG_FILES"; then
36199
36200
cristy8b350f62009-11-15 23:12:43 +000036201ac_cr=`echo X | tr X '\015'`
36202# On cygwin, bash can eat \r inside `` if the user requested igncr.
36203# But we know of no other shell where ac_cr would be empty at this
36204# point, so we can use a bashism as a fallback.
36205if test "x$ac_cr" = x; then
36206 eval ac_cr=\$\'\\r\'
36207fi
cristy3ed852e2009-09-05 21:47:34 +000036208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036210 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036211else
36212 ac_cs_awk_cr=$ac_cr
36213fi
36214
cristyda16f162011-02-19 23:52:17 +000036215echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036216_ACEOF
36217
36218
36219{
36220 echo "cat >conf$$subs.awk <<_ACEOF" &&
36221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36222 echo "_ACEOF"
36223} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36225ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036226ac_delim='%!_!# '
36227for ac_last_try in false false false false false :; do
36228 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036230
36231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36232 if test $ac_delim_n = $ac_delim_num; then
36233 break
36234 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036236 else
36237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36238 fi
36239done
36240rm -f conf$$subs.sh
36241
36242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036243cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036244_ACEOF
36245sed -n '
36246h
36247s/^/S["/; s/!.*/"]=/
36248p
36249g
36250s/^[^!]*!//
36251:repl
36252t repl
36253s/'"$ac_delim"'$//
36254t delim
36255:nl
36256h
cristycd4c5312009-11-22 01:19:08 +000036257s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036258t more1
36259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36260p
36261n
36262b repl
36263:more1
36264s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36265p
36266g
36267s/.\{148\}//
36268t nl
36269:delim
36270h
cristycd4c5312009-11-22 01:19:08 +000036271s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036272t more2
36273s/["\\]/\\&/g; s/^/"/; s/$/"/
36274p
36275b
36276:more2
36277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36278p
36279g
36280s/.\{148\}//
36281t delim
36282' <conf$$subs.awk | sed '
36283/^[^""]/{
36284 N
36285 s/\n//
36286}
36287' >>$CONFIG_STATUS || ac_write_fail=1
36288rm -f conf$$subs.awk
36289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36290_ACAWK
cristyda16f162011-02-19 23:52:17 +000036291cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036292 for (key in S) S_is_set[key] = 1
36293 FS = ""
36294
36295}
36296{
36297 line = $ 0
36298 nfields = split(line, field, "@")
36299 substed = 0
36300 len = length(field[1])
36301 for (i = 2; i < nfields; i++) {
36302 key = field[i]
36303 keylen = length(key)
36304 if (S_is_set[key]) {
36305 value = S[key]
36306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36307 len += length(value) + length(field[++i])
36308 substed = 1
36309 } else
36310 len += 1 + keylen
36311 }
36312
36313 print line
36314}
36315
36316_ACAWK
36317_ACEOF
36318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36321else
36322 cat
cristyda16f162011-02-19 23:52:17 +000036323fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036325_ACEOF
36326
cristy98dddb52010-11-04 00:30:15 +000036327# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36328# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036329# trailing colons and then remove the whole line if VPATH becomes empty
36330# (actually we leave an empty line to preserve line numbers).
36331if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36333h
36334s///
36335s/^/:/
36336s/[ ]*$/:/
36337s/:\$(srcdir):/:/g
36338s/:\${srcdir}:/:/g
36339s/:@srcdir@:/:/g
36340s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036341s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036342x
36343s/\(=[ ]*\).*/\1/
36344G
36345s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036346s/^[^=]*=[ ]*$//
36347}'
36348fi
36349
36350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36351fi # test -n "$CONFIG_FILES"
36352
36353# Set up the scripts for CONFIG_HEADERS section.
36354# No need to generate them if there are no CONFIG_HEADERS.
36355# This happens for instance with `./config.status Makefile'.
36356if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036357cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036358BEGIN {
36359_ACEOF
36360
36361# Transform confdefs.h into an awk script `defines.awk', embedded as
36362# here-document in config.status, that substitutes the proper values into
36363# config.h.in to produce config.h.
36364
36365# Create a delimiter string that does not exist in confdefs.h, to ease
36366# handling of long lines.
36367ac_delim='%!_!# '
36368for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36370 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036371 break
36372 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036374 else
36375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36376 fi
36377done
36378
36379# For the awk script, D is an array of macro values keyed by name,
36380# likewise P contains macro parameters if any. Preserve backslash
36381# newline sequences.
36382
36383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36384sed -n '
36385s/.\{148\}/&'"$ac_delim"'/g
36386t rset
36387:rset
36388s/^[ ]*#[ ]*define[ ][ ]*/ /
36389t def
36390d
36391:def
36392s/\\$//
36393t bsnl
36394s/["\\]/\\&/g
36395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36396D["\1"]=" \3"/p
36397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36398d
36399:bsnl
36400s/["\\]/\\&/g
36401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36402D["\1"]=" \3\\\\\\n"\\/p
36403t cont
36404s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36405t cont
36406d
36407:cont
36408n
36409s/.\{148\}/&'"$ac_delim"'/g
36410t clear
36411:clear
36412s/\\$//
36413t bsnlc
36414s/["\\]/\\&/g; s/^/"/; s/$/"/p
36415d
36416:bsnlc
36417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36418b cont
36419' <confdefs.h | sed '
36420s/'"$ac_delim"'/"\\\
36421"/g' >>$CONFIG_STATUS || ac_write_fail=1
36422
36423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36424 for (key in D) D_is_set[key] = 1
36425 FS = ""
36426}
36427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36428 line = \$ 0
36429 split(line, arg, " ")
36430 if (arg[1] == "#") {
36431 defundef = arg[2]
36432 mac1 = arg[3]
36433 } else {
36434 defundef = substr(arg[1], 2)
36435 mac1 = arg[2]
36436 }
36437 split(mac1, mac2, "(") #)
36438 macro = mac2[1]
36439 prefix = substr(line, 1, index(line, defundef) - 1)
36440 if (D_is_set[macro]) {
36441 # Preserve the white space surrounding the "#".
36442 print prefix "define", macro P[macro] D[macro]
36443 next
36444 } else {
36445 # Replace #undef with comments. This is necessary, for example,
36446 # in the case of _POSIX_SOURCE, which is predefined and required
36447 # on some systems where configure will not decide to define it.
36448 if (defundef == "undef") {
36449 print "/*", prefix defundef, macro, "*/"
36450 next
36451 }
36452 }
36453}
36454{ print }
36455_ACAWK
36456_ACEOF
36457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036459fi # test -n "$CONFIG_HEADERS"
36460
36461
36462eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36463shift
36464for ac_tag
36465do
36466 case $ac_tag in
36467 :[FHLC]) ac_mode=$ac_tag; continue;;
36468 esac
36469 case $ac_mode$ac_tag in
36470 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036472 :[FH]-) ac_tag=-:-;;
36473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36474 esac
36475 ac_save_IFS=$IFS
36476 IFS=:
36477 set x $ac_tag
36478 IFS=$ac_save_IFS
36479 shift
36480 ac_file=$1
36481 shift
36482
36483 case $ac_mode in
36484 :L) ac_source=$1;;
36485 :[FH])
36486 ac_file_inputs=
36487 for ac_f
36488 do
36489 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036490 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036491 *) # Look for the file first in the build tree, then in the source tree
36492 # (if the path is not absolute). The absolute path cannot be DOS-style,
36493 # because $ac_f cannot contain `:'.
36494 test -f "$ac_f" ||
36495 case $ac_f in
36496 [\\/$]*) false;;
36497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36498 esac ||
cristy98dddb52010-11-04 00:30:15 +000036499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036500 esac
36501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036502 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036503 done
36504
36505 # Let's still pretend it is `configure' which instantiates (i.e., don't
36506 # use $as_me), people would be surprised to read:
36507 # /* config.h. Generated by config.status. */
36508 configure_input='Generated from '`
36509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36510 `' by configure.'
36511 if test x"$ac_file" != x-; then
36512 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036514$as_echo "$as_me: creating $ac_file" >&6;}
36515 fi
36516 # Neutralize special characters interpreted by sed in replacement strings.
36517 case $configure_input in #(
36518 *\&* | *\|* | *\\* )
36519 ac_sed_conf_input=`$as_echo "$configure_input" |
36520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36521 *) ac_sed_conf_input=$configure_input;;
36522 esac
36523
36524 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036527 esac
36528 ;;
36529 esac
36530
36531 ac_dir=`$as_dirname -- "$ac_file" ||
36532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36533 X"$ac_file" : 'X\(//\)[^/]' \| \
36534 X"$ac_file" : 'X\(//\)$' \| \
36535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36536$as_echo X"$ac_file" |
36537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36538 s//\1/
36539 q
36540 }
36541 /^X\(\/\/\)[^/].*/{
36542 s//\1/
36543 q
36544 }
36545 /^X\(\/\/\)$/{
36546 s//\1/
36547 q
36548 }
36549 /^X\(\/\).*/{
36550 s//\1/
36551 q
36552 }
36553 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036554 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036555 ac_builddir=.
36556
36557case "$ac_dir" in
36558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36559*)
36560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36561 # A ".." for each directory in $ac_dir_suffix.
36562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36563 case $ac_top_builddir_sub in
36564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36566 esac ;;
36567esac
36568ac_abs_top_builddir=$ac_pwd
36569ac_abs_builddir=$ac_pwd$ac_dir_suffix
36570# for backward compatibility:
36571ac_top_builddir=$ac_top_build_prefix
36572
36573case $srcdir in
36574 .) # We are building in place.
36575 ac_srcdir=.
36576 ac_top_srcdir=$ac_top_builddir_sub
36577 ac_abs_top_srcdir=$ac_pwd ;;
36578 [\\/]* | ?:[\\/]* ) # Absolute name.
36579 ac_srcdir=$srcdir$ac_dir_suffix;
36580 ac_top_srcdir=$srcdir
36581 ac_abs_top_srcdir=$srcdir ;;
36582 *) # Relative name.
36583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36584 ac_top_srcdir=$ac_top_build_prefix$srcdir
36585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36586esac
36587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36588
36589
36590 case $ac_mode in
36591 :F)
36592 #
36593 # CONFIG_FILE
36594 #
36595
36596 case $INSTALL in
36597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36599 esac
cristy73bd4a52010-10-05 11:24:23 +000036600 ac_MKDIR_P=$MKDIR_P
36601 case $MKDIR_P in
36602 [\\/$]* | ?:[\\/]* ) ;;
36603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36604 esac
cristy3ed852e2009-09-05 21:47:34 +000036605_ACEOF
36606
36607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36608# If the template does not know about datarootdir, expand it.
36609# FIXME: This hack should be removed a few years after 2.60.
36610ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036611ac_sed_dataroot='
36612/datarootdir/ {
36613 p
36614 q
36615}
36616/@datadir@/p
36617/@docdir@/p
36618/@infodir@/p
36619/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036620/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36622*datarootdir*) ac_datarootdir_seen=yes;;
36623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36626_ACEOF
36627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36628 ac_datarootdir_hack='
36629 s&@datadir@&$datadir&g
36630 s&@docdir@&$docdir&g
36631 s&@infodir@&$infodir&g
36632 s&@localedir@&$localedir&g
36633 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036634 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036635esac
36636_ACEOF
36637
36638# Neutralize VPATH when `$srcdir' = `.'.
36639# Shell code in configure.ac might set extrasub.
36640# FIXME: do we really want to maintain this feature?
36641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36642ac_sed_extra="$ac_vpsub
36643$extrasub
36644_ACEOF
36645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36646:t
36647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36648s|@configure_input@|$ac_sed_conf_input|;t t
36649s&@top_builddir@&$ac_top_builddir_sub&;t t
36650s&@top_build_prefix@&$ac_top_build_prefix&;t t
36651s&@srcdir@&$ac_srcdir&;t t
36652s&@abs_srcdir@&$ac_abs_srcdir&;t t
36653s&@top_srcdir@&$ac_top_srcdir&;t t
36654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36655s&@builddir@&$ac_builddir&;t t
36656s&@abs_builddir@&$ac_abs_builddir&;t t
36657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36658s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036659s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036660$ac_datarootdir_hack
36661"
cristyda16f162011-02-19 23:52:17 +000036662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036664
36665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36668 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036670which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036671$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036672which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036673
cristyda16f162011-02-19 23:52:17 +000036674 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036675 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036678 esac \
cristy98dddb52010-11-04 00:30:15 +000036679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036680 ;;
36681 :H)
36682 #
36683 # CONFIG_HEADER
36684 #
36685 if test x"$ac_file" != x-; then
36686 {
36687 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36689 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036693$as_echo "$as_me: $ac_file is unchanged" >&6;}
36694 else
36695 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036696 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036698 fi
36699 else
36700 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036702 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036703 fi
cristy73bd4a52010-10-05 11:24:23 +000036704# Compute "$ac_file"'s index in $config_headers.
36705_am_arg="$ac_file"
36706_am_stamp_count=1
36707for _am_header in $config_headers :; do
36708 case $_am_header in
36709 $_am_arg | $_am_arg:* )
36710 break ;;
36711 * )
36712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36713 esac
36714done
36715echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36716$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36717 X"$_am_arg" : 'X\(//\)[^/]' \| \
36718 X"$_am_arg" : 'X\(//\)$' \| \
36719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36720$as_echo X"$_am_arg" |
36721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36722 s//\1/
36723 q
36724 }
36725 /^X\(\/\/\)[^/].*/{
36726 s//\1/
36727 q
36728 }
36729 /^X\(\/\/\)$/{
36730 s//\1/
36731 q
36732 }
36733 /^X\(\/\).*/{
36734 s//\1/
36735 q
36736 }
36737 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036738 ;;
36739
cristy8b350f62009-11-15 23:12:43 +000036740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036741$as_echo "$as_me: executing $ac_file commands" >&6;}
36742 ;;
36743 esac
36744
36745
36746 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036747 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036748ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36749ac_prefix_conf_PKG=`echo MagickCore`
36750ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36751ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36752ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36753if test ".$ac_prefix_conf_INP" = "."; then
36754 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36755 case "$ac_file" in
36756 *.h) ac_prefix_conf_INP=$ac_file ;;
36757 *)
36758 esac
36759 test ".$ac_prefix_conf_INP" != "." && break
36760 done
36761fi
36762if test ".$ac_prefix_conf_INP" = "."; then
36763 case "$ac_prefix_conf_OUT" in
36764 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36765 ;;
36766 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36767 ;;
36768 *) ac_prefix_conf_INP=config.h
36769 ;;
36770 esac
36771fi
36772if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036773 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036774else
36775 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36776 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36777 fi fi
36778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36779$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36780 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036781 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36782 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36783 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36784 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36785 $as_echo "#endif/" >> conftest.prefix
36786 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36787 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36788 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036789 # now executing _script on _DEF input to create _OUT output file
36790 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36791 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36792 echo ' ' >>$tmp/pconfig.h
36793 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36794
36795 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36796 echo ' ' >>$tmp/pconfig.h
36797 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36798 echo "#endif" >>$tmp/pconfig.h
36799 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36801$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36802 else
36803 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36804$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36805 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36806 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36807 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36808$as_echo X"$ac_prefix_conf_OUT" |
36809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36810 s//\1/
36811 q
36812 }
36813 /^X\(\/\/\)[^/].*/{
36814 s//\1/
36815 q
36816 }
36817 /^X\(\/\/\)$/{
36818 s//\1/
36819 q
36820 }
36821 /^X\(\/\).*/{
36822 s//\1/
36823 q
36824 }
36825 s/.*/./; q'`
36826 as_dir="$ac_dir"; as_fn_mkdir_p
36827 rm -f "$ac_prefix_conf_OUT"
36828 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36829 fi
36830 cp conftest.prefix _configs.sed
36831 else
cristy98dddb52010-11-04 00:30:15 +000036832 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 +000036833 fi
36834 rm -f conftest.*
36835fi
36836 ;;
36837 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36838 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36839 # are listed without --file. Let's play safe and only enable the eval
36840 # if we detect the quoting.
36841 case $CONFIG_FILES in
36842 *\'*) eval set x "$CONFIG_FILES" ;;
36843 *) set x $CONFIG_FILES ;;
36844 esac
36845 shift
36846 for mf
36847 do
36848 # Strip MF so we end up with the name of the file.
36849 mf=`echo "$mf" | sed -e 's/:.*$//'`
36850 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000036851 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000036852 # some people rename them; so instead we look at the file content.
36853 # Grep'ing the first line is not enough: some people post-process
36854 # each Makefile.in and add a new line on top of each file to say so.
36855 # Grep'ing the whole file is not good either: AIX grep has a line
36856 # limit of 2048, but all sed's we know have understand at least 4000.
36857 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36858 dirpart=`$as_dirname -- "$mf" ||
36859$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36860 X"$mf" : 'X\(//\)[^/]' \| \
36861 X"$mf" : 'X\(//\)$' \| \
36862 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36863$as_echo X"$mf" |
36864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36865 s//\1/
36866 q
36867 }
36868 /^X\(\/\/\)[^/].*/{
36869 s//\1/
36870 q
36871 }
36872 /^X\(\/\/\)$/{
36873 s//\1/
36874 q
36875 }
36876 /^X\(\/\).*/{
36877 s//\1/
36878 q
36879 }
36880 s/.*/./; q'`
36881 else
36882 continue
36883 fi
36884 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000036885 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000036886 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36887 test -z "$DEPDIR" && continue
36888 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36889 test -z "am__include" && continue
36890 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000036891 # Find all dependency output files, they are included files with
36892 # $(DEPDIR) in their names. We invoke sed twice because it is the
36893 # simplest approach to changing $(DEPDIR) to its actual value in the
36894 # expansion.
36895 for file in `sed -n "
36896 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000036897 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000036898 # Make sure the directory exists.
36899 test -f "$dirpart/$file" && continue
36900 fdir=`$as_dirname -- "$file" ||
36901$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36902 X"$file" : 'X\(//\)[^/]' \| \
36903 X"$file" : 'X\(//\)$' \| \
36904 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36905$as_echo X"$file" |
36906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36907 s//\1/
36908 q
36909 }
36910 /^X\(\/\/\)[^/].*/{
36911 s//\1/
36912 q
36913 }
36914 /^X\(\/\/\)$/{
36915 s//\1/
36916 q
36917 }
36918 /^X\(\/\).*/{
36919 s//\1/
36920 q
36921 }
36922 s/.*/./; q'`
36923 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36924 # echo "creating $dirpart/$file"
36925 echo '# dummy' > "$dirpart/$file"
36926 done
36927 done
36928}
36929 ;;
36930 "libtool":C)
36931
36932 # See if we are running on zsh, and set the options which allow our
36933 # commands through without removal of \ escapes.
36934 if test -n "${ZSH_VERSION+set}" ; then
36935 setopt NO_GLOB_SUBST
36936 fi
36937
36938 cfgfile="${ofile}T"
36939 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36940 $RM "$cfgfile"
36941
36942 cat <<_LT_EOF >> "$cfgfile"
36943#! $SHELL
36944
36945# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36946# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36947# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36948# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36949#
36950# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000036951# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36952# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000036953# Written by Gordon Matzigkeit, 1996
36954#
36955# This file is part of GNU Libtool.
36956#
36957# GNU Libtool is free software; you can redistribute it and/or
36958# modify it under the terms of the GNU General Public License as
36959# published by the Free Software Foundation; either version 2 of
36960# the License, or (at your option) any later version.
36961#
36962# As a special exception to the GNU General Public License,
36963# if you distribute this file as part of a program or library that
36964# is built using GNU Libtool, you may include this file under the
36965# same distribution terms that you use for the rest of that program.
36966#
36967# GNU Libtool is distributed in the hope that it will be useful,
36968# but WITHOUT ANY WARRANTY; without even the implied warranty of
36969# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36970# GNU General Public License for more details.
36971#
36972# You should have received a copy of the GNU General Public License
36973# along with GNU Libtool; see the file COPYING. If not, a copy
36974# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36975# obtained by writing to the Free Software Foundation, Inc.,
36976# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36977
36978
36979# The names of the tagged configurations supported by this script.
36980available_tags="CXX "
36981
36982# ### BEGIN LIBTOOL CONFIG
36983
36984# A sed program that does not truncate output.
36985SED=$lt_SED
36986
36987# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36988Xsed="\$SED -e 1s/^X//"
36989
36990# A grep program that handles long lines.
36991GREP=$lt_GREP
36992
36993# An ERE matcher.
36994EGREP=$lt_EGREP
36995
36996# A literal string matcher.
36997FGREP=$lt_FGREP
36998
cristy0c60a692010-11-04 01:09:47 +000036999# Shell to use when invoking shell scripts.
37000SHELL=$lt_SHELL
37001
37002# An echo program that protects backslashes.
37003ECHO=$lt_ECHO
37004
cristy73bd4a52010-10-05 11:24:23 +000037005# Which release of libtool.m4 was used?
37006macro_version=$macro_version
37007macro_revision=$macro_revision
37008
37009# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037010AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037011
37012# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037013DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037014
37015# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037016OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037017
37018# Whether or not to build shared libraries.
37019build_libtool_libs=$enable_shared
37020
37021# Whether or not to build static libraries.
37022build_old_libs=$enable_static
37023
37024# What type of objects to build.
37025pic_mode=$pic_mode
37026
37027# Whether or not to optimize for fast installation.
37028fast_install=$enable_fast_install
37029
cristy99bd5232011-12-07 14:38:20 +000037030# The PATH separator for the build system.
37031PATH_SEPARATOR=$lt_PATH_SEPARATOR
37032
cristy73bd4a52010-10-05 11:24:23 +000037033# The host system.
37034host_alias=$host_alias
37035host=$host
37036host_os=$host_os
37037
37038# The build system.
37039build_alias=$build_alias
37040build=$build
37041build_os=$build_os
37042
37043# A BSD- or MS-compatible name lister.
37044NM=$lt_NM
37045
37046# Whether we need soft or hard links.
37047LN_S=$lt_LN_S
37048
37049# What is the maximum length of a command?
37050max_cmd_len=$max_cmd_len
37051
37052# Object file suffix (normally "o").
37053objext=$ac_objext
37054
37055# Executable file suffix (normally "").
37056exeext=$exeext
37057
37058# whether the shell understands "unset".
37059lt_unset=$lt_unset
37060
37061# turn spaces into newlines.
37062SP2NL=$lt_lt_SP2NL
37063
37064# turn newlines into spaces.
37065NL2SP=$lt_lt_NL2SP
37066
cristyda16f162011-02-19 23:52:17 +000037067# convert \$build file names to \$host format.
37068to_host_file_cmd=$lt_cv_to_host_file_cmd
37069
37070# convert \$build files to toolchain format.
37071to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37072
cristy73bd4a52010-10-05 11:24:23 +000037073# Method to check whether dependent libraries are shared objects.
37074deplibs_check_method=$lt_deplibs_check_method
37075
cristyda16f162011-02-19 23:52:17 +000037076# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037077file_magic_cmd=$lt_file_magic_cmd
37078
cristyda16f162011-02-19 23:52:17 +000037079# How to find potential files when deplibs_check_method = "file_magic".
37080file_magic_glob=$lt_file_magic_glob
37081
37082# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37083want_nocaseglob=$lt_want_nocaseglob
37084
37085# Command to associate shared and link libraries.
37086sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37087
cristy73bd4a52010-10-05 11:24:23 +000037088# The archiver.
37089AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037090
37091# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037092AR_FLAGS=$lt_AR_FLAGS
37093
cristyda16f162011-02-19 23:52:17 +000037094# How to feed a file listing to the archiver.
37095archiver_list_spec=$lt_archiver_list_spec
37096
cristy73bd4a52010-10-05 11:24:23 +000037097# A symbol stripping program.
37098STRIP=$lt_STRIP
37099
37100# Commands used to install an old-style archive.
37101RANLIB=$lt_RANLIB
37102old_postinstall_cmds=$lt_old_postinstall_cmds
37103old_postuninstall_cmds=$lt_old_postuninstall_cmds
37104
cristy0c60a692010-11-04 01:09:47 +000037105# Whether to use a lock for old archive extraction.
37106lock_old_archive_extraction=$lock_old_archive_extraction
37107
cristy73bd4a52010-10-05 11:24:23 +000037108# A C compiler.
37109LTCC=$lt_CC
37110
37111# LTCC compiler flags.
37112LTCFLAGS=$lt_CFLAGS
37113
37114# Take the output of nm and produce a listing of raw symbols and C names.
37115global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37116
37117# Transform the output of nm in a proper C declaration.
37118global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37119
37120# Transform the output of nm in a C name address pair.
37121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37122
37123# Transform the output of nm in a C name address pair when lib prefix is needed.
37124global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37125
cristyda16f162011-02-19 23:52:17 +000037126# Specify filename containing input files for \$NM.
37127nm_file_list_spec=$lt_nm_file_list_spec
37128
37129# The root where to search for dependent libraries,and in which our libraries should be installed.
37130lt_sysroot=$lt_sysroot
37131
cristy73bd4a52010-10-05 11:24:23 +000037132# The name of the directory that contains temporary libtool files.
37133objdir=$objdir
37134
cristy73bd4a52010-10-05 11:24:23 +000037135# Used to examine libraries when file_magic_cmd begins with "file".
37136MAGIC_CMD=$MAGIC_CMD
37137
37138# Must we lock files when doing compilation?
37139need_locks=$lt_need_locks
37140
cristyda16f162011-02-19 23:52:17 +000037141# Manifest tool.
37142MANIFEST_TOOL=$lt_MANIFEST_TOOL
37143
cristy73bd4a52010-10-05 11:24:23 +000037144# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37145DSYMUTIL=$lt_DSYMUTIL
37146
37147# Tool to change global to local symbols on Mac OS X.
37148NMEDIT=$lt_NMEDIT
37149
37150# Tool to manipulate fat objects and archives on Mac OS X.
37151LIPO=$lt_LIPO
37152
37153# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37154OTOOL=$lt_OTOOL
37155
37156# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37157OTOOL64=$lt_OTOOL64
37158
37159# Old archive suffix (normally "a").
37160libext=$libext
37161
37162# Shared library suffix (normally ".so").
37163shrext_cmds=$lt_shrext_cmds
37164
37165# The commands to extract the exported symbol list from a shared archive.
37166extract_expsyms_cmds=$lt_extract_expsyms_cmds
37167
37168# Variables whose values should be saved in libtool wrapper scripts and
37169# restored at link time.
37170variables_saved_for_relink=$lt_variables_saved_for_relink
37171
37172# Do we need the "lib" prefix for modules?
37173need_lib_prefix=$need_lib_prefix
37174
37175# Do we need a version for libraries?
37176need_version=$need_version
37177
37178# Library versioning type.
37179version_type=$version_type
37180
37181# Shared library runtime path variable.
37182runpath_var=$runpath_var
37183
37184# Shared library path variable.
37185shlibpath_var=$shlibpath_var
37186
37187# Is shlibpath searched before the hard-coded library search path?
37188shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37189
37190# Format of library name prefix.
37191libname_spec=$lt_libname_spec
37192
37193# List of archive names. First name is the real one, the rest are links.
37194# The last name is the one that the linker finds with -lNAME
37195library_names_spec=$lt_library_names_spec
37196
37197# The coded name of the library, if different from the real name.
37198soname_spec=$lt_soname_spec
37199
cristy0c60a692010-11-04 01:09:47 +000037200# Permission mode override for installation of shared libraries.
37201install_override_mode=$lt_install_override_mode
37202
cristy73bd4a52010-10-05 11:24:23 +000037203# Command to use after installation of a shared archive.
37204postinstall_cmds=$lt_postinstall_cmds
37205
37206# Command to use after uninstallation of a shared archive.
37207postuninstall_cmds=$lt_postuninstall_cmds
37208
37209# Commands used to finish a libtool library installation in a directory.
37210finish_cmds=$lt_finish_cmds
37211
37212# As "finish_cmds", except a single script fragment to be evaled but
37213# not shown.
37214finish_eval=$lt_finish_eval
37215
37216# Whether we should hardcode library paths into libraries.
37217hardcode_into_libs=$hardcode_into_libs
37218
37219# Compile-time system search path for libraries.
37220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37221
37222# Run-time system search path for libraries.
37223sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37224
37225# Whether dlopen is supported.
37226dlopen_support=$enable_dlopen
37227
37228# Whether dlopen of programs is supported.
37229dlopen_self=$enable_dlopen_self
37230
37231# Whether dlopen of statically linked programs is supported.
37232dlopen_self_static=$enable_dlopen_self_static
37233
37234# Commands to strip libraries.
37235old_striplib=$lt_old_striplib
37236striplib=$lt_striplib
37237
37238
37239# The linker used to build libraries.
37240LD=$lt_LD
37241
cristy0c60a692010-11-04 01:09:47 +000037242# How to create reloadable object files.
37243reload_flag=$lt_reload_flag
37244reload_cmds=$lt_reload_cmds
37245
cristy73bd4a52010-10-05 11:24:23 +000037246# Commands used to build an old-style archive.
37247old_archive_cmds=$lt_old_archive_cmds
37248
37249# A language specific compiler.
37250CC=$lt_compiler
37251
37252# Is the compiler the GNU compiler?
37253with_gcc=$GCC
37254
37255# Compiler flag to turn off builtin functions.
37256no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37257
cristy73bd4a52010-10-05 11:24:23 +000037258# Additional compiler flags for building library objects.
37259pic_flag=$lt_lt_prog_compiler_pic
37260
cristyda16f162011-02-19 23:52:17 +000037261# How to pass a linker flag through the compiler.
37262wl=$lt_lt_prog_compiler_wl
37263
cristy73bd4a52010-10-05 11:24:23 +000037264# Compiler flag to prevent dynamic linking.
37265link_static_flag=$lt_lt_prog_compiler_static
37266
37267# Does compiler simultaneously support -c and -o options?
37268compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37269
37270# Whether or not to add -lc for building shared libraries.
37271build_libtool_need_lc=$archive_cmds_need_lc
37272
37273# Whether or not to disallow shared libs when runtime libs are static.
37274allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37275
37276# Compiler flag to allow reflexive dlopens.
37277export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37278
37279# Compiler flag to generate shared objects directly from archives.
37280whole_archive_flag_spec=$lt_whole_archive_flag_spec
37281
37282# Whether the compiler copes with passing no objects directly.
37283compiler_needs_object=$lt_compiler_needs_object
37284
37285# Create an old-style archive from a shared archive.
37286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37287
37288# Create a temporary old-style archive to link instead of a shared archive.
37289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37290
37291# Commands used to build a shared archive.
37292archive_cmds=$lt_archive_cmds
37293archive_expsym_cmds=$lt_archive_expsym_cmds
37294
37295# Commands used to build a loadable module if different from building
37296# a shared archive.
37297module_cmds=$lt_module_cmds
37298module_expsym_cmds=$lt_module_expsym_cmds
37299
37300# Whether we are building with GNU ld or not.
37301with_gnu_ld=$lt_with_gnu_ld
37302
37303# Flag that allows shared libraries with undefined symbols to be built.
37304allow_undefined_flag=$lt_allow_undefined_flag
37305
37306# Flag that enforces no undefined symbols.
37307no_undefined_flag=$lt_no_undefined_flag
37308
37309# Flag to hardcode \$libdir into a binary during linking.
37310# This must work even if \$libdir does not exist
37311hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37312
cristy73bd4a52010-10-05 11:24:23 +000037313# Whether we need a single "-rpath" flag with a separated argument.
37314hardcode_libdir_separator=$lt_hardcode_libdir_separator
37315
37316# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37317# DIR into the resulting binary.
37318hardcode_direct=$hardcode_direct
37319
37320# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37321# DIR into the resulting binary and the resulting library dependency is
37322# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37323# library is relocated.
37324hardcode_direct_absolute=$hardcode_direct_absolute
37325
37326# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37327# into the resulting binary.
37328hardcode_minus_L=$hardcode_minus_L
37329
37330# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37331# into the resulting binary.
37332hardcode_shlibpath_var=$hardcode_shlibpath_var
37333
37334# Set to "yes" if building a shared library automatically hardcodes DIR
37335# into the library and all subsequent libraries and executables linked
37336# against it.
37337hardcode_automatic=$hardcode_automatic
37338
37339# Set to yes if linker adds runtime paths of dependent libraries
37340# to runtime path list.
37341inherit_rpath=$inherit_rpath
37342
37343# Whether libtool must link a program against all its dependency libraries.
37344link_all_deplibs=$link_all_deplibs
37345
cristy73bd4a52010-10-05 11:24:23 +000037346# Set to "yes" if exported symbols are required.
37347always_export_symbols=$always_export_symbols
37348
37349# The commands to list exported symbols.
37350export_symbols_cmds=$lt_export_symbols_cmds
37351
37352# Symbols that should not be listed in the preloaded symbols.
37353exclude_expsyms=$lt_exclude_expsyms
37354
37355# Symbols that must always be exported.
37356include_expsyms=$lt_include_expsyms
37357
37358# Commands necessary for linking programs (against libraries) with templates.
37359prelink_cmds=$lt_prelink_cmds
37360
cristyda16f162011-02-19 23:52:17 +000037361# Commands necessary for finishing linking programs.
37362postlink_cmds=$lt_postlink_cmds
37363
cristy73bd4a52010-10-05 11:24:23 +000037364# Specify filename containing input files.
37365file_list_spec=$lt_file_list_spec
37366
37367# How to hardcode a shared library path into an executable.
37368hardcode_action=$hardcode_action
37369
37370# The directories searched by this compiler when creating a shared library.
37371compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37372
37373# Dependencies to place before and after the objects being linked to
37374# create a shared library.
37375predep_objects=$lt_predep_objects
37376postdep_objects=$lt_postdep_objects
37377predeps=$lt_predeps
37378postdeps=$lt_postdeps
37379
37380# The library search path used internally by the compiler when linking
37381# a shared library.
37382compiler_lib_search_path=$lt_compiler_lib_search_path
37383
37384# ### END LIBTOOL CONFIG
37385
37386_LT_EOF
37387
37388 case $host_os in
37389 aix3*)
37390 cat <<\_LT_EOF >> "$cfgfile"
37391# AIX sometimes has problems with the GCC collect2 program. For some
37392# reason, if we set the COLLECT_NAMES environment variable, the problems
37393# vanish in a puff of smoke.
37394if test "X${COLLECT_NAMES+set}" != Xset; then
37395 COLLECT_NAMES=
37396 export COLLECT_NAMES
37397fi
37398_LT_EOF
37399 ;;
37400 esac
37401
37402
37403ltmain="$ac_aux_dir/ltmain.sh"
37404
37405
37406 # We use sed instead of cat because bash on DJGPP gets confused if
37407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37408 # text mode, it properly converts lines to CR/LF. This bash problem
37409 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037410 sed '$q' "$ltmain" >> "$cfgfile" \
37411 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037412
cristyda16f162011-02-19 23:52:17 +000037413 if test x"$xsi_shell" = xyes; then
37414 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37415func_dirname ()\
37416{\
37417\ case ${1} in\
37418\ */*) func_dirname_result="${1%/*}${2}" ;;\
37419\ * ) func_dirname_result="${3}" ;;\
37420\ esac\
37421} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37422 && mv -f "$cfgfile.tmp" "$cfgfile" \
37423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37424test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037425
37426
cristyda16f162011-02-19 23:52:17 +000037427 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37428func_basename ()\
37429{\
37430\ func_basename_result="${1##*/}"\
37431} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37432 && mv -f "$cfgfile.tmp" "$cfgfile" \
37433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37434test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037435
37436
cristyda16f162011-02-19 23:52:17 +000037437 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37438func_dirname_and_basename ()\
37439{\
37440\ case ${1} in\
37441\ */*) func_dirname_result="${1%/*}${2}" ;;\
37442\ * ) func_dirname_result="${3}" ;;\
37443\ esac\
37444\ func_basename_result="${1##*/}"\
37445} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37446 && mv -f "$cfgfile.tmp" "$cfgfile" \
37447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37448test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037449
cristyda16f162011-02-19 23:52:17 +000037450
37451 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37452func_stripname ()\
37453{\
37454\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37455\ # positional parameters, so assign one to ordinary parameter first.\
37456\ func_stripname_result=${3}\
37457\ func_stripname_result=${func_stripname_result#"${1}"}\
37458\ func_stripname_result=${func_stripname_result%"${2}"}\
37459} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37460 && mv -f "$cfgfile.tmp" "$cfgfile" \
37461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37462test 0 -eq $? || _lt_function_replace_fail=:
37463
37464
37465 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37466func_split_long_opt ()\
37467{\
37468\ func_split_long_opt_name=${1%%=*}\
37469\ func_split_long_opt_arg=${1#*=}\
37470} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37471 && mv -f "$cfgfile.tmp" "$cfgfile" \
37472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37473test 0 -eq $? || _lt_function_replace_fail=:
37474
37475
37476 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37477func_split_short_opt ()\
37478{\
37479\ func_split_short_opt_arg=${1#??}\
37480\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37481} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37482 && mv -f "$cfgfile.tmp" "$cfgfile" \
37483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37484test 0 -eq $? || _lt_function_replace_fail=:
37485
37486
37487 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37488func_lo2o ()\
37489{\
37490\ case ${1} in\
37491\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37492\ *) func_lo2o_result=${1} ;;\
37493\ esac\
37494} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37495 && mv -f "$cfgfile.tmp" "$cfgfile" \
37496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37497test 0 -eq $? || _lt_function_replace_fail=:
37498
37499
37500 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37501func_xform ()\
37502{\
37503 func_xform_result=${1%.*}.lo\
37504} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37505 && mv -f "$cfgfile.tmp" "$cfgfile" \
37506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37507test 0 -eq $? || _lt_function_replace_fail=:
37508
37509
37510 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37511func_arith ()\
37512{\
37513 func_arith_result=$(( $* ))\
37514} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37515 && mv -f "$cfgfile.tmp" "$cfgfile" \
37516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37517test 0 -eq $? || _lt_function_replace_fail=:
37518
37519
37520 sed -e '/^func_len ()$/,/^} # func_len /c\
37521func_len ()\
37522{\
37523 func_len_result=${#1}\
37524} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37525 && mv -f "$cfgfile.tmp" "$cfgfile" \
37526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37527test 0 -eq $? || _lt_function_replace_fail=:
37528
37529fi
37530
37531if test x"$lt_shell_append" = xyes; then
37532 sed -e '/^func_append ()$/,/^} # func_append /c\
37533func_append ()\
37534{\
37535 eval "${1}+=\\${2}"\
37536} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37537 && mv -f "$cfgfile.tmp" "$cfgfile" \
37538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37539test 0 -eq $? || _lt_function_replace_fail=:
37540
37541
37542 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37543func_append_quoted ()\
37544{\
37545\ func_quote_for_eval "${2}"\
37546\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37547} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37548 && mv -f "$cfgfile.tmp" "$cfgfile" \
37549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37550test 0 -eq $? || _lt_function_replace_fail=:
37551
37552
37553 # Save a `func_append' function call where possible by direct use of '+='
37554 sed -e 's%func_append \([a-zA-Z_]\{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=:
37558else
37559 # Save a `func_append' function call even when '+=' is not available
37560 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37561 && mv -f "$cfgfile.tmp" "$cfgfile" \
37562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37563 test 0 -eq $? || _lt_function_replace_fail=:
37564fi
37565
37566if test x"$_lt_function_replace_fail" = x":"; then
37567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37568$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37569fi
37570
37571
37572 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037573 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37574 chmod +x "$ofile"
37575
37576
37577 cat <<_LT_EOF >> "$ofile"
37578
37579# ### BEGIN LIBTOOL TAG CONFIG: CXX
37580
37581# The linker used to build libraries.
37582LD=$lt_LD_CXX
37583
cristy0c60a692010-11-04 01:09:47 +000037584# How to create reloadable object files.
37585reload_flag=$lt_reload_flag_CXX
37586reload_cmds=$lt_reload_cmds_CXX
37587
cristy73bd4a52010-10-05 11:24:23 +000037588# Commands used to build an old-style archive.
37589old_archive_cmds=$lt_old_archive_cmds_CXX
37590
37591# A language specific compiler.
37592CC=$lt_compiler_CXX
37593
37594# Is the compiler the GNU compiler?
37595with_gcc=$GCC_CXX
37596
37597# Compiler flag to turn off builtin functions.
37598no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37599
cristy73bd4a52010-10-05 11:24:23 +000037600# Additional compiler flags for building library objects.
37601pic_flag=$lt_lt_prog_compiler_pic_CXX
37602
cristyda16f162011-02-19 23:52:17 +000037603# How to pass a linker flag through the compiler.
37604wl=$lt_lt_prog_compiler_wl_CXX
37605
cristy73bd4a52010-10-05 11:24:23 +000037606# Compiler flag to prevent dynamic linking.
37607link_static_flag=$lt_lt_prog_compiler_static_CXX
37608
37609# Does compiler simultaneously support -c and -o options?
37610compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37611
37612# Whether or not to add -lc for building shared libraries.
37613build_libtool_need_lc=$archive_cmds_need_lc_CXX
37614
37615# Whether or not to disallow shared libs when runtime libs are static.
37616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37617
37618# Compiler flag to allow reflexive dlopens.
37619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37620
37621# Compiler flag to generate shared objects directly from archives.
37622whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37623
37624# Whether the compiler copes with passing no objects directly.
37625compiler_needs_object=$lt_compiler_needs_object_CXX
37626
37627# Create an old-style archive from a shared archive.
37628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37629
37630# Create a temporary old-style archive to link instead of a shared archive.
37631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37632
37633# Commands used to build a shared archive.
37634archive_cmds=$lt_archive_cmds_CXX
37635archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37636
37637# Commands used to build a loadable module if different from building
37638# a shared archive.
37639module_cmds=$lt_module_cmds_CXX
37640module_expsym_cmds=$lt_module_expsym_cmds_CXX
37641
37642# Whether we are building with GNU ld or not.
37643with_gnu_ld=$lt_with_gnu_ld_CXX
37644
37645# Flag that allows shared libraries with undefined symbols to be built.
37646allow_undefined_flag=$lt_allow_undefined_flag_CXX
37647
37648# Flag that enforces no undefined symbols.
37649no_undefined_flag=$lt_no_undefined_flag_CXX
37650
37651# Flag to hardcode \$libdir into a binary during linking.
37652# This must work even if \$libdir does not exist
37653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37654
cristy73bd4a52010-10-05 11:24:23 +000037655# Whether we need a single "-rpath" flag with a separated argument.
37656hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37657
37658# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37659# DIR into the resulting binary.
37660hardcode_direct=$hardcode_direct_CXX
37661
37662# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37663# DIR into the resulting binary and the resulting library dependency is
37664# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37665# library is relocated.
37666hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37667
37668# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37669# into the resulting binary.
37670hardcode_minus_L=$hardcode_minus_L_CXX
37671
37672# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37673# into the resulting binary.
37674hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37675
37676# Set to "yes" if building a shared library automatically hardcodes DIR
37677# into the library and all subsequent libraries and executables linked
37678# against it.
37679hardcode_automatic=$hardcode_automatic_CXX
37680
37681# Set to yes if linker adds runtime paths of dependent libraries
37682# to runtime path list.
37683inherit_rpath=$inherit_rpath_CXX
37684
37685# Whether libtool must link a program against all its dependency libraries.
37686link_all_deplibs=$link_all_deplibs_CXX
37687
cristy73bd4a52010-10-05 11:24:23 +000037688# Set to "yes" if exported symbols are required.
37689always_export_symbols=$always_export_symbols_CXX
37690
37691# The commands to list exported symbols.
37692export_symbols_cmds=$lt_export_symbols_cmds_CXX
37693
37694# Symbols that should not be listed in the preloaded symbols.
37695exclude_expsyms=$lt_exclude_expsyms_CXX
37696
37697# Symbols that must always be exported.
37698include_expsyms=$lt_include_expsyms_CXX
37699
37700# Commands necessary for linking programs (against libraries) with templates.
37701prelink_cmds=$lt_prelink_cmds_CXX
37702
cristyda16f162011-02-19 23:52:17 +000037703# Commands necessary for finishing linking programs.
37704postlink_cmds=$lt_postlink_cmds_CXX
37705
cristy73bd4a52010-10-05 11:24:23 +000037706# Specify filename containing input files.
37707file_list_spec=$lt_file_list_spec_CXX
37708
37709# How to hardcode a shared library path into an executable.
37710hardcode_action=$hardcode_action_CXX
37711
37712# The directories searched by this compiler when creating a shared library.
37713compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37714
37715# Dependencies to place before and after the objects being linked to
37716# create a shared library.
37717predep_objects=$lt_predep_objects_CXX
37718postdep_objects=$lt_postdep_objects_CXX
37719predeps=$lt_predeps_CXX
37720postdeps=$lt_postdeps_CXX
37721
37722# The library search path used internally by the compiler when linking
37723# a shared library.
37724compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37725
37726# ### END LIBTOOL TAG CONFIG: CXX
37727_LT_EOF
37728
37729 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037730 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000037731 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037732 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037733 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37734 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37735
37736 esac
37737done # for ac_tag
37738
37739
cristy8b350f62009-11-15 23:12:43 +000037740as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037741_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037742ac_clean_files=$ac_clean_files_save
37743
37744test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037746
37747
37748# configure is writing to config.log, and then calls config.status.
37749# config.status does its own redirection, appending to config.log.
37750# Unfortunately, on DOS this fails, as config.log is still kept open
37751# by configure, so config.status won't be able to write to it; its
37752# output is simply discarded. So we exec the FD to /dev/null,
37753# effectively closing config.log, so it can be properly (re)opened and
37754# appended to by config.status. When coming back to configure, we
37755# need to make the FD available again.
37756if test "$no_create" != yes; then
37757 ac_cs_success=:
37758 ac_config_status_args=
37759 test "$silent" = yes &&
37760 ac_config_status_args="$ac_config_status_args --quiet"
37761 exec 5>/dev/null
37762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37763 exec 5>>config.log
37764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37765 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037766 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037767fi
37768if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037770$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37771fi
37772
37773
37774rm -f magick-version
37775
cristy430a7312010-01-21 20:44:04 +000037776result_dejavu_font_dir='none'
37777if test "${dejavu_font_dir}x" != 'x'; then
37778 result_dejavu_font_dir=$dejavu_font_dir
37779fi
37780
cristy3ed852e2009-09-05 21:47:34 +000037781result_ghostscript_font_dir='none'
37782if test "${ghostscript_font_dir}x" != 'x'; then
37783 result_ghostscript_font_dir=$ghostscript_font_dir
37784fi
37785
37786result_windows_font_dir='none'
37787if test "${windows_font_dir}x" != 'x'; then
37788 result_windows_font_dir=${windows_font_dir}
37789fi
37790
cristy09b53e12011-10-14 12:47:22 +000037791{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000037792ImageMagick is configured as follows. Please verify that this configuration
37793matches your expectations.
37794
37795Host system type: $host
37796Build system type: $build
37797
37798 Option Value
37799-------------------------------------------------------------------------------
37800Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37801Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000037802Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000037803GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37804Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37805High Dynamic Range Imagery
37806 --enable-hdri=$enable_hdri $enable_hdri
37807
37808Delegate Configuration:
37809BZLIB --with-bzlib=$with_bzlib $have_bzlib
37810Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037811Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037812DJVU --with-djvu=$with_djvu $have_djvu
37813DPS --with-dps=$with_dps $have_dps
37814FFTW --with-fftw=$with_fftw $have_fftw
37815FlashPIX --with-fpx=$with_fpx $have_fpx
37816FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37817FreeType --with-freetype=$with_freetype $have_freetype
37818GhostPCL None $PCLDelegate ($PCLVersion)
37819GhostXPS None $XPSDelegate ($XPSVersion)
37820Ghostscript None $PSDelegate ($GSVersion)
37821Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37822Ghostscript lib --with-gslib=$with_gslib $have_gslib
37823Graphviz --with-gvc=$with_gvc $have_gvc
37824JBIG --with-jbig=$with_jbig $have_jbig
37825JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37826JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037827LCMS v1 --with-lcms=$with_lcms $have_lcms
37828LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037829LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000037830LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000037831LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037832Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37833OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000037834PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000037835PERL --with-perl=$with_perl $have_perl
37836PNG --with-png=$with_png $have_png
37837RSVG --with-rsvg=$with_rsvg $have_rsvg
37838TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037839WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037840Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000037841WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000037842X11 --with-x=$with_x $have_x
37843XML --with-xml=$with_xml $have_xml
37844ZLIB --with-zlib=$with_zlib $have_zlib
37845
37846X11 Configuration:
37847 X_CFLAGS = $X_CFLAGS
37848 X_PRE_LIBS = $X_PRE_LIBS
37849 X_LIBS = $X_LIBS
37850 X_EXTRA_LIBS = $X_EXTRA_LIBS
37851
37852Options used to compile and link:
37853 PREFIX = $PREFIX_DIR
37854 EXEC-PREFIX = $EXEC_PREFIX_DIR
37855 VERSION = $PACKAGE_VERSION
37856 CC = $CC
37857 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037858 CPPFLAGS = $MAGICK_CPPFLAGS
37859 PCFLAGS = $MAGICK_PCFLAGS
37860 DEFS = $DEFS
37861 LDFLAGS = $LDFLAGS
37862 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37863 LIBS = $MAGICK_LIBS
37864 CXX = $CXX
37865 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037866 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037867" >&5
cristy09b53e12011-10-14 12:47:22 +000037868$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000037869ImageMagick is configured as follows. Please verify that this configuration
37870matches your expectations.
37871
37872Host system type: $host
37873Build system type: $build
37874
37875 Option Value
37876-------------------------------------------------------------------------------
37877Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37878Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000037879Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000037880GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37881Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37882High Dynamic Range Imagery
37883 --enable-hdri=$enable_hdri $enable_hdri
37884
37885Delegate Configuration:
37886BZLIB --with-bzlib=$with_bzlib $have_bzlib
37887Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037888Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037889DJVU --with-djvu=$with_djvu $have_djvu
37890DPS --with-dps=$with_dps $have_dps
37891FFTW --with-fftw=$with_fftw $have_fftw
37892FlashPIX --with-fpx=$with_fpx $have_fpx
37893FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37894FreeType --with-freetype=$with_freetype $have_freetype
37895GhostPCL None $PCLDelegate ($PCLVersion)
37896GhostXPS None $XPSDelegate ($XPSVersion)
37897Ghostscript None $PSDelegate ($GSVersion)
37898Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37899Ghostscript lib --with-gslib=$with_gslib $have_gslib
37900Graphviz --with-gvc=$with_gvc $have_gvc
37901JBIG --with-jbig=$with_jbig $have_jbig
37902JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37903JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037904LCMS v1 --with-lcms=$with_lcms $have_lcms
37905LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037906LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000037907LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000037908LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037909Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37910OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000037911PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000037912PERL --with-perl=$with_perl $have_perl
37913PNG --with-png=$with_png $have_png
37914RSVG --with-rsvg=$with_rsvg $have_rsvg
37915TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037916WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037917Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000037918WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000037919X11 --with-x=$with_x $have_x
37920XML --with-xml=$with_xml $have_xml
37921ZLIB --with-zlib=$with_zlib $have_zlib
37922
37923X11 Configuration:
37924 X_CFLAGS = $X_CFLAGS
37925 X_PRE_LIBS = $X_PRE_LIBS
37926 X_LIBS = $X_LIBS
37927 X_EXTRA_LIBS = $X_EXTRA_LIBS
37928
37929Options used to compile and link:
37930 PREFIX = $PREFIX_DIR
37931 EXEC-PREFIX = $EXEC_PREFIX_DIR
37932 VERSION = $PACKAGE_VERSION
37933 CC = $CC
37934 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037935 CPPFLAGS = $MAGICK_CPPFLAGS
37936 PCFLAGS = $MAGICK_PCFLAGS
37937 DEFS = $DEFS
37938 LDFLAGS = $LDFLAGS
37939 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37940 LIBS = $MAGICK_LIBS
37941 CXX = $CXX
37942 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037943 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000037944" >&6;}