blob: e8080d806b5a6abc1b22e89450f55321a0dd25dc [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
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_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
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
726FIGDecodeDelegate
727EditorDelegate
728EchoDelegate
729DVIDecodeDelegate
730GVCDecodeDelegate
731DNGDecodeDelegate
732CatDelegate
733CGMDecodeDelegate
734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000737AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000738SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000739SHAREARCH_RELATIVE_PATH
740SHAREARCH_DIRNAME
741SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000742SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000743CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744DOCUMENTATION_PATH
745FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000747CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000748CODER_DIRNAME
749MODULES_PATH
750MODULES_RELATIVE_PATH
751MODULES_DIRNAME
752MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000753LIB_BIN_DIR_PATH
754LIB_BIN_DIR_RELATIVE_PATH
755LIB_BIN_DIR
756LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000757LIBRARY_PATH
758EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000759INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000760INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000761PERLMAINCC
762XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763XML_DELEGATE_FALSE
764XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000765xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000766WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000767WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768WMF_DELEGATE_FALSE
769WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000770WEBP_LIBS
771WEBP_DELEGATE_FALSE
772WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774TIFF_DELEGATE_FALSE
775TIFF_DELEGATE_TRUE
776CAIRO_DELEGATE_FALSE
777CAIRO_DELEGATE_TRUE
778RSVG_DELEGATE_FALSE
779RSVG_DELEGATE_TRUE
780CAIRO_SVG_LIBS
781CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000782RSVG_LIBS
783RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000784PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000785PNG_DELEGATE_FALSE
786PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000787PANGOCAIRO_DELEGATE_FALSE
788PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000789PANGO_DELEGATE_FALSE
790PANGO_DELEGATE_TRUE
791PANGO_LIBS
792PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793OPENEXR_DELEGATE_FALSE
794OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795OPENEXR_LIBS
796OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000797LZMA_DELEGATE_FALSE
798LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000799LZMA_LIBS
800LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000801LQR_DELEGATE_FALSE
802LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803LQR_LIBS
804LQR_CFLAGS
805LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806LCMS_DELEGATE_FALSE
807LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000809JP2_DELEGATE_FALSE
810JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812JPEG_DELEGATE_FALSE
813JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815JBIG_DELEGATE_FALSE
816JBIG_DELEGATE_TRUE
817GVC_DELEGATE_FALSE
818GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819GVC_LIBS
820GVC_CFLAGS
821GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822GS_DELEGATE_FALSE
823GS_DELEGATE_TRUE
cristyc0884e92013-08-10 17:14:59 +0000824FITZ_LIBS
825FITZ_DELEGATE_FALSE
826FITZ_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000827FREETYPE_DELEGATE_FALSE
828FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000829FREETYPE_LIBS
830FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000831FONTCONFIG_DELEGATE_FALSE
832FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FONTCONFIG_LIBS
834FONTCONFIG_CFLAGS
835FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000836FPX_DELEGATE_FALSE
837FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839FFTW_DELEGATE_FALSE
840FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000841DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842DJVU_DELEGATE_FALSE
843DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845DPS_DELEGATE_FALSE
846DPS_DELEGATE_TRUE
847AUTOTRACE_DELEGATE_FALSE
848AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849AUTOTRACE_LIBS
850AUTOTRACE_CFLAGS
851LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000852WITH_LTDL_FALSE
853WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000855ZLIB_DELEGATE_FALSE
856ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000857XEXT_LIBS
858X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000859X11_DELEGATE_FALSE
860X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861X_EXTRA_LIBS
862X_LIBS
863X_PRE_LIBS
864X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000865XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000866BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000867BZLIB_DELEGATE_FALSE
868BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000869CCMALLOCDelegate
870UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000871HasUMEM_FALSE
872HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000873GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_MAGICK_PLUS_PLUS_FALSE
875WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000876OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000877MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000878POW_LIB
879LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000880UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000882UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000888UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000889UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000890INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000891INT32_T
892UINT16_T
893INT16_T
894UINT8_T
895INT8_T
896LIBRARY_EXTRA_CPPFLAGS
897MODULE_EXTRA_CPPFLAGS
898LIBSTDCLDFLAGS
899PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000900MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000901MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000902QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000903LEGACY_SUPPORT_FALSE
904LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000905MAINT
906MAINTAINER_MODE_FALSE
907MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000908MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000909WITH_MODULES_FALSE
910WITH_MODULES_TRUE
911WITH_SHARED_LIBS_FALSE
912WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000914CXXCPP
915OTOOL64
916OTOOL
917LIPO
918NMEDIT
919DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000920MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000921RANLIB
cristyda16f162011-02-19 23:52:17 +0000922ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000923AR
924NM
925ac_ct_DUMPBIN
926DUMPBIN
927LIBTOOL
928OBJDUMP
929DLLTOOL
930AS
cristy3ed852e2009-09-05 21:47:34 +0000931LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000932CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000933CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000934OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000935THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PTHREAD_CFLAGS
937PTHREAD_LIBS
938PTHREAD_CC
939ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000940pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000941SHAREARCH_DIR
942INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000943WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000944USING_CL_FALSE
945USING_CL_TRUE
946CYGWIN_BUILD_FALSE
947CYGWIN_BUILD_TRUE
948WIN32_NATIVE_BUILD_FALSE
949WIN32_NATIVE_BUILD_TRUE
950WINGDI32_DELEGATE_FALSE
951WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000953HAVE_LD_VERSION_SCRIPT_FALSE
954HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000955PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000956PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000957LN_S
cristy3ed852e2009-09-05 21:47:34 +0000958LD
cristy73bd4a52010-10-05 11:24:23 +0000959FGREP
960SED
961am__fastdepCXX_FALSE
962am__fastdepCXX_TRUE
963CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000964ac_ct_CXX
965CXXFLAGS
966CXX
cristya0b81c32010-01-22 02:54:33 +0000967EGREP
968GREP
969CPP
cristy73bd4a52010-10-05 11:24:23 +0000970am__fastdepCC_FALSE
971am__fastdepCC_TRUE
972CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000973am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000974AMDEPBACKSLASH
975AMDEP_FALSE
976AMDEP_TRUE
977am__quote
978am__include
979DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000980OBJEXT
981EXEEXT
982ac_ct_CC
983CPPFLAGS
984LDFLAGS
985CFLAGS
986CC
987DIRSEP
988MAGICK_FILTER_MODULE_PATH
989MAGICK_CONFIGURE_BUILD_PATH
990MAGICK_CONFIGURE_SRC_PATH
991MAGICK_CODER_MODULE_PATH
992MAN_DIR
993INFO_DIR
994PERSISTINCLUDE_DIR
995INCLUDE_DIR
996LIB_DIR
997LOCALSTATE_DIR
998SHAREDSTATE_DIR
999SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001000DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001001DATA_DIR
1002LIBEXEC_DIR
1003SBIN_DIR
1004BIN_DIR
1005EXEC_PREFIX_DIR
1006PREFIX_DIR
1007CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001008MAGICKPP_LIB_VERSION_TEXT
1009MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001047MAGICKPP_LIBRARY_VERSION_INFO
1048MAGICKPP_LIBRARY_CURRENT_MIN
1049MAGICKPP_LIBRARY_AGE
1050MAGICKPP_LIBRARY_REVISION
1051MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001052MAGICK_LIBRARY_VERSION_INFO
1053MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001054MAGICK_LIBRARY_AGE
1055MAGICK_LIBRARY_REVISION
1056MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001057MAGICK_SVN_REVISION
1058MAGICK_VERSION
1059MAGICK_PATCHLEVEL_VERSION
1060MAGICK_MICRO_VERSION
1061MAGICK_MINOR_VERSION
1062MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001063MAGICK_TARGET_OS
1064MAGICK_TARGET_VENDOR
1065MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001066target_os
1067target_vendor
1068target_cpu
1069target
1070host_os
1071host_vendor
1072host_cpu
1073host
1074build_os
1075build_vendor
1076build_cpu
1077build
1078CONFIGURE_ARGS
1079DISTCHECK_CONFIG_FLAGS
1080target_alias
1081host_alias
1082build_alias
1083LIBS
1084ECHO_T
1085ECHO_N
1086ECHO_C
1087DEFS
1088mandir
1089localedir
1090libdir
1091psdir
1092pdfdir
1093dvidir
1094htmldir
1095infodir
1096docdir
1097oldincludedir
1098includedir
1099localstatedir
1100sharedstatedir
1101sysconfdir
1102datadir
1103datarootdir
1104libexecdir
1105sbindir
1106bindir
1107program_transform_name
1108prefix
1109exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001110PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001111PACKAGE_BUGREPORT
1112PACKAGE_STRING
1113PACKAGE_VERSION
1114PACKAGE_TARNAME
1115PACKAGE_NAME
1116PATH_SEPARATOR
1117SHELL'
1118ac_subst_files=''
1119ac_user_opts='
1120enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001121enable_silent_rules
1122enable_dependency_tracking
1123with_gnu_ld
1124with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001125with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001126enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001127enable_bounds_checking
1128enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001129with_includearch_dir
1130with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001131with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001132with_threads
1133enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001134enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001135enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001136enable_shared
1137enable_static
1138with_pic
1139enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001140with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001141enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001142with_modules
1143enable_delegate_build
1144enable_deprecated
1145enable_installed
1146enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001147enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001148enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001149enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001150enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001151enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001152enable_ccmalloc
1153enable_efence
1154enable_prof
1155enable_gprof
1156enable_gcov
1157with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001158enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001159with_quantum_depth
1160with_cache
1161with_frozenpaths
1162with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001163with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001164with_perl
1165with_perl_options
1166with_umem
1167with_libstdc
1168with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001169with_x
cristy3ed852e2009-09-05 21:47:34 +00001170with_zlib
1171with_autotrace
1172with_dps
1173with_djvu
cristy430a7312010-01-21 20:44:04 +00001174with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001175with_fftw
1176with_fpx
1177with_fontconfig
1178with_freetype
cristyc0884e92013-08-10 17:14:59 +00001179with_fitz
cristy3ed852e2009-09-05 21:47:34 +00001180with_gslib
1181with_fontpath
1182with_gs_font_dir
1183with_gvc
1184with_jbig
1185with_jpeg
1186with_jp2
1187with_lcms
cristy71203402010-06-18 13:12:03 +00001188with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001189with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001190with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001191with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001192with_pango
cristy3ed852e2009-09-05 21:47:34 +00001193with_png
1194with_rsvg
1195with_tiff
cristyb1860752011-03-14 00:27:46 +00001196with_webp
cristy3ed852e2009-09-05 21:47:34 +00001197with_windows_font_dir
1198with_wmf
1199with_xml
1200'
1201 ac_precious_vars='build_alias
1202host_alias
1203target_alias
1204CC
1205CFLAGS
1206LDFLAGS
1207LIBS
1208CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001209CPP
cristy3ed852e2009-09-05 21:47:34 +00001210CXX
1211CXXFLAGS
1212CCC
cristy73bd4a52010-10-05 11:24:23 +00001213PKG_CONFIG
1214CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001215XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001216AUTOTRACE_CFLAGS
1217AUTOTRACE_LIBS
1218FONTCONFIG_CFLAGS
1219FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001220FREETYPE_CFLAGS
1221FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001222GVC_CFLAGS
1223GVC_LIBS
1224LQR_CFLAGS
1225LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001226LZMA_CFLAGS
1227LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001228OPENEXR_CFLAGS
1229OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001230PANGO_CFLAGS
1231PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001232RSVG_CFLAGS
1233RSVG_LIBS
1234CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001235CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001236
1237
1238# Initialize some variables set by options.
1239ac_init_help=
1240ac_init_version=false
1241ac_unrecognized_opts=
1242ac_unrecognized_sep=
1243# The variables have the same names as the options, with
1244# dashes changed to underlines.
1245cache_file=/dev/null
1246exec_prefix=NONE
1247no_create=
1248no_recursion=
1249prefix=NONE
1250program_prefix=NONE
1251program_suffix=NONE
1252program_transform_name=s,x,x,
1253silent=
1254site=
1255srcdir=
1256verbose=
1257x_includes=NONE
1258x_libraries=NONE
1259
1260# Installation directory options.
1261# These are left unexpanded so users can "make install exec_prefix=/foo"
1262# and all the variables that are supposed to be based on exec_prefix
1263# by default will actually change.
1264# Use braces instead of parens because sh, perl, etc. also accept them.
1265# (The list follows the same order as the GNU Coding Standards.)
1266bindir='${exec_prefix}/bin'
1267sbindir='${exec_prefix}/sbin'
1268libexecdir='${exec_prefix}/libexec'
1269datarootdir='${prefix}/share'
1270datadir='${datarootdir}'
1271sysconfdir='${prefix}/etc'
1272sharedstatedir='${prefix}/com'
1273localstatedir='${prefix}/var'
1274includedir='${prefix}/include'
1275oldincludedir='/usr/include'
1276docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1277infodir='${datarootdir}/info'
1278htmldir='${docdir}'
1279dvidir='${docdir}'
1280pdfdir='${docdir}'
1281psdir='${docdir}'
1282libdir='${exec_prefix}/lib'
1283localedir='${datarootdir}/locale'
1284mandir='${datarootdir}/man'
1285
1286ac_prev=
1287ac_dashdash=
1288for ac_option
1289do
1290 # If the previous option needs an argument, assign it.
1291 if test -n "$ac_prev"; then
1292 eval $ac_prev=\$ac_option
1293 ac_prev=
1294 continue
1295 fi
1296
1297 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001298 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1299 *=) ac_optarg= ;;
1300 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001301 esac
1302
1303 # Accept the important Cygnus configure options, so we can diagnose typos.
1304
1305 case $ac_dashdash$ac_option in
1306 --)
1307 ac_dashdash=yes ;;
1308
1309 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1310 ac_prev=bindir ;;
1311 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1312 bindir=$ac_optarg ;;
1313
1314 -build | --build | --buil | --bui | --bu)
1315 ac_prev=build_alias ;;
1316 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1317 build_alias=$ac_optarg ;;
1318
1319 -cache-file | --cache-file | --cache-fil | --cache-fi \
1320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1321 ac_prev=cache_file ;;
1322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1324 cache_file=$ac_optarg ;;
1325
1326 --config-cache | -C)
1327 cache_file=config.cache ;;
1328
1329 -datadir | --datadir | --datadi | --datad)
1330 ac_prev=datadir ;;
1331 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1332 datadir=$ac_optarg ;;
1333
1334 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1335 | --dataroo | --dataro | --datar)
1336 ac_prev=datarootdir ;;
1337 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1338 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1339 datarootdir=$ac_optarg ;;
1340
1341 -disable-* | --disable-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001345 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1349 *"
1350"enable_$ac_useropt"
1351"*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval enable_$ac_useropt=no ;;
1356
1357 -docdir | --docdir | --docdi | --doc | --do)
1358 ac_prev=docdir ;;
1359 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1360 docdir=$ac_optarg ;;
1361
1362 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1363 ac_prev=dvidir ;;
1364 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1365 dvidir=$ac_optarg ;;
1366
1367 -enable-* | --enable-*)
1368 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001371 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376"enable_$ac_useropt"
1377"*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval enable_$ac_useropt=\$ac_optarg ;;
1382
1383 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1384 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1385 | --exec | --exe | --ex)
1386 ac_prev=exec_prefix ;;
1387 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1388 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1389 | --exec=* | --exe=* | --ex=*)
1390 exec_prefix=$ac_optarg ;;
1391
1392 -gas | --gas | --ga | --g)
1393 # Obsolete; use --with-gas.
1394 with_gas=yes ;;
1395
1396 -help | --help | --hel | --he | -h)
1397 ac_init_help=long ;;
1398 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1399 ac_init_help=recursive ;;
1400 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1401 ac_init_help=short ;;
1402
1403 -host | --host | --hos | --ho)
1404 ac_prev=host_alias ;;
1405 -host=* | --host=* | --hos=* | --ho=*)
1406 host_alias=$ac_optarg ;;
1407
1408 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1409 ac_prev=htmldir ;;
1410 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1411 | --ht=*)
1412 htmldir=$ac_optarg ;;
1413
1414 -includedir | --includedir | --includedi | --included | --include \
1415 | --includ | --inclu | --incl | --inc)
1416 ac_prev=includedir ;;
1417 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1418 | --includ=* | --inclu=* | --incl=* | --inc=*)
1419 includedir=$ac_optarg ;;
1420
1421 -infodir | --infodir | --infodi | --infod | --info | --inf)
1422 ac_prev=infodir ;;
1423 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1424 infodir=$ac_optarg ;;
1425
1426 -libdir | --libdir | --libdi | --libd)
1427 ac_prev=libdir ;;
1428 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1429 libdir=$ac_optarg ;;
1430
1431 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1432 | --libexe | --libex | --libe)
1433 ac_prev=libexecdir ;;
1434 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1435 | --libexe=* | --libex=* | --libe=*)
1436 libexecdir=$ac_optarg ;;
1437
1438 -localedir | --localedir | --localedi | --localed | --locale)
1439 ac_prev=localedir ;;
1440 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1441 localedir=$ac_optarg ;;
1442
1443 -localstatedir | --localstatedir | --localstatedi | --localstated \
1444 | --localstate | --localstat | --localsta | --localst | --locals)
1445 ac_prev=localstatedir ;;
1446 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1447 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1448 localstatedir=$ac_optarg ;;
1449
1450 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1451 ac_prev=mandir ;;
1452 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1453 mandir=$ac_optarg ;;
1454
1455 -nfp | --nfp | --nf)
1456 # Obsolete; use --without-fp.
1457 with_fp=no ;;
1458
1459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1460 | --no-cr | --no-c | -n)
1461 no_create=yes ;;
1462
1463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1465 no_recursion=yes ;;
1466
1467 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1468 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1469 | --oldin | --oldi | --old | --ol | --o)
1470 ac_prev=oldincludedir ;;
1471 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1472 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1473 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1474 oldincludedir=$ac_optarg ;;
1475
1476 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1477 ac_prev=prefix ;;
1478 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1479 prefix=$ac_optarg ;;
1480
1481 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1482 | --program-pre | --program-pr | --program-p)
1483 ac_prev=program_prefix ;;
1484 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1485 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1486 program_prefix=$ac_optarg ;;
1487
1488 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1489 | --program-suf | --program-su | --program-s)
1490 ac_prev=program_suffix ;;
1491 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1492 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1493 program_suffix=$ac_optarg ;;
1494
1495 -program-transform-name | --program-transform-name \
1496 | --program-transform-nam | --program-transform-na \
1497 | --program-transform-n | --program-transform- \
1498 | --program-transform | --program-transfor \
1499 | --program-transfo | --program-transf \
1500 | --program-trans | --program-tran \
1501 | --progr-tra | --program-tr | --program-t)
1502 ac_prev=program_transform_name ;;
1503 -program-transform-name=* | --program-transform-name=* \
1504 | --program-transform-nam=* | --program-transform-na=* \
1505 | --program-transform-n=* | --program-transform-=* \
1506 | --program-transform=* | --program-transfor=* \
1507 | --program-transfo=* | --program-transf=* \
1508 | --program-trans=* | --program-tran=* \
1509 | --progr-tra=* | --program-tr=* | --program-t=*)
1510 program_transform_name=$ac_optarg ;;
1511
1512 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1513 ac_prev=pdfdir ;;
1514 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1515 pdfdir=$ac_optarg ;;
1516
1517 -psdir | --psdir | --psdi | --psd | --ps)
1518 ac_prev=psdir ;;
1519 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1520 psdir=$ac_optarg ;;
1521
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 silent=yes ;;
1525
1526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1527 ac_prev=sbindir ;;
1528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1529 | --sbi=* | --sb=*)
1530 sbindir=$ac_optarg ;;
1531
1532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1534 | --sharedst | --shareds | --shared | --share | --shar \
1535 | --sha | --sh)
1536 ac_prev=sharedstatedir ;;
1537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1540 | --sha=* | --sh=*)
1541 sharedstatedir=$ac_optarg ;;
1542
1543 -site | --site | --sit)
1544 ac_prev=site ;;
1545 -site=* | --site=* | --sit=*)
1546 site=$ac_optarg ;;
1547
1548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1549 ac_prev=srcdir ;;
1550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1551 srcdir=$ac_optarg ;;
1552
1553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1554 | --syscon | --sysco | --sysc | --sys | --sy)
1555 ac_prev=sysconfdir ;;
1556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1558 sysconfdir=$ac_optarg ;;
1559
1560 -target | --target | --targe | --targ | --tar | --ta | --t)
1561 ac_prev=target_alias ;;
1562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1563 target_alias=$ac_optarg ;;
1564
1565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1566 verbose=yes ;;
1567
1568 -version | --version | --versio | --versi | --vers | -V)
1569 ac_init_version=: ;;
1570
1571 -with-* | --with-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001575 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=\$ac_optarg ;;
1586
1587 -without-* | --without-*)
1588 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1589 # Reject names that are not valid shell variable names.
1590 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001591 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001592 ac_useropt_orig=$ac_useropt
1593 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1594 case $ac_user_opts in
1595 *"
1596"with_$ac_useropt"
1597"*) ;;
1598 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1599 ac_unrecognized_sep=', ';;
1600 esac
1601 eval with_$ac_useropt=no ;;
1602
1603 --x)
1604 # Obsolete; use --with-x.
1605 with_x=yes ;;
1606
1607 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1608 | --x-incl | --x-inc | --x-in | --x-i)
1609 ac_prev=x_includes ;;
1610 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1611 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1612 x_includes=$ac_optarg ;;
1613
1614 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1615 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1616 ac_prev=x_libraries ;;
1617 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1618 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1619 x_libraries=$ac_optarg ;;
1620
cristy98dddb52010-11-04 00:30:15 +00001621 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1622Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001623 ;;
1624
1625 *=*)
1626 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1627 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001628 case $ac_envvar in #(
1629 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001630 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001631 esac
cristy3ed852e2009-09-05 21:47:34 +00001632 eval $ac_envvar=\$ac_optarg
1633 export $ac_envvar ;;
1634
1635 *)
1636 # FIXME: should be removed in autoconf 3.0.
1637 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1638 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1639 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001640 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001641 ;;
1642
1643 esac
1644done
1645
1646if test -n "$ac_prev"; then
1647 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001649fi
1650
1651if test -n "$ac_unrecognized_opts"; then
1652 case $enable_option_checking in
1653 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001654 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001655 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1656 esac
1657fi
1658
1659# Check all directory arguments for consistency.
1660for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1661 datadir sysconfdir sharedstatedir localstatedir includedir \
1662 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1663 libdir localedir mandir
1664do
1665 eval ac_val=\$$ac_var
1666 # Remove trailing slashes.
1667 case $ac_val in
1668 */ )
1669 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1670 eval $ac_var=\$ac_val;;
1671 esac
1672 # Be sure to have absolute directory names.
1673 case $ac_val in
1674 [\\/$]* | ?:[\\/]* ) continue;;
1675 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1676 esac
cristy98dddb52010-11-04 00:30:15 +00001677 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001678done
1679
1680# There might be people who depend on the old broken behavior: `$host'
1681# used to hold the argument of --host etc.
1682# FIXME: To remove some day.
1683build=$build_alias
1684host=$host_alias
1685target=$target_alias
1686
1687# FIXME: To remove some day.
1688if test "x$host_alias" != x; then
1689 if test "x$build_alias" = x; then
1690 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001691 elif test "x$build_alias" != "x$host_alias"; then
1692 cross_compiling=yes
1693 fi
1694fi
1695
1696ac_tool_prefix=
1697test -n "$host_alias" && ac_tool_prefix=$host_alias-
1698
1699test "$silent" = yes && exec 6>/dev/null
1700
1701
1702ac_pwd=`pwd` && test -n "$ac_pwd" &&
1703ac_ls_di=`ls -di .` &&
1704ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001705 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001706test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001708
1709
1710# Find the source files, if location was not specified.
1711if test -z "$srcdir"; then
1712 ac_srcdir_defaulted=yes
1713 # Try the directory containing this script, then the parent directory.
1714 ac_confdir=`$as_dirname -- "$as_myself" ||
1715$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1716 X"$as_myself" : 'X\(//\)[^/]' \| \
1717 X"$as_myself" : 'X\(//\)$' \| \
1718 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1719$as_echo X"$as_myself" |
1720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\/\)[^/].*/{
1725 s//\1/
1726 q
1727 }
1728 /^X\(\/\/\)$/{
1729 s//\1/
1730 q
1731 }
1732 /^X\(\/\).*/{
1733 s//\1/
1734 q
1735 }
1736 s/.*/./; q'`
1737 srcdir=$ac_confdir
1738 if test ! -r "$srcdir/$ac_unique_file"; then
1739 srcdir=..
1740 fi
1741else
1742 ac_srcdir_defaulted=no
1743fi
1744if test ! -r "$srcdir/$ac_unique_file"; then
1745 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001746 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001747fi
1748ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1749ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001750 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001751 pwd)`
1752# When building in place, set srcdir=.
1753if test "$ac_abs_confdir" = "$ac_pwd"; then
1754 srcdir=.
1755fi
1756# Remove unnecessary trailing slashes from srcdir.
1757# Double slashes in file names in object file debugging info
1758# mess up M-x gdb in Emacs.
1759case $srcdir in
1760*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1761esac
1762for ac_var in $ac_precious_vars; do
1763 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1764 eval ac_env_${ac_var}_value=\$${ac_var}
1765 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1766 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1767done
1768
1769#
1770# Report the --help message.
1771#
1772if test "$ac_init_help" = "long"; then
1773 # Omit some internal or obsolete options to make the list less imposing.
1774 # This message is too long to be a string in the A/UX 3.1 sh.
1775 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001776\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001777
1778Usage: $0 [OPTION]... [VAR=VALUE]...
1779
1780To assign environment variables (e.g., CC, CFLAGS...), specify them as
1781VAR=VALUE. See below for descriptions of some of the useful variables.
1782
1783Defaults for the options are specified in brackets.
1784
1785Configuration:
1786 -h, --help display this help and exit
1787 --help=short display options specific to this package
1788 --help=recursive display the short help of all the included packages
1789 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001790 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001791 --cache-file=FILE cache test results in FILE [disabled]
1792 -C, --config-cache alias for \`--cache-file=config.cache'
1793 -n, --no-create do not create output files
1794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1795
1796Installation directories:
1797 --prefix=PREFIX install architecture-independent files in PREFIX
1798 [$ac_default_prefix]
1799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1800 [PREFIX]
1801
1802By default, \`make install' will install all the files in
1803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1805for instance \`--prefix=\$HOME'.
1806
1807For better control, use the options below.
1808
1809Fine tuning of the installation directories:
1810 --bindir=DIR user executables [EPREFIX/bin]
1811 --sbindir=DIR system admin executables [EPREFIX/sbin]
1812 --libexecdir=DIR program executables [EPREFIX/libexec]
1813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1816 --libdir=DIR object code libraries [EPREFIX/lib]
1817 --includedir=DIR C header files [PREFIX/include]
1818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1819 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1820 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1821 --infodir=DIR info documentation [DATAROOTDIR/info]
1822 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1823 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001824 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001825 --htmldir=DIR html documentation [DOCDIR]
1826 --dvidir=DIR dvi documentation [DOCDIR]
1827 --pdfdir=DIR pdf documentation [DOCDIR]
1828 --psdir=DIR ps documentation [DOCDIR]
1829_ACEOF
1830
1831 cat <<\_ACEOF
1832
cristy73bd4a52010-10-05 11:24:23 +00001833Program names:
1834 --program-prefix=PREFIX prepend PREFIX to installed program names
1835 --program-suffix=SUFFIX append SUFFIX to installed program names
1836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1837
cristy3ed852e2009-09-05 21:47:34 +00001838X features:
1839 --x-includes=DIR X include files are in DIR
1840 --x-libraries=DIR X library files are in DIR
1841
1842System types:
1843 --build=BUILD configure for building on BUILD [guessed]
1844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1845 --target=TARGET configure for building compilers for TARGET [HOST]
1846_ACEOF
1847fi
1848
1849if test -n "$ac_init_help"; then
1850 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001851 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001852 esac
1853 cat <<\_ACEOF
1854
1855Optional Features:
1856 --disable-option-checking ignore unrecognized --enable/--with options
1857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001859 --enable-silent-rules less verbose build output (undo: "make V=1")
1860 --disable-silent-rules verbose build output (undo: "make V=0")
1861 --enable-dependency-tracking
1862 do not reject slow dependency extractors
1863 --disable-dependency-tracking
1864 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001865 --enable-ld-version-script
1866 enable linker version script (default is enabled
1867 when possible)
cristya3824692012-03-30 17:22:07 +00001868 --enable-bounds-checking
1869 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001870 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001871 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001872 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001873 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001875 --enable-shared[=PKGS] build shared libraries [default=yes]
1876 --enable-static[=PKGS] build static libraries [default=yes]
1877 --enable-fast-install[=PKGS]
1878 optimize for fast installation [default=yes]
1879 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-delegate-build look for delegate libraries in build directory
1881 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001882 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001883 --disable-installed Formally install ImageMagick under PREFIX
1884 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001885 --enable-zero-configuration
1886 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001887 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001888 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001889 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001891 --enable-maintainer-mode
1892 enable make rules and dependencies not useful (and
1893 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001894 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001895 --enable-ccmalloc enable 'ccmalloc' memory debug support
1896 --enable-efence enable 'efence' memory debug support
1897 --enable-prof enable 'prof' profiling support
1898 --enable-gprof enable 'gprof' profiling support
1899 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001900 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001901 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001902
1903Optional Packages:
1904 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1905 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001906 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001907 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001908 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1909 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001910 --includearch-dir=DIR ARCH specific include directory
1911 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001912 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001914 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001915 both]
cristyda16f162011-02-19 23:52:17 +00001916 --with-sysroot=DIR Search for dependent libraries within DIR
1917 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-modules enable building dynamically loadable modules
1919 --with-method-prefix=PREFIX
1920 prefix MagickCore API methods
1921 --with-quantum-depth=DEPTH
1922 number of bits in a pixel quantum (default 16)
1923 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1924 memory)
1925 --with-frozenpaths freeze delegate paths
1926 --without-magick-plus-plus
1927 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001928 --with-package-release-name=NAME
1929 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001930 --with-perl enable build/install of PerlMagick
1931 --with-perl-options=OPTIONS
1932 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001933 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001934 --with-umem enable umem memory allocation library support
1935 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1936 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001937 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-zlib disable ZLIB support
1939 --with-autotrace enable autotrace support
1940 --without-dps disable Display Postscript support
1941 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001942 --with-dejavu-font-dir=DIR
1943 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001944 --without-fftw disable FFTW support
1945 --without-fpx disable FlashPIX support
1946 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001947 --without-freetype disable Freetype support
cristyc0884e92013-08-10 17:14:59 +00001948 --without-fitz disable FITZ support
cristybdabdd62013-03-04 17:43:36 +00001949 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001950 --with-fontpath=DIR prepend to default font search path
1951 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001952 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-jbig disable JBIG support
1954 --without-jpeg disable JPEG support
1955 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001956 --without-lcms disable lcms (v1.1X) support
1957 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001958 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001959 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001960 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001961 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001963 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001965 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001966 --with-windows-font-dir=DIR
1967 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001968 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-xml disable XML support
1970
1971Some influential environment variables:
1972 CC C compiler command
1973 CFLAGS C compiler flags
1974 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1975 nonstandard directory <lib dir>
1976 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001977 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001978 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001979 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001980 CXX C++ compiler command
1981 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001982 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001983 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001984 XMKMF Path to xmkmf, Makefile generator for X Window System
1985 AUTOTRACE_CFLAGS
1986 C compiler flags for AUTOTRACE, overriding pkg-config
1987 AUTOTRACE_LIBS
1988 linker flags for AUTOTRACE, overriding pkg-config
1989 FONTCONFIG_CFLAGS
1990 C compiler flags for FONTCONFIG, overriding pkg-config
1991 FONTCONFIG_LIBS
1992 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001993 FREETYPE_CFLAGS
1994 C compiler flags for FREETYPE, overriding pkg-config
1995 FREETYPE_LIBS
1996 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001997 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1998 GVC_LIBS linker flags for GVC, overriding pkg-config
1999 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2000 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002001 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2002 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 OPENEXR_CFLAGS
2004 C compiler flags for OPENEXR, overriding pkg-config
2005 OPENEXR_LIBS
2006 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002007 PANGO_CFLAGS
2008 C compiler flags for PANGO, overriding pkg-config
2009 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002010 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2011 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2012 CAIRO_SVG_CFLAGS
2013 C compiler flags for CAIRO_SVG, overriding pkg-config
2014 CAIRO_SVG_LIBS
2015 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002016
2017Use these variables to override the choices made by `configure' or to help
2018it to find libraries and programs with nonstandard names/locations.
2019
2020Report bugs to <http://www.imagemagick.org>.
2021_ACEOF
2022ac_status=$?
2023fi
2024
2025if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2030 continue
2031 ac_builddir=.
2032
2033case "$ac_dir" in
2034.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035*)
2036 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2042 esac ;;
2043esac
2044ac_abs_top_builddir=$ac_pwd
2045ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046# for backward compatibility:
2047ac_top_builddir=$ac_top_build_prefix
2048
2049case $srcdir in
2050 .) # We are building in place.
2051 ac_srcdir=.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2058 *) # Relative name.
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2062esac
2063ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for guested configure.
2067 if test -f "$ac_srcdir/configure.gnu"; then
2068 echo &&
2069 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2070 elif test -f "$ac_srcdir/configure"; then
2071 echo &&
2072 $SHELL "$ac_srcdir/configure" --help=recursive
2073 else
2074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2075 fi || ac_status=$?
2076 cd "$ac_pwd" || { ac_status=$?; break; }
2077 done
2078fi
2079
2080test -n "$ac_init_help" && exit $ac_status
2081if $ac_init_version; then
2082 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002083ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002084generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002085
cristy14fefe52012-05-21 00:59:18 +00002086Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002087This configure script is free software; the Free Software Foundation
2088gives unlimited permission to copy, distribute and modify it.
2089_ACEOF
2090 exit
2091fi
cristy8b350f62009-11-15 23:12:43 +00002092
2093## ------------------------ ##
2094## Autoconf initialization. ##
2095## ------------------------ ##
2096
2097# ac_fn_c_try_compile LINENO
2098# --------------------------
2099# Try to compile conftest.$ac_ext, and return whether this succeeded.
2100ac_fn_c_try_compile ()
2101{
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext
2104 if { { ac_try="$ac_compile"
2105case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108esac
2109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110$as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.$ac_objext; then :
2123 ac_retval=0
2124else
2125 $as_echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 ac_retval=1
2129fi
cristyda16f162011-02-19 23:52:17 +00002130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002131 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002132
2133} # ac_fn_c_try_compile
2134
cristy95646052009-11-28 23:05:30 +00002135# ac_fn_c_try_cpp LINENO
2136# ----------------------
2137# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138ac_fn_c_try_cpp ()
2139{
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002156 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2158 test ! -s conftest.err
2159 }; then :
2160 ac_retval=0
2161else
2162 $as_echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_retval=1
2166fi
cristyda16f162011-02-19 23:52:17 +00002167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002168 as_fn_set_status $ac_retval
2169
2170} # ac_fn_c_try_cpp
2171
cristy8b350f62009-11-15 23:12:43 +00002172# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2173# -------------------------------------------------------
2174# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175# the include files in INCLUDES and setting the cache variable VAR
2176# accordingly.
2177ac_fn_c_check_header_mongrel ()
2178{
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002180 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002183if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002184 $as_echo_n "(cached) " >&6
2185fi
2186eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188$as_echo "$ac_res" >&6; }
2189else
2190 # Is the header compilable?
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192$as_echo_n "checking $2 usability... " >&6; }
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196#include <$2>
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_header_compiler=yes
2200else
2201 ac_header_compiler=no
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205$as_echo "$ac_header_compiler" >&6; }
2206
2207# Is the header present?
2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209$as_echo_n "checking $2 presence... " >&6; }
2210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h. */
2212#include <$2>
2213_ACEOF
2214if ac_fn_c_try_cpp "$LINENO"; then :
2215 ac_header_preproc=yes
2216else
2217 ac_header_preproc=no
2218fi
cristyda16f162011-02-19 23:52:17 +00002219rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221$as_echo "$ac_header_preproc" >&6; }
2222
2223# So? What about this header?
2224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225 yes:no: )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ;;
2231 no:yes:* )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2235$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2239$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002242( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002243## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002244## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002245 ) | sed "s/^/$as_me: WARNING: /" >&2
2246 ;;
2247esac
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002250if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002251 $as_echo_n "(cached) " >&6
2252else
2253 eval "$3=\$ac_header_compiler"
2254fi
2255eval ac_res=\$$3
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257$as_echo "$ac_res" >&6; }
2258fi
cristyda16f162011-02-19 23:52:17 +00002259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002260
2261} # ac_fn_c_check_header_mongrel
2262
2263# ac_fn_c_try_run LINENO
2264# ----------------------
2265# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2266# that executables *can* be run.
2267ac_fn_c_try_run ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_link"
2271case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276$as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>&5
2278 ac_status=$?
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2281 { { case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_try") 2>&5
2288 ac_status=$?
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; }; }; then :
2291 ac_retval=0
2292else
2293 $as_echo "$as_me: program exited with status $ac_status" >&5
2294 $as_echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 ac_retval=$ac_status
2298fi
2299 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002301 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002302
2303} # ac_fn_c_try_run
2304
2305# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2306# -------------------------------------------------------
2307# Tests whether HEADER exists and can be compiled using the include files in
2308# INCLUDES, setting the cache variable VAR accordingly.
2309ac_fn_c_check_header_compile ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002314if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002315 $as_echo_n "(cached) " >&6
2316else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319$4
2320#include <$2>
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$3=yes"
2324else
2325 eval "$3=no"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002333
2334} # ac_fn_c_check_header_compile
2335
cristya0b81c32010-01-22 02:54:33 +00002336# ac_fn_cxx_try_compile LINENO
2337# ----------------------------
2338# Try to compile conftest.$ac_ext, and return whether this succeeded.
2339ac_fn_cxx_try_compile ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 rm -f conftest.$ac_objext
2343 if { { ac_try="$ac_compile"
2344case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347esac
2348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349$as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_compile") 2>conftest.err
2351 ac_status=$?
2352 if test -s conftest.err; then
2353 grep -v '^ *+' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2355 mv -f conftest.er1 conftest.err
2356 fi
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && {
2359 test -z "$ac_cxx_werror_flag" ||
2360 test ! -s conftest.err
2361 } && test -s conftest.$ac_objext; then :
2362 ac_retval=0
2363else
2364 $as_echo "$as_me: failed program was:" >&5
2365sed 's/^/| /' conftest.$ac_ext >&5
2366
2367 ac_retval=1
2368fi
cristyda16f162011-02-19 23:52:17 +00002369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002370 as_fn_set_status $ac_retval
2371
2372} # ac_fn_cxx_try_compile
2373
cristy8b350f62009-11-15 23:12:43 +00002374# ac_fn_c_try_link LINENO
2375# -----------------------
2376# Try to link conftest.$ac_ext, and return whether this succeeded.
2377ac_fn_c_try_link ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext conftest$ac_exeext
2381 if { { ac_try="$ac_link"
2382case "(($ac_try" in
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2385esac
2386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387$as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_link") 2>conftest.err
2389 ac_status=$?
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2394 fi
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_c_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest$ac_exeext && {
2400 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002401 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002402 }; then :
2403 ac_retval=0
2404else
2405 $as_echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_retval=1
2409fi
2410 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2411 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2412 # interfere with the next link command; also delete a directory that is
2413 # left behind by Apple's compiler. We do this before executing the actions.
2414 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002416 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002417
2418} # ac_fn_c_try_link
2419
cristy73bd4a52010-10-05 11:24:23 +00002420# ac_fn_c_check_func LINENO FUNC VAR
2421# ----------------------------------
2422# Tests whether FUNC exists, setting the cache variable VAR accordingly
2423ac_fn_c_check_func ()
2424{
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002428if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002429 $as_echo_n "(cached) " >&6
2430else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432/* end confdefs.h. */
2433/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2435#define $2 innocuous_$2
2436
2437/* System header to define __stub macros and hopefully few prototypes,
2438 which can conflict with char $2 (); below.
2439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 <limits.h> exists even on freestanding compilers. */
2441
2442#ifdef __STDC__
2443# include <limits.h>
2444#else
2445# include <assert.h>
2446#endif
2447
2448#undef $2
2449
2450/* Override any GCC internal prototype to avoid an error.
2451 Use char because int might match the return type of a GCC
2452 builtin and then its argument prototype would still apply. */
2453#ifdef __cplusplus
2454extern "C"
2455#endif
2456char $2 ();
2457/* The GNU C library defines this for functions which it implements
2458 to always fail with ENOSYS. Some functions are actually named
2459 something starting with __ and the normal name is an alias. */
2460#if defined __stub_$2 || defined __stub___$2
2461choke me
2462#endif
2463
2464int
2465main ()
2466{
2467return $2 ();
2468 ;
2469 return 0;
2470}
2471_ACEOF
2472if ac_fn_c_try_link "$LINENO"; then :
2473 eval "$3=yes"
2474else
2475 eval "$3=no"
2476fi
2477rm -f core conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479fi
2480eval ac_res=\$$3
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002484
2485} # ac_fn_c_check_func
2486
2487# ac_fn_cxx_try_cpp LINENO
2488# ------------------------
2489# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2490ac_fn_cxx_try_cpp ()
2491{
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if { { ac_try="$ac_cpp conftest.$ac_ext"
2494case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2497esac
2498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499$as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2501 ac_status=$?
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2506 fi
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002508 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002509 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2510 test ! -s conftest.err
2511 }; then :
2512 ac_retval=0
2513else
2514 $as_echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 ac_retval=1
2518fi
cristyda16f162011-02-19 23:52:17 +00002519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002520 as_fn_set_status $ac_retval
2521
2522} # ac_fn_cxx_try_cpp
2523
2524# ac_fn_cxx_try_link LINENO
2525# -------------------------
2526# Try to link conftest.$ac_ext, and return whether this succeeded.
2527ac_fn_cxx_try_link ()
2528{
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { { ac_try="$ac_link"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537$as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link") 2>conftest.err
2539 ac_status=$?
2540 if test -s conftest.err; then
2541 grep -v '^ *+' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2543 mv -f conftest.er1 conftest.err
2544 fi
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; } && {
2547 test -z "$ac_cxx_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest$ac_exeext && {
2550 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002551 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002552 }; then :
2553 ac_retval=0
2554else
2555 $as_echo "$as_me: failed program was:" >&5
2556sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 ac_retval=1
2559fi
2560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2562 # interfere with the next link command; also delete a directory that is
2563 # left behind by Apple's compiler. We do this before executing the actions.
2564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002566 as_fn_set_status $ac_retval
2567
2568} # ac_fn_cxx_try_link
2569
cristy8b350f62009-11-15 23:12:43 +00002570# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571# -------------------------------------------
2572# Tests whether TYPE exists after having included INCLUDES, setting cache
2573# variable VAR accordingly.
2574ac_fn_c_check_type ()
2575{
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002579if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002580 $as_echo_n "(cached) " >&6
2581else
2582 eval "$3=no"
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int
2587main ()
2588{
2589if (sizeof ($2))
2590 return 0;
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595if ac_fn_c_try_compile "$LINENO"; then :
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599int
2600main ()
2601{
2602if (sizeof (($2)))
2603 return 0;
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608if ac_fn_c_try_compile "$LINENO"; then :
2609
2610else
2611 eval "$3=yes"
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616fi
2617eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002621
2622} # ac_fn_c_check_type
2623
cristy92703d82010-04-26 00:18:18 +00002624# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625# ----------------------------------------------------
2626# Tries to find if the field MEMBER exists in type AGGR, after including
2627# INCLUDES, setting cache variable VAR accordingly.
2628ac_fn_c_check_member ()
2629{
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002633if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002634 $as_echo_n "(cached) " >&6
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$5
2655int
2656main ()
2657{
2658static $2 ac_aggr;
2659if (sizeof ac_aggr.$3)
2660return 0;
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 eval "$4=yes"
2667else
2668 eval "$4=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673fi
2674eval ac_res=\$$4
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002678
2679} # ac_fn_c_check_member
2680
cristy5eef09f2012-10-16 12:08:28 +00002681# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2682# ---------------------------------------------
2683# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2684# accordingly.
2685ac_fn_c_check_decl ()
2686{
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 as_decl_name=`echo $2|sed 's/ *(.*//'`
2689 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2691$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2692if eval \${$3+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696/* end confdefs.h. */
2697$4
2698int
2699main ()
2700{
2701#ifndef $as_decl_name
2702#ifdef __cplusplus
2703 (void) $as_decl_use;
2704#else
2705 (void) $as_decl_name;
2706#endif
2707#endif
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713if ac_fn_c_try_compile "$LINENO"; then :
2714 eval "$3=yes"
2715else
2716 eval "$3=no"
2717fi
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi
2720eval ac_res=\$$3
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722$as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724
2725} # ac_fn_c_check_decl
2726
cristy501c8042011-05-26 17:46:28 +00002727# ac_fn_c_find_intX_t LINENO BITS VAR
2728# -----------------------------------
2729# Finds a signed integer type with width BITS, setting cache variable VAR
2730# accordingly.
2731ac_fn_c_find_intX_t ()
2732{
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2735$as_echo_n "checking for int$2_t... " >&6; }
2736if eval \${$3+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 eval "$3=no"
2740 # Order is important - never check a type that is potentially smaller
2741 # than half of the expected target width.
2742 for ac_type in int$2_t 'int' 'long int' \
2743 'long long int' 'short int' 'signed char'; do
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$ac_includes_default
2747 enum { N = $2 / 2 - 1 };
2748int
2749main ()
2750{
2751static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002752test_array [0] = 0;
2753return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759if ac_fn_c_try_compile "$LINENO"; then :
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761/* end confdefs.h. */
2762$ac_includes_default
2763 enum { N = $2 / 2 - 1 };
2764int
2765main ()
2766{
2767static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2768 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002769test_array [0] = 0;
2770return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776if ac_fn_c_try_compile "$LINENO"; then :
2777
2778else
2779 case $ac_type in #(
2780 int$2_t) :
2781 eval "$3=yes" ;; #(
2782 *) :
2783 eval "$3=\$ac_type" ;;
2784esac
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 if eval test \"x\$"$3"\" = x"no"; then :
2790
2791else
2792 break
2793fi
2794 done
2795fi
2796eval ac_res=\$$3
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798$as_echo "$ac_res" >&6; }
2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800
2801} # ac_fn_c_find_intX_t
2802
2803# ac_fn_c_find_uintX_t LINENO BITS VAR
2804# ------------------------------------
2805# Finds an unsigned integer type with width BITS, setting cache variable VAR
2806# accordingly.
2807ac_fn_c_find_uintX_t ()
2808{
2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2811$as_echo_n "checking for uint$2_t... " >&6; }
2812if eval \${$3+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 eval "$3=no"
2816 # Order is important - never check a type that is potentially smaller
2817 # than half of the expected target width.
2818 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2819 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h. */
2822$ac_includes_default
2823int
2824main ()
2825{
2826static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002827test_array [0] = 0;
2828return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 case $ac_type in #(
2836 uint$2_t) :
2837 eval "$3=yes" ;; #(
2838 *) :
2839 eval "$3=\$ac_type" ;;
2840esac
2841fi
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 if eval test \"x\$"$3"\" = x"no"; then :
2844
2845else
2846 break
2847fi
2848 done
2849fi
2850eval ac_res=\$$3
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852$as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2854
2855} # ac_fn_c_find_uintX_t
2856
cristy8b350f62009-11-15 23:12:43 +00002857# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2858# --------------------------------------------
2859# Tries to find the compile-time value of EXPR in a program that includes
2860# INCLUDES, setting VAR accordingly. Returns whether the value could be
2861# computed
2862ac_fn_c_compute_int ()
2863{
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if test "$cross_compiling" = yes; then
2866 # Depending upon the size, compute the lo and hi bounds.
2867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h. */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002874test_array [0] = 0;
2875return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_lo=0 ac_mid=0
2883 while :; do
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885/* end confdefs.h. */
2886$4
2887int
2888main ()
2889{
2890static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002891test_array [0] = 0;
2892return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_hi=$ac_mid; break
2900else
2901 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2902 if test $ac_lo -le $ac_mid; then
2903 ac_lo= ac_hi=
2904 break
2905 fi
2906 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2907fi
2908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 done
2910else
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h. */
2913$4
2914int
2915main ()
2916{
2917static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002918test_array [0] = 0;
2919return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_hi=-1 ac_mid=-1
2927 while :; do
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930$4
2931int
2932main ()
2933{
2934static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002935test_array [0] = 0;
2936return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002937
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942if ac_fn_c_try_compile "$LINENO"; then :
2943 ac_lo=$ac_mid; break
2944else
2945 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2946 if test $ac_mid -le $ac_hi; then
2947 ac_lo= ac_hi=
2948 break
2949 fi
2950 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953 done
2954else
2955 ac_lo= ac_hi=
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960# Binary search between lo and hi bounds.
2961while test "x$ac_lo" != "x$ac_hi"; do
2962 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h. */
2965$4
2966int
2967main ()
2968{
2969static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002970test_array [0] = 0;
2971return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002972
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977if ac_fn_c_try_compile "$LINENO"; then :
2978 ac_hi=$ac_mid
2979else
2980 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2981fi
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983done
2984case $ac_lo in #((
2985?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2986'') ac_retval=1 ;;
2987esac
2988 else
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990/* end confdefs.h. */
2991$4
2992static long int longval () { return $2; }
2993static unsigned long int ulongval () { return $2; }
2994#include <stdio.h>
2995#include <stdlib.h>
2996int
2997main ()
2998{
2999
3000 FILE *f = fopen ("conftest.val", "w");
3001 if (! f)
3002 return 1;
3003 if (($2) < 0)
3004 {
3005 long int i = longval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%ld", i);
3009 }
3010 else
3011 {
3012 unsigned long int i = ulongval ();
3013 if (i != ($2))
3014 return 1;
3015 fprintf (f, "%lu", i);
3016 }
3017 /* Do not output a trailing newline, as this causes \r\n confusion
3018 on some platforms. */
3019 return ferror (f) || fclose (f) != 0;
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_run "$LINENO"; then :
3026 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3027else
3028 ac_retval=1
3029fi
3030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3031 conftest.$ac_objext conftest.beam conftest.$ac_ext
3032rm -f conftest.val
3033
3034 fi
cristyda16f162011-02-19 23:52:17 +00003035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003036 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003037
3038} # ac_fn_c_compute_int
3039
3040# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3041# ---------------------------------------------------------
3042# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3043# the include files in INCLUDES and setting the cache variable VAR
3044# accordingly.
3045ac_fn_cxx_check_header_mongrel ()
3046{
3047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003048 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3050$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003051if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003052 $as_echo_n "(cached) " >&6
3053fi
3054eval ac_res=\$$3
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3056$as_echo "$ac_res" >&6; }
3057else
3058 # Is the header compilable?
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3060$as_echo_n "checking $2 usability... " >&6; }
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h. */
3063$4
3064#include <$2>
3065_ACEOF
3066if ac_fn_cxx_try_compile "$LINENO"; then :
3067 ac_header_compiler=yes
3068else
3069 ac_header_compiler=no
3070fi
3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3073$as_echo "$ac_header_compiler" >&6; }
3074
3075# Is the header present?
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3077$as_echo_n "checking $2 presence... " >&6; }
3078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079/* end confdefs.h. */
3080#include <$2>
3081_ACEOF
3082if ac_fn_cxx_try_cpp "$LINENO"; then :
3083 ac_header_preproc=yes
3084else
3085 ac_header_preproc=no
3086fi
cristyda16f162011-02-19 23:52:17 +00003087rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3089$as_echo "$ac_header_preproc" >&6; }
3090
3091# So? What about this header?
3092case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3093 yes:no: )
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3095$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3098 ;;
3099 no:yes:* )
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3101$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3103$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3105$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3107$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3109$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003110( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003111## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003112## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003113 ) | sed "s/^/$as_me: WARNING: /" >&2
3114 ;;
3115esac
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3117$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003118if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003119 $as_echo_n "(cached) " >&6
3120else
3121 eval "$3=\$ac_header_compiler"
3122fi
3123eval ac_res=\$$3
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3125$as_echo "$ac_res" >&6; }
3126fi
cristyda16f162011-02-19 23:52:17 +00003127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003128
3129} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003130cat >config.log <<_ACEOF
3131This file contains any messages produced by compilers while
3132running configure, to aid debugging if configure makes a mistake.
3133
cristy29eb34e2011-10-16 00:46:08 +00003134It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003135generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003136
3137 $ $0 $@
3138
3139_ACEOF
3140exec 5>>config.log
3141{
3142cat <<_ASUNAME
3143## --------- ##
3144## Platform. ##
3145## --------- ##
3146
3147hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3148uname -m = `(uname -m) 2>/dev/null || echo unknown`
3149uname -r = `(uname -r) 2>/dev/null || echo unknown`
3150uname -s = `(uname -s) 2>/dev/null || echo unknown`
3151uname -v = `(uname -v) 2>/dev/null || echo unknown`
3152
3153/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3154/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3155
3156/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3157/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3158/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3159/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3160/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3161/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3162/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3163
3164_ASUNAME
3165
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003171 $as_echo "PATH: $as_dir"
3172 done
cristy3ed852e2009-09-05 21:47:34 +00003173IFS=$as_save_IFS
3174
3175} >&5
3176
3177cat >&5 <<_ACEOF
3178
3179
3180## ----------- ##
3181## Core tests. ##
3182## ----------- ##
3183
3184_ACEOF
3185
3186
3187# Keep a trace of the command line.
3188# Strip out --no-create and --no-recursion so they do not pile up.
3189# Strip out --silent because we don't want to record it for future runs.
3190# Also quote any args containing shell meta-characters.
3191# Make two passes to allow for proper duplicate-argument suppression.
3192ac_configure_args=
3193ac_configure_args0=
3194ac_configure_args1=
3195ac_must_keep_next=false
3196for ac_pass in 1 2
3197do
3198 for ac_arg
3199 do
3200 case $ac_arg in
3201 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3203 | -silent | --silent | --silen | --sile | --sil)
3204 continue ;;
3205 *\'*)
3206 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3207 esac
3208 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003209 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003210 2)
cristy8b350f62009-11-15 23:12:43 +00003211 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003212 if test $ac_must_keep_next = true; then
3213 ac_must_keep_next=false # Got value, back to normal.
3214 else
3215 case $ac_arg in
3216 *=* | --config-cache | -C | -disable-* | --disable-* \
3217 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3218 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3219 | -with-* | --with-* | -without-* | --without-* | --x)
3220 case "$ac_configure_args0 " in
3221 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3222 esac
3223 ;;
3224 -* ) ac_must_keep_next=true ;;
3225 esac
3226 fi
cristy8b350f62009-11-15 23:12:43 +00003227 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003228 ;;
3229 esac
3230 done
3231done
cristy8b350f62009-11-15 23:12:43 +00003232{ ac_configure_args0=; unset ac_configure_args0;}
3233{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003234
3235# When interrupted or exit'd, cleanup temporary files, and complete
3236# config.log. We remove comments because anyway the quotes in there
3237# would cause problems or look ugly.
3238# WARNING: Use '\'' to represent an apostrophe within the trap.
3239# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3240trap 'exit_status=$?
3241 # Save into config.log some information that might help in debugging.
3242 {
3243 echo
3244
cristy98dddb52010-11-04 00:30:15 +00003245 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003246## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003247## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003248 echo
3249 # The following way of writing the cache mishandles newlines in values,
3250(
3251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3252 eval ac_val=\$$ac_var
3253 case $ac_val in #(
3254 *${as_nl}*)
3255 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3258 esac
3259 case $ac_var in #(
3260 _ | IFS | as_nl) ;; #(
3261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003262 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003263 esac ;;
3264 esac
3265 done
3266 (set) 2>&1 |
3267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3268 *${as_nl}ac_space=\ *)
3269 sed -n \
3270 "s/'\''/'\''\\\\'\'''\''/g;
3271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3272 ;; #(
3273 *)
3274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3275 ;;
3276 esac |
3277 sort
3278)
3279 echo
3280
cristy98dddb52010-11-04 00:30:15 +00003281 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003282## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003283## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003284 echo
3285 for ac_var in $ac_subst_vars
3286 do
3287 eval ac_val=\$$ac_var
3288 case $ac_val in
3289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3290 esac
3291 $as_echo "$ac_var='\''$ac_val'\''"
3292 done | sort
3293 echo
3294
3295 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003296 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003297## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003298## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003299 echo
3300 for ac_var in $ac_subst_files
3301 do
3302 eval ac_val=\$$ac_var
3303 case $ac_val in
3304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3305 esac
3306 $as_echo "$ac_var='\''$ac_val'\''"
3307 done | sort
3308 echo
3309 fi
3310
3311 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003312 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003313## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003314## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003315 echo
3316 cat confdefs.h
3317 echo
3318 fi
3319 test "$ac_signal" != 0 &&
3320 $as_echo "$as_me: caught signal $ac_signal"
3321 $as_echo "$as_me: exit $exit_status"
3322 } >&5
3323 rm -f core *.core core.conftest.* &&
3324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3325 exit $exit_status
3326' 0
3327for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003329done
3330ac_signal=0
3331
3332# confdefs.h avoids OS command line length limits that DEFS can exceed.
3333rm -f -r conftest* confdefs.h
3334
cristy8b350f62009-11-15 23:12:43 +00003335$as_echo "/* confdefs.h */" > confdefs.h
3336
cristy3ed852e2009-09-05 21:47:34 +00003337# Predefined preprocessor variables.
3338
3339cat >>confdefs.h <<_ACEOF
3340#define PACKAGE_NAME "$PACKAGE_NAME"
3341_ACEOF
3342
cristy3ed852e2009-09-05 21:47:34 +00003343cat >>confdefs.h <<_ACEOF
3344#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3345_ACEOF
3346
cristy3ed852e2009-09-05 21:47:34 +00003347cat >>confdefs.h <<_ACEOF
3348#define PACKAGE_VERSION "$PACKAGE_VERSION"
3349_ACEOF
3350
cristy3ed852e2009-09-05 21:47:34 +00003351cat >>confdefs.h <<_ACEOF
3352#define PACKAGE_STRING "$PACKAGE_STRING"
3353_ACEOF
3354
cristy3ed852e2009-09-05 21:47:34 +00003355cat >>confdefs.h <<_ACEOF
3356#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3357_ACEOF
3358
cristy8b350f62009-11-15 23:12:43 +00003359cat >>confdefs.h <<_ACEOF
3360#define PACKAGE_URL "$PACKAGE_URL"
3361_ACEOF
3362
cristy3ed852e2009-09-05 21:47:34 +00003363
3364# Let the site file select an alternate cache file if it wants to.
3365# Prefer an explicitly selected file to automatically selected ones.
3366ac_site_file1=NONE
3367ac_site_file2=NONE
3368if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003369 # We do not want a PATH search for config.site.
3370 case $CONFIG_SITE in #((
3371 -*) ac_site_file1=./$CONFIG_SITE;;
3372 */*) ac_site_file1=$CONFIG_SITE;;
3373 *) ac_site_file1=./$CONFIG_SITE;;
3374 esac
cristy3ed852e2009-09-05 21:47:34 +00003375elif test "x$prefix" != xNONE; then
3376 ac_site_file1=$prefix/share/config.site
3377 ac_site_file2=$prefix/etc/config.site
3378else
3379 ac_site_file1=$ac_default_prefix/share/config.site
3380 ac_site_file2=$ac_default_prefix/etc/config.site
3381fi
3382for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3383do
3384 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003385 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003387$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3388 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003389 . "$ac_site_file" \
3390 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "failed to load site script $ac_site_file
3393See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003394 fi
3395done
3396
3397if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003398 # Some versions of bash will fail to source /dev/null (special files
3399 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3400 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: loading cache $cache_file" >&6;}
3403 case $cache_file in
3404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3405 *) . "./$cache_file";;
3406 esac
3407 fi
3408else
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: creating cache $cache_file" >&6;}
3411 >$cache_file
3412fi
3413
cristycd4c5312009-11-22 01:19:08 +00003414as_fn_append ac_header_list " stdlib.h"
3415as_fn_append ac_header_list " unistd.h"
3416as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003417# Check that the precious variables saved in the cache have kept the same
3418# value.
3419ac_cache_corrupted=false
3420for ac_var in $ac_precious_vars; do
3421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3422 eval ac_new_set=\$ac_env_${ac_var}_set
3423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3424 eval ac_new_val=\$ac_env_${ac_var}_value
3425 case $ac_old_set,$ac_new_set in
3426 set,)
cristy8b350f62009-11-15 23:12:43 +00003427 { $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 +00003428$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3429 ac_cache_corrupted=: ;;
3430 ,set)
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3433 ac_cache_corrupted=: ;;
3434 ,);;
3435 *)
3436 if test "x$ac_old_val" != "x$ac_new_val"; then
3437 # differences in whitespace do not lead to failure.
3438 ac_old_val_w=`echo x $ac_old_val`
3439 ac_new_val_w=`echo x $ac_new_val`
3440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3443 ac_cache_corrupted=:
3444 else
cristy8b350f62009-11-15 23:12:43 +00003445 { $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 +00003446$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3447 eval $ac_var=\$ac_old_val
3448 fi
cristy8b350f62009-11-15 23:12:43 +00003449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003450$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3453 fi;;
3454 esac
3455 # Pass precious variables to config.status.
3456 if test "$ac_new_set" = set; then
3457 case $ac_new_val in
3458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3459 *) ac_arg=$ac_var=$ac_new_val ;;
3460 esac
3461 case " $ac_configure_args " in
3462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003464 esac
3465 fi
3466done
3467if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003471$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473fi
cristy8b350f62009-11-15 23:12:43 +00003474## -------------------- ##
3475## Main body of script. ##
3476## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485
3486ac_aux_dir=
3487for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003488 if test -f "$ac_dir/install-sh"; then
3489 ac_aux_dir=$ac_dir
3490 ac_install_sh="$ac_aux_dir/install-sh -c"
3491 break
3492 elif test -f "$ac_dir/install.sh"; then
3493 ac_aux_dir=$ac_dir
3494 ac_install_sh="$ac_aux_dir/install.sh -c"
3495 break
3496 elif test -f "$ac_dir/shtool"; then
3497 ac_aux_dir=$ac_dir
3498 ac_install_sh="$ac_aux_dir/shtool install -c"
3499 break
3500 fi
cristy3ed852e2009-09-05 21:47:34 +00003501done
3502if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003504fi
3505
3506# These three variables are undocumented and unsupported,
3507# and are intended to be withdrawn in a future Autoconf release.
3508# They can cause serious problems if a builder's source tree is in a directory
3509# whose full name contains unusual characters.
3510ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3511ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3512ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3513
3514
3515
3516
3517ac_config_headers="$ac_config_headers config/config.h"
3518
cristy24fc1fe2010-10-23 21:13:01 +00003519
cristy01ff9f32012-12-01 18:15:29 +00003520ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003521
cristy8d0ff762013-03-10 20:33:28 +00003522ac_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/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap 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 +00003523
3524
3525#
3526# Save initial user-tunable values
3527#
3528USER_LIBS=$LIBS
3529for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3530 eval isset=\${$var+set}
3531 if test "$isset" = 'set'; then
3532 eval val=$`echo $var`
3533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3534 fi
3535done
3536
3537
3538CONFIGURE_ARGS="$0 ${ac_configure_args}"
3539
3540
3541# Source file containing package/library versioning information.
3542. ${srcdir}/version.sh
3543
cristy15a88782010-01-31 23:24:49 +00003544echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003545# Make sure we can run config.sub.
3546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003548
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003551if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003552 $as_echo_n "(cached) " >&6
3553else
3554 ac_build_alias=$build_alias
3555test "x$ac_build_alias" = x &&
3556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003561
3562fi
cristy8b350f62009-11-15 23:12:43 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003564$as_echo "$ac_cv_build" >&6; }
3565case $ac_cv_build in
3566*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003567*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003568esac
3569build=$ac_cv_build
3570ac_save_IFS=$IFS; IFS='-'
3571set x $ac_cv_build
3572shift
3573build_cpu=$1
3574build_vendor=$2
3575shift; shift
3576# Remember, the first character of IFS is used to create $*,
3577# except with old shells:
3578build_os=$*
3579IFS=$ac_save_IFS
3580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3581
3582
cristy8b350f62009-11-15 23:12:43 +00003583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003584$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003585if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003586 $as_echo_n "(cached) " >&6
3587else
3588 if test "x$host_alias" = x; then
3589 ac_cv_host=$ac_cv_build
3590else
3591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003593fi
3594
3595fi
cristy8b350f62009-11-15 23:12:43 +00003596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003597$as_echo "$ac_cv_host" >&6; }
3598case $ac_cv_host in
3599*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003600*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003601esac
3602host=$ac_cv_host
3603ac_save_IFS=$IFS; IFS='-'
3604set x $ac_cv_host
3605shift
3606host_cpu=$1
3607host_vendor=$2
3608shift; shift
3609# Remember, the first character of IFS is used to create $*,
3610# except with old shells:
3611host_os=$*
3612IFS=$ac_save_IFS
3613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3614
3615
cristy8b350f62009-11-15 23:12:43 +00003616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003617$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003618if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003619 $as_echo_n "(cached) " >&6
3620else
3621 if test "x$target_alias" = x; then
3622 ac_cv_target=$ac_cv_host
3623else
3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003626fi
3627
3628fi
cristy8b350f62009-11-15 23:12:43 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003630$as_echo "$ac_cv_target" >&6; }
3631case $ac_cv_target in
3632*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003633*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003634esac
3635target=$ac_cv_target
3636ac_save_IFS=$IFS; IFS='-'
3637set x $ac_cv_target
3638shift
3639target_cpu=$1
3640target_vendor=$2
3641shift; shift
3642# Remember, the first character of IFS is used to create $*,
3643# except with old shells:
3644target_os=$*
3645IFS=$ac_save_IFS
3646case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3647
3648
3649# The aliases save the names the user supplied, while $host etc.
3650# will get canonicalized.
3651test -n "$target_alias" &&
3652 test "$program_prefix$program_suffix$program_transform_name" = \
3653 NONENONEs,x,x, &&
3654 program_prefix=${target_alias}-
3655
cristy837d6dc2010-02-27 01:16:57 +00003656
3657
3658
cristy8be34142012-06-17 14:07:18 +00003659
cristy19615b82011-04-13 20:02:01 +00003660MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003661
3662
cristy27d53d62012-07-29 23:30:07 +00003663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3665_ACEOF
3666
3667
cristy19615b82011-04-13 20:02:01 +00003668MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003669
3670
cristy27d53d62012-07-29 23:30:07 +00003671cat >>confdefs.h <<_ACEOF
3672#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3673_ACEOF
3674
3675
cristy19615b82011-04-13 20:02:01 +00003676MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003677
3678
cristy27d53d62012-07-29 23:30:07 +00003679cat >>confdefs.h <<_ACEOF
3680#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3681_ACEOF
3682
3683
cristy37442762013-02-10 21:07:23 +00003684
3685# Substitute versioning
3686MAGICK_MAJOR_VERSION=7
3687
3688MAGICK_MINOR_VERSION=0
3689
3690MAGICK_MICRO_VERSION=0
3691
3692MAGICK_PATCHLEVEL_VERSION=0
3693
3694MAGICK_VERSION=7.0.0-0
3695
cristyc0884e92013-08-10 17:14:59 +00003696MAGICK_SVN_REVISION=12978M
cristy37442762013-02-10 21:07:23 +00003697
3698
cristy3ed852e2009-09-05 21:47:34 +00003699# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003700MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3701
3702MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3703
cristy37442762013-02-10 21:07:23 +00003704
cristy5ed9c6e2013-07-14 21:20:31 +00003705MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3706
3707MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3708
3709
cristyd694ca32011-03-27 21:42:54 +00003710
cristy3ed852e2009-09-05 21:47:34 +00003711# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3713$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003714# Reject unsafe characters in $srcdir or the absolute working directory
3715# name. Accept space and tab only in the latter.
3716am_lf='
3717'
3718case `pwd` in
3719 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003720 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003721esac
3722case $srcdir in
3723 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003724 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003725esac
cristy3ed852e2009-09-05 21:47:34 +00003726
cristyc0890a62012-07-19 00:18:20 +00003727# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003728# arguments. Must try -L first in case configure is actually a
3729# symlink; some systems play weird games with the mod time of symlinks
3730# (eg FreeBSD returns the mod time of the symlink's containing
3731# directory).
3732if (
cristyc0890a62012-07-19 00:18:20 +00003733 am_has_slept=no
3734 for am_try in 1 2; do
3735 echo "timestamp, slept: $am_has_slept" > conftest.file
3736 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3737 if test "$*" = "X"; then
3738 # -L didn't work.
3739 set X `ls -t "$srcdir/configure" conftest.file`
3740 fi
3741 if test "$*" != "X $srcdir/configure conftest.file" \
3742 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003743
cristyc0890a62012-07-19 00:18:20 +00003744 # If neither matched, then we have a broken ls. This can happen
3745 # if, for instance, CONFIG_SHELL is bash and it inherits a
3746 # broken ls alias from the environment. This has actually
3747 # happened. Such a system could not be considered "sane".
3748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3749 alias in your environment" "$LINENO" 5
3750 fi
3751 if test "$2" = conftest.file || test $am_try -eq 2; then
3752 break
3753 fi
3754 # Just in case.
3755 sleep 1
3756 am_has_slept=yes
3757 done
cristy73bd4a52010-10-05 11:24:23 +00003758 test "$2" = conftest.file
3759 )
3760then
3761 # Ok.
3762 :
3763else
cristy98dddb52010-11-04 00:30:15 +00003764 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003765Check your system clock" "$LINENO" 5
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003769# If we didn't sleep, we still need to ensure time stamps of config.status and
3770# generated files are strictly newer.
3771am_sleep_pid=
3772if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3773 ( sleep 1 ) &
3774 am_sleep_pid=$!
3775fi
cristy73bd4a52010-10-05 11:24:23 +00003776
cristyc0890a62012-07-19 00:18:20 +00003777rm -f conftest.file
3778
3779
cristy58d34aa2013-01-24 15:11:54 +00003780am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003781
3782# Find a good install program. We prefer a C program (faster),
3783# so one script is as good as another. But avoid the broken or
3784# incompatible versions:
3785# SysV /etc/install, /usr/sbin/install
3786# SunOS /usr/etc/install
3787# IRIX /sbin/install
3788# AIX /bin/install
3789# AmigaOS /C/install, which installs bootblocks on floppy discs
3790# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3791# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3792# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3793# OS/2's system install, which has a completely different semantic
3794# ./install, which can be erroneously created by make from ./install.sh.
3795# Reject install programs that cannot install multiple files.
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3797$as_echo_n "checking for a BSD-compatible install... " >&6; }
3798if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003799if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003800 $as_echo_n "(cached) " >&6
3801else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 # Account for people who put trailing slashes in PATH elements.
3808case $as_dir/ in #((
3809 ./ | .// | /[cC]/* | \
3810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3812 /usr/ucb/* ) ;;
3813 *)
3814 # OSF1 and SCO ODT 3.0 have their own names for install.
3815 # Don't use installbsd from OSF since it installs stuff as root
3816 # by default.
3817 for ac_prog in ginstall scoinst install; do
3818 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003820 if test $ac_prog = install &&
3821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3822 # AIX install. It has an incompatible calling convention.
3823 :
3824 elif test $ac_prog = install &&
3825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3826 # program-specific install script used by HP pwplus--don't use.
3827 :
3828 else
3829 rm -rf conftest.one conftest.two conftest.dir
3830 echo one > conftest.one
3831 echo two > conftest.two
3832 mkdir conftest.dir
3833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3834 test -s conftest.one && test -s conftest.two &&
3835 test -s conftest.dir/conftest.one &&
3836 test -s conftest.dir/conftest.two
3837 then
3838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3839 break 3
3840 fi
3841 fi
3842 fi
3843 done
3844 done
3845 ;;
3846esac
3847
3848 done
3849IFS=$as_save_IFS
3850
3851rm -rf conftest.one conftest.two conftest.dir
3852
3853fi
3854 if test "${ac_cv_path_install+set}" = set; then
3855 INSTALL=$ac_cv_path_install
3856 else
3857 # As a last resort, use the slow shell script. Don't cache a
3858 # value for INSTALL within a source directory, because that will
3859 # break other packages using the cache if that directory is
3860 # removed, or if the value is a relative name.
3861 INSTALL=$ac_install_sh
3862 fi
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3865$as_echo "$INSTALL" >&6; }
3866
3867# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3868# It thinks the first close brace ends the variable substitution.
3869test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3870
3871test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3872
3873test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3874
3875test "$program_prefix" != NONE &&
3876 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3877# Use a double $ so make ignores it.
3878test "$program_suffix" != NONE &&
3879 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3880# Double any \ or $.
3881# By default was `s,x,x', remove it if useless.
3882ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3883program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3884
3885# expand $ac_aux_dir to an absolute path
3886am_aux_dir=`cd $ac_aux_dir && pwd`
3887
3888if test x"${MISSING+set}" != xset; then
3889 case $am_aux_dir in
3890 *\ * | *\ *)
3891 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3892 *)
3893 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3894 esac
3895fi
3896# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003897if eval "$MISSING --is-lightweight"; then
3898 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003899else
3900 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3902$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003903fi
3904
3905if test x"${install_sh}" != xset; then
3906 case $am_aux_dir in
3907 *\ * | *\ *)
3908 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3909 *)
3910 install_sh="\${SHELL} $am_aux_dir/install-sh"
3911 esac
3912fi
3913
cristyc0890a62012-07-19 00:18:20 +00003914# Installed binaries are usually stripped using 'strip' when the user
3915# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003916# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003917# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003918if test "$cross_compiling" != no; then
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3921set dummy ${ac_tool_prefix}strip; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003924if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003925 $as_echo_n "(cached) " >&6
3926else
3927 if test -n "$STRIP"; then
3928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942 done
3943IFS=$as_save_IFS
3944
3945fi
3946fi
3947STRIP=$ac_cv_prog_STRIP
3948if test -n "$STRIP"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3950$as_echo "$STRIP" >&6; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954fi
3955
3956
3957fi
3958if test -z "$ac_cv_prog_STRIP"; then
3959 ac_ct_STRIP=$STRIP
3960 # Extract the first word of "strip", so it can be a program name with args.
3961set dummy strip; ac_word=$2
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003964if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003965 $as_echo_n "(cached) " >&6
3966else
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3969else
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003977 ac_cv_prog_ac_ct_STRIP="strip"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982 done
3983IFS=$as_save_IFS
3984
3985fi
3986fi
3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988if test -n "$ac_ct_STRIP"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3990$as_echo "$ac_ct_STRIP" >&6; }
3991else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994fi
3995
3996 if test "x$ac_ct_STRIP" = x; then
3997 STRIP=":"
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 STRIP=$ac_ct_STRIP
4006 fi
4007else
4008 STRIP="$ac_cv_prog_STRIP"
4009fi
4010
4011fi
4012INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4015$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4016if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004017 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004018 $as_echo_n "(cached) " >&6
4019else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_prog in mkdir gmkdir; do
4026 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004027 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004028 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4029 'mkdir (GNU coreutils) '* | \
4030 'mkdir (coreutils) '* | \
4031 'mkdir (fileutils) '4.1*)
4032 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4033 break 3;;
4034 esac
4035 done
4036 done
4037 done
4038IFS=$as_save_IFS
4039
4040fi
4041
4042 test -d ./--version && rmdir ./--version
4043 if test "${ac_cv_path_mkdir+set}" = set; then
4044 MKDIR_P="$ac_cv_path_mkdir -p"
4045 else
4046 # As a last resort, use the slow shell script. Don't cache a
4047 # value for MKDIR_P within a source directory, because that will
4048 # break other packages using the cache if that directory is
4049 # removed, or if the value is a relative name.
4050 MKDIR_P="$ac_install_sh -d"
4051 fi
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4054$as_echo "$MKDIR_P" >&6; }
4055
cristy73bd4a52010-10-05 11:24:23 +00004056for ac_prog in gawk mawk nawk awk
4057do
4058 # Extract the first word of "$ac_prog", so it can be a program name with args.
4059set dummy $ac_prog; ac_word=$2
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004062if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004063 $as_echo_n "(cached) " >&6
4064else
4065 if test -n "$AWK"; then
4066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4067else
4068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069for as_dir in $PATH
4070do
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004075 ac_cv_prog_AWK="$ac_prog"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4078 fi
4079done
4080 done
4081IFS=$as_save_IFS
4082
4083fi
4084fi
4085AWK=$ac_cv_prog_AWK
4086if test -n "$AWK"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4088$as_echo "$AWK" >&6; }
4089else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092fi
4093
4094
4095 test -n "$AWK" && break
4096done
4097
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4099$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4100set x ${MAKE-make}
4101ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004102if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004103 $as_echo_n "(cached) " >&6
4104else
4105 cat >conftest.make <<\_ACEOF
4106SHELL = /bin/sh
4107all:
4108 @echo '@@@%%%=$(MAKE)=@@@%%%'
4109_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004110# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004111case `${MAKE-make} -f conftest.make 2>/dev/null` in
4112 *@@@%%%=?*=@@@%%%*)
4113 eval ac_cv_prog_make_${ac_make}_set=yes;;
4114 *)
4115 eval ac_cv_prog_make_${ac_make}_set=no;;
4116esac
4117rm -f conftest.make
4118fi
4119if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121$as_echo "yes" >&6; }
4122 SET_MAKE=
4123else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125$as_echo "no" >&6; }
4126 SET_MAKE="MAKE=${MAKE-make}"
4127fi
4128
4129rm -rf .tst 2>/dev/null
4130mkdir .tst 2>/dev/null
4131if test -d .tst; then
4132 am__leading_dot=.
4133else
4134 am__leading_dot=_
4135fi
4136rmdir .tst 2>/dev/null
4137
cristya448bd22011-10-14 12:38:13 +00004138# Check whether --enable-silent-rules was given.
4139if test "${enable_silent_rules+set}" = set; then :
4140 enableval=$enable_silent_rules;
4141fi
4142
cristyc0890a62012-07-19 00:18:20 +00004143case $enable_silent_rules in # (((
4144 yes) AM_DEFAULT_VERBOSITY=0;;
4145 no) AM_DEFAULT_VERBOSITY=1;;
4146 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004147esac
cristyc3fb77b2012-02-06 01:49:41 +00004148am_make=${MAKE-make}
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4150$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4151if ${am_cv_make_support_nested_variables+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153else
4154 if $as_echo 'TRUE=$(BAR$(V))
4155BAR0=false
4156BAR1=true
4157V=1
4158am__doit:
4159 @$(TRUE)
4160.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4161 am_cv_make_support_nested_variables=yes
4162else
4163 am_cv_make_support_nested_variables=no
4164fi
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4167$as_echo "$am_cv_make_support_nested_variables" >&6; }
4168if test $am_cv_make_support_nested_variables = yes; then
4169 AM_V='$(V)'
4170 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4171else
4172 AM_V=$AM_DEFAULT_VERBOSITY
4173 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4174fi
cristya448bd22011-10-14 12:38:13 +00004175AM_BACKSLASH='\'
4176
cristy73bd4a52010-10-05 11:24:23 +00004177if test "`cd $srcdir && pwd`" != "`pwd`"; then
4178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4179 # is not polluted with repeated "-I."
4180 am__isrc=' -I$(srcdir)'
4181 # test to see if srcdir already configured
4182 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004183 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004184 fi
4185fi
4186
4187# test whether we have cygpath
4188if test -z "$CYGPATH_W"; then
4189 if (cygpath --version) >/dev/null 2>/dev/null; then
4190 CYGPATH_W='cygpath -w'
4191 else
4192 CYGPATH_W=echo
4193 fi
4194fi
4195
4196
4197# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004198 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004199 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004200
4201
cristya448bd22011-10-14 12:38:13 +00004202cat >>confdefs.h <<_ACEOF
4203#define PACKAGE "$PACKAGE"
4204_ACEOF
4205
4206
4207cat >>confdefs.h <<_ACEOF
4208#define VERSION "$VERSION"
4209_ACEOF
4210
cristy73bd4a52010-10-05 11:24:23 +00004211# Some tools Automake needs.
4212
4213ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4214
4215
4216AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4217
4218
4219AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4220
4221
4222AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4223
4224
4225MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4226
cristyc0890a62012-07-19 00:18:20 +00004227# For better backward compatibility. To be removed once Automake 1.9.x
4228# dies out for good. For more background, see:
4229# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4230# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4231mkdir_p='$(MKDIR_P)'
4232
cristy73bd4a52010-10-05 11:24:23 +00004233# We need awk for the "check" target. The system "awk" is bad on
4234# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004235# Always define AMTAR for backward compatibility. Yes, it's still used
4236# in the wild :-( We should find a proper way to deprecate it ...
4237AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004238
cristye69bdbe2013-05-03 21:40:44 +00004239
4240# We'll loop over all known methods to create a tar archive until one works.
4241_am_tools='gnutar pax cpio none'
4242
cristyc3fb77b2012-02-06 01:49:41 +00004243am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004244
4245
4246
4247
4248
cristy3ed852e2009-09-05 21:47:34 +00004249
cristye69bdbe2013-05-03 21:40:44 +00004250
cristy3ed852e2009-09-05 21:47:34 +00004251# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004252# Check whether --enable-silent-rules was given.
4253if test "${enable_silent_rules+set}" = set; then :
4254 enableval=$enable_silent_rules;
4255fi
4256
cristyc0890a62012-07-19 00:18:20 +00004257case $enable_silent_rules in # (((
4258 yes) AM_DEFAULT_VERBOSITY=0;;
4259 no) AM_DEFAULT_VERBOSITY=1;;
4260 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004261esac
cristyc3fb77b2012-02-06 01:49:41 +00004262am_make=${MAKE-make}
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4264$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4265if ${am_cv_make_support_nested_variables+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 if $as_echo 'TRUE=$(BAR$(V))
4269BAR0=false
4270BAR1=true
4271V=1
4272am__doit:
4273 @$(TRUE)
4274.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4275 am_cv_make_support_nested_variables=yes
4276else
4277 am_cv_make_support_nested_variables=no
4278fi
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4281$as_echo "$am_cv_make_support_nested_variables" >&6; }
4282if test $am_cv_make_support_nested_variables = yes; then
4283 AM_V='$(V)'
4284 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4285else
4286 AM_V=$AM_DEFAULT_VERBOSITY
4287 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4288fi
cristy73bd4a52010-10-05 11:24:23 +00004289AM_BACKSLASH='\'
4290
cristy3ed852e2009-09-05 21:47:34 +00004291
cristy5ed9c6e2013-07-14 21:20:31 +00004292# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004293MAGICK_LIB_VERSION="0x"
4294if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4295 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4296fi
4297MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4298if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4299 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4300fi
4301MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4302if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4303 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4304fi
4305MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4306
4307
4308# Definition used to define MagickLibVersionText in version.h
4309MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4310
4311
4312# Definition used to define MagickLibVersionNumber in version.h
4313MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4314
4315
cristy5ed9c6e2013-07-14 21:20:31 +00004316MAGICKPP_LIB_VERSION="0x"
4317if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4318 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4319fi
4320MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4321if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4322 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4323fi
4324MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4325if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4326 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4327fi
4328MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4329
4330
4331# Definition used to define MagickLibVersionText in version.h
4332MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4333
4334
4335# Definition used to define MagickLibVersionNumber in version.h
4336MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4337
4338
4339
4340
cristy3ed852e2009-09-05 21:47:34 +00004341# Regenerate config.status if ChangeLog or version.sh is updated.
4342CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4343
4344
4345PERLMAINCC=$CC
4346
4347MAGICK_CFLAGS=''
4348MAGICK_CPPFLAGS=$CPPFLAGS_USER
4349MAGICK_PCFLAGS=$CPPFLAGS_USER
4350MAGICK_LDFLAGS=''
4351MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004352MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004353
4354#
4355# Evaluate shell variable equivalents to Makefile directory variables
4356#
4357if test "x$prefix" = xNONE; then
4358 prefix=$ac_default_prefix
4359fi
4360# Let make expand exec_prefix.
4361if test "x$exec_prefix" = xNONE; then
4362 exec_prefix='${prefix}'
4363fi
4364
4365#
4366eval "eval PREFIX_DIR=${prefix}"
4367
4368eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4369
4370eval "eval BIN_DIR=$bindir"
4371
4372eval "eval SBIN_DIR=$sbindir"
4373
4374eval "eval LIBEXEC_DIR=$libexecdir"
4375
4376eval "eval DATA_DIR=$datadir"
4377
cristy4e65ec22012-04-08 01:33:27 +00004378eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004379
cristy3ed852e2009-09-05 21:47:34 +00004380eval "eval SYSCONF_DIR=$sysconfdir"
4381
4382eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4383
4384eval "eval LOCALSTATE_DIR=$localstatedir"
4385
4386eval "eval LIB_DIR=$libdir"
4387
4388eval "eval INCLUDE_DIR=$includedir"
4389
4390eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4391
4392eval "eval INFO_DIR=$infodir"
4393
4394eval "eval MAN_DIR=$mandir"
4395
4396
4397# Get full paths to source and build directories
4398srcdirfull="`cd $srcdir && pwd`"
4399builddir="`pwd`"
4400
4401#
4402# Compute variables useful for running uninstalled software.
4403#
4404MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4405MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4406MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4407MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4408DIRSEP=':'
4409case "${build_os}" in
4410 mingw* )
4411 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4412 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4413 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4414 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4415 DIRSEP=';'
4416 ;;
4417esac
4418case "${host_os}" in
4419 mingw* )
4420 DIRSEP=';'
4421 ;;
4422esac
4423
4424
4425
4426
4427
4428
cristya0b81c32010-01-22 02:54:33 +00004429
4430#
4431# Enable OS features.
4432#
cristy73bd4a52010-10-05 11:24:23 +00004433DEPDIR="${am__leading_dot}deps"
4434
4435ac_config_commands="$ac_config_commands depfiles"
4436
4437
4438am_make=${MAKE-make}
4439cat > confinc << 'END'
4440am__doit:
4441 @echo this is the am__doit target
4442.PHONY: am__doit
4443END
4444# If we don't find an include directive, just comment out the code.
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4446$as_echo_n "checking for style of include used by $am_make... " >&6; }
4447am__include="#"
4448am__quote=
4449_am_result=none
4450# First try GNU make style include.
4451echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004452# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004453case `$am_make -s -f confmf 2> /dev/null` in #(
4454*the\ am__doit\ target*)
4455 am__include=include
4456 am__quote=
4457 _am_result=GNU
4458 ;;
4459esac
4460# Now try BSD make style include.
4461if test "$am__include" = "#"; then
4462 echo '.include "confinc"' > confmf
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=.include
4466 am__quote="\""
4467 _am_result=BSD
4468 ;;
4469 esac
4470fi
4471
4472
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4474$as_echo "$_am_result" >&6; }
4475rm -f confinc confmf
4476
4477# Check whether --enable-dependency-tracking was given.
4478if test "${enable_dependency_tracking+set}" = set; then :
4479 enableval=$enable_dependency_tracking;
4480fi
4481
4482if test "x$enable_dependency_tracking" != xno; then
4483 am_depcomp="$ac_aux_dir/depcomp"
4484 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004485 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004486fi
4487 if test "x$enable_dependency_tracking" != xno; then
4488 AMDEP_TRUE=
4489 AMDEP_FALSE='#'
4490else
4491 AMDEP_TRUE='#'
4492 AMDEP_FALSE=
4493fi
4494
4495
cristy3ed852e2009-09-05 21:47:34 +00004496ac_ext=c
4497ac_cpp='$CPP $CPPFLAGS'
4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501if test -n "$ac_tool_prefix"; then
4502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4503set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004506if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004507 $as_echo_n "(cached) " >&6
4508else
4509 if test -n "$CC"; then
4510 ac_cv_prog_CC="$CC" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004517 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521 break 2
4522 fi
4523done
cristy8b350f62009-11-15 23:12:43 +00004524 done
cristy3ed852e2009-09-05 21:47:34 +00004525IFS=$as_save_IFS
4526
4527fi
4528fi
4529CC=$ac_cv_prog_CC
4530if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$CC" >&6; }
4533else
cristy8b350f62009-11-15 23:12:43 +00004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004535$as_echo "no" >&6; }
4536fi
4537
4538
4539fi
4540if test -z "$ac_cv_prog_CC"; then
4541 ac_ct_CC=$CC
4542 # Extract the first word of "gcc", so it can be a program name with args.
4543set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004546if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004547 $as_echo_n "(cached) " >&6
4548else
4549 if test -n "$ac_ct_CC"; then
4550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004559 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004561 break 2
4562 fi
4563done
cristy8b350f62009-11-15 23:12:43 +00004564 done
cristy3ed852e2009-09-05 21:47:34 +00004565IFS=$as_save_IFS
4566
4567fi
4568fi
4569ac_ct_CC=$ac_cv_prog_ac_ct_CC
4570if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572$as_echo "$ac_ct_CC" >&6; }
4573else
cristy8b350f62009-11-15 23:12:43 +00004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004575$as_echo "no" >&6; }
4576fi
4577
4578 if test "x$ac_ct_CC" = x; then
4579 CC=""
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582yes:)
cristy8b350f62009-11-15 23:12:43 +00004583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585ac_tool_warned=yes ;;
4586esac
4587 CC=$ac_ct_CC
4588 fi
4589else
4590 CC="$ac_cv_prog_CC"
4591fi
4592
4593if test -z "$CC"; then
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4596set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004599if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004600 $as_echo_n "(cached) " >&6
4601else
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC="$CC" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004612 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004614 break 2
4615 fi
4616done
cristy8b350f62009-11-15 23:12:43 +00004617 done
cristy3ed852e2009-09-05 21:47:34 +00004618IFS=$as_save_IFS
4619
4620fi
4621fi
4622CC=$ac_cv_prog_CC
4623if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004625$as_echo "$CC" >&6; }
4626else
cristy8b350f62009-11-15 23:12:43 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "no" >&6; }
4629fi
4630
4631
4632 fi
4633fi
4634if test -z "$CC"; then
4635 # Extract the first word of "cc", so it can be a program name with args.
4636set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004639if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4654 ac_prog_rejected=yes
4655 continue
4656 fi
4657 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659 break 2
4660 fi
4661done
cristy8b350f62009-11-15 23:12:43 +00004662 done
cristy3ed852e2009-09-05 21:47:34 +00004663IFS=$as_save_IFS
4664
4665if test $ac_prog_rejected = yes; then
4666 # We found a bogon in the path, so make sure we never use it.
4667 set dummy $ac_cv_prog_CC
4668 shift
4669 if test $# != 0; then
4670 # We chose a different compiler from the bogus one.
4671 # However, it has the same basename, so the bogon will be chosen
4672 # first if we set CC to just the basename; use the full file name.
4673 shift
4674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4675 fi
4676fi
4677fi
4678fi
4679CC=$ac_cv_prog_CC
4680if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "$CC" >&6; }
4683else
cristy8b350f62009-11-15 23:12:43 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "no" >&6; }
4686fi
4687
4688
4689fi
4690if test -z "$CC"; then
4691 if test -n "$ac_tool_prefix"; then
4692 for ac_prog in cl.exe
4693 do
4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004697$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004698if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004713 break 2
4714 fi
4715done
cristy8b350f62009-11-15 23:12:43 +00004716 done
cristy3ed852e2009-09-05 21:47:34 +00004717IFS=$as_save_IFS
4718
4719fi
4720fi
4721CC=$ac_cv_prog_CC
4722if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004724$as_echo "$CC" >&6; }
4725else
cristy8b350f62009-11-15 23:12:43 +00004726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004727$as_echo "no" >&6; }
4728fi
4729
4730
4731 test -n "$CC" && break
4732 done
4733fi
4734if test -z "$CC"; then
4735 ac_ct_CC=$CC
4736 for ac_prog in cl.exe
4737do
4738 # Extract the first word of "$ac_prog", so it can be a program name with args.
4739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004742if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 $as_echo_n "(cached) " >&6
4744else
4745 if test -n "$ac_ct_CC"; then
4746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004755 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004757 break 2
4758 fi
4759done
cristy8b350f62009-11-15 23:12:43 +00004760 done
cristy3ed852e2009-09-05 21:47:34 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765ac_ct_CC=$ac_cv_prog_ac_ct_CC
4766if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_ct_CC" >&6; }
4769else
cristy8b350f62009-11-15 23:12:43 +00004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004771$as_echo "no" >&6; }
4772fi
4773
4774
4775 test -n "$ac_ct_CC" && break
4776done
4777
4778 if test "x$ac_ct_CC" = x; then
4779 CC=""
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782yes:)
cristy8b350f62009-11-15 23:12:43 +00004783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785ac_tool_warned=yes ;;
4786esac
4787 CC=$ac_ct_CC
4788 fi
4789fi
4790
4791fi
4792
4793
cristy8b350f62009-11-15 23:12:43 +00004794test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004796as_fn_error $? "no acceptable C compiler found in \$PATH
4797See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004798
4799# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801set X $ac_compile
4802ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004803for ac_option in --version -v -V -qversion; do
4804 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004805case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808esac
cristy8b350f62009-11-15 23:12:43 +00004809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810$as_echo "$ac_try_echo"; } >&5
4811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004812 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004813 if test -s conftest.err; then
4814 sed '10a\
4815... rest of stderr output deleted ...
4816 10q' conftest.err >conftest.er1
4817 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004818 fi
cristycd4c5312009-11-22 01:19:08 +00004819 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822done
cristy3ed852e2009-09-05 21:47:34 +00004823
cristy8b350f62009-11-15 23:12:43 +00004824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004825/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004826
cristy3ed852e2009-09-05 21:47:34 +00004827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004836ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004837# Try to create an executable without -o first, disregard a.out.
4838# It will help us diagnose broken compilers, and finding out an intuition
4839# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4841$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004842ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4843
4844# The possible output files:
4845ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4846
4847ac_rmfiles=
4848for ac_file in $ac_files
4849do
4850 case $ac_file in
4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4853 esac
4854done
4855rm -f $ac_rmfiles
4856
cristy8b350f62009-11-15 23:12:43 +00004857if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004858case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
cristy8b350f62009-11-15 23:12:43 +00004862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004864 (eval "$ac_link_default") 2>&5
4865 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4869# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4870# in a Makefile. We should not override ac_cv_exeext if it was cached,
4871# so that the user can short-circuit this test for compilers unknown to
4872# Autoconf.
4873for ac_file in $ac_files ''
4874do
4875 test -f "$ac_file" || continue
4876 case $ac_file in
4877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4878 ;;
4879 [ab].out )
4880 # We found the default executable, but exeext='' is most
4881 # certainly right.
4882 break;;
4883 *.* )
cristy8b350f62009-11-15 23:12:43 +00004884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004885 then :; else
4886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4887 fi
4888 # We set ac_cv_exeext here because the later test for it is not
4889 # safe: cross compilers may not add the suffix if given an `-o'
4890 # argument, so we may need to know it at that point already.
4891 # Even if this section looks crufty: it has the advantage of
4892 # actually working.
4893 break;;
4894 * )
4895 break;;
4896 esac
4897done
4898test "$ac_cv_exeext" = no && ac_cv_exeext=
4899
4900else
4901 ac_file=''
4902fi
cristy8b350f62009-11-15 23:12:43 +00004903if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004907sed 's/^/| /' conftest.$ac_ext >&5
4908
cristy8b350f62009-11-15 23:12:43 +00004909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004911as_fn_error 77 "C compiler cannot create executables
4912See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004913else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004916fi
cristycd4c5312009-11-22 01:19:08 +00004917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4918$as_echo_n "checking for C compiler default output file name... " >&6; }
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4920$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004921ac_exeext=$ac_cv_exeext
4922
cristycd4c5312009-11-22 01:19:08 +00004923rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004924ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004926$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004927if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004928case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
cristy8b350f62009-11-15 23:12:43 +00004932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004934 (eval "$ac_link") 2>&5
4935 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4939# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4940# work properly (i.e., refer to `conftest.exe'), while it won't with
4941# `rm'.
4942for ac_file in conftest.exe conftest conftest.*; do
4943 test -f "$ac_file" || continue
4944 case $ac_file in
4945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4947 break;;
4948 * ) break;;
4949 esac
4950done
4951else
cristy8b350f62009-11-15 23:12:43 +00004952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004954as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4955See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004956fi
cristycd4c5312009-11-22 01:19:08 +00004957rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo "$ac_cv_exeext" >&6; }
4960
4961rm -f conftest.$ac_ext
4962EXEEXT=$ac_cv_exeext
4963ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h. */
4966#include <stdio.h>
4967int
4968main ()
4969{
4970FILE *f = fopen ("conftest.out", "w");
4971 return ferror (f) || fclose (f) != 0;
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977ac_clean_files="$ac_clean_files conftest.out"
4978# Check that the compiler produces executables we can run. If not, either
4979# the compiler is broken, or we cross compile.
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4981$as_echo_n "checking whether we are cross compiling... " >&6; }
4982if test "$cross_compiling" != yes; then
4983 { { ac_try="$ac_link"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989$as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }
4994 if { ac_try='./conftest$ac_cv_exeext'
4995 { { case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000$as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_try") 2>&5
5002 ac_status=$?
5003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }; }; then
5005 cross_compiling=no
5006 else
5007 if test "$cross_compiling" = maybe; then
5008 cross_compiling=yes
5009 else
5010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005012as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005013If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005014See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005015 fi
5016 fi
5017fi
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5019$as_echo "$cross_compiling" >&6; }
5020
5021rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5022ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005025if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 $as_echo_n "(cached) " >&6
5027else
cristy8b350f62009-11-15 23:12:43 +00005028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005029/* end confdefs.h. */
5030
5031int
5032main ()
5033{
5034
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005040if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005041case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044esac
cristy8b350f62009-11-15 23:12:43 +00005045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5046$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005047 (eval "$ac_compile") 2>&5
5048 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005051 for ac_file in conftest.o conftest.obj conftest.*; do
5052 test -f "$ac_file" || continue;
5053 case $ac_file in
5054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5056 break;;
5057 esac
5058done
5059else
5060 $as_echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
cristy8b350f62009-11-15 23:12:43 +00005063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005065as_fn_error $? "cannot compute suffix of object files: cannot compile
5066See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005067fi
cristy3ed852e2009-09-05 21:47:34 +00005068rm -f conftest.$ac_cv_objext conftest.$ac_ext
5069fi
cristy8b350f62009-11-15 23:12:43 +00005070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005071$as_echo "$ac_cv_objext" >&6; }
5072OBJEXT=$ac_cv_objext
5073ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005076if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005077 $as_echo_n "(cached) " >&6
5078else
cristy8b350f62009-11-15 23:12:43 +00005079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005080/* end confdefs.h. */
5081
5082int
5083main ()
5084{
5085#ifndef __GNUC__
5086 choke me
5087#endif
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005094 ac_compiler_gnu=yes
5095else
cristy8b350f62009-11-15 23:12:43 +00005096 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005097fi
cristy3ed852e2009-09-05 21:47:34 +00005098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099ac_cv_c_compiler_gnu=$ac_compiler_gnu
5100
5101fi
cristy8b350f62009-11-15 23:12:43 +00005102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005103$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5104if test $ac_compiler_gnu = yes; then
5105 GCC=yes
5106else
5107 GCC=
5108fi
5109ac_test_CFLAGS=${CFLAGS+set}
5110ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005112$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005113if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005114 $as_echo_n "(cached) " >&6
5115else
5116 ac_save_c_werror_flag=$ac_c_werror_flag
5117 ac_c_werror_flag=yes
5118 ac_cv_prog_cc_g=no
5119 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005121/* end confdefs.h. */
5122
5123int
5124main ()
5125{
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005131if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005132 ac_cv_prog_cc_g=yes
5133else
cristy8b350f62009-11-15 23:12:43 +00005134 CFLAGS=""
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005136/* end confdefs.h. */
5137
5138int
5139main ()
5140{
5141
5142 ;
5143 return 0;
5144}
5145_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005146if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005147
cristy8b350f62009-11-15 23:12:43 +00005148else
5149 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005150 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005152/* end confdefs.h. */
5153
5154int
5155main ()
5156{
5157
5158 ;
5159 return 0;
5160}
5161_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005162if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005163 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005164fi
cristy3ed852e2009-09-05 21:47:34 +00005165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166fi
cristy3ed852e2009-09-05 21:47:34 +00005167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
cristy3ed852e2009-09-05 21:47:34 +00005169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_c_werror_flag=$ac_save_c_werror_flag
5171fi
cristy8b350f62009-11-15 23:12:43 +00005172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005173$as_echo "$ac_cv_prog_cc_g" >&6; }
5174if test "$ac_test_CFLAGS" = set; then
5175 CFLAGS=$ac_save_CFLAGS
5176elif test $ac_cv_prog_cc_g = yes; then
5177 if test "$GCC" = yes; then
5178 CFLAGS="-g -O2"
5179 else
5180 CFLAGS="-g"
5181 fi
5182else
5183 if test "$GCC" = yes; then
5184 CFLAGS="-O2"
5185 else
5186 CFLAGS=
5187 fi
5188fi
cristy8b350f62009-11-15 23:12:43 +00005189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005190$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005191if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005192 $as_echo_n "(cached) " >&6
5193else
5194 ac_cv_prog_cc_c89=no
5195ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005197/* end confdefs.h. */
5198#include <stdarg.h>
5199#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005200struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5202struct buf { int x; };
5203FILE * (*rcsopen) (struct buf *, struct stat *, int);
5204static char *e (p, i)
5205 char **p;
5206 int i;
5207{
5208 return p[i];
5209}
5210static char *f (char * (*g) (char **, int), char **p, ...)
5211{
5212 char *s;
5213 va_list v;
5214 va_start (v,p);
5215 s = g (p, va_arg (v,int));
5216 va_end (v);
5217 return s;
5218}
5219
5220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5221 function prototypes and stuff, but not '\xHH' hex character constants.
5222 These don't provoke an error unfortunately, instead are silently treated
5223 as 'x'. The following induces an error, until -std is added to get
5224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5225 array size at least. It's necessary to write '\x00'==0 to get something
5226 that's true only with -std. */
5227int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5228
5229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5230 inside strings and character constants. */
5231#define FOO(x) 'x'
5232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5233
5234int test (int i, double x);
5235struct s1 {int (*f) (int a);};
5236struct s2 {int (*f) (double a);};
5237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5238int argc;
5239char **argv;
5240int
5241main ()
5242{
5243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5250do
5251 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005252 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005253 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005254fi
cristy3ed852e2009-09-05 21:47:34 +00005255rm -f core conftest.err conftest.$ac_objext
5256 test "x$ac_cv_prog_cc_c89" != "xno" && break
5257done
5258rm -f conftest.$ac_ext
5259CC=$ac_save_CC
5260
5261fi
5262# AC_CACHE_VAL
5263case "x$ac_cv_prog_cc_c89" in
5264 x)
cristy8b350f62009-11-15 23:12:43 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005266$as_echo "none needed" >&6; } ;;
5267 xno)
cristy8b350f62009-11-15 23:12:43 +00005268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005269$as_echo "unsupported" >&6; } ;;
5270 *)
5271 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005273$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5274esac
cristy8b350f62009-11-15 23:12:43 +00005275if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005276
cristy8b350f62009-11-15 23:12:43 +00005277fi
cristy3ed852e2009-09-05 21:47:34 +00005278
5279ac_ext=c
5280ac_cpp='$CPP $CPPFLAGS'
5281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005284
cristy73bd4a52010-10-05 11:24:23 +00005285depcc="$CC" am_compiler_list=
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5288$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005289if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005290 $as_echo_n "(cached) " >&6
5291else
5292 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5293 # We make a subdir and do the tests there. Otherwise we can end up
5294 # making bogus files that we don't know about and never remove. For
5295 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005296 # making a dummy file named 'D' -- because '-MD' means "put the output
5297 # in D".
cristy7247bba2012-02-05 16:37:27 +00005298 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005299 mkdir conftest.dir
5300 # Copy depcomp to subdir because otherwise we won't find it if we're
5301 # using a relative directory.
5302 cp "$am_depcomp" conftest.dir
5303 cd conftest.dir
5304 # We will build objects and dependencies in a subdirectory because
5305 # it helps to detect inapplicable dependency modes. For instance
5306 # both Tru64's cc and ICC support -MD to output dependencies as a
5307 # side effect of compilation, but ICC will put the dependencies in
5308 # the current directory while Tru64 will put them in the object
5309 # directory.
5310 mkdir sub
5311
5312 am_cv_CC_dependencies_compiler_type=none
5313 if test "$am_compiler_list" = ""; then
5314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5315 fi
5316 am__universal=false
5317 case " $depcc " in #(
5318 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5319 esac
5320
5321 for depmode in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5325 #
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5329 : > sub/conftest.c
5330 for i in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005332 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5333 # Solaris 10 /bin/sh.
5334 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005335 done
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5337
cristyc0890a62012-07-19 00:18:20 +00005338 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005339 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005340 # handle '-M -o', and we need to detect this. Also, some Intel
5341 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005342 am__obj=sub/conftest.${OBJEXT-o}
5343 am__minus_obj="-o $am__obj"
5344 case $depmode in
5345 gcc)
5346 # This depmode causes a compiler race in universal mode.
5347 test "$am__universal" = false || continue
5348 ;;
5349 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005350 # After this tag, mechanisms are not by side-effect, so they'll
5351 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005352 if test "x$enable_dependency_tracking" = xyes; then
5353 continue
5354 else
5355 break
5356 fi
5357 ;;
cristy7247bba2012-02-05 16:37:27 +00005358 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005359 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005360 # not run yet. These depmodes are late enough in the game, and
5361 # so weak that their functioning should not be impacted.
5362 am__obj=conftest.${OBJEXT-o}
5363 am__minus_obj=
5364 ;;
5365 none) break ;;
5366 esac
5367 if depmode=$depmode \
5368 source=sub/conftest.c object=$am__obj \
5369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5371 >/dev/null 2>conftest.err &&
5372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5376 # icc doesn't choke on unknown options, it will just issue warnings
5377 # or remarks (even with -Werror). So we grep stderr for any message
5378 # that says an option was ignored or not supported.
5379 # When given -MP, icc 7.0 and 7.1 complain thusly:
5380 # icc: Command line warning: ignoring option '-M'; no argument required
5381 # The diagnosis changed in icc 8.0:
5382 # icc: Command line remark: option '-MP' not supported
5383 if (grep 'ignoring option' conftest.err ||
5384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5385 am_cv_CC_dependencies_compiler_type=$depmode
5386 break
5387 fi
5388 fi
5389 done
5390
5391 cd ..
5392 rm -rf conftest.dir
5393else
5394 am_cv_CC_dependencies_compiler_type=none
5395fi
5396
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5399$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5400CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5401
5402 if
5403 test "x$enable_dependency_tracking" != xno \
5404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5405 am__fastdepCC_TRUE=
5406 am__fastdepCC_FALSE='#'
5407else
5408 am__fastdepCC_TRUE='#'
5409 am__fastdepCC_FALSE=
5410fi
5411
5412
cristy3ed852e2009-09-05 21:47:34 +00005413
cristya0b81c32010-01-22 02:54:33 +00005414ac_ext=c
5415ac_cpp='$CPP $CPPFLAGS'
5416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5420$as_echo_n "checking how to run the C preprocessor... " >&6; }
5421# On Suns, sometimes $CPP names a directory.
5422if test -n "$CPP" && test -d "$CPP"; then
5423 CPP=
5424fi
5425if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005426 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005427 $as_echo_n "(cached) " >&6
5428else
5429 # Double quotes because CPP needs to be expanded
5430 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5431 do
5432 ac_preproc_ok=false
5433for ac_c_preproc_warn_flag in '' yes
5434do
5435 # Use a header file that comes with gcc, so configuring glibc
5436 # with a fresh cross-compiler works.
5437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438 # <limits.h> exists even on freestanding compilers.
5439 # On the NeXT, cc -E runs the code through the compiler's parser,
5440 # not just through cpp. "Syntax error" is here to catch this case.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h. */
5443#ifdef __STDC__
5444# include <limits.h>
5445#else
5446# include <assert.h>
5447#endif
5448 Syntax error
5449_ACEOF
5450if ac_fn_c_try_cpp "$LINENO"; then :
5451
5452else
5453 # Broken: fails on valid input.
5454continue
5455fi
cristyda16f162011-02-19 23:52:17 +00005456rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005457
5458 # OK, works on sane cases. Now check whether nonexistent headers
5459 # can be detected and how.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#include <ac_nonexistent.h>
5463_ACEOF
5464if ac_fn_c_try_cpp "$LINENO"; then :
5465 # Broken: success on invalid input.
5466continue
5467else
5468 # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
cristyda16f162011-02-19 23:52:17 +00005472rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005476rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005477if $ac_preproc_ok; then :
5478 break
5479fi
5480
5481 done
5482 ac_cv_prog_CPP=$CPP
5483
5484fi
5485 CPP=$ac_cv_prog_CPP
5486else
5487 ac_cv_prog_CPP=$CPP
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5490$as_echo "$CPP" >&6; }
5491ac_preproc_ok=false
5492for ac_c_preproc_warn_flag in '' yes
5493do
5494 # Use a header file that comes with gcc, so configuring glibc
5495 # with a fresh cross-compiler works.
5496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497 # <limits.h> exists even on freestanding compilers.
5498 # On the NeXT, cc -E runs the code through the compiler's parser,
5499 # not just through cpp. "Syntax error" is here to catch this case.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h. */
5502#ifdef __STDC__
5503# include <limits.h>
5504#else
5505# include <assert.h>
5506#endif
5507 Syntax error
5508_ACEOF
5509if ac_fn_c_try_cpp "$LINENO"; then :
5510
5511else
5512 # Broken: fails on valid input.
5513continue
5514fi
cristyda16f162011-02-19 23:52:17 +00005515rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005516
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h. */
5521#include <ac_nonexistent.h>
5522_ACEOF
5523if ac_fn_c_try_cpp "$LINENO"; then :
5524 # Broken: success on invalid input.
5525continue
5526else
5527 # Passes both tests.
5528ac_preproc_ok=:
5529break
5530fi
cristyda16f162011-02-19 23:52:17 +00005531rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005532
5533done
5534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005535rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005536if $ac_preproc_ok; then :
5537
5538else
5539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005541as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5542See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005543fi
5544
5545ac_ext=c
5546ac_cpp='$CPP $CPPFLAGS'
5547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5553$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005554if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005555 $as_echo_n "(cached) " >&6
5556else
5557 if test -z "$GREP"; then
5558 ac_path_GREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in grep ggrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005568 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005569# Check for GNU ac_path_GREP and select it if it is found.
5570 # Check for GNU $ac_path_GREP
5571case `"$ac_path_GREP" --version 2>&1` in
5572*GNU*)
5573 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5574*)
5575 ac_count=0
5576 $as_echo_n 0123456789 >"conftest.in"
5577 while :
5578 do
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo 'GREP' >> "conftest.nl"
5583 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_GREP="$ac_path_GREP"
5589 ac_path_GREP_max=$ac_count
5590 fi
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5593 done
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595esac
5596
5597 $ac_path_GREP_found && break 3
5598 done
5599 done
5600 done
5601IFS=$as_save_IFS
5602 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005603 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005604 fi
5605else
5606 ac_cv_path_GREP=$GREP
5607fi
5608
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5611$as_echo "$ac_cv_path_GREP" >&6; }
5612 GREP="$ac_cv_path_GREP"
5613
5614
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5616$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005617if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005618 $as_echo_n "(cached) " >&6
5619else
5620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5621 then ac_cv_path_EGREP="$GREP -E"
5622 else
5623 if test -z "$EGREP"; then
5624 ac_path_EGREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_prog in egrep; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005634 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005635# Check for GNU ac_path_EGREP and select it if it is found.
5636 # Check for GNU $ac_path_EGREP
5637case `"$ac_path_EGREP" --version 2>&1` in
5638*GNU*)
5639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5640*)
5641 ac_count=0
5642 $as_echo_n 0123456789 >"conftest.in"
5643 while :
5644 do
5645 cat "conftest.in" "conftest.in" >"conftest.tmp"
5646 mv "conftest.tmp" "conftest.in"
5647 cp "conftest.in" "conftest.nl"
5648 $as_echo 'EGREP' >> "conftest.nl"
5649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651 as_fn_arith $ac_count + 1 && ac_count=$as_val
5652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5653 # Best one so far, save it but keep looking for a better one
5654 ac_cv_path_EGREP="$ac_path_EGREP"
5655 ac_path_EGREP_max=$ac_count
5656 fi
5657 # 10*(2^10) chars as input seems more than enough
5658 test $ac_count -gt 10 && break
5659 done
5660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5661esac
5662
5663 $ac_path_EGREP_found && break 3
5664 done
5665 done
5666 done
5667IFS=$as_save_IFS
5668 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005669 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005670 fi
5671else
5672 ac_cv_path_EGREP=$EGREP
5673fi
5674
5675 fi
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5678$as_echo "$ac_cv_path_EGREP" >&6; }
5679 EGREP="$ac_cv_path_EGREP"
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5683$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005684if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005685 $as_echo_n "(cached) " >&6
5686else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689#include <stdlib.h>
5690#include <stdarg.h>
5691#include <string.h>
5692#include <float.h>
5693
5694int
5695main ()
5696{
5697
5698 ;
5699 return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_cv_header_stdc=yes
5704else
5705 ac_cv_header_stdc=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708
5709if test $ac_cv_header_stdc = yes; then
5710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h. */
5713#include <string.h>
5714
5715_ACEOF
5716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "memchr" >/dev/null 2>&1; then :
5718
5719else
5720 ac_cv_header_stdc=no
5721fi
5722rm -f conftest*
5723
5724fi
5725
5726if test $ac_cv_header_stdc = yes; then
5727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h. */
5730#include <stdlib.h>
5731
5732_ACEOF
5733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5734 $EGREP "free" >/dev/null 2>&1; then :
5735
5736else
5737 ac_cv_header_stdc=no
5738fi
5739rm -f conftest*
5740
5741fi
5742
5743if test $ac_cv_header_stdc = yes; then
5744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5745 if test "$cross_compiling" = yes; then :
5746 :
5747else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h. */
5750#include <ctype.h>
5751#include <stdlib.h>
5752#if ((' ' & 0x0FF) == 0x020)
5753# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5754# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5755#else
5756# define ISLOWER(c) \
5757 (('a' <= (c) && (c) <= 'i') \
5758 || ('j' <= (c) && (c) <= 'r') \
5759 || ('s' <= (c) && (c) <= 'z'))
5760# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5761#endif
5762
5763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5764int
5765main ()
5766{
5767 int i;
5768 for (i = 0; i < 256; i++)
5769 if (XOR (islower (i), ISLOWER (i))
5770 || toupper (i) != TOUPPER (i))
5771 return 2;
5772 return 0;
5773}
5774_ACEOF
5775if ac_fn_c_try_run "$LINENO"; then :
5776
5777else
5778 ac_cv_header_stdc=no
5779fi
5780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5781 conftest.$ac_objext conftest.beam conftest.$ac_ext
5782fi
5783
5784fi
5785fi
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5787$as_echo "$ac_cv_header_stdc" >&6; }
5788if test $ac_cv_header_stdc = yes; then
5789
5790$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5791
5792fi
5793
5794# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796 inttypes.h stdint.h unistd.h
5797do :
5798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5800"
cristy98dddb52010-11-04 00:30:15 +00005801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005802 cat >>confdefs.h <<_ACEOF
5803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804_ACEOF
5805
5806fi
5807
5808done
5809
5810
5811
5812 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 +00005813if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005814 MINIX=yes
5815else
5816 MINIX=
5817fi
5818
5819
5820 if test "$MINIX" = yes; then
5821
5822$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5823
5824
5825$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5826
5827
5828$as_echo "#define _MINIX 1" >>confdefs.h
5829
5830 fi
5831
5832
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5834$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005835if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005836 $as_echo_n "(cached) " >&6
5837else
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840
cristy14fefe52012-05-21 00:59:18 +00005841# define __EXTENSIONS__ 1
5842 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005843int
5844main ()
5845{
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_compile "$LINENO"; then :
5852 ac_cv_safe_to_define___extensions__=yes
5853else
5854 ac_cv_safe_to_define___extensions__=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857fi
5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5859$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5860 test $ac_cv_safe_to_define___extensions__ = yes &&
5861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5862
5863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5864
5865 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5866
5867 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5868
5869 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5870
5871
5872
5873# Check for programs
5874ac_ext=c
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5881set dummy ${ac_tool_prefix}gcc; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005884if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005885 $as_echo_n "(cached) " >&6
5886else
5887 if test -n "$CC"; then
5888 ac_cv_prog_CC="$CC" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901done
5902 done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907CC=$ac_cv_prog_CC
5908if test -n "$CC"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5910$as_echo "$CC" >&6; }
5911else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916
5917fi
5918if test -z "$ac_cv_prog_CC"; then
5919 ac_ct_CC=$CC
5920 # Extract the first word of "gcc", so it can be a program name with args.
5921set dummy gcc; ac_word=$2
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005924if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005925 $as_echo_n "(cached) " >&6
5926else
5927 if test -n "$ac_ct_CC"; then
5928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005937 ac_cv_prog_ac_ct_CC="gcc"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941done
5942 done
5943IFS=$as_save_IFS
5944
5945fi
5946fi
5947ac_ct_CC=$ac_cv_prog_ac_ct_CC
5948if test -n "$ac_ct_CC"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5950$as_echo "$ac_ct_CC" >&6; }
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955
5956 if test "x$ac_ct_CC" = x; then
5957 CC=""
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960yes:)
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963ac_tool_warned=yes ;;
5964esac
5965 CC=$ac_ct_CC
5966 fi
5967else
5968 CC="$ac_cv_prog_CC"
5969fi
5970
5971if test -z "$CC"; then
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5974set dummy ${ac_tool_prefix}cc; ac_word=$2
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005977if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005978 $as_echo_n "(cached) " >&6
5979else
5980 if test -n "$CC"; then
5981 ac_cv_prog_CC="$CC" # Let the user override the test.
5982else
5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005990 ac_cv_prog_CC="${ac_tool_prefix}cc"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994done
5995 done
5996IFS=$as_save_IFS
5997
5998fi
5999fi
6000CC=$ac_cv_prog_CC
6001if test -n "$CC"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6003$as_echo "$CC" >&6; }
6004else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }
6007fi
6008
6009
6010 fi
6011fi
6012if test -z "$CC"; then
6013 # Extract the first word of "cc", so it can be a program name with args.
6014set dummy cc; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006017if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$CC"; then
6021 ac_cv_prog_CC="$CC" # Let the user override the test.
6022else
6023 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6032 ac_prog_rejected=yes
6033 continue
6034 fi
6035 ac_cv_prog_CC="cc"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043if test $ac_prog_rejected = yes; then
6044 # We found a bogon in the path, so make sure we never use it.
6045 set dummy $ac_cv_prog_CC
6046 shift
6047 if test $# != 0; then
6048 # We chose a different compiler from the bogus one.
6049 # However, it has the same basename, so the bogon will be chosen
6050 # first if we set CC to just the basename; use the full file name.
6051 shift
6052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6053 fi
6054fi
6055fi
6056fi
6057CC=$ac_cv_prog_CC
6058if test -n "$CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6060$as_echo "$CC" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066
6067fi
6068if test -z "$CC"; then
6069 if test -n "$ac_tool_prefix"; then
6070 for ac_prog in cl.exe
6071 do
6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006076if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 if test -n "$CC"; then
6080 ac_cv_prog_CC="$CC" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094 done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099CC=$ac_cv_prog_CC
6100if test -n "$CC"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6102$as_echo "$CC" >&6; }
6103else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105$as_echo "no" >&6; }
6106fi
6107
6108
6109 test -n "$CC" && break
6110 done
6111fi
6112if test -z "$CC"; then
6113 ac_ct_CC=$CC
6114 for ac_prog in cl.exe
6115do
6116 # Extract the first word of "$ac_prog", so it can be a program name with args.
6117set dummy $ac_prog; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006120if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$ac_ct_CC"; then
6124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6125else
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006133 ac_cv_prog_ac_ct_CC="$ac_prog"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138 done
6139IFS=$as_save_IFS
6140
6141fi
6142fi
6143ac_ct_CC=$ac_cv_prog_ac_ct_CC
6144if test -n "$ac_ct_CC"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6146$as_echo "$ac_ct_CC" >&6; }
6147else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149$as_echo "no" >&6; }
6150fi
6151
6152
6153 test -n "$ac_ct_CC" && break
6154done
6155
6156 if test "x$ac_ct_CC" = x; then
6157 CC=""
6158 else
6159 case $cross_compiling:$ac_tool_warned in
6160yes:)
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163ac_tool_warned=yes ;;
6164esac
6165 CC=$ac_ct_CC
6166 fi
6167fi
6168
6169fi
6170
6171
6172test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006174as_fn_error $? "no acceptable C compiler found in \$PATH
6175See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006176
6177# Provide some information about the compiler.
6178$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6179set X $ac_compile
6180ac_compiler=$2
6181for ac_option in --version -v -V -qversion; do
6182 { { ac_try="$ac_compiler $ac_option >&5"
6183case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6188$as_echo "$ac_try_echo"; } >&5
6189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6190 ac_status=$?
6191 if test -s conftest.err; then
6192 sed '10a\
6193... rest of stderr output deleted ...
6194 10q' conftest.err >conftest.er1
6195 cat conftest.er1 >&5
6196 fi
6197 rm -f conftest.er1 conftest.err
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }
6200done
6201
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6203$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006204if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006205 $as_echo_n "(cached) " >&6
6206else
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h. */
6209
6210int
6211main ()
6212{
6213#ifndef __GNUC__
6214 choke me
6215#endif
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_compiler_gnu=yes
6223else
6224 ac_compiler_gnu=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227ac_cv_c_compiler_gnu=$ac_compiler_gnu
6228
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6231$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6232if test $ac_compiler_gnu = yes; then
6233 GCC=yes
6234else
6235 GCC=
6236fi
6237ac_test_CFLAGS=${CFLAGS+set}
6238ac_save_CFLAGS=$CFLAGS
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6240$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006241if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006242 $as_echo_n "(cached) " >&6
6243else
6244 ac_save_c_werror_flag=$ac_c_werror_flag
6245 ac_c_werror_flag=yes
6246 ac_cv_prog_cc_g=no
6247 CFLAGS="-g"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250
6251int
6252main ()
6253{
6254
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_prog_cc_g=yes
6261else
6262 CFLAGS=""
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h. */
6265
6266int
6267main ()
6268{
6269
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_compile "$LINENO"; then :
6275
6276else
6277 ac_c_werror_flag=$ac_save_c_werror_flag
6278 CFLAGS="-g"
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h. */
6281
6282int
6283main ()
6284{
6285
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_prog_cc_g=yes
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 ac_c_werror_flag=$ac_save_c_werror_flag
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6301$as_echo "$ac_cv_prog_cc_g" >&6; }
6302if test "$ac_test_CFLAGS" = set; then
6303 CFLAGS=$ac_save_CFLAGS
6304elif test $ac_cv_prog_cc_g = yes; then
6305 if test "$GCC" = yes; then
6306 CFLAGS="-g -O2"
6307 else
6308 CFLAGS="-g"
6309 fi
6310else
6311 if test "$GCC" = yes; then
6312 CFLAGS="-O2"
6313 else
6314 CFLAGS=
6315 fi
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6318$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006319if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006320 $as_echo_n "(cached) " >&6
6321else
6322 ac_cv_prog_cc_c89=no
6323ac_save_CC=$CC
6324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326#include <stdarg.h>
6327#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006328struct stat;
cristya0b81c32010-01-22 02:54:33 +00006329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6330struct buf { int x; };
6331FILE * (*rcsopen) (struct buf *, struct stat *, int);
6332static char *e (p, i)
6333 char **p;
6334 int i;
6335{
6336 return p[i];
6337}
6338static char *f (char * (*g) (char **, int), char **p, ...)
6339{
6340 char *s;
6341 va_list v;
6342 va_start (v,p);
6343 s = g (p, va_arg (v,int));
6344 va_end (v);
6345 return s;
6346}
6347
6348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6349 function prototypes and stuff, but not '\xHH' hex character constants.
6350 These don't provoke an error unfortunately, instead are silently treated
6351 as 'x'. The following induces an error, until -std is added to get
6352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6353 array size at least. It's necessary to write '\x00'==0 to get something
6354 that's true only with -std. */
6355int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6356
6357/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6358 inside strings and character constants. */
6359#define FOO(x) 'x'
6360int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6361
6362int test (int i, double x);
6363struct s1 {int (*f) (int a);};
6364struct s2 {int (*f) (double a);};
6365int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6366int argc;
6367char **argv;
6368int
6369main ()
6370{
6371return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6378do
6379 CC="$ac_save_CC $ac_arg"
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 ac_cv_prog_cc_c89=$ac_arg
6382fi
6383rm -f core conftest.err conftest.$ac_objext
6384 test "x$ac_cv_prog_cc_c89" != "xno" && break
6385done
6386rm -f conftest.$ac_ext
6387CC=$ac_save_CC
6388
6389fi
6390# AC_CACHE_VAL
6391case "x$ac_cv_prog_cc_c89" in
6392 x)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6394$as_echo "none needed" >&6; } ;;
6395 xno)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6397$as_echo "unsupported" >&6; } ;;
6398 *)
6399 CC="$CC $ac_cv_prog_cc_c89"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6401$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6402esac
6403if test "x$ac_cv_prog_cc_c89" != xno; then :
6404
6405fi
6406
6407ac_ext=c
6408ac_cpp='$CPP $CPPFLAGS'
6409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
cristy73bd4a52010-10-05 11:24:23 +00006413depcc="$CC" am_compiler_list=
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6416$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006417if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006418 $as_echo_n "(cached) " >&6
6419else
6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6421 # We make a subdir and do the tests there. Otherwise we can end up
6422 # making bogus files that we don't know about and never remove. For
6423 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006424 # making a dummy file named 'D' -- because '-MD' means "put the output
6425 # in D".
cristy7247bba2012-02-05 16:37:27 +00006426 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006427 mkdir conftest.dir
6428 # Copy depcomp to subdir because otherwise we won't find it if we're
6429 # using a relative directory.
6430 cp "$am_depcomp" conftest.dir
6431 cd conftest.dir
6432 # We will build objects and dependencies in a subdirectory because
6433 # it helps to detect inapplicable dependency modes. For instance
6434 # both Tru64's cc and ICC support -MD to output dependencies as a
6435 # side effect of compilation, but ICC will put the dependencies in
6436 # the current directory while Tru64 will put them in the object
6437 # directory.
6438 mkdir sub
6439
6440 am_cv_CC_dependencies_compiler_type=none
6441 if test "$am_compiler_list" = ""; then
6442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6443 fi
6444 am__universal=false
6445 case " $depcc " in #(
6446 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6447 esac
6448
6449 for depmode in $am_compiler_list; do
6450 # Setup a source with many dependencies, because some compilers
6451 # like to wrap large dependency lists on column 80 (with \), and
6452 # we should not choose a depcomp mode which is confused by this.
6453 #
6454 # We need to recreate these files for each test, as the compiler may
6455 # overwrite some of them when testing with obscure command lines.
6456 # This happens at least with the AIX C compiler.
6457 : > sub/conftest.c
6458 for i in 1 2 3 4 5 6; do
6459 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006460 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6461 # Solaris 10 /bin/sh.
6462 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006463 done
6464 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6465
cristyc0890a62012-07-19 00:18:20 +00006466 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006467 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006468 # handle '-M -o', and we need to detect this. Also, some Intel
6469 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006470 am__obj=sub/conftest.${OBJEXT-o}
6471 am__minus_obj="-o $am__obj"
6472 case $depmode in
6473 gcc)
6474 # This depmode causes a compiler race in universal mode.
6475 test "$am__universal" = false || continue
6476 ;;
6477 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006478 # After this tag, mechanisms are not by side-effect, so they'll
6479 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006480 if test "x$enable_dependency_tracking" = xyes; then
6481 continue
6482 else
6483 break
6484 fi
6485 ;;
cristy7247bba2012-02-05 16:37:27 +00006486 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006487 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006488 # not run yet. These depmodes are late enough in the game, and
6489 # so weak that their functioning should not be impacted.
6490 am__obj=conftest.${OBJEXT-o}
6491 am__minus_obj=
6492 ;;
6493 none) break ;;
6494 esac
6495 if depmode=$depmode \
6496 source=sub/conftest.c object=$am__obj \
6497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6498 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6499 >/dev/null 2>conftest.err &&
6500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6502 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6504 # icc doesn't choke on unknown options, it will just issue warnings
6505 # or remarks (even with -Werror). So we grep stderr for any message
6506 # that says an option was ignored or not supported.
6507 # When given -MP, icc 7.0 and 7.1 complain thusly:
6508 # icc: Command line warning: ignoring option '-M'; no argument required
6509 # The diagnosis changed in icc 8.0:
6510 # icc: Command line remark: option '-MP' not supported
6511 if (grep 'ignoring option' conftest.err ||
6512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6513 am_cv_CC_dependencies_compiler_type=$depmode
6514 break
6515 fi
6516 fi
6517 done
6518
6519 cd ..
6520 rm -rf conftest.dir
6521else
6522 am_cv_CC_dependencies_compiler_type=none
6523fi
6524
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6527$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6528CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6529
6530 if
6531 test "x$enable_dependency_tracking" != xno \
6532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6533 am__fastdepCC_TRUE=
6534 am__fastdepCC_FALSE='#'
6535else
6536 am__fastdepCC_TRUE='#'
6537 am__fastdepCC_FALSE=
6538fi
6539
6540
cristy95646052009-11-28 23:05:30 +00006541ac_ext=cpp
6542ac_cpp='$CXXCPP $CPPFLAGS'
6543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6546if test -z "$CXX"; then
6547 if test -n "$CCC"; then
6548 CXX=$CCC
6549 else
6550 if test -n "$ac_tool_prefix"; then
6551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6552 do
6553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006557if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006558 $as_echo_n "(cached) " >&6
6559else
6560 if test -n "$CXX"; then
6561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574done
6575 done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580CXX=$ac_cv_prog_CXX
6581if test -n "$CXX"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6583$as_echo "$CXX" >&6; }
6584else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589
6590 test -n "$CXX" && break
6591 done
6592fi
6593if test -z "$CXX"; then
6594 ac_ct_CXX=$CXX
6595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6596do
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598set dummy $ac_prog; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006601if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006602 $as_echo_n "(cached) " >&6
6603else
6604 if test -n "$ac_ct_CXX"; then
6605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006614 ac_cv_prog_ac_ct_CXX="$ac_prog"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619 done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6625if test -n "$ac_ct_CXX"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6627$as_echo "$ac_ct_CXX" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634 test -n "$ac_ct_CXX" && break
6635done
6636
6637 if test "x$ac_ct_CXX" = x; then
6638 CXX="g++"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 CXX=$ac_ct_CXX
6647 fi
6648fi
6649
6650 fi
6651fi
6652# Provide some information about the compiler.
6653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6654set X $ac_compile
6655ac_compiler=$2
6656for ac_option in --version -v -V -qversion; do
6657 { { ac_try="$ac_compiler $ac_option >&5"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6663$as_echo "$ac_try_echo"; } >&5
6664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6665 ac_status=$?
6666 if test -s conftest.err; then
6667 sed '10a\
6668... rest of stderr output deleted ...
6669 10q' conftest.err >conftest.er1
6670 cat conftest.er1 >&5
6671 fi
6672 rm -f conftest.er1 conftest.err
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }
6675done
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6678$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006679if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006680 $as_echo_n "(cached) " >&6
6681else
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684
6685int
6686main ()
6687{
6688#ifndef __GNUC__
6689 choke me
6690#endif
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696if ac_fn_cxx_try_compile "$LINENO"; then :
6697 ac_compiler_gnu=yes
6698else
6699 ac_compiler_gnu=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6703
6704fi
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6706$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6707if test $ac_compiler_gnu = yes; then
6708 GXX=yes
6709else
6710 GXX=
6711fi
6712ac_test_CXXFLAGS=${CXXFLAGS+set}
6713ac_save_CXXFLAGS=$CXXFLAGS
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6715$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006716if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006717 $as_echo_n "(cached) " >&6
6718else
6719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6720 ac_cxx_werror_flag=yes
6721 ac_cv_prog_cxx_g=no
6722 CXXFLAGS="-g"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h. */
6725
6726int
6727main ()
6728{
6729
6730 ;
6731 return 0;
6732}
6733_ACEOF
6734if ac_fn_cxx_try_compile "$LINENO"; then :
6735 ac_cv_prog_cxx_g=yes
6736else
6737 CXXFLAGS=""
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h. */
6740
6741int
6742main ()
6743{
6744
6745 ;
6746 return 0;
6747}
6748_ACEOF
6749if ac_fn_cxx_try_compile "$LINENO"; then :
6750
6751else
6752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6753 CXXFLAGS="-g"
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h. */
6756
6757int
6758main ()
6759{
6760
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765if ac_fn_cxx_try_compile "$LINENO"; then :
6766 ac_cv_prog_cxx_g=yes
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6776$as_echo "$ac_cv_prog_cxx_g" >&6; }
6777if test "$ac_test_CXXFLAGS" = set; then
6778 CXXFLAGS=$ac_save_CXXFLAGS
6779elif test $ac_cv_prog_cxx_g = yes; then
6780 if test "$GXX" = yes; then
6781 CXXFLAGS="-g -O2"
6782 else
6783 CXXFLAGS="-g"
6784 fi
6785else
6786 if test "$GXX" = yes; then
6787 CXXFLAGS="-O2"
6788 else
6789 CXXFLAGS=
6790 fi
6791fi
6792ac_ext=c
6793ac_cpp='$CPP $CPPFLAGS'
6794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796ac_compiler_gnu=$ac_cv_c_compiler_gnu
6797
cristy73bd4a52010-10-05 11:24:23 +00006798depcc="$CXX" am_compiler_list=
6799
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6801$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006802if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006803 $as_echo_n "(cached) " >&6
6804else
6805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6806 # We make a subdir and do the tests there. Otherwise we can end up
6807 # making bogus files that we don't know about and never remove. For
6808 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006809 # making a dummy file named 'D' -- because '-MD' means "put the output
6810 # in D".
cristy7247bba2012-02-05 16:37:27 +00006811 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006812 mkdir conftest.dir
6813 # Copy depcomp to subdir because otherwise we won't find it if we're
6814 # using a relative directory.
6815 cp "$am_depcomp" conftest.dir
6816 cd conftest.dir
6817 # We will build objects and dependencies in a subdirectory because
6818 # it helps to detect inapplicable dependency modes. For instance
6819 # both Tru64's cc and ICC support -MD to output dependencies as a
6820 # side effect of compilation, but ICC will put the dependencies in
6821 # the current directory while Tru64 will put them in the object
6822 # directory.
6823 mkdir sub
6824
6825 am_cv_CXX_dependencies_compiler_type=none
6826 if test "$am_compiler_list" = ""; then
6827 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6828 fi
6829 am__universal=false
6830 case " $depcc " in #(
6831 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6832 esac
6833
6834 for depmode in $am_compiler_list; do
6835 # Setup a source with many dependencies, because some compilers
6836 # like to wrap large dependency lists on column 80 (with \), and
6837 # we should not choose a depcomp mode which is confused by this.
6838 #
6839 # We need to recreate these files for each test, as the compiler may
6840 # overwrite some of them when testing with obscure command lines.
6841 # This happens at least with the AIX C compiler.
6842 : > sub/conftest.c
6843 for i in 1 2 3 4 5 6; do
6844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006845 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6846 # Solaris 10 /bin/sh.
6847 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006848 done
6849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6850
cristyc0890a62012-07-19 00:18:20 +00006851 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006852 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006853 # handle '-M -o', and we need to detect this. Also, some Intel
6854 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006855 am__obj=sub/conftest.${OBJEXT-o}
6856 am__minus_obj="-o $am__obj"
6857 case $depmode in
6858 gcc)
6859 # This depmode causes a compiler race in universal mode.
6860 test "$am__universal" = false || continue
6861 ;;
6862 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006863 # After this tag, mechanisms are not by side-effect, so they'll
6864 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006865 if test "x$enable_dependency_tracking" = xyes; then
6866 continue
6867 else
6868 break
6869 fi
6870 ;;
cristy7247bba2012-02-05 16:37:27 +00006871 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006872 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006873 # not run yet. These depmodes are late enough in the game, and
6874 # so weak that their functioning should not be impacted.
6875 am__obj=conftest.${OBJEXT-o}
6876 am__minus_obj=
6877 ;;
6878 none) break ;;
6879 esac
6880 if depmode=$depmode \
6881 source=sub/conftest.c object=$am__obj \
6882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6883 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6884 >/dev/null 2>conftest.err &&
6885 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6887 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6889 # icc doesn't choke on unknown options, it will just issue warnings
6890 # or remarks (even with -Werror). So we grep stderr for any message
6891 # that says an option was ignored or not supported.
6892 # When given -MP, icc 7.0 and 7.1 complain thusly:
6893 # icc: Command line warning: ignoring option '-M'; no argument required
6894 # The diagnosis changed in icc 8.0:
6895 # icc: Command line remark: option '-MP' not supported
6896 if (grep 'ignoring option' conftest.err ||
6897 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6898 am_cv_CXX_dependencies_compiler_type=$depmode
6899 break
6900 fi
6901 fi
6902 done
6903
6904 cd ..
6905 rm -rf conftest.dir
6906else
6907 am_cv_CXX_dependencies_compiler_type=none
6908fi
6909
6910fi
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6912$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6913CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6914
6915 if
6916 test "x$enable_dependency_tracking" != xno \
6917 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6918 am__fastdepCXX_TRUE=
6919 am__fastdepCXX_FALSE='#'
6920else
6921 am__fastdepCXX_TRUE='#'
6922 am__fastdepCXX_FALSE=
6923fi
6924
6925
cristy8b350f62009-11-15 23:12:43 +00006926 case $ac_cv_prog_cc_stdc in #(
6927 no) :
6928 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6929 *) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006931$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006932if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006933 $as_echo_n "(cached) " >&6
6934else
6935 ac_cv_prog_cc_c99=no
6936ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006938/* end confdefs.h. */
6939#include <stdarg.h>
6940#include <stdbool.h>
6941#include <stdlib.h>
6942#include <wchar.h>
6943#include <stdio.h>
6944
6945// Check varargs macros. These examples are taken from C99 6.10.3.5.
6946#define debug(...) fprintf (stderr, __VA_ARGS__)
6947#define showlist(...) puts (#__VA_ARGS__)
6948#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6949static void
6950test_varargs_macros (void)
6951{
6952 int x = 1234;
6953 int y = 5678;
6954 debug ("Flag");
6955 debug ("X = %d\n", x);
6956 showlist (The first, second, and third items.);
6957 report (x>y, "x is %d but y is %d", x, y);
6958}
6959
6960// Check long long types.
6961#define BIG64 18446744073709551615ull
6962#define BIG32 4294967295ul
6963#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6964#if !BIG_OK
6965 your preprocessor is broken;
6966#endif
6967#if BIG_OK
6968#else
6969 your preprocessor is broken;
6970#endif
6971static long long int bignum = -9223372036854775807LL;
6972static unsigned long long int ubignum = BIG64;
6973
6974struct incomplete_array
6975{
6976 int datasize;
6977 double data[];
6978};
6979
6980struct named_init {
6981 int number;
6982 const wchar_t *name;
6983 double average;
6984};
6985
6986typedef const char *ccp;
6987
6988static inline int
6989test_restrict (ccp restrict text)
6990{
6991 // See if C++-style comments work.
6992 // Iterate through items via the restricted pointer.
6993 // Also check for declarations in for loops.
6994 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6995 continue;
6996 return 0;
6997}
6998
6999// Check varargs and va_copy.
7000static void
7001test_varargs (const char *format, ...)
7002{
7003 va_list args;
7004 va_start (args, format);
7005 va_list args_copy;
7006 va_copy (args_copy, args);
7007
7008 const char *str;
7009 int number;
7010 float fnumber;
7011
7012 while (*format)
7013 {
7014 switch (*format++)
7015 {
7016 case 's': // string
7017 str = va_arg (args_copy, const char *);
7018 break;
7019 case 'd': // int
7020 number = va_arg (args_copy, int);
7021 break;
7022 case 'f': // float
7023 fnumber = va_arg (args_copy, double);
7024 break;
7025 default:
7026 break;
7027 }
7028 }
7029 va_end (args_copy);
7030 va_end (args);
7031}
7032
7033int
7034main ()
7035{
7036
7037 // Check bool.
7038 _Bool success = false;
7039
7040 // Check restrict.
7041 if (test_restrict ("String literal") == 0)
7042 success = true;
7043 char *restrict newvar = "Another string";
7044
7045 // Check varargs.
7046 test_varargs ("s, d' f .", "string", 65, 34.234);
7047 test_varargs_macros ();
7048
7049 // Check flexible array members.
7050 struct incomplete_array *ia =
7051 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7052 ia->datasize = 10;
7053 for (int i = 0; i < ia->datasize; ++i)
7054 ia->data[i] = i * 1.234;
7055
7056 // Check named initializers.
7057 struct named_init ni = {
7058 .number = 34,
7059 .name = L"Test wide string",
7060 .average = 543.34343,
7061 };
7062
7063 ni.number = 58;
7064
7065 int dynamic_array[ni.number];
7066 dynamic_array[ni.number - 1] = 543;
7067
7068 // work around unused variable warnings
7069 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7070 || dynamic_array[ni.number - 1] != 543);
7071
7072 ;
7073 return 0;
7074}
7075_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007076for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007077do
7078 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007079 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007081fi
cristy3ed852e2009-09-05 21:47:34 +00007082rm -f core conftest.err conftest.$ac_objext
7083 test "x$ac_cv_prog_cc_c99" != "xno" && break
7084done
7085rm -f conftest.$ac_ext
7086CC=$ac_save_CC
7087
7088fi
7089# AC_CACHE_VAL
7090case "x$ac_cv_prog_cc_c99" in
7091 x)
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "none needed" >&6; } ;;
7094 xno)
cristy8b350f62009-11-15 23:12:43 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007096$as_echo "unsupported" >&6; } ;;
7097 *)
7098 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7101esac
cristy8b350f62009-11-15 23:12:43 +00007102if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7104else
cristy8b350f62009-11-15 23:12:43 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007107if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007108 $as_echo_n "(cached) " >&6
7109else
7110 ac_cv_prog_cc_c89=no
7111ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007113/* end confdefs.h. */
7114#include <stdarg.h>
7115#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007116struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7118struct buf { int x; };
7119FILE * (*rcsopen) (struct buf *, struct stat *, int);
7120static char *e (p, i)
7121 char **p;
7122 int i;
7123{
7124 return p[i];
7125}
7126static char *f (char * (*g) (char **, int), char **p, ...)
7127{
7128 char *s;
7129 va_list v;
7130 va_start (v,p);
7131 s = g (p, va_arg (v,int));
7132 va_end (v);
7133 return s;
7134}
7135
7136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7137 function prototypes and stuff, but not '\xHH' hex character constants.
7138 These don't provoke an error unfortunately, instead are silently treated
7139 as 'x'. The following induces an error, until -std is added to get
7140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7141 array size at least. It's necessary to write '\x00'==0 to get something
7142 that's true only with -std. */
7143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7144
7145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7146 inside strings and character constants. */
7147#define FOO(x) 'x'
7148int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7149
7150int test (int i, double x);
7151struct s1 {int (*f) (int a);};
7152struct s2 {int (*f) (double a);};
7153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7154int argc;
7155char **argv;
7156int
7157main ()
7158{
7159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7160 ;
7161 return 0;
7162}
7163_ACEOF
7164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7166do
7167 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007168 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007169 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007170fi
cristy3ed852e2009-09-05 21:47:34 +00007171rm -f core conftest.err conftest.$ac_objext
7172 test "x$ac_cv_prog_cc_c89" != "xno" && break
7173done
7174rm -f conftest.$ac_ext
7175CC=$ac_save_CC
7176
7177fi
7178# AC_CACHE_VAL
7179case "x$ac_cv_prog_cc_c89" in
7180 x)
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo "none needed" >&6; } ;;
7183 xno)
cristy8b350f62009-11-15 23:12:43 +00007184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007185$as_echo "unsupported" >&6; } ;;
7186 *)
7187 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7190esac
cristy8b350f62009-11-15 23:12:43 +00007191if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7193else
7194 ac_cv_prog_cc_stdc=no
7195fi
7196
cristy3ed852e2009-09-05 21:47:34 +00007197fi
cristy3ed852e2009-09-05 21:47:34 +00007198 ;;
7199esac
cristy8b350f62009-11-15 23:12:43 +00007200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007201$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007202 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 $as_echo_n "(cached) " >&6
7204fi
7205
cristy8b350f62009-11-15 23:12:43 +00007206 case $ac_cv_prog_cc_stdc in #(
7207 no) :
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7209$as_echo "unsupported" >&6; } ;; #(
7210 '') :
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7212$as_echo "none needed" >&6; } ;; #(
7213 *) :
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7216esac
7217
cristy3ed852e2009-09-05 21:47:34 +00007218ac_ext=c
7219ac_cpp='$CPP $CPPFLAGS'
7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007224$as_echo_n "checking how to run the C preprocessor... " >&6; }
7225# On Suns, sometimes $CPP names a directory.
7226if test -n "$CPP" && test -d "$CPP"; then
7227 CPP=
7228fi
7229if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007230 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007231 $as_echo_n "(cached) " >&6
7232else
7233 # Double quotes because CPP needs to be expanded
7234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7235 do
7236 ac_preproc_ok=false
7237for ac_c_preproc_warn_flag in '' yes
7238do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007246/* end confdefs.h. */
7247#ifdef __STDC__
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252 Syntax error
7253_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007254if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007255
cristy8b350f62009-11-15 23:12:43 +00007256else
cristy3ed852e2009-09-05 21:47:34 +00007257 # Broken: fails on valid input.
7258continue
7259fi
cristyda16f162011-02-19 23:52:17 +00007260rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007265/* end confdefs.h. */
7266#include <ac_nonexistent.h>
7267_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007268if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007269 # Broken: success on invalid input.
7270continue
7271else
cristy3ed852e2009-09-05 21:47:34 +00007272 # Passes both tests.
7273ac_preproc_ok=:
7274break
7275fi
cristyda16f162011-02-19 23:52:17 +00007276rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007277
7278done
7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007280rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007281if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007282 break
7283fi
7284
7285 done
7286 ac_cv_prog_CPP=$CPP
7287
7288fi
7289 CPP=$ac_cv_prog_CPP
7290else
7291 ac_cv_prog_CPP=$CPP
7292fi
cristy8b350f62009-11-15 23:12:43 +00007293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007294$as_echo "$CPP" >&6; }
7295ac_preproc_ok=false
7296for ac_c_preproc_warn_flag in '' yes
7297do
7298 # Use a header file that comes with gcc, so configuring glibc
7299 # with a fresh cross-compiler works.
7300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7301 # <limits.h> exists even on freestanding compilers.
7302 # On the NeXT, cc -E runs the code through the compiler's parser,
7303 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007305/* end confdefs.h. */
7306#ifdef __STDC__
7307# include <limits.h>
7308#else
7309# include <assert.h>
7310#endif
7311 Syntax error
7312_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007313if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007314
cristy8b350f62009-11-15 23:12:43 +00007315else
cristy3ed852e2009-09-05 21:47:34 +00007316 # Broken: fails on valid input.
7317continue
7318fi
cristyda16f162011-02-19 23:52:17 +00007319rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007320
7321 # OK, works on sane cases. Now check whether nonexistent headers
7322 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007324/* end confdefs.h. */
7325#include <ac_nonexistent.h>
7326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007327if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007328 # Broken: success on invalid input.
7329continue
7330else
cristy3ed852e2009-09-05 21:47:34 +00007331 # Passes both tests.
7332ac_preproc_ok=:
7333break
7334fi
cristyda16f162011-02-19 23:52:17 +00007335rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007336
7337done
7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007339rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007340if $ac_preproc_ok; then :
7341
cristy3ed852e2009-09-05 21:47:34 +00007342else
cristy8b350f62009-11-15 23:12:43 +00007343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007345as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7346See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007347fi
7348
7349ac_ext=c
7350ac_cpp='$CPP $CPPFLAGS'
7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
cristy73bd4a52010-10-05 11:24:23 +00007355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7356$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007357if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007358 $as_echo_n "(cached) " >&6
7359else
7360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7361 for ac_i in 1 2 3 4 5 6 7; do
7362 ac_script="$ac_script$as_nl$ac_script"
7363 done
7364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7365 { ac_script=; unset ac_script;}
7366 if test -z "$SED"; then
7367 ac_path_SED_found=false
7368 # Loop through the user's path and test for each of PROGNAME-LIST
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_prog in sed gsed; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007377 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007378# Check for GNU ac_path_SED and select it if it is found.
7379 # Check for GNU $ac_path_SED
7380case `"$ac_path_SED" --version 2>&1` in
7381*GNU*)
7382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7383*)
7384 ac_count=0
7385 $as_echo_n 0123456789 >"conftest.in"
7386 while :
7387 do
7388 cat "conftest.in" "conftest.in" >"conftest.tmp"
7389 mv "conftest.tmp" "conftest.in"
7390 cp "conftest.in" "conftest.nl"
7391 $as_echo '' >> "conftest.nl"
7392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7394 as_fn_arith $ac_count + 1 && ac_count=$as_val
7395 if test $ac_count -gt ${ac_path_SED_max-0}; then
7396 # Best one so far, save it but keep looking for a better one
7397 ac_cv_path_SED="$ac_path_SED"
7398 ac_path_SED_max=$ac_count
7399 fi
7400 # 10*(2^10) chars as input seems more than enough
7401 test $ac_count -gt 10 && break
7402 done
7403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7404esac
7405
7406 $ac_path_SED_found && break 3
7407 done
7408 done
7409 done
7410IFS=$as_save_IFS
7411 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007412 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007413 fi
7414else
7415 ac_cv_path_SED=$SED
7416fi
7417
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7420$as_echo "$ac_cv_path_SED" >&6; }
7421 SED="$ac_cv_path_SED"
7422 rm -f conftest.sed
7423
7424test -z "$SED" && SED=sed
7425Xsed="$SED -e 1s/^X//"
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7438$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007439if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007440 $as_echo_n "(cached) " >&6
7441else
7442 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7443 then ac_cv_path_FGREP="$GREP -F"
7444 else
7445 if test -z "$FGREP"; then
7446 ac_path_FGREP_found=false
7447 # Loop through the user's path and test for each of PROGNAME-LIST
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_prog in fgrep; do
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007456 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007457# Check for GNU ac_path_FGREP and select it if it is found.
7458 # Check for GNU $ac_path_FGREP
7459case `"$ac_path_FGREP" --version 2>&1` in
7460*GNU*)
7461 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7462*)
7463 ac_count=0
7464 $as_echo_n 0123456789 >"conftest.in"
7465 while :
7466 do
7467 cat "conftest.in" "conftest.in" >"conftest.tmp"
7468 mv "conftest.tmp" "conftest.in"
7469 cp "conftest.in" "conftest.nl"
7470 $as_echo 'FGREP' >> "conftest.nl"
7471 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7473 as_fn_arith $ac_count + 1 && ac_count=$as_val
7474 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7475 # Best one so far, save it but keep looking for a better one
7476 ac_cv_path_FGREP="$ac_path_FGREP"
7477 ac_path_FGREP_max=$ac_count
7478 fi
7479 # 10*(2^10) chars as input seems more than enough
7480 test $ac_count -gt 10 && break
7481 done
7482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7483esac
7484
7485 $ac_path_FGREP_found && break 3
7486 done
7487 done
7488 done
7489IFS=$as_save_IFS
7490 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007491 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007492 fi
7493else
7494 ac_cv_path_FGREP=$FGREP
7495fi
7496
7497 fi
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7500$as_echo "$ac_cv_path_FGREP" >&6; }
7501 FGREP="$ac_cv_path_FGREP"
7502
7503
7504test -z "$GREP" && GREP=grep
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
cristy0c60a692010-11-04 01:09:47 +00007522ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7524ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7525
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7527$as_echo_n "checking how to print strings... " >&6; }
7528# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007529if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007530 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7531 ECHO='print -r --'
7532elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7533 ECHO='printf %s\n'
7534else
7535 # Use this function as a fallback that always works.
7536 func_fallback_echo ()
7537 {
7538 eval 'cat <<_LTECHO_EOF
7539$1
7540_LTECHO_EOF'
7541 }
7542 ECHO='func_fallback_echo'
7543fi
7544
7545# func_echo_all arg...
7546# Invoke $ECHO with all args, space-separated.
7547func_echo_all ()
7548{
7549 $ECHO ""
7550}
7551
7552case "$ECHO" in
7553 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7554$as_echo "printf" >&6; } ;;
7555 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7556$as_echo "print -r" >&6; } ;;
7557 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7558$as_echo "cat" >&6; } ;;
7559esac
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
cristy73bd4a52010-10-05 11:24:23 +00007574
7575
7576# Check whether --with-gnu-ld was given.
7577if test "${with_gnu_ld+set}" = set; then :
7578 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7579else
7580 with_gnu_ld=no
7581fi
7582
7583ac_prog=ld
7584if test "$GCC" = yes; then
7585 # Check if gcc -print-prog-name=ld gives a path.
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7587$as_echo_n "checking for ld used by $CC... " >&6; }
7588 case $host in
7589 *-*-mingw*)
7590 # gcc leaves a trailing carriage return which upsets mingw
7591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7592 *)
7593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7594 esac
7595 case $ac_prog in
7596 # Accept absolute paths.
7597 [\\/]* | ?:[\\/]*)
7598 re_direlt='/[^/][^/]*/\.\./'
7599 # Canonicalize the pathname of ld
7600 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7601 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7602 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7603 done
7604 test -z "$LD" && LD="$ac_prog"
7605 ;;
7606 "")
7607 # If it fails, then pretend we aren't using GCC.
7608 ac_prog=ld
7609 ;;
7610 *)
7611 # If it is relative, then search for the first ld in PATH.
7612 with_gnu_ld=unknown
7613 ;;
7614 esac
7615elif test "$with_gnu_ld" = yes; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7617$as_echo_n "checking for GNU ld... " >&6; }
7618else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7620$as_echo_n "checking for non-GNU ld... " >&6; }
7621fi
cristyda16f162011-02-19 23:52:17 +00007622if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007623 $as_echo_n "(cached) " >&6
7624else
7625 if test -z "$LD"; then
7626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627 for ac_dir in $PATH; do
7628 IFS="$lt_save_ifs"
7629 test -z "$ac_dir" && ac_dir=.
7630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7631 lt_cv_path_LD="$ac_dir/$ac_prog"
7632 # Check to see if the program is GNU ld. I'd rather use --version,
7633 # but apparently some variants of GNU ld only accept -v.
7634 # Break only if it was the GNU/non-GNU ld that we prefer.
7635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7636 *GNU* | *'with BFD'*)
7637 test "$with_gnu_ld" != no && break
7638 ;;
7639 *)
7640 test "$with_gnu_ld" != yes && break
7641 ;;
7642 esac
7643 fi
7644 done
7645 IFS="$lt_save_ifs"
7646else
7647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7648fi
7649fi
7650
7651LD="$lt_cv_path_LD"
7652if test -n "$LD"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7654$as_echo "$LD" >&6; }
7655else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
cristy98dddb52010-11-04 00:30:15 +00007659test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7661$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007662if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007663 $as_echo_n "(cached) " >&6
7664else
7665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7666case `$LD -v 2>&1 </dev/null` in
7667*GNU* | *'with BFD'*)
7668 lt_cv_prog_gnu_ld=yes
7669 ;;
7670*)
7671 lt_cv_prog_gnu_ld=no
7672 ;;
7673esac
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7676$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7677with_gnu_ld=$lt_cv_prog_gnu_ld
7678
7679
7680
7681
7682
7683
7684
7685
7686
cristy3ed852e2009-09-05 21:47:34 +00007687
cristy837d6dc2010-02-27 01:16:57 +00007688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7689$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007690if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007691 $as_echo_n "(cached) " >&6
7692else
7693 ac_cv_prog_cc_c99=no
7694ac_save_CC=$CC
7695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h. */
7697#include <stdarg.h>
7698#include <stdbool.h>
7699#include <stdlib.h>
7700#include <wchar.h>
7701#include <stdio.h>
7702
7703// Check varargs macros. These examples are taken from C99 6.10.3.5.
7704#define debug(...) fprintf (stderr, __VA_ARGS__)
7705#define showlist(...) puts (#__VA_ARGS__)
7706#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7707static void
7708test_varargs_macros (void)
7709{
7710 int x = 1234;
7711 int y = 5678;
7712 debug ("Flag");
7713 debug ("X = %d\n", x);
7714 showlist (The first, second, and third items.);
7715 report (x>y, "x is %d but y is %d", x, y);
7716}
7717
7718// Check long long types.
7719#define BIG64 18446744073709551615ull
7720#define BIG32 4294967295ul
7721#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7722#if !BIG_OK
7723 your preprocessor is broken;
7724#endif
7725#if BIG_OK
7726#else
7727 your preprocessor is broken;
7728#endif
7729static long long int bignum = -9223372036854775807LL;
7730static unsigned long long int ubignum = BIG64;
7731
7732struct incomplete_array
7733{
7734 int datasize;
7735 double data[];
7736};
7737
7738struct named_init {
7739 int number;
7740 const wchar_t *name;
7741 double average;
7742};
7743
7744typedef const char *ccp;
7745
7746static inline int
7747test_restrict (ccp restrict text)
7748{
7749 // See if C++-style comments work.
7750 // Iterate through items via the restricted pointer.
7751 // Also check for declarations in for loops.
7752 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7753 continue;
7754 return 0;
7755}
7756
7757// Check varargs and va_copy.
7758static void
7759test_varargs (const char *format, ...)
7760{
7761 va_list args;
7762 va_start (args, format);
7763 va_list args_copy;
7764 va_copy (args_copy, args);
7765
7766 const char *str;
7767 int number;
7768 float fnumber;
7769
7770 while (*format)
7771 {
7772 switch (*format++)
7773 {
7774 case 's': // string
7775 str = va_arg (args_copy, const char *);
7776 break;
7777 case 'd': // int
7778 number = va_arg (args_copy, int);
7779 break;
7780 case 'f': // float
7781 fnumber = va_arg (args_copy, double);
7782 break;
7783 default:
7784 break;
7785 }
7786 }
7787 va_end (args_copy);
7788 va_end (args);
7789}
7790
7791int
7792main ()
7793{
7794
7795 // Check bool.
7796 _Bool success = false;
7797
7798 // Check restrict.
7799 if (test_restrict ("String literal") == 0)
7800 success = true;
7801 char *restrict newvar = "Another string";
7802
7803 // Check varargs.
7804 test_varargs ("s, d' f .", "string", 65, 34.234);
7805 test_varargs_macros ();
7806
7807 // Check flexible array members.
7808 struct incomplete_array *ia =
7809 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7810 ia->datasize = 10;
7811 for (int i = 0; i < ia->datasize; ++i)
7812 ia->data[i] = i * 1.234;
7813
7814 // Check named initializers.
7815 struct named_init ni = {
7816 .number = 34,
7817 .name = L"Test wide string",
7818 .average = 543.34343,
7819 };
7820
7821 ni.number = 58;
7822
7823 int dynamic_array[ni.number];
7824 dynamic_array[ni.number - 1] = 543;
7825
7826 // work around unused variable warnings
7827 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7828 || dynamic_array[ni.number - 1] != 543);
7829
7830 ;
7831 return 0;
7832}
7833_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007834for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007835do
7836 CC="$ac_save_CC $ac_arg"
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 ac_cv_prog_cc_c99=$ac_arg
7839fi
7840rm -f core conftest.err conftest.$ac_objext
7841 test "x$ac_cv_prog_cc_c99" != "xno" && break
7842done
7843rm -f conftest.$ac_ext
7844CC=$ac_save_CC
7845
7846fi
7847# AC_CACHE_VAL
7848case "x$ac_cv_prog_cc_c99" in
7849 x)
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7851$as_echo "none needed" >&6; } ;;
7852 xno)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7854$as_echo "unsupported" >&6; } ;;
7855 *)
7856 CC="$CC $ac_cv_prog_cc_c99"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7858$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7859esac
7860if test "x$ac_cv_prog_cc_c99" != xno; then :
7861
7862fi
7863
7864
cristy73bd4a52010-10-05 11:24:23 +00007865if test "x$CC" != xcc; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7867$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7868else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7870$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7871fi
7872set dummy $CC; ac_cc=`$as_echo "$2" |
7873 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007874if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007875 $as_echo_n "(cached) " >&6
7876else
cristy73bd4a52010-10-05 11:24:23 +00007877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h. */
7879
7880int
7881main ()
7882{
7883
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888# Make sure it works both with $CC and with simple cc.
7889# We do the test twice because some compilers refuse to overwrite an
7890# existing .o file with -o, though they will create one.
7891ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7892rm -f conftest2.*
7893if { { case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7898$as_echo "$ac_try_echo"; } >&5
7899 (eval "$ac_try") 2>&5
7900 ac_status=$?
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; } &&
7903 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906esac
7907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7908$as_echo "$ac_try_echo"; } >&5
7909 (eval "$ac_try") 2>&5
7910 ac_status=$?
7911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7912 test $ac_status = 0; };
7913then
7914 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7915 if test "x$CC" != xcc; then
7916 # Test first that cc exists at all.
7917 if { ac_try='cc -c conftest.$ac_ext >&5'
7918 { { case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921esac
7922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7923$as_echo "$ac_try_echo"; } >&5
7924 (eval "$ac_try") 2>&5
7925 ac_status=$?
7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7927 test $ac_status = 0; }; }; then
7928 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7929 rm -f conftest2.*
7930 if { { case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7935$as_echo "$ac_try_echo"; } >&5
7936 (eval "$ac_try") 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; } &&
7940 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943esac
7944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7945$as_echo "$ac_try_echo"; } >&5
7946 (eval "$ac_try") 2>&5
7947 ac_status=$?
7948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949 test $ac_status = 0; };
7950 then
7951 # cc works too.
7952 :
7953 else
7954 # cc exists but doesn't like -o.
7955 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7956 fi
7957 fi
7958 fi
7959else
7960 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7961fi
7962rm -f core conftest*
7963
7964fi
7965if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967$as_echo "yes" >&6; }
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971
7972$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7973
7974fi
7975
7976# FIXME: we rely on the cache variable name because
7977# there is no other way.
7978set dummy $CC
7979am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7980eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7981if test "$am_t" != yes; then
7982 # Losing compiler, so override with the script.
7983 # FIXME: It is wrong to rewrite CC.
7984 # But if we don't then we get into trouble of one sort or another.
7985 # A longer-term fix would be to have automake use am__CC in this case,
7986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7987 CC="$am_aux_dir/compile $CC"
7988fi
7989
7990
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7992$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007993if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007994 $as_echo_n "(cached) " >&6
7995else
7996 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003 ac_save_CFLAGS="$CFLAGS"
8004for 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" #
8005do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007/* end confdefs.h. */
8008
8009int
8010main ()
8011{
cristy24fc1fe2010-10-23 21:13:01 +00008012
cristy73bd4a52010-10-05 11:24:23 +00008013 ;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"; then :
8018 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021done
8022 CFLAGS="$ac_save_CFLAGS"
8023 ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8032$as_echo "$ac_cv_cflags_warn_all" >&6; }
8033case ".$ac_cv_cflags_warn_all" in
8034 .ok|.ok,*) ;;
8035 .|.no|.no,*)
8036 ;;
8037 *)
8038 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8039 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8040 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8041 ac_status=$?
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }
8044 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8045 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8046 ac_status=$?
8047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048 test $ac_status = 0; }
8049 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8050 fi
8051 ;;
nicolas6237c462010-10-05 06:11:49 +00008052esac
cristy3ed852e2009-09-05 21:47:34 +00008053
cristy016e8b82012-12-26 12:11:06 +00008054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8055$as_echo_n "checking for C compiler vendor... " >&6; }
8056if ${ax_cv_c_compiler_vendor+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058else
8059 # note: don't check for gcc first since some other compilers define __GNUC__
8060 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8061 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8062 pathscale: __PATHCC__,__PATHSCALE__
8063 clang: __clang__
8064 gnu: __GNUC__
8065 sun: __SUNPRO_C,__SUNPRO_CC
8066 hp: __HP_cc,__HP_aCC
8067 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8068 borland: __BORLANDC__,__TURBOC__
8069 comeau: __COMO__
8070 cray: _CRAYC
8071 kai: __KCC
8072 lcc: __LCC__
8073 sgi: __sgi,sgi
8074 microsoft: _MSC_VER
8075 metrowerks: __MWERKS__
8076 watcom: __WATCOMC__
8077 portland: __PGI
8078 unknown: UNKNOWN"
8079 for ventest in $vendors; do
8080 case $ventest in
8081 *:) vendor=$ventest; continue ;;
8082 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8083 esac
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h. */
8086
8087int
8088main ()
8089{
8090
8091 #if !($vencpp)
8092 thisisanerror;
8093 #endif
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_compile "$LINENO"; then :
8100 break
8101fi
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 done
8104 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8105
8106fi
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8108$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8109
cristya0b81c32010-01-22 02:54:33 +00008110
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8112$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8113set x ${MAKE-make}
8114ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008115if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008116 $as_echo_n "(cached) " >&6
8117else
8118 cat >conftest.make <<\_ACEOF
8119SHELL = /bin/sh
8120all:
8121 @echo '@@@%%%=$(MAKE)=@@@%%%'
8122_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008123# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008124case `${MAKE-make} -f conftest.make 2>/dev/null` in
8125 *@@@%%%=?*=@@@%%%*)
8126 eval ac_cv_prog_make_${ac_make}_set=yes;;
8127 *)
8128 eval ac_cv_prog_make_${ac_make}_set=no;;
8129esac
8130rm -f conftest.make
8131fi
8132if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8134$as_echo "yes" >&6; }
8135 SET_MAKE=
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139 SET_MAKE="MAKE=${MAKE-make}"
8140fi
8141
cristy8b350f62009-11-15 23:12:43 +00008142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143$as_echo_n "checking whether ln -s works... " >&6; }
8144LN_S=$as_ln_s
8145if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008147$as_echo "yes" >&6; }
8148else
cristy8b350f62009-11-15 23:12:43 +00008149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008150$as_echo "no, using $LN_S" >&6; }
8151fi
8152
cristy8d0ff762013-03-10 20:33:28 +00008153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8154$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8155if ${ac_cv_path_SED+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8159 for ac_i in 1 2 3 4 5 6 7; do
8160 ac_script="$ac_script$as_nl$ac_script"
8161 done
8162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8163 { ac_script=; unset ac_script;}
8164 if test -z "$SED"; then
8165 ac_path_SED_found=false
8166 # Loop through the user's path and test for each of PROGNAME-LIST
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_prog in sed gsed; do
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8175 as_fn_executable_p "$ac_path_SED" || continue
8176# Check for GNU ac_path_SED and select it if it is found.
8177 # Check for GNU $ac_path_SED
8178case `"$ac_path_SED" --version 2>&1` in
8179*GNU*)
8180 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8181*)
8182 ac_count=0
8183 $as_echo_n 0123456789 >"conftest.in"
8184 while :
8185 do
8186 cat "conftest.in" "conftest.in" >"conftest.tmp"
8187 mv "conftest.tmp" "conftest.in"
8188 cp "conftest.in" "conftest.nl"
8189 $as_echo '' >> "conftest.nl"
8190 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8192 as_fn_arith $ac_count + 1 && ac_count=$as_val
8193 if test $ac_count -gt ${ac_path_SED_max-0}; then
8194 # Best one so far, save it but keep looking for a better one
8195 ac_cv_path_SED="$ac_path_SED"
8196 ac_path_SED_max=$ac_count
8197 fi
8198 # 10*(2^10) chars as input seems more than enough
8199 test $ac_count -gt 10 && break
8200 done
8201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8202esac
8203
8204 $ac_path_SED_found && break 3
8205 done
8206 done
8207 done
8208IFS=$as_save_IFS
8209 if test -z "$ac_cv_path_SED"; then
8210 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8211 fi
8212else
8213 ac_cv_path_SED=$SED
8214fi
8215
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8218$as_echo "$ac_cv_path_SED" >&6; }
8219 SED="$ac_cv_path_SED"
8220 rm -f conftest.sed
8221
cristybc556452012-08-17 19:44:03 +00008222for ac_prog in gawk mawk nawk awk
8223do
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if ${ac_cv_prog_AWK+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230else
8231 if test -n "$AWK"; then
8232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_AWK="$ac_prog"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245done
8246 done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251AWK=$ac_cv_prog_AWK
8252if test -n "$AWK"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8254$as_echo "$AWK" >&6; }
8255else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260
8261 test -n "$AWK" && break
8262done
8263
cristy73bd4a52010-10-05 11:24:23 +00008264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8265$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8266
8267# Check whether --with-dmalloc was given.
8268if test "${with_dmalloc+set}" = set; then :
8269 withval=$with_dmalloc; if test "$withval" = yes; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8271$as_echo "yes" >&6; }
8272
8273$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8274
8275 LIBS="$LIBS -ldmalloc"
8276 LDFLAGS="$LDFLAGS -g"
8277else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8289$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008290if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008291 $as_echo_n "(cached) " >&6
8292else
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h. */
8295#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008296 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008297 static void
8298 foo(void) {
8299 exit(1);
8300 }
8301
8302int
8303main ()
8304{
8305
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310if ac_fn_c_try_compile "$LINENO"; then :
8311 ax_cv___attribute__=yes
8312else
8313 ax_cv___attribute__=no
8314
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8320$as_echo "$ax_cv___attribute__" >&6; }
8321 if test "$ax_cv___attribute__" = "yes"; then
8322
8323$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8324
8325 fi
8326
8327
8328
cristy37110d62012-03-01 18:38:20 +00008329
8330
8331# Check whether --with-gcc-arch was given.
8332if test "${with_gcc_arch+set}" = set; then :
8333 withval=$with_gcc_arch; ax_gcc_arch=$withval
8334else
cristya32d1812012-03-02 19:24:21 +00008335 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008336fi
8337
8338
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8340$as_echo_n "checking for gcc architecture flag... " >&6; }
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8342$as_echo "" >&6; }
8343if ${ax_cv_gcc_archflag+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346
8347ax_cv_gcc_archflag="unknown"
8348
8349if test "$GCC" = yes; then
8350
8351if test "x$ax_gcc_arch" = xyes; then
8352ax_gcc_arch=""
8353if test "$cross_compiling" = no; then
8354case $host_cpu in
8355 i[3456]86*|x86_64*) # use cpuid codes
8356
8357ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8364$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8365if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367else
8368 if test "$cross_compiling" = yes; then :
8369 ax_cv_gcc_x86_cpuid_0=unknown
8370else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372/* end confdefs.h. */
8373#include <stdio.h>
8374int
8375main ()
8376{
8377
8378 int op = 0, eax, ebx, ecx, edx;
8379 FILE *f;
8380 __asm__("cpuid"
8381 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8382 : "a" (op));
8383 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8384 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8385 fclose(f);
8386 return 0;
8387
8388 ;
8389 return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_run "$LINENO"; then :
8393 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8394else
8395 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8396fi
8397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8398 conftest.$ac_objext conftest.beam conftest.$ac_ext
8399fi
8400
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8403$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8404ac_ext=c
8405ac_cpp='$CPP $CPPFLAGS'
8406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411
8412ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8419$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8420if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422else
8423 if test "$cross_compiling" = yes; then :
8424 ax_cv_gcc_x86_cpuid_1=unknown
8425else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h. */
8428#include <stdio.h>
8429int
8430main ()
8431{
8432
8433 int op = 1, eax, ebx, ecx, edx;
8434 FILE *f;
8435 __asm__("cpuid"
8436 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8437 : "a" (op));
8438 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8439 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8440 fclose(f);
8441 return 0;
8442
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447if ac_fn_c_try_run "$LINENO"; then :
8448 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8449else
8450 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8451fi
8452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8454fi
8455
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8458$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8459ac_ext=c
8460ac_cpp='$CPP $CPPFLAGS'
8461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463ac_compiler_gnu=$ac_cv_c_compiler_gnu
8464
8465
8466 case $ax_cv_gcc_x86_cpuid_0 in
8467 *:756e6547:*:*) # Intel
8468 case $ax_cv_gcc_x86_cpuid_1 in
8469 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8470 *5??:*:*:*) ax_gcc_arch=pentium ;;
8471 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8472 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8473 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8474 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8475 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8476 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8477 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8478 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8479 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8480 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8481 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8482 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8483 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8484 case $host_cpu in
8485 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8486 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8487 esac ;;
8488 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8489 esac ;;
8490 *:68747541:*:*) # AMD
8491 case $ax_cv_gcc_x86_cpuid_1 in
8492 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8493 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8494 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8495 *60?:*:*:*) ax_gcc_arch=k7 ;;
8496 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8497 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8498 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8499 *6[68a]?:*:*:*)
8500
8501ac_ext=c
8502ac_cpp='$CPP $CPPFLAGS'
8503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8505ac_compiler_gnu=$ac_cv_c_compiler_gnu
8506
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8508$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8509if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511else
8512 if test "$cross_compiling" = yes; then :
8513 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8514else
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516/* end confdefs.h. */
8517#include <stdio.h>
8518int
8519main ()
8520{
8521
8522 int op = 0x80000006, eax, ebx, ecx, edx;
8523 FILE *f;
8524 __asm__("cpuid"
8525 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8526 : "a" (op));
8527 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8528 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8529 fclose(f);
8530 return 0;
8531
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536if ac_fn_c_try_run "$LINENO"; then :
8537 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8538else
8539 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8540fi
8541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542 conftest.$ac_objext conftest.beam conftest.$ac_ext
8543fi
8544
8545fi
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8547$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8548ac_ext=c
8549ac_cpp='$CPP $CPPFLAGS'
8550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553
8554 # L2 cache size
8555 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8556 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8557 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8558 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8559 esac ;;
8560 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8561 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8562 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8563 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8564 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8565 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8566 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8567 esac ;;
8568 *:746e6543:*:*) # IDT
8569 case $ax_cv_gcc_x86_cpuid_1 in
8570 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8571 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8572 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8573 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8574 esac ;;
8575 esac
8576 if test x"$ax_gcc_arch" = x; then # fallback
8577 case $host_cpu in
8578 i586*) ax_gcc_arch=pentium ;;
8579 i686*) ax_gcc_arch=pentiumpro ;;
8580 esac
8581 fi
8582 ;;
8583
8584 sparc*)
8585 # Extract the first word of "prtdiag", so it can be a program name with args.
8586set dummy prtdiag; ac_word=$2
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588$as_echo_n "checking for $ac_word... " >&6; }
8589if ${ac_cv_path_PRTDIAG+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 case $PRTDIAG in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8595 ;;
8596 *)
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8599for as_dir in $as_dummy
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008605 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610 done
8611IFS=$as_save_IFS
8612
8613 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8614 ;;
8615esac
8616fi
8617PRTDIAG=$ac_cv_path_PRTDIAG
8618if test -n "$PRTDIAG"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8620$as_echo "$PRTDIAG" >&6; }
8621else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
8624fi
8625
8626
8627 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`
8628 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8629 case $cputype in
8630 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8631 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8632 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8633 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8634 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8635 *cypress*) ax_gcc_arch=cypress ;;
8636 esac ;;
8637
8638 alphaev5) ax_gcc_arch=ev5 ;;
8639 alphaev56) ax_gcc_arch=ev56 ;;
8640 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8641 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8642 alphaev6) ax_gcc_arch=ev6 ;;
8643 alphaev67) ax_gcc_arch=ev67 ;;
8644 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8645 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8646 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8647 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8648
8649 powerpc*)
8650 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`
8651 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8652 case $cputype in
8653 *750*) ax_gcc_arch="750 G3" ;;
8654 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8655 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8656 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8657 *970*) ax_gcc_arch="970 G5 power4";;
8658 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8659 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8660 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8661 *) ax_gcc_arch=$cputype ;;
8662 esac
8663 ax_gcc_arch="$ax_gcc_arch powerpc"
8664 ;;
8665esac
8666fi # not cross-compiling
8667fi # guess arch
8668
8669if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8670for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008671 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008672 flags="-mtune=$arch"
8673 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8674 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8675 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8676 else
8677 flags="-march=$arch -mcpu=$arch -m$arch"
8678 fi
8679 for flag in $flags; do
8680 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8682$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8683if eval \${$as_CACHEVAR+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685else
8686
8687 ax_check_save_flags=$CFLAGS
8688 CFLAGS="$CFLAGS $flag"
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h. */
8691
8692int
8693main ()
8694{
8695
8696 ;
8697 return 0;
8698}
8699_ACEOF
8700if ac_fn_c_try_compile "$LINENO"; then :
8701 eval "$as_CACHEVAR=yes"
8702else
8703 eval "$as_CACHEVAR=no"
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 CFLAGS=$ax_check_save_flags
8707fi
8708eval ac_res=\$$as_CACHEVAR
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8710$as_echo "$ac_res" >&6; }
8711if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8712 ax_cv_gcc_archflag=$flag; break
8713else
8714 :
8715fi
8716
8717 done
8718 test "x$ax_cv_gcc_archflag" = xunknown || break
8719done
8720fi
8721
8722fi # $GCC=yes
8723
8724fi
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8727$as_echo_n "checking for gcc architecture flag... " >&6; }
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8729$as_echo "$ax_cv_gcc_archflag" >&6; }
8730if test "x$ax_cv_gcc_archflag" = xunknown; then
8731 :
8732else
8733 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8734fi
8735
8736
8737
cristy73bd4a52010-10-05 11:24:23 +00008738if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8741set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008744if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008745 $as_echo_n "(cached) " >&6
8746else
8747 case $PKG_CONFIG in
8748 [\\/]* | ?:[\\/]*)
8749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8750 ;;
8751 *)
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008759 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764 done
8765IFS=$as_save_IFS
8766
8767 ;;
8768esac
8769fi
8770PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8771if test -n "$PKG_CONFIG"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8773$as_echo "$PKG_CONFIG" >&6; }
8774else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778
8779
8780fi
8781if test -z "$ac_cv_path_PKG_CONFIG"; then
8782 ac_pt_PKG_CONFIG=$PKG_CONFIG
8783 # Extract the first word of "pkg-config", so it can be a program name with args.
8784set dummy pkg-config; ac_word=$2
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008787if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008788 $as_echo_n "(cached) " >&6
8789else
8790 case $ac_pt_PKG_CONFIG in
8791 [\\/]* | ?:[\\/]*)
8792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8793 ;;
8794 *)
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008802 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807 done
8808IFS=$as_save_IFS
8809
8810 ;;
8811esac
8812fi
8813ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8814if test -n "$ac_pt_PKG_CONFIG"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8816$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8817else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819$as_echo "no" >&6; }
8820fi
8821
8822 if test "x$ac_pt_PKG_CONFIG" = x; then
8823 PKG_CONFIG=""
8824 else
8825 case $cross_compiling:$ac_tool_warned in
8826yes:)
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8829ac_tool_warned=yes ;;
8830esac
8831 PKG_CONFIG=$ac_pt_PKG_CONFIG
8832 fi
8833else
8834 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8835fi
8836
8837fi
8838if test -n "$PKG_CONFIG"; then
8839 _pkg_min_version=0.9.0
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8841$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8842 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8844$as_echo "yes" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848 PKG_CONFIG=""
8849 fi
8850
8851fi
cristy3ed852e2009-09-05 21:47:34 +00008852
cristy9b86f202012-11-28 21:55:35 +00008853# Check for linker script support
8854
8855 # Check whether --enable-ld-version-script was given.
8856if test "${enable_ld_version_script+set}" = set; then :
8857 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8858fi
8859
8860 if test -z "$have_ld_version_script"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8862$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8865 cat > conftest.map <<EOF
8866foo
8867EOF
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h. */
8870
8871int
8872main ()
8873{
8874
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879if ac_fn_c_try_link "$LINENO"; then :
8880 accepts_syntax_errors=yes
8881else
8882 accepts_syntax_errors=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 if test "$accepts_syntax_errors" = no; then
8887 cat > conftest.map <<EOF
8888VERS_1 {
8889 global: sym;
8890};
8891
8892VERS_2 {
8893 global: sym;
8894} VERS_1;
8895EOF
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h. */
8898
8899int
8900main ()
8901{
8902
8903 ;
8904 return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then :
8908 have_ld_version_script=yes
8909else
8910 have_ld_version_script=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914 else
8915 have_ld_version_script=no
8916 fi
8917 rm -f conftest.map
8918 LDFLAGS="$save_LDFLAGS"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8920$as_echo "$have_ld_version_script" >&6; }
8921 fi
8922 if test "$have_ld_version_script" = "yes"; then
8923 HAVE_LD_VERSION_SCRIPT_TRUE=
8924 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8925else
8926 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8927 HAVE_LD_VERSION_SCRIPT_FALSE=
8928fi
8929
8930
8931
cristy3ed852e2009-09-05 21:47:34 +00008932#
cristy3ed852e2009-09-05 21:47:34 +00008933# Enable run-time checking.
8934#
8935# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008936if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008937 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8938else
8939 enable_bounds_checking='no'
8940fi
8941
8942
8943if test "$enable_bounds_checking" = yes; then
8944
cristy8b350f62009-11-15 23:12:43 +00008945$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008946
8947fi
8948
8949#
8950# Tests for Windows
8951#
8952
8953
8954
8955GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008956native_win32_build='no'
8957cygwin_build='no'
8958case "${host_os}" in
8959 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008960 cygwin_build='yes'
8961 GDI32_LIBS='-lgdi32'
8962 ;;
8963 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008964 native_win32_build='yes'
8965 GDI32_LIBS='-lgdi32'
8966 ;;
8967esac
8968if test "${GDI32_LIBS}x" != 'x'; then
8969
cristy8b350f62009-11-15 23:12:43 +00008970$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008971
8972fi
8973
cristy73bd4a52010-10-05 11:24:23 +00008974 if test "${GDI32_LIBS}x" != 'x' ; then
8975 WINGDI32_DELEGATE_TRUE=
8976 WINGDI32_DELEGATE_FALSE='#'
8977else
8978 WINGDI32_DELEGATE_TRUE='#'
8979 WINGDI32_DELEGATE_FALSE=
8980fi
8981
8982 if test "${native_win32_build}" = 'yes' ; then
8983 WIN32_NATIVE_BUILD_TRUE=
8984 WIN32_NATIVE_BUILD_FALSE='#'
8985else
8986 WIN32_NATIVE_BUILD_TRUE='#'
8987 WIN32_NATIVE_BUILD_FALSE=
8988fi
8989
8990 if test "${cygwin_build}" = 'yes' ; then
8991 CYGWIN_BUILD_TRUE=
8992 CYGWIN_BUILD_FALSE='#'
8993else
8994 CYGWIN_BUILD_TRUE='#'
8995 CYGWIN_BUILD_FALSE=
8996fi
8997
8998 if test "x${CC}" = 'xcl.exe' ; then
8999 USING_CL_TRUE=
9000 USING_CL_FALSE='#'
9001else
9002 USING_CL_TRUE='#'
9003 USING_CL_FALSE=
9004fi
9005
cristy3ed852e2009-09-05 21:47:34 +00009006
9007WinPathScript="${srcdirfull}/winpath.sh"
9008
9009
9010#
9011# Compiler flags tweaks
9012#
9013if test "${GCC}" != "yes"; then
9014 case "${host}" in
9015 *-*-hpux* )
9016 # aCC: HP ANSI C++ B3910B A.03.34
9017 CFLAGS="${CFLAGS} -Wp,-H30000"
9018 if test -n "${CXXFLAGS}"; then
9019 CXXFLAGS='-AA'
9020 else
9021 CXXFLAGS="${CXXFLAGS} -AA"
9022 fi
9023 ;;
9024 *-dec-osf5.* )
9025 # Compaq alphaev68-dec-osf5.1 compiler
9026 if test -n "${CXXFLAGS}"; then
9027 CXXFLAGS='-std strict_ansi -noimplicit_include'
9028 else
9029 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9030 fi
9031 esac
9032fi
9033
9034# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009036$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009037if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009038 $as_echo_n "(cached) " >&6
9039else
9040
9041im_cv_ld_lazyload='none'
9042case "${host}" in
9043 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9044 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9045 im_cv_ld_lazyload='-Wl,-zlazyload'
9046 fi
9047 ;;
9048esac
9049
9050fi
cristy8b350f62009-11-15 23:12:43 +00009051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009052$as_echo "$im_cv_ld_lazyload" >&6; }
9053if test "${im_cv_ld_lazyload}" != 'none' ; then
9054 if test -z "${LDFLAGS}" ; then
9055 LDFLAGS="${im_cv_ld_lazyload}"
9056 else
9057 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9058 fi
9059fi
9060
9061case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009062 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009063 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009064 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009065if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009066 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9067else
9068 build_osxuniversal=no
9069fi
9070
9071
cristyc37574e2013-02-16 01:04:55 +00009072 if test "${build_osxuniversal}" != no ; then
9073 if test "$enable_dependency_tracking" != no ; then
9074 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009075Please re-run configure with these options:
9076 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009077 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009078 fi
9079 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9080 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9081 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009082 fi
9083 ;;
9084esac
9085
cristy0151ae12011-10-28 16:32:29 +00009086#
9087# ARCH specific include directory
9088#
9089
cristy670aa3c2011-11-03 00:54:00 +00009090# Check whether --with-includearch-dir was given.
9091if test "${with_includearch_dir+set}" = set; then :
9092 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009093else
cristy670aa3c2011-11-03 00:54:00 +00009094 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009095fi
9096
9097
cristyd286fd72013-02-24 19:25:33 +00009098eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009099
cristy0151ae12011-10-28 16:32:29 +00009100
9101#
9102# ARCH specific configuration directory
9103#
9104
cristy670aa3c2011-11-03 00:54:00 +00009105# Check whether --with-sharearch-dir was given.
9106if test "${with_sharearch_dir+set}" = set; then :
9107 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009108else
cristy408ebcd2011-11-14 01:36:57 +00009109 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009110fi
9111
9112
cristy670aa3c2011-11-03 00:54:00 +00009113eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009114
cristy0151ae12011-10-28 16:32:29 +00009115
cristy2ec87cc2013-02-18 17:46:50 +00009116# Path to the pkgconfig folder
9117
9118# Check whether --with-pkgconfigdir was given.
9119if test "${with_pkgconfigdir+set}" = set; then :
9120 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9121else
9122 pkgconfigdir='${libdir}/pkgconfig'
9123fi
9124
9125
9126
cristy0151ae12011-10-28 16:32:29 +00009127#
cristy3ed852e2009-09-05 21:47:34 +00009128# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009129#
9130# Find Posix threads library
9131#
cristy3ed852e2009-09-05 21:47:34 +00009132
9133# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009134if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009135 withval=$with_threads; with_threads=$withval
9136else
9137 with_threads='yes'
9138fi
9139
9140
cristy1ae5c992013-07-30 14:55:07 +00009141THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009142have_threads=no
9143if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009144
9145
cristy73bd4a52010-10-05 11:24:23 +00009146ac_ext=c
9147ac_cpp='$CPP $CPPFLAGS'
9148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9150ac_compiler_gnu=$ac_cv_c_compiler_gnu
9151
9152ax_pthread_ok=no
9153
9154# We used to check for pthread.h first, but this fails if pthread.h
9155# requires special compiler flags (e.g. on True64 or Sequent).
9156# It gets checked for in the link test anyway.
9157
9158# First of all, check if the user has set any of the PTHREAD_LIBS,
9159# etcetera environment variables, and if threads linking works using
9160# them:
9161if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9162 save_CFLAGS="$CFLAGS"
9163 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9164 save_LIBS="$LIBS"
9165 LIBS="$PTHREAD_LIBS $LIBS"
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9167$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h. */
9170
9171/* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174#ifdef __cplusplus
9175extern "C"
9176#endif
9177char pthread_join ();
9178int
9179main ()
9180{
9181return pthread_join ();
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187 ax_pthread_ok=yes
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9192$as_echo "$ax_pthread_ok" >&6; }
9193 if test x"$ax_pthread_ok" = xno; then
9194 PTHREAD_LIBS=""
9195 PTHREAD_CFLAGS=""
9196 fi
9197 LIBS="$save_LIBS"
9198 CFLAGS="$save_CFLAGS"
9199fi
9200
9201# We must check for the threads library under a number of different
9202# names; the ordering is very important because some systems
9203# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9204# libraries is broken (non-POSIX).
9205
9206# Create a list of thread flags to try. Items starting with a "-" are
9207# C compiler flags, and other items are library names, except for "none"
9208# which indicates that we try without any flags at all, and "pthread-config"
9209# which is a program returning the flags for the Pth emulation library.
9210
cristy2ec87cc2013-02-18 17:46:50 +00009211ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009212
9213# The ordering *is* (sometimes) important. Some notes on the
9214# individual items follow:
9215
9216# pthreads: AIX (must check this before -lpthread)
9217# none: in case threads are in libc; should be tried before -Kthread and
9218# other compiler flags to prevent continual compiler warnings
9219# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9220# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9221# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9222# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9223# -pthreads: Solaris/gcc
9224# -mthreads: Mingw32/gcc, Lynx/gcc
9225# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9226# doesn't hurt to check since this sometimes defines pthreads too;
9227# also defines -D_REENTRANT)
9228# ... -mt is also the pthreads flag for HP/aCC
9229# pthread: Linux, etcetera
9230# --thread-safe: KAI C++
9231# pthread-config: use pthread-config program (for GNU Pth library)
9232
cristy2ec87cc2013-02-18 17:46:50 +00009233case ${host_os} in
9234 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009235
9236 # On Solaris (at least, for some versions), libc contains stubbed
9237 # (non-functional) versions of the pthreads routines, so link-based
9238 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9239 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9240 # a function called by this macro, so we could check for that, but
9241 # who knows whether they'll stub that too in a future libc.) So,
9242 # we'll just look for -pthreads and -lpthread first:
9243
9244 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9245 ;;
9246
cristy2ec87cc2013-02-18 17:46:50 +00009247 darwin*)
cristya316db12011-10-24 00:49:45 +00009248 ax_pthread_flags="-pthread $ax_pthread_flags"
9249 ;;
cristy73bd4a52010-10-05 11:24:23 +00009250esac
9251
9252if test x"$ax_pthread_ok" = xno; then
9253for flag in $ax_pthread_flags; do
9254
9255 case $flag in
9256 none)
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9258$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9259 ;;
9260
9261 -*)
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9263$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9264 PTHREAD_CFLAGS="$flag"
9265 ;;
9266
cristya316db12011-10-24 00:49:45 +00009267 pthread-config)
9268 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009269set dummy pthread-config; ac_word=$2
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009272if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009273 $as_echo_n "(cached) " >&6
9274else
9275 if test -n "$ax_pthread_config"; then
9276 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9277else
9278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009285 ac_cv_prog_ax_pthread_config="yes"
9286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9288 fi
9289done
9290 done
9291IFS=$as_save_IFS
9292
9293 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9294fi
9295fi
9296ax_pthread_config=$ac_cv_prog_ax_pthread_config
9297if test -n "$ax_pthread_config"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9299$as_echo "$ax_pthread_config" >&6; }
9300else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
cristya316db12011-10-24 00:49:45 +00009306 if test x"$ax_pthread_config" = xno; then continue; fi
9307 PTHREAD_CFLAGS="`pthread-config --cflags`"
9308 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9309 ;;
cristy73bd4a52010-10-05 11:24:23 +00009310
9311 *)
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9313$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9314 PTHREAD_LIBS="-l$flag"
9315 ;;
9316 esac
9317
9318 save_LIBS="$LIBS"
9319 save_CFLAGS="$CFLAGS"
9320 LIBS="$PTHREAD_LIBS $LIBS"
9321 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9322
9323 # Check for various functions. We must include pthread.h,
9324 # since some functions may be macros. (On the Sequent, we
9325 # need a special flag -Kthread to make this header compile.)
9326 # We check for pthread_join because it is in -lpthread on IRIX
9327 # while pthread_create is in libc. We check for pthread_attr_init
9328 # due to DEC craziness with -lpthreads. We check for
9329 # pthread_cleanup_push because it is one of the few pthread
9330 # functions on Solaris that doesn't have a non-functional libc stub.
9331 # We try pthread_create on general principles.
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009335 static void routine(void *a) { a = 0; }
9336 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009337int
9338main ()
9339{
9340pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009341 pthread_create(&th, 0, start_routine, 0);
9342 pthread_join(th, 0);
9343 pthread_attr_init(&attr);
9344 pthread_cleanup_push(routine, 0);
9345 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009346 ;
9347 return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_link "$LINENO"; then :
9351 ax_pthread_ok=yes
9352fi
9353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355
9356 LIBS="$save_LIBS"
9357 CFLAGS="$save_CFLAGS"
9358
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9360$as_echo "$ax_pthread_ok" >&6; }
9361 if test "x$ax_pthread_ok" = xyes; then
9362 break;
9363 fi
9364
9365 PTHREAD_LIBS=""
9366 PTHREAD_CFLAGS=""
9367done
9368fi
9369
9370# Various other checks:
9371if test "x$ax_pthread_ok" = xyes; then
9372 save_LIBS="$LIBS"
9373 LIBS="$PTHREAD_LIBS $LIBS"
9374 save_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9376
9377 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009379$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009380 attr_name=unknown
9381 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009383/* end confdefs.h. */
9384#include <pthread.h>
9385int
9386main ()
9387{
cristya316db12011-10-24 00:49:45 +00009388int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 attr_name=$attr; break
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009398 done
cristy73bd4a52010-10-05 11:24:23 +00009399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9400$as_echo "$attr_name" >&6; }
9401 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9402
9403cat >>confdefs.h <<_ACEOF
9404#define PTHREAD_CREATE_JOINABLE $attr_name
9405_ACEOF
9406
9407 fi
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9410$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9411 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009412 case ${host_os} in
9413 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9414 osf* | hpux*) flag="-D_REENTRANT";;
9415 solaris*)
9416 if test "$GCC" = "yes"; then
9417 flag="-D_REENTRANT"
9418 else
9419 flag="-mt -D_REENTRANT"
9420 fi
9421 ;;
cristy73bd4a52010-10-05 11:24:23 +00009422 esac
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9424$as_echo "${flag}" >&6; }
9425 if test "x$flag" != xno; then
9426 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9427 fi
9428
cristya316db12011-10-24 00:49:45 +00009429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9430$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9431if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433else
9434
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h. */
9437
9438 #include <pthread.h>
9439int
9440main ()
9441{
9442int i = PTHREAD_PRIO_INHERIT;
9443 ;
9444 return 0;
9445}
9446_ACEOF
9447if ac_fn_c_try_link "$LINENO"; then :
9448 ax_cv_PTHREAD_PRIO_INHERIT=yes
9449else
9450 ax_cv_PTHREAD_PRIO_INHERIT=no
9451fi
9452rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9457$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9458 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9459
9460$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9461
9462fi
9463
cristy73bd4a52010-10-05 11:24:23 +00009464 LIBS="$save_LIBS"
9465 CFLAGS="$save_CFLAGS"
9466
cristy23493c42013-04-11 16:04:59 +00009467 # More AIX lossage: compile with *_r variant
9468 if test "x$GCC" != xyes; then
9469 case $host_os in
9470 aix*)
9471 case "x/$CC" in #(
9472 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9473 #handle absolute path differently from PATH based program lookup
9474 case "x$CC" in #(
9475 x/*) :
9476 if as_fn_executable_p ${CC}_r; then :
9477 PTHREAD_CC="${CC}_r"
9478fi ;; #(
9479 *) :
9480 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009481do
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483set dummy $ac_prog; ac_word=$2
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009486if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009487 $as_echo_n "(cached) " >&6
9488else
9489 if test -n "$PTHREAD_CC"; then
9490 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9491else
9492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493for as_dir in $PATH
9494do
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009499 ac_cv_prog_PTHREAD_CC="$ac_prog"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9502 fi
9503done
9504 done
9505IFS=$as_save_IFS
9506
9507fi
9508fi
9509PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9510if test -n "$PTHREAD_CC"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9512$as_echo "$PTHREAD_CC" >&6; }
9513else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515$as_echo "no" >&6; }
9516fi
9517
9518
9519 test -n "$PTHREAD_CC" && break
9520done
cristy23493c42013-04-11 16:04:59 +00009521test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9522 ;;
9523esac ;; #(
9524 *) :
9525 ;;
9526esac
9527 ;;
9528 esac
cristya316db12011-10-24 00:49:45 +00009529 fi
cristy73bd4a52010-10-05 11:24:23 +00009530fi
9531
cristy23493c42013-04-11 16:04:59 +00009532test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9533
cristy73bd4a52010-10-05 11:24:23 +00009534
9535
9536
9537
9538# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9539if test x"$ax_pthread_ok" = xyes; then
9540
9541$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9542
9543 :
9544else
9545 ax_pthread_ok=no
9546
9547fi
9548ac_ext=c
9549ac_cpp='$CPP $CPPFLAGS'
9550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553
9554
cristy7acf8fb2010-09-23 19:58:53 +00009555 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009556 have_threads=yes
9557 DEF_THREAD="$PTHREAD_CFLAGS"
9558 CFLAGS="$CFLAGS $DEF_THREAD"
9559 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009560 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009561 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009562 { $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 +00009563$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9564 CC="$PTHREAD_CC"
9565 fi
cristy55bf91c2010-09-24 00:29:41 +00009566
9567$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9568
cristy3ed852e2009-09-05 21:47:34 +00009569 fi
9570fi
cristy1ae5c992013-07-30 14:55:07 +00009571LIBS="$LIBS $THREAD_LIBS"
9572
cristy3ed852e2009-09-05 21:47:34 +00009573
9574# Enable support for OpenMP
9575if test "$have_threads" != 'yes'; then
9576 ac_cv_prog_c_openmp=unsupported
9577fi
9578
9579 OPENMP_CFLAGS=
9580 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009581if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009582 enableval=$enable_openmp;
9583fi
9584
9585 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009588if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009589 $as_echo_n "(cached) " >&6
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009593
9594#ifndef _OPENMP
9595 choke me
9596#endif
9597#include <omp.h>
9598int main () { return omp_get_num_threads (); }
9599
9600_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009602 ac_cv_prog_c_openmp='none needed'
9603else
cristy8b350f62009-11-15 23:12:43 +00009604 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009605 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9606 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009607 ac_save_CFLAGS=$CFLAGS
9608 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009611
9612#ifndef _OPENMP
9613 choke me
9614#endif
9615#include <omp.h>
9616int main () { return omp_get_num_threads (); }
9617
9618_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009621fi
cristy8b350f62009-11-15 23:12:43 +00009622rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009624 CFLAGS=$ac_save_CFLAGS
9625 if test "$ac_cv_prog_c_openmp" != unsupported; then
9626 break
9627 fi
9628 done
9629fi
cristy8b350f62009-11-15 23:12:43 +00009630rm -f core conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009632fi
cristy8b350f62009-11-15 23:12:43 +00009633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009634$as_echo "$ac_cv_prog_c_openmp" >&6; }
9635 case $ac_cv_prog_c_openmp in #(
9636 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009637 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009638 *)
cristy8b350f62009-11-15 23:12:43 +00009639 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009640 esac
9641 fi
9642
9643
9644CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9645MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9646
cristy391f1ce2010-09-09 17:23:28 +00009647if test "$enable_openmp" != no; then
9648 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9649 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9650 fi
9651fi
cristy3ed852e2009-09-05 21:47:34 +00009652
cristy736173a2009-09-20 21:18:22 +00009653# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009654
9655
cristy73bd4a52010-10-05 11:24:23 +00009656ac_ext=c
9657ac_cpp='$CPP $CPPFLAGS'
9658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660ac_compiler_gnu=$ac_cv_c_compiler_gnu
9661
9662ax_pthread_ok=no
9663
9664# We used to check for pthread.h first, but this fails if pthread.h
9665# requires special compiler flags (e.g. on True64 or Sequent).
9666# It gets checked for in the link test anyway.
9667
9668# First of all, check if the user has set any of the PTHREAD_LIBS,
9669# etcetera environment variables, and if threads linking works using
9670# them:
9671if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9672 save_CFLAGS="$CFLAGS"
9673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9674 save_LIBS="$LIBS"
9675 LIBS="$PTHREAD_LIBS $LIBS"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9677$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
9680
9681/* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9684#ifdef __cplusplus
9685extern "C"
9686#endif
9687char pthread_join ();
9688int
9689main ()
9690{
9691return pthread_join ();
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697 ax_pthread_ok=yes
9698fi
9699rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9702$as_echo "$ax_pthread_ok" >&6; }
9703 if test x"$ax_pthread_ok" = xno; then
9704 PTHREAD_LIBS=""
9705 PTHREAD_CFLAGS=""
9706 fi
9707 LIBS="$save_LIBS"
9708 CFLAGS="$save_CFLAGS"
9709fi
9710
9711# We must check for the threads library under a number of different
9712# names; the ordering is very important because some systems
9713# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9714# libraries is broken (non-POSIX).
9715
9716# Create a list of thread flags to try. Items starting with a "-" are
9717# C compiler flags, and other items are library names, except for "none"
9718# which indicates that we try without any flags at all, and "pthread-config"
9719# which is a program returning the flags for the Pth emulation library.
9720
cristy2ec87cc2013-02-18 17:46:50 +00009721ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009722
9723# The ordering *is* (sometimes) important. Some notes on the
9724# individual items follow:
9725
9726# pthreads: AIX (must check this before -lpthread)
9727# none: in case threads are in libc; should be tried before -Kthread and
9728# other compiler flags to prevent continual compiler warnings
9729# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9730# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9731# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9732# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9733# -pthreads: Solaris/gcc
9734# -mthreads: Mingw32/gcc, Lynx/gcc
9735# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9736# doesn't hurt to check since this sometimes defines pthreads too;
9737# also defines -D_REENTRANT)
9738# ... -mt is also the pthreads flag for HP/aCC
9739# pthread: Linux, etcetera
9740# --thread-safe: KAI C++
9741# pthread-config: use pthread-config program (for GNU Pth library)
9742
cristy2ec87cc2013-02-18 17:46:50 +00009743case ${host_os} in
9744 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009745
9746 # On Solaris (at least, for some versions), libc contains stubbed
9747 # (non-functional) versions of the pthreads routines, so link-based
9748 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9749 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9750 # a function called by this macro, so we could check for that, but
9751 # who knows whether they'll stub that too in a future libc.) So,
9752 # we'll just look for -pthreads and -lpthread first:
9753
9754 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9755 ;;
9756
cristy2ec87cc2013-02-18 17:46:50 +00009757 darwin*)
cristya316db12011-10-24 00:49:45 +00009758 ax_pthread_flags="-pthread $ax_pthread_flags"
9759 ;;
cristy73bd4a52010-10-05 11:24:23 +00009760esac
9761
9762if test x"$ax_pthread_ok" = xno; then
9763for flag in $ax_pthread_flags; do
9764
9765 case $flag in
9766 none)
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9768$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9769 ;;
9770
9771 -*)
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9773$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9774 PTHREAD_CFLAGS="$flag"
9775 ;;
9776
cristya316db12011-10-24 00:49:45 +00009777 pthread-config)
9778 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009779set dummy pthread-config; ac_word=$2
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009782if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009783 $as_echo_n "(cached) " >&6
9784else
9785 if test -n "$ax_pthread_config"; then
9786 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9787else
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009795 ac_cv_prog_ax_pthread_config="yes"
9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9798 fi
9799done
9800 done
9801IFS=$as_save_IFS
9802
9803 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9804fi
9805fi
9806ax_pthread_config=$ac_cv_prog_ax_pthread_config
9807if test -n "$ax_pthread_config"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9809$as_echo "$ax_pthread_config" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
cristya316db12011-10-24 00:49:45 +00009816 if test x"$ax_pthread_config" = xno; then continue; fi
9817 PTHREAD_CFLAGS="`pthread-config --cflags`"
9818 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9819 ;;
cristy73bd4a52010-10-05 11:24:23 +00009820
9821 *)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9823$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9824 PTHREAD_LIBS="-l$flag"
9825 ;;
9826 esac
9827
9828 save_LIBS="$LIBS"
9829 save_CFLAGS="$CFLAGS"
9830 LIBS="$PTHREAD_LIBS $LIBS"
9831 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9832
9833 # Check for various functions. We must include pthread.h,
9834 # since some functions may be macros. (On the Sequent, we
9835 # need a special flag -Kthread to make this header compile.)
9836 # We check for pthread_join because it is in -lpthread on IRIX
9837 # while pthread_create is in libc. We check for pthread_attr_init
9838 # due to DEC craziness with -lpthreads. We check for
9839 # pthread_cleanup_push because it is one of the few pthread
9840 # functions on Solaris that doesn't have a non-functional libc stub.
9841 # We try pthread_create on general principles.
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h. */
9844#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009845 static void routine(void *a) { a = 0; }
9846 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009847int
9848main ()
9849{
9850pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009851 pthread_create(&th, 0, start_routine, 0);
9852 pthread_join(th, 0);
9853 pthread_attr_init(&attr);
9854 pthread_cleanup_push(routine, 0);
9855 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009856 ;
9857 return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861 ax_pthread_ok=yes
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865
9866 LIBS="$save_LIBS"
9867 CFLAGS="$save_CFLAGS"
9868
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9870$as_echo "$ax_pthread_ok" >&6; }
9871 if test "x$ax_pthread_ok" = xyes; then
9872 break;
9873 fi
9874
9875 PTHREAD_LIBS=""
9876 PTHREAD_CFLAGS=""
9877done
9878fi
9879
9880# Various other checks:
9881if test "x$ax_pthread_ok" = xyes; then
9882 save_LIBS="$LIBS"
9883 LIBS="$PTHREAD_LIBS $LIBS"
9884 save_CFLAGS="$CFLAGS"
9885 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9886
9887 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009889$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009890 attr_name=unknown
9891 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009893/* end confdefs.h. */
9894#include <pthread.h>
9895int
9896main ()
9897{
cristya316db12011-10-24 00:49:45 +00009898int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009899 ;
9900 return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904 attr_name=$attr; break
9905fi
9906rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009908 done
cristy73bd4a52010-10-05 11:24:23 +00009909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9910$as_echo "$attr_name" >&6; }
9911 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9912
9913cat >>confdefs.h <<_ACEOF
9914#define PTHREAD_CREATE_JOINABLE $attr_name
9915_ACEOF
9916
9917 fi
9918
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9920$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9921 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009922 case ${host_os} in
9923 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9924 osf* | hpux*) flag="-D_REENTRANT";;
9925 solaris*)
9926 if test "$GCC" = "yes"; then
9927 flag="-D_REENTRANT"
9928 else
9929 flag="-mt -D_REENTRANT"
9930 fi
9931 ;;
cristy73bd4a52010-10-05 11:24:23 +00009932 esac
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9934$as_echo "${flag}" >&6; }
9935 if test "x$flag" != xno; then
9936 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9937 fi
9938
cristya316db12011-10-24 00:49:45 +00009939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9940$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9941if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943else
9944
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946/* end confdefs.h. */
9947
9948 #include <pthread.h>
9949int
9950main ()
9951{
9952int i = PTHREAD_PRIO_INHERIT;
9953 ;
9954 return 0;
9955}
9956_ACEOF
9957if ac_fn_c_try_link "$LINENO"; then :
9958 ax_cv_PTHREAD_PRIO_INHERIT=yes
9959else
9960 ax_cv_PTHREAD_PRIO_INHERIT=no
9961fi
9962rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964
9965fi
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9967$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9968 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9969
9970$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9971
9972fi
9973
cristy73bd4a52010-10-05 11:24:23 +00009974 LIBS="$save_LIBS"
9975 CFLAGS="$save_CFLAGS"
9976
cristy23493c42013-04-11 16:04:59 +00009977 # More AIX lossage: compile with *_r variant
9978 if test "x$GCC" != xyes; then
9979 case $host_os in
9980 aix*)
9981 case "x/$CC" in #(
9982 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9983 #handle absolute path differently from PATH based program lookup
9984 case "x$CC" in #(
9985 x/*) :
9986 if as_fn_executable_p ${CC}_r; then :
9987 PTHREAD_CC="${CC}_r"
9988fi ;; #(
9989 *) :
9990 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009991do
9992 # Extract the first word of "$ac_prog", so it can be a program name with args.
9993set dummy $ac_prog; ac_word=$2
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009996if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009997 $as_echo_n "(cached) " >&6
9998else
9999 if test -n "$PTHREAD_CC"; then
10000 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010009 ac_cv_prog_PTHREAD_CC="$ac_prog"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013done
10014 done
10015IFS=$as_save_IFS
10016
10017fi
10018fi
10019PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10020if test -n "$PTHREAD_CC"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10022$as_echo "$PTHREAD_CC" >&6; }
10023else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025$as_echo "no" >&6; }
10026fi
10027
10028
10029 test -n "$PTHREAD_CC" && break
10030done
cristy23493c42013-04-11 16:04:59 +000010031test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10032 ;;
10033esac ;; #(
10034 *) :
10035 ;;
10036esac
10037 ;;
10038 esac
cristya316db12011-10-24 00:49:45 +000010039 fi
cristy73bd4a52010-10-05 11:24:23 +000010040fi
10041
cristy23493c42013-04-11 16:04:59 +000010042test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10043
cristy73bd4a52010-10-05 11:24:23 +000010044
10045
10046
10047
10048# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10049if test x"$ax_pthread_ok" = xyes; then
10050
10051$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10052
10053 :
10054else
10055 ax_pthread_ok=no
10056
10057fi
10058ac_ext=c
10059ac_cpp='$CPP $CPPFLAGS'
10060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10062ac_compiler_gnu=$ac_cv_c_compiler_gnu
10063
10064
10065
10066# Check whether --enable-opencl was given.
10067if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010068 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010069else
cristy48794642012-09-02 15:19:08 +000010070 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010071fi
10072
10073
cristy48794642012-09-02 15:19:08 +000010074if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010075 ac_ext=c
10076ac_cpp='$CPP $CPPFLAGS'
10077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10079ac_compiler_gnu=$ac_cv_c_compiler_gnu
10080
cristy75314cc2012-09-15 23:08:29 +000010081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10082$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10083if ${ax_cv_c_compiler_ms+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h. */
10088
10089int
10090main ()
10091{
10092#ifndef _MSC_VER
10093 choke me
10094#endif
10095
10096 ;
10097 return 0;
10098}
10099_ACEOF
10100if ac_fn_c_try_compile "$LINENO"; then :
10101 ax_compiler_ms=yes
10102else
10103 ax_compiler_ms=no
10104fi
10105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106ax_cv_c_compiler_ms=$ax_compiler_ms
10107
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10110$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010111 if test X$ax_compiler_ms = Xno; then :
10112 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10113fi
10114
10115 ax_save_CPPFLAGS=$CPPFLAGS
10116 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10117 for ac_header in CL/cl.h OpenCL/cl.h
10118do :
10119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10120ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010121if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010122 cat >>confdefs.h <<_ACEOF
10123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10124_ACEOF
10125
10126fi
10127
10128done
10129
10130 CPPFLAGS=$ax_save_CPPFLAGS
10131
10132 for ac_header in windows.h
10133do :
10134 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010135if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010136 cat >>confdefs.h <<_ACEOF
10137#define HAVE_WINDOWS_H 1
10138_ACEOF
10139
10140fi
10141
10142done
10143
10144
10145
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10148$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010149if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010150 $as_echo_n "(cached) " >&6
10151else
10152 ax_cv_check_cl_libcl=no
10153 case $host_cpu in
10154 x86_64) ax_check_cl_libdir=lib64 ;;
10155 *) ax_check_cl_libdir=lib ;;
10156 esac
10157 ax_save_CPPFLAGS=$CPPFLAGS
10158 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10159 ax_save_LIBS=$LIBS
10160 LIBS=""
10161 ax_check_libs="-lOpenCL -lCL -lclparser"
10162 for ax_lib in $ax_check_libs; do
10163 if test X$ax_compiler_ms = Xyes; then :
10164 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10165else
10166 ax_try_lib=$ax_lib
10167fi
10168 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h. */
10171
10172 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10173 # include <windows.h>
10174 # endif
10175 # ifdef HAVE_CL_CL_H
10176 # include <CL/cl.h>
10177 # elif defined(HAVE_OPENCL_CL_H)
10178 # include <OpenCL/cl.h>
10179 # else
10180 # error no CL.h
10181 # endif
10182int
10183main ()
10184{
10185clCreateContextFromType(0,0,0,0,0)
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191 ax_cv_check_cl_libcl=$ax_try_lib; break
10192else
10193 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"
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h. */
10196
10197 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10198 # include <windows.h>
10199 # endif
10200 # ifdef HAVE_CL_CL_H
10201 # include <CL/cl.h>
10202 # elif defined(HAVE_OPENCL_CL_H)
10203 # include <OpenCL/cl.h>
10204 # else
10205 # error no CL.h
10206 # endif
10207int
10208main ()
10209{
10210clCreateContextFromType(0,0,0,0,0)
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215if ac_fn_c_try_link "$LINENO"; then :
10216 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10217else
cristy78c5a0c2010-12-04 20:00:59 +000010218 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 +000010219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220/* end confdefs.h. */
10221
10222 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10223 # include <windows.h>
10224 # endif
10225 # ifdef HAVE_CL_CL_H
10226 # include <CL/cl.h>
10227 # elif defined(HAVE_OPENCL_CL_H)
10228 # include <OpenCL/cl.h>
10229 # else
10230 # error no CL.h
10231 # endif
10232int
10233main ()
10234{
10235clCreateContextFromType(0,0,0,0,0)
10236 ;
10237 return 0;
10238}
10239_ACEOF
10240if ac_fn_c_try_link "$LINENO"; then :
10241 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10242fi
10243rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245fi
10246rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248fi
10249rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 done
10252
cristyc3f8b8e2011-12-22 14:55:16 +000010253 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010254 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h. */
10257
10258 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10259 # include <windows.h>
10260 # endif
10261 # ifdef HAVE_CL_CL_H
10262 # include <CL/cl.h>
10263 # elif defined(HAVE_OPENCL_CL_H)
10264 # include <OpenCL/cl.h>
10265 # else
10266 # error no CL.h
10267 # endif
10268int
10269main ()
10270{
10271clCreateContextFromType(0,0,0,0,0)
10272 ;
10273 return 0;
10274}
10275_ACEOF
10276if ac_fn_c_try_link "$LINENO"; then :
10277 ax_cv_check_cl_libcl=$LIBS
10278fi
10279rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281fi
10282
10283 LIBS=$ax_save_LIBS
10284 CPPFLAGS=$ax_save_CPPFLAGS
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10287$as_echo "$ax_cv_check_cl_libcl" >&6; }
10288
10289 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10290 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10291else
10292 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10293$as_echo "#define _OPENCL 1" >>confdefs.h
10294
10295fi
10296 ac_ext=c
10297ac_cpp='$CPP $CPPFLAGS'
10298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10300ac_compiler_gnu=$ac_cv_c_compiler_gnu
10301
10302fi
10303
10304
10305
10306
cristyc7083c12009-10-14 03:16:55 +000010307CFLAGS="$CL_CFLAGS $CFLAGS"
10308LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010309
cristy391f1ce2010-09-09 17:23:28 +000010310if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010311 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010312 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10313 fi
cristyfd9dcd42010-08-08 18:07:02 +000010314fi
cristy2e8b51d2009-10-17 18:26:15 +000010315
cristy3ed852e2009-09-05 21:47:34 +000010316########
10317#
10318# Check for large file support
10319#
10320########
10321# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010322if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010323 enableval=$enable_largefile;
10324fi
10325
10326if test "$enable_largefile" != no; then
10327
cristy8b350f62009-11-15 23:12:43 +000010328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010329$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010330if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010331 $as_echo_n "(cached) " >&6
10332else
10333 ac_cv_sys_largefile_CC=no
10334 if test "$GCC" != yes; then
10335 ac_save_CC=$CC
10336 while :; do
10337 # IRIX 6.2 and later do not support large files by default,
10338 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010340/* end confdefs.h. */
10341#include <sys/types.h>
10342 /* Check that off_t can represent 2**63 - 1 correctly.
10343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10344 since some C++ compilers masquerading as C compilers
10345 incorrectly reject 9223372036854775807. */
10346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10348 && LARGE_OFF_T % 2147483647 == 1)
10349 ? 1 : -1];
10350int
10351main ()
10352{
10353
10354 ;
10355 return 0;
10356}
10357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010358 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010359 break
cristy3ed852e2009-09-05 21:47:34 +000010360fi
cristy3ed852e2009-09-05 21:47:34 +000010361rm -f core conftest.err conftest.$ac_objext
10362 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010363 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010364 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010365fi
cristy3ed852e2009-09-05 21:47:34 +000010366rm -f core conftest.err conftest.$ac_objext
10367 break
10368 done
10369 CC=$ac_save_CC
10370 rm -f conftest.$ac_ext
10371 fi
10372fi
cristy8b350f62009-11-15 23:12:43 +000010373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010374$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10375 if test "$ac_cv_sys_largefile_CC" != no; then
10376 CC=$CC$ac_cv_sys_largefile_CC
10377 fi
10378
cristy8b350f62009-11-15 23:12:43 +000010379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010381if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010382 $as_echo_n "(cached) " >&6
10383else
10384 while :; do
cristy8b350f62009-11-15 23:12:43 +000010385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010386/* end confdefs.h. */
10387#include <sys/types.h>
10388 /* Check that off_t can represent 2**63 - 1 correctly.
10389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10390 since some C++ compilers masquerading as C compilers
10391 incorrectly reject 9223372036854775807. */
10392#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10394 && LARGE_OFF_T % 2147483647 == 1)
10395 ? 1 : -1];
10396int
10397main ()
10398{
10399
10400 ;
10401 return 0;
10402}
10403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010404if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010405 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010406fi
cristy3ed852e2009-09-05 21:47:34 +000010407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010409/* end confdefs.h. */
10410#define _FILE_OFFSET_BITS 64
10411#include <sys/types.h>
10412 /* Check that off_t can represent 2**63 - 1 correctly.
10413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10414 since some C++ compilers masquerading as C compilers
10415 incorrectly reject 9223372036854775807. */
10416#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10418 && LARGE_OFF_T % 2147483647 == 1)
10419 ? 1 : -1];
10420int
10421main ()
10422{
10423
10424 ;
10425 return 0;
10426}
10427_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010428if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010429 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010430fi
cristy3ed852e2009-09-05 21:47:34 +000010431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 ac_cv_sys_file_offset_bits=unknown
10433 break
10434done
10435fi
cristy8b350f62009-11-15 23:12:43 +000010436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010437$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10438case $ac_cv_sys_file_offset_bits in #(
10439 no | unknown) ;;
10440 *)
10441cat >>confdefs.h <<_ACEOF
10442#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10443_ACEOF
10444;;
10445esac
10446rm -rf conftest*
10447 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010450if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010451 $as_echo_n "(cached) " >&6
10452else
10453 while :; do
cristy8b350f62009-11-15 23:12:43 +000010454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010455/* end confdefs.h. */
10456#include <sys/types.h>
10457 /* Check that off_t can represent 2**63 - 1 correctly.
10458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10459 since some C++ compilers masquerading as C compilers
10460 incorrectly reject 9223372036854775807. */
10461#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10463 && LARGE_OFF_T % 2147483647 == 1)
10464 ? 1 : -1];
10465int
10466main ()
10467{
10468
10469 ;
10470 return 0;
10471}
10472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010473if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010474 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010475fi
cristy3ed852e2009-09-05 21:47:34 +000010476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010478/* end confdefs.h. */
10479#define _LARGE_FILES 1
10480#include <sys/types.h>
10481 /* Check that off_t can represent 2**63 - 1 correctly.
10482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10483 since some C++ compilers masquerading as C compilers
10484 incorrectly reject 9223372036854775807. */
10485#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10487 && LARGE_OFF_T % 2147483647 == 1)
10488 ? 1 : -1];
10489int
10490main ()
10491{
10492
10493 ;
10494 return 0;
10495}
10496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010497if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010498 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010499fi
cristy3ed852e2009-09-05 21:47:34 +000010500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 ac_cv_sys_large_files=unknown
10502 break
10503done
10504fi
cristy8b350f62009-11-15 23:12:43 +000010505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010506$as_echo "$ac_cv_sys_large_files" >&6; }
10507case $ac_cv_sys_large_files in #(
10508 no | unknown) ;;
10509 *)
10510cat >>confdefs.h <<_ACEOF
10511#define _LARGE_FILES $ac_cv_sys_large_files
10512_ACEOF
10513;;
10514esac
10515rm -rf conftest*
10516 fi
cristy14fefe52012-05-21 00:59:18 +000010517
10518
cristy3ed852e2009-09-05 21:47:34 +000010519fi
10520
cristy8b350f62009-11-15 23:12:43 +000010521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010522$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010523if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010524 $as_echo_n "(cached) " >&6
10525else
10526 while :; do
cristy8b350f62009-11-15 23:12:43 +000010527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010528/* end confdefs.h. */
10529#include <sys/types.h> /* for off_t */
10530 #include <stdio.h>
10531int
10532main ()
10533{
10534int (*fp) (FILE *, off_t, int) = fseeko;
10535 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10536 ;
10537 return 0;
10538}
10539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010541 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010542fi
cristy8b350f62009-11-15 23:12:43 +000010543rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010546/* end confdefs.h. */
10547#define _LARGEFILE_SOURCE 1
10548#include <sys/types.h> /* for off_t */
10549 #include <stdio.h>
10550int
10551main ()
10552{
10553int (*fp) (FILE *, off_t, int) = fseeko;
10554 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10555 ;
10556 return 0;
10557}
10558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010560 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010561fi
cristy8b350f62009-11-15 23:12:43 +000010562rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010564 ac_cv_sys_largefile_source=unknown
10565 break
10566done
10567fi
cristy8b350f62009-11-15 23:12:43 +000010568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010569$as_echo "$ac_cv_sys_largefile_source" >&6; }
10570case $ac_cv_sys_largefile_source in #(
10571 no | unknown) ;;
10572 *)
10573cat >>confdefs.h <<_ACEOF
10574#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10575_ACEOF
10576;;
10577esac
10578rm -rf conftest*
10579
10580# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10581# in glibc 2.1.3, but that breaks too many other things.
10582# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10583if test $ac_cv_sys_largefile_source != unknown; then
10584
cristy8b350f62009-11-15 23:12:43 +000010585$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010586
10587fi
10588
10589LFS_CPPFLAGS=''
10590if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010591 case $ac_cv_sys_file_offset_bits in
10592 no)
10593 # nothing to do here as the host supports LFS fine
10594 ;;
10595 unknown)
cristy8b350f62009-11-15 23:12:43 +000010596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010597$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010598 if test "$cross_compiling" = yes; then :
10599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010601as_fn_error $? "cannot run test program while cross compiling
10602See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010603else
cristy8b350f62009-11-15 23:12:43 +000010604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010606#include <unistd.h>
10607 main () {
10608 exit(!(sizeof(off_t) == 8));
10609 }
cristyda16f162011-02-19 23:52:17 +000010610int
10611main ()
10612{
10613
10614 ;
10615 return 0;
10616}
cristy3ed852e2009-09-05 21:47:34 +000010617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010618if ac_fn_c_try_run "$LINENO"; then :
10619 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010620
cristyad38abe2012-12-23 23:03:21 +000010621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10622$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010623else
cristyad38abe2012-12-23 23:03:21 +000010624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010626fi
cristy8b350f62009-11-15 23:12:43 +000010627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10628 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010629fi
10630
cristyc1e0cc12011-09-21 16:41:16 +000010631 ;;
10632 *)
10633 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10634 ;;
10635 esac
cristy3ed852e2009-09-05 21:47:34 +000010636 if test "$ac_cv_sys_large_files" != 'no'; then
10637 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10638 fi
10639 if test "$ac_cv_sys_largefile_source" != 'no'; then
10640 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10641 fi
10642fi
10643
10644
cristy3ed852e2009-09-05 21:47:34 +000010645# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010646enable_dlopen=yes
10647
10648
10649
10650case `pwd` in
10651 *\ * | *\ *)
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10653$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10654esac
10655
10656
10657
cristy99bd5232011-12-07 14:38:20 +000010658macro_version='2.4.2'
10659macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673ltmain="$ac_aux_dir/ltmain.sh"
10674
cristy0c60a692010-11-04 01:09:47 +000010675# Backslashify metacharacters that are still active within
10676# double-quoted strings.
10677sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10678
10679# Same as above, but do not quote variable references.
10680double_quote_subst='s/\(["`\\]\)/\\\1/g'
10681
10682# Sed substitution to delay expansion of an escaped shell variable in a
10683# double_quote_subst'ed string.
10684delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10685
10686# Sed substitution to delay expansion of an escaped single quote.
10687delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10688
10689# Sed substitution to avoid accidental globbing in evaled expressions
10690no_glob_subst='s/\*/\\\*/g'
10691
cristy73bd4a52010-10-05 11:24:23 +000010692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10693$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010694if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010695 $as_echo_n "(cached) " >&6
10696else
10697 if test -n "$NM"; then
10698 # Let the user override the test.
10699 lt_cv_path_NM="$NM"
10700else
10701 lt_nm_to_check="${ac_tool_prefix}nm"
10702 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10703 lt_nm_to_check="$lt_nm_to_check nm"
10704 fi
10705 for lt_tmp_nm in $lt_nm_to_check; do
10706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10707 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10708 IFS="$lt_save_ifs"
10709 test -z "$ac_dir" && ac_dir=.
10710 tmp_nm="$ac_dir/$lt_tmp_nm"
10711 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10712 # Check to see if the nm accepts a BSD-compat flag.
10713 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10714 # nm: unknown option "B" ignored
10715 # Tru64's nm complains that /dev/null is an invalid object file
10716 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10717 */dev/null* | *'Invalid file or object type'*)
10718 lt_cv_path_NM="$tmp_nm -B"
10719 break
10720 ;;
10721 *)
10722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10723 */dev/null*)
10724 lt_cv_path_NM="$tmp_nm -p"
10725 break
10726 ;;
10727 *)
10728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10729 continue # so that we can try to find one that supports BSD flags
10730 ;;
10731 esac
10732 ;;
10733 esac
10734 fi
10735 done
10736 IFS="$lt_save_ifs"
10737 done
10738 : ${lt_cv_path_NM=no}
10739fi
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10742$as_echo "$lt_cv_path_NM" >&6; }
10743if test "$lt_cv_path_NM" != "no"; then
10744 NM="$lt_cv_path_NM"
10745else
10746 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010747 if test -n "$DUMPBIN"; then :
10748 # Let the user override the test.
10749 else
10750 if test -n "$ac_tool_prefix"; then
10751 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010752 do
10753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010757if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010758 $as_echo_n "(cached) " >&6
10759else
10760 if test -n "$DUMPBIN"; then
10761 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10762else
10763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764for as_dir in $PATH
10765do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010770 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10773 fi
10774done
10775 done
10776IFS=$as_save_IFS
10777
10778fi
10779fi
10780DUMPBIN=$ac_cv_prog_DUMPBIN
10781if test -n "$DUMPBIN"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10783$as_echo "$DUMPBIN" >&6; }
10784else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
10787fi
10788
10789
10790 test -n "$DUMPBIN" && break
10791 done
10792fi
10793if test -z "$DUMPBIN"; then
10794 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010795 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010796do
10797 # Extract the first word of "$ac_prog", so it can be a program name with args.
10798set dummy $ac_prog; ac_word=$2
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010801if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010802 $as_echo_n "(cached) " >&6
10803else
10804 if test -n "$ac_ct_DUMPBIN"; then
10805 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819 done
10820IFS=$as_save_IFS
10821
10822fi
10823fi
10824ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10825if test -n "$ac_ct_DUMPBIN"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10827$as_echo "$ac_ct_DUMPBIN" >&6; }
10828else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830$as_echo "no" >&6; }
10831fi
10832
10833
10834 test -n "$ac_ct_DUMPBIN" && break
10835done
10836
10837 if test "x$ac_ct_DUMPBIN" = x; then
10838 DUMPBIN=":"
10839 else
10840 case $cross_compiling:$ac_tool_warned in
10841yes:)
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10844ac_tool_warned=yes ;;
10845esac
10846 DUMPBIN=$ac_ct_DUMPBIN
10847 fi
10848fi
10849
cristy0c60a692010-11-04 01:09:47 +000010850 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10851 *COFF*)
10852 DUMPBIN="$DUMPBIN -symbols"
10853 ;;
10854 *)
10855 DUMPBIN=:
10856 ;;
10857 esac
10858 fi
cristy73bd4a52010-10-05 11:24:23 +000010859
10860 if test "$DUMPBIN" != ":"; then
10861 NM="$DUMPBIN"
10862 fi
10863fi
10864test -z "$NM" && NM=nm
10865
10866
10867
10868
10869
10870
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10872$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010873if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010874 $as_echo_n "(cached) " >&6
10875else
10876 lt_cv_nm_interface="BSD nm"
10877 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010878 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010879 (eval "$ac_compile" 2>conftest.err)
10880 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010881 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10883 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010884 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010885 cat conftest.out >&5
10886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10887 lt_cv_nm_interface="MS dumpbin"
10888 fi
10889 rm -f conftest*
10890fi
10891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10892$as_echo "$lt_cv_nm_interface" >&6; }
10893
10894# find the maximum length of command line arguments
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10896$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010897if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010898 $as_echo_n "(cached) " >&6
10899else
10900 i=0
10901 teststring="ABCD"
10902
10903 case $build_os in
10904 msdosdjgpp*)
10905 # On DJGPP, this test can blow up pretty badly due to problems in libc
10906 # (any single argument exceeding 2000 bytes causes a buffer overrun
10907 # during glob expansion). Even if it were fixed, the result of this
10908 # check would be larger than it should be.
10909 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10910 ;;
10911
10912 gnu*)
10913 # Under GNU Hurd, this test is not required because there is
10914 # no limit to the length of command line arguments.
10915 # Libtool will interpret -1 as no limit whatsoever
10916 lt_cv_sys_max_cmd_len=-1;
10917 ;;
10918
10919 cygwin* | mingw* | cegcc*)
10920 # On Win9x/ME, this test blows up -- it succeeds, but takes
10921 # about 5 minutes as the teststring grows exponentially.
10922 # Worse, since 9x/ME are not pre-emptively multitasking,
10923 # you end up with a "frozen" computer, even though with patience
10924 # the test eventually succeeds (with a max line length of 256k).
10925 # Instead, let's just punt: use the minimum linelength reported by
10926 # all of the supported platforms: 8192 (on NT/2K/XP).
10927 lt_cv_sys_max_cmd_len=8192;
10928 ;;
10929
cristy0c60a692010-11-04 01:09:47 +000010930 mint*)
10931 # On MiNT this can take a long time and run out of memory.
10932 lt_cv_sys_max_cmd_len=8192;
10933 ;;
10934
cristy73bd4a52010-10-05 11:24:23 +000010935 amigaos*)
10936 # On AmigaOS with pdksh, this test takes hours, literally.
10937 # So we just punt and use a minimum line length of 8192.
10938 lt_cv_sys_max_cmd_len=8192;
10939 ;;
10940
10941 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10942 # This has been around since 386BSD, at least. Likely further.
10943 if test -x /sbin/sysctl; then
10944 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10945 elif test -x /usr/sbin/sysctl; then
10946 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10947 else
10948 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10949 fi
10950 # And add a safety zone
10951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10953 ;;
10954
10955 interix*)
10956 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10957 lt_cv_sys_max_cmd_len=196608
10958 ;;
10959
cristy99bd5232011-12-07 14:38:20 +000010960 os2*)
10961 # The test takes a long time on OS/2.
10962 lt_cv_sys_max_cmd_len=8192
10963 ;;
10964
cristy73bd4a52010-10-05 11:24:23 +000010965 osf*)
10966 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10967 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10968 # nice to cause kernel panics so lets avoid the loop below.
10969 # First set a reasonable default.
10970 lt_cv_sys_max_cmd_len=16384
10971 #
10972 if test -x /sbin/sysconfig; then
10973 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10974 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10975 esac
10976 fi
10977 ;;
10978 sco3.2v5*)
10979 lt_cv_sys_max_cmd_len=102400
10980 ;;
10981 sysv5* | sco5v6* | sysv4.2uw2*)
10982 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10983 if test -n "$kargmax"; then
10984 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10985 else
10986 lt_cv_sys_max_cmd_len=32768
10987 fi
10988 ;;
10989 *)
10990 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10991 if test -n "$lt_cv_sys_max_cmd_len"; then
10992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10994 else
10995 # Make teststring a little bigger before we do anything with it.
10996 # a 1K string should be a reasonable start.
10997 for i in 1 2 3 4 5 6 7 8 ; do
10998 teststring=$teststring$teststring
10999 done
11000 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11001 # If test is not a shell built-in, we'll probably end up computing a
11002 # maximum length that is only half of the actual maximum length, but
11003 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011004 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011005 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011006 test $i != 17 # 1/2 MB should be enough
11007 do
11008 i=`expr $i + 1`
11009 teststring=$teststring$teststring
11010 done
11011 # Only check the string length outside the loop.
11012 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11013 teststring=
11014 # Add a significant safety factor because C++ compilers can tack on
11015 # massive amounts of additional arguments before passing them to the
11016 # linker. It appears as though 1/2 is a usable value.
11017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11018 fi
11019 ;;
11020 esac
11021
11022fi
11023
11024if test -n $lt_cv_sys_max_cmd_len ; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11026$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11027else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11029$as_echo "none" >&6; }
11030fi
11031max_cmd_len=$lt_cv_sys_max_cmd_len
11032
11033
11034
11035
11036
11037
11038: ${CP="cp -f"}
11039: ${MV="mv -f"}
11040: ${RM="rm -f"}
11041
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11043$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11044# Try some XSI features
11045xsi_shell=no
11046( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011047 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11048 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011049 && eval 'test $(( 1 + 1 )) -eq 2 \
11050 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11051 && xsi_shell=yes
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11053$as_echo "$xsi_shell" >&6; }
11054
11055
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11057$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11058lt_shell_append=no
11059( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11060 >/dev/null 2>&1 \
11061 && lt_shell_append=yes
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11063$as_echo "$lt_shell_append" >&6; }
11064
11065
11066if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11067 lt_unset=unset
11068else
11069 lt_unset=false
11070fi
11071
11072
11073
11074
11075
11076# test EBCDIC or ASCII
11077case `echo X|tr X '\101'` in
11078 A) # ASCII based system
11079 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11080 lt_SP2NL='tr \040 \012'
11081 lt_NL2SP='tr \015\012 \040\040'
11082 ;;
11083 *) # EBCDIC based system
11084 lt_SP2NL='tr \100 \n'
11085 lt_NL2SP='tr \r\n \100\100'
11086 ;;
11087esac
11088
11089
11090
11091
11092
11093
11094
11095
11096
cristyda16f162011-02-19 23:52:17 +000011097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11098$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11099if ${lt_cv_to_host_file_cmd+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 case $host in
11103 *-*-mingw* )
11104 case $build in
11105 *-*-mingw* ) # actually msys
11106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11107 ;;
11108 *-*-cygwin* )
11109 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11110 ;;
11111 * ) # otherwise, assume *nix
11112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11113 ;;
11114 esac
11115 ;;
11116 *-*-cygwin* )
11117 case $build in
11118 *-*-mingw* ) # actually msys
11119 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11120 ;;
11121 *-*-cygwin* )
11122 lt_cv_to_host_file_cmd=func_convert_file_noop
11123 ;;
11124 * ) # otherwise, assume *nix
11125 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11126 ;;
11127 esac
11128 ;;
11129 * ) # unhandled hosts (and "normal" native builds)
11130 lt_cv_to_host_file_cmd=func_convert_file_noop
11131 ;;
11132esac
11133
11134fi
11135
11136to_host_file_cmd=$lt_cv_to_host_file_cmd
11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11138$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11139
11140
11141
11142
11143
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11145$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11146if ${lt_cv_to_tool_file_cmd+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148else
11149 #assume ordinary cross tools, or native build.
11150lt_cv_to_tool_file_cmd=func_convert_file_noop
11151case $host in
11152 *-*-mingw* )
11153 case $build in
11154 *-*-mingw* ) # actually msys
11155 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11156 ;;
11157 esac
11158 ;;
11159esac
11160
11161fi
11162
11163to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11165$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11166
11167
11168
11169
11170
cristy73bd4a52010-10-05 11:24:23 +000011171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11172$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011173if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011174 $as_echo_n "(cached) " >&6
11175else
11176 lt_cv_ld_reload_flag='-r'
11177fi
11178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11179$as_echo "$lt_cv_ld_reload_flag" >&6; }
11180reload_flag=$lt_cv_ld_reload_flag
11181case $reload_flag in
11182"" | " "*) ;;
11183*) reload_flag=" $reload_flag" ;;
11184esac
11185reload_cmds='$LD$reload_flag -o $output$reload_objs'
11186case $host_os in
cristyda16f162011-02-19 23:52:17 +000011187 cygwin* | mingw* | pw32* | cegcc*)
11188 if test "$GCC" != yes; then
11189 reload_cmds=false
11190 fi
11191 ;;
cristy73bd4a52010-10-05 11:24:23 +000011192 darwin*)
11193 if test "$GCC" = yes; then
11194 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11195 else
11196 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11197 fi
11198 ;;
11199esac
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209if test -n "$ac_tool_prefix"; then
11210 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11211set dummy ${ac_tool_prefix}objdump; ac_word=$2
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011214if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$OBJDUMP"; then
11218 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011227 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231done
11232 done
11233IFS=$as_save_IFS
11234
11235fi
11236fi
11237OBJDUMP=$ac_cv_prog_OBJDUMP
11238if test -n "$OBJDUMP"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11240$as_echo "$OBJDUMP" >&6; }
11241else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
11244fi
11245
11246
11247fi
11248if test -z "$ac_cv_prog_OBJDUMP"; then
11249 ac_ct_OBJDUMP=$OBJDUMP
11250 # Extract the first word of "objdump", so it can be a program name with args.
11251set dummy objdump; ac_word=$2
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011254if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011255 $as_echo_n "(cached) " >&6
11256else
11257 if test -n "$ac_ct_OBJDUMP"; then
11258 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011267 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 break 2
11270 fi
11271done
11272 done
11273IFS=$as_save_IFS
11274
11275fi
11276fi
11277ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11278if test -n "$ac_ct_OBJDUMP"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11280$as_echo "$ac_ct_OBJDUMP" >&6; }
11281else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
11284fi
11285
11286 if test "x$ac_ct_OBJDUMP" = x; then
11287 OBJDUMP="false"
11288 else
11289 case $cross_compiling:$ac_tool_warned in
11290yes:)
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11293ac_tool_warned=yes ;;
11294esac
11295 OBJDUMP=$ac_ct_OBJDUMP
11296 fi
11297else
11298 OBJDUMP="$ac_cv_prog_OBJDUMP"
11299fi
11300
11301test -z "$OBJDUMP" && OBJDUMP=objdump
11302
11303
11304
11305
11306
11307
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11309$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011310if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011311 $as_echo_n "(cached) " >&6
11312else
11313 lt_cv_file_magic_cmd='$MAGIC_CMD'
11314lt_cv_file_magic_test_file=
11315lt_cv_deplibs_check_method='unknown'
11316# Need to set the preceding variable on all platforms that support
11317# interlibrary dependencies.
11318# 'none' -- dependencies not supported.
11319# `unknown' -- same as none, but documents that we really don't know.
11320# 'pass_all' -- all dependencies passed with no checks.
11321# 'test_compile' -- check by making test program.
11322# 'file_magic [[regex]]' -- check by looking for files in library path
11323# which responds to the $file_magic_cmd with a given extended regex.
11324# If you have `file' or equivalent on your system and you're not sure
11325# whether `pass_all' will *always* work, you probably want this one.
11326
11327case $host_os in
11328aix[4-9]*)
11329 lt_cv_deplibs_check_method=pass_all
11330 ;;
11331
11332beos*)
11333 lt_cv_deplibs_check_method=pass_all
11334 ;;
11335
11336bsdi[45]*)
11337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11338 lt_cv_file_magic_cmd='/usr/bin/file -L'
11339 lt_cv_file_magic_test_file=/shlib/libc.so
11340 ;;
11341
11342cygwin*)
11343 # func_win32_libid is a shell function defined in ltmain.sh
11344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11345 lt_cv_file_magic_cmd='func_win32_libid'
11346 ;;
11347
11348mingw* | pw32*)
11349 # Base MSYS/MinGW do not provide the 'file' command needed by
11350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11351 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011352 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11353 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11355 lt_cv_file_magic_cmd='func_win32_libid'
11356 else
cristy0c60a692010-11-04 01:09:47 +000011357 # Keep this pattern in sync with the one in func_win32_libid.
11358 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 +000011359 lt_cv_file_magic_cmd='$OBJDUMP -f'
11360 fi
11361 ;;
11362
cristy0c60a692010-11-04 01:09:47 +000011363cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011364 # use the weaker test based on 'objdump'. See mingw*.
11365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11366 lt_cv_file_magic_cmd='$OBJDUMP -f'
11367 ;;
11368
11369darwin* | rhapsody*)
11370 lt_cv_deplibs_check_method=pass_all
11371 ;;
11372
11373freebsd* | dragonfly*)
11374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11375 case $host_cpu in
11376 i*86 )
11377 # Not sure whether the presence of OpenBSD here was a mistake.
11378 # Let's accept both of them until this is cleared up.
11379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11380 lt_cv_file_magic_cmd=/usr/bin/file
11381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11382 ;;
11383 esac
11384 else
11385 lt_cv_deplibs_check_method=pass_all
11386 fi
11387 ;;
11388
11389gnu*)
11390 lt_cv_deplibs_check_method=pass_all
11391 ;;
11392
cristy0c60a692010-11-04 01:09:47 +000011393haiku*)
11394 lt_cv_deplibs_check_method=pass_all
11395 ;;
11396
cristy73bd4a52010-10-05 11:24:23 +000011397hpux10.20* | hpux11*)
11398 lt_cv_file_magic_cmd=/usr/bin/file
11399 case $host_cpu in
11400 ia64*)
11401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11403 ;;
11404 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011405 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 +000011406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11407 ;;
11408 *)
cristy0c60a692010-11-04 01:09:47 +000011409 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 +000011410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11411 ;;
11412 esac
11413 ;;
11414
11415interix[3-9]*)
11416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11418 ;;
11419
11420irix5* | irix6* | nonstopux*)
11421 case $LD in
11422 *-32|*"-32 ") libmagic=32-bit;;
11423 *-n32|*"-n32 ") libmagic=N32;;
11424 *-64|*"-64 ") libmagic=64-bit;;
11425 *) libmagic=never-match;;
11426 esac
11427 lt_cv_deplibs_check_method=pass_all
11428 ;;
11429
cristy99bd5232011-12-07 14:38:20 +000011430# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011431linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011432 lt_cv_deplibs_check_method=pass_all
11433 ;;
11434
11435netbsd*)
11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11438 else
11439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11440 fi
11441 ;;
11442
11443newos6*)
11444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11445 lt_cv_file_magic_cmd=/usr/bin/file
11446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11447 ;;
11448
11449*nto* | *qnx*)
11450 lt_cv_deplibs_check_method=pass_all
11451 ;;
11452
11453openbsd*)
11454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11456 else
11457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11458 fi
11459 ;;
11460
11461osf3* | osf4* | osf5*)
11462 lt_cv_deplibs_check_method=pass_all
11463 ;;
11464
11465rdos*)
11466 lt_cv_deplibs_check_method=pass_all
11467 ;;
11468
11469solaris*)
11470 lt_cv_deplibs_check_method=pass_all
11471 ;;
11472
11473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11474 lt_cv_deplibs_check_method=pass_all
11475 ;;
11476
11477sysv4 | sysv4.3*)
11478 case $host_vendor in
11479 motorola)
11480 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]'
11481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11482 ;;
11483 ncr)
11484 lt_cv_deplibs_check_method=pass_all
11485 ;;
11486 sequent)
11487 lt_cv_file_magic_cmd='/bin/file'
11488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11489 ;;
11490 sni)
11491 lt_cv_file_magic_cmd='/bin/file'
11492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11493 lt_cv_file_magic_test_file=/lib/libc.so
11494 ;;
11495 siemens)
11496 lt_cv_deplibs_check_method=pass_all
11497 ;;
11498 pc)
11499 lt_cv_deplibs_check_method=pass_all
11500 ;;
11501 esac
11502 ;;
11503
11504tpf*)
11505 lt_cv_deplibs_check_method=pass_all
11506 ;;
11507esac
11508
11509fi
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11511$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011512
11513file_magic_glob=
11514want_nocaseglob=no
11515if test "$build" = "$host"; then
11516 case $host_os in
11517 mingw* | pw32*)
11518 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11519 want_nocaseglob=yes
11520 else
11521 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11522 fi
11523 ;;
11524 esac
11525fi
11526
cristy73bd4a52010-10-05 11:24:23 +000011527file_magic_cmd=$lt_cv_file_magic_cmd
11528deplibs_check_method=$lt_cv_deplibs_check_method
11529test -z "$deplibs_check_method" && deplibs_check_method=unknown
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
cristyda16f162011-02-19 23:52:17 +000011542
11543
11544
11545
11546
11547
11548
11549
11550
11551
cristy73bd4a52010-10-05 11:24:23 +000011552if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011553 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11554set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011557if ${ac_cv_prog_DLLTOOL+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559else
11560 if test -n "$DLLTOOL"; then
11561 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011570 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575 done
11576IFS=$as_save_IFS
11577
11578fi
11579fi
11580DLLTOOL=$ac_cv_prog_DLLTOOL
11581if test -n "$DLLTOOL"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11583$as_echo "$DLLTOOL" >&6; }
11584else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
11587fi
11588
11589
11590fi
11591if test -z "$ac_cv_prog_DLLTOOL"; then
11592 ac_ct_DLLTOOL=$DLLTOOL
11593 # Extract the first word of "dlltool", so it can be a program name with args.
11594set dummy dlltool; ac_word=$2
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596$as_echo_n "checking for $ac_word... " >&6; }
11597if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599else
11600 if test -n "$ac_ct_DLLTOOL"; then
11601 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11602else
11603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604for as_dir in $PATH
11605do
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011610 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11613 fi
11614done
11615 done
11616IFS=$as_save_IFS
11617
11618fi
11619fi
11620ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11621if test -n "$ac_ct_DLLTOOL"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11623$as_echo "$ac_ct_DLLTOOL" >&6; }
11624else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626$as_echo "no" >&6; }
11627fi
11628
11629 if test "x$ac_ct_DLLTOOL" = x; then
11630 DLLTOOL="false"
11631 else
11632 case $cross_compiling:$ac_tool_warned in
11633yes:)
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11636ac_tool_warned=yes ;;
11637esac
11638 DLLTOOL=$ac_ct_DLLTOOL
11639 fi
11640else
11641 DLLTOOL="$ac_cv_prog_DLLTOOL"
11642fi
11643
11644test -z "$DLLTOOL" && DLLTOOL=dlltool
11645
11646
11647
11648
11649
11650
11651
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11653$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11654if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656else
11657 lt_cv_sharedlib_from_linklib_cmd='unknown'
11658
11659case $host_os in
11660cygwin* | mingw* | pw32* | cegcc*)
11661 # two different shell functions defined in ltmain.sh
11662 # decide which to use based on capabilities of $DLLTOOL
11663 case `$DLLTOOL --help 2>&1` in
11664 *--identify-strict*)
11665 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11666 ;;
11667 *)
11668 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11669 ;;
11670 esac
11671 ;;
11672*)
11673 # fallback: assume linklib IS sharedlib
11674 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11675 ;;
11676esac
11677
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11680$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11681sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11682test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11683
11684
11685
11686
11687
11688
11689
11690if test -n "$ac_tool_prefix"; then
11691 for ac_prog in ar
11692 do
11693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
11697if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011698 $as_echo_n "(cached) " >&6
11699else
11700 if test -n "$AR"; then
11701 ac_cv_prog_AR="$AR" # Let the user override the test.
11702else
11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011710 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11713 fi
11714done
11715 done
11716IFS=$as_save_IFS
11717
11718fi
11719fi
11720AR=$ac_cv_prog_AR
11721if test -n "$AR"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11723$as_echo "$AR" >&6; }
11724else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726$as_echo "no" >&6; }
11727fi
11728
11729
cristyda16f162011-02-19 23:52:17 +000011730 test -n "$AR" && break
11731 done
cristy73bd4a52010-10-05 11:24:23 +000011732fi
cristyda16f162011-02-19 23:52:17 +000011733if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011734 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011735 for ac_prog in ar
11736do
11737 # Extract the first word of "$ac_prog", so it can be a program name with args.
11738set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011741if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011742 $as_echo_n "(cached) " >&6
11743else
11744 if test -n "$ac_ct_AR"; then
11745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11746else
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011754 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758done
11759 done
11760IFS=$as_save_IFS
11761
11762fi
11763fi
11764ac_ct_AR=$ac_cv_prog_ac_ct_AR
11765if test -n "$ac_ct_AR"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11767$as_echo "$ac_ct_AR" >&6; }
11768else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771fi
11772
cristyda16f162011-02-19 23:52:17 +000011773
11774 test -n "$ac_ct_AR" && break
11775done
11776
cristy73bd4a52010-10-05 11:24:23 +000011777 if test "x$ac_ct_AR" = x; then
11778 AR="false"
11779 else
11780 case $cross_compiling:$ac_tool_warned in
11781yes:)
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11784ac_tool_warned=yes ;;
11785esac
11786 AR=$ac_ct_AR
11787 fi
cristy73bd4a52010-10-05 11:24:23 +000011788fi
11789
cristyda16f162011-02-19 23:52:17 +000011790: ${AR=ar}
11791: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
cristyda16f162011-02-19 23:52:17 +000011803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11804$as_echo_n "checking for archiver @FILE support... " >&6; }
11805if ${lt_cv_ar_at_file+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807else
11808 lt_cv_ar_at_file=no
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811
11812int
11813main ()
11814{
11815
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820if ac_fn_c_try_compile "$LINENO"; then :
11821 echo conftest.$ac_objext > conftest.lst
11822 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11824 (eval $lt_ar_try) 2>&5
11825 ac_status=$?
11826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11827 test $ac_status = 0; }
11828 if test "$ac_status" -eq 0; then
11829 # Ensure the archiver fails upon bogus file names.
11830 rm -f conftest.$ac_objext libconftest.a
11831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11832 (eval $lt_ar_try) 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835 test $ac_status = 0; }
11836 if test "$ac_status" -ne 0; then
11837 lt_cv_ar_at_file=@
11838 fi
11839 fi
11840 rm -f conftest.* libconftest.a
11841
11842fi
11843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844
11845fi
11846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11847$as_echo "$lt_cv_ar_at_file" >&6; }
11848
11849if test "x$lt_cv_ar_at_file" = xno; then
11850 archiver_list_spec=
11851else
11852 archiver_list_spec=$lt_cv_ar_at_file
11853fi
11854
11855
11856
11857
11858
11859
11860
cristy73bd4a52010-10-05 11:24:23 +000011861if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11863set dummy ${ac_tool_prefix}strip; ac_word=$2
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011866if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011867 $as_echo_n "(cached) " >&6
11868else
11869 if test -n "$STRIP"; then
11870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11871else
11872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883done
11884 done
11885IFS=$as_save_IFS
11886
11887fi
11888fi
11889STRIP=$ac_cv_prog_STRIP
11890if test -n "$STRIP"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11892$as_echo "$STRIP" >&6; }
11893else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895$as_echo "no" >&6; }
11896fi
11897
11898
11899fi
11900if test -z "$ac_cv_prog_STRIP"; then
11901 ac_ct_STRIP=$STRIP
11902 # Extract the first word of "strip", so it can be a program name with args.
11903set dummy strip; ac_word=$2
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011906if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011907 $as_echo_n "(cached) " >&6
11908else
11909 if test -n "$ac_ct_STRIP"; then
11910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011919 ac_cv_prog_ac_ct_STRIP="strip"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923done
11924 done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11930if test -n "$ac_ct_STRIP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11932$as_echo "$ac_ct_STRIP" >&6; }
11933else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
11936fi
11937
11938 if test "x$ac_ct_STRIP" = x; then
11939 STRIP=":"
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942yes:)
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945ac_tool_warned=yes ;;
11946esac
11947 STRIP=$ac_ct_STRIP
11948 fi
11949else
11950 STRIP="$ac_cv_prog_STRIP"
11951fi
11952
11953test -z "$STRIP" && STRIP=:
11954
11955
11956
11957
11958
11959
11960if test -n "$ac_tool_prefix"; then
11961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11962set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011965if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011966 $as_echo_n "(cached) " >&6
11967else
11968 if test -n "$RANLIB"; then
11969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11970else
11971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $PATH
11973do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 break 2
11981 fi
11982done
11983 done
11984IFS=$as_save_IFS
11985
11986fi
11987fi
11988RANLIB=$ac_cv_prog_RANLIB
11989if test -n "$RANLIB"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11991$as_echo "$RANLIB" >&6; }
11992else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
11996
11997
11998fi
11999if test -z "$ac_cv_prog_RANLIB"; then
12000 ac_ct_RANLIB=$RANLIB
12001 # Extract the first word of "ranlib", so it can be a program name with args.
12002set dummy ranlib; ac_word=$2
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012005if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012006 $as_echo_n "(cached) " >&6
12007else
12008 if test -n "$ac_ct_RANLIB"; then
12009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12010else
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012018 ac_cv_prog_ac_ct_RANLIB="ranlib"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 break 2
12021 fi
12022done
12023 done
12024IFS=$as_save_IFS
12025
12026fi
12027fi
12028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12029if test -n "$ac_ct_RANLIB"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12031$as_echo "$ac_ct_RANLIB" >&6; }
12032else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035fi
12036
12037 if test "x$ac_ct_RANLIB" = x; then
12038 RANLIB=":"
12039 else
12040 case $cross_compiling:$ac_tool_warned in
12041yes:)
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044ac_tool_warned=yes ;;
12045esac
12046 RANLIB=$ac_ct_RANLIB
12047 fi
12048else
12049 RANLIB="$ac_cv_prog_RANLIB"
12050fi
12051
12052test -z "$RANLIB" && RANLIB=:
12053
12054
12055
12056
12057
12058
12059# Determine commands to create old-style static archives.
12060old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12061old_postinstall_cmds='chmod 644 $oldlib'
12062old_postuninstall_cmds=
12063
12064if test -n "$RANLIB"; then
12065 case $host_os in
12066 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012068 ;;
12069 *)
cristy99bd5232011-12-07 14:38:20 +000012070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012071 ;;
12072 esac
cristy99bd5232011-12-07 14:38:20 +000012073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012074fi
12075
cristy0c60a692010-11-04 01:09:47 +000012076case $host_os in
12077 darwin*)
12078 lock_old_archive_extraction=yes ;;
12079 *)
12080 lock_old_archive_extraction=no ;;
12081esac
12082
12083
12084
12085
12086
12087
cristy73bd4a52010-10-05 11:24:23 +000012088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121# If no C compiler was specified, use CC.
12122LTCC=${LTCC-"$CC"}
12123
12124# If no C compiler flags were specified, use CFLAGS.
12125LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12126
12127# Allow CC to be a program name with arguments.
12128compiler=$CC
12129
12130
12131# Check for command to grab the raw symbol name followed by C symbol from nm.
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12133$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012134if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012135 $as_echo_n "(cached) " >&6
12136else
12137
12138# These are sane defaults that work on at least a few old systems.
12139# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12140
12141# Character class describing NM global symbol codes.
12142symcode='[BCDEGRST]'
12143
12144# Regexp to match symbols that can be accessed directly from C.
12145sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12146
12147# Define system-specific variables.
12148case $host_os in
12149aix*)
12150 symcode='[BCDT]'
12151 ;;
12152cygwin* | mingw* | pw32* | cegcc*)
12153 symcode='[ABCDGISTW]'
12154 ;;
12155hpux*)
12156 if test "$host_cpu" = ia64; then
12157 symcode='[ABCDEGRST]'
12158 fi
12159 ;;
12160irix* | nonstopux*)
12161 symcode='[BCDEGRST]'
12162 ;;
12163osf*)
12164 symcode='[BCDEGQRST]'
12165 ;;
12166solaris*)
12167 symcode='[BDRT]'
12168 ;;
12169sco3.2v5*)
12170 symcode='[DT]'
12171 ;;
12172sysv4.2uw2*)
12173 symcode='[DT]'
12174 ;;
12175sysv5* | sco5v6* | unixware* | OpenUNIX*)
12176 symcode='[ABDT]'
12177 ;;
12178sysv4)
12179 symcode='[DFNSTU]'
12180 ;;
12181esac
12182
12183# If we're using GNU nm, then use its standard symbol codes.
12184case `$NM -V 2>&1` in
12185*GNU* | *'with BFD'*)
12186 symcode='[ABCDGIRSTW]' ;;
12187esac
12188
12189# Transform an extracted symbol line into a proper C declaration.
12190# Some systems (esp. on ia64) link data and code symbols differently,
12191# so use this general approach.
12192lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12193
12194# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012195lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12196lt_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 +000012197
12198# Handle CRLF in mingw tool chain
12199opt_cr=
12200case $build_os in
12201mingw*)
12202 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12203 ;;
12204esac
12205
12206# Try without a prefix underscore, then with it.
12207for ac_symprfx in "" "_"; do
12208
12209 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12210 symxfrm="\\1 $ac_symprfx\\2 \\2"
12211
12212 # Write the raw and C identifiers.
12213 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12214 # Fake it for dumpbin and say T for any non-static function
12215 # and D for any global variable.
12216 # Also find C++ and __fastcall symbols from MSVC++,
12217 # which start with @ or ?.
12218 lt_cv_sys_global_symbol_pipe="$AWK '"\
12219" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012220" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012221" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12222" \$ 0!~/External *\|/{next};"\
12223" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12224" {if(hide[section]) next};"\
12225" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12226" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12227" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12228" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12229" ' prfx=^$ac_symprfx"
12230 else
12231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12232 fi
cristyda16f162011-02-19 23:52:17 +000012233 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012234
12235 # Check to see that the pipe works correctly.
12236 pipe_works=no
12237
12238 rm -f conftest*
12239 cat > conftest.$ac_ext <<_LT_EOF
12240#ifdef __cplusplus
12241extern "C" {
12242#endif
12243char nm_test_var;
12244void nm_test_func(void);
12245void nm_test_func(void){}
12246#ifdef __cplusplus
12247}
12248#endif
12249int main(){nm_test_var='a';nm_test_func();return(0);}
12250_LT_EOF
12251
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12253 (eval $ac_compile) 2>&5
12254 ac_status=$?
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; }; then
12257 # Now try to grab the symbols.
12258 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12260 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012261 ac_status=$?
12262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 test $ac_status = 0; } && test -s "$nlist"; then
12264 # Try sorting and uniquifying the output.
12265 if sort "$nlist" | uniq > "$nlist"T; then
12266 mv -f "$nlist"T "$nlist"
12267 else
12268 rm -f "$nlist"T
12269 fi
12270
12271 # Make sure that we snagged all the symbols we need.
12272 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12273 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12274 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012275/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12276#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12277/* DATA imports from DLLs on WIN32 con't be const, because runtime
12278 relocations are performed -- see ld's documentation on pseudo-relocs. */
12279# define LT_DLSYM_CONST
12280#elif defined(__osf__)
12281/* This system does not cope well with relocations in const data. */
12282# define LT_DLSYM_CONST
12283#else
12284# define LT_DLSYM_CONST const
12285#endif
12286
cristy73bd4a52010-10-05 11:24:23 +000012287#ifdef __cplusplus
12288extern "C" {
12289#endif
12290
12291_LT_EOF
12292 # Now generate the symbol file.
12293 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12294
12295 cat <<_LT_EOF >> conftest.$ac_ext
12296
12297/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012298LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012299 const char *name;
12300 void *address;
12301}
12302lt__PROGRAM__LTX_preloaded_symbols[] =
12303{
12304 { "@PROGRAM@", (void *) 0 },
12305_LT_EOF
12306 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12307 cat <<\_LT_EOF >> conftest.$ac_ext
12308 {0, (void *) 0}
12309};
12310
12311/* This works around a problem in FreeBSD linker */
12312#ifdef FREEBSD_WORKAROUND
12313static const void *lt_preloaded_setup() {
12314 return lt__PROGRAM__LTX_preloaded_symbols;
12315}
12316#endif
12317
12318#ifdef __cplusplus
12319}
12320#endif
12321_LT_EOF
12322 # Now try linking the two files.
12323 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012324 lt_globsym_save_LIBS=$LIBS
12325 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012326 LIBS="conftstm.$ac_objext"
12327 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329 (eval $ac_link) 2>&5
12330 ac_status=$?
12331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12333 pipe_works=yes
12334 fi
cristyda16f162011-02-19 23:52:17 +000012335 LIBS=$lt_globsym_save_LIBS
12336 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012337 else
12338 echo "cannot find nm_test_func in $nlist" >&5
12339 fi
12340 else
12341 echo "cannot find nm_test_var in $nlist" >&5
12342 fi
12343 else
12344 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12345 fi
12346 else
12347 echo "$progname: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12349 fi
12350 rm -rf conftest* conftst*
12351
12352 # Do not use the global_symbol_pipe unless it works.
12353 if test "$pipe_works" = yes; then
12354 break
12355 else
12356 lt_cv_sys_global_symbol_pipe=
12357 fi
12358done
12359
12360fi
12361
12362if test -z "$lt_cv_sys_global_symbol_pipe"; then
12363 lt_cv_sys_global_symbol_to_cdecl=
12364fi
12365if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12367$as_echo "failed" >&6; }
12368else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12370$as_echo "ok" >&6; }
12371fi
12372
cristyda16f162011-02-19 23:52:17 +000012373# Response file support.
12374if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12375 nm_file_list_spec='@'
12376elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12377 nm_file_list_spec='@'
12378fi
cristy73bd4a52010-10-05 11:24:23 +000012379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
cristyda16f162011-02-19 23:52:17 +000012400
12401
12402
12403
12404
12405
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12407$as_echo_n "checking for sysroot... " >&6; }
12408
12409# Check whether --with-sysroot was given.
12410if test "${with_sysroot+set}" = set; then :
12411 withval=$with_sysroot;
12412else
12413 with_sysroot=no
12414fi
12415
12416
12417lt_sysroot=
12418case ${with_sysroot} in #(
12419 yes)
12420 if test "$GCC" = yes; then
12421 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12422 fi
12423 ;; #(
12424 /*)
12425 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12426 ;; #(
12427 no|'')
12428 ;; #(
12429 *)
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12431$as_echo "${with_sysroot}" >&6; }
12432 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12433 ;;
12434esac
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12437$as_echo "${lt_sysroot:-no}" >&6; }
12438
12439
12440
12441
12442
cristy73bd4a52010-10-05 11:24:23 +000012443# Check whether --enable-libtool-lock was given.
12444if test "${enable_libtool_lock+set}" = set; then :
12445 enableval=$enable_libtool_lock;
12446fi
12447
12448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12449
12450# Some flags need to be propagated to the compiler or linker for good
12451# libtool support.
12452case $host in
12453ia64-*-hpux*)
12454 # Find out which ABI we are using.
12455 echo 'int i;' > conftest.$ac_ext
12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12457 (eval $ac_compile) 2>&5
12458 ac_status=$?
12459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460 test $ac_status = 0; }; then
12461 case `/usr/bin/file conftest.$ac_objext` in
12462 *ELF-32*)
12463 HPUX_IA64_MODE="32"
12464 ;;
12465 *ELF-64*)
12466 HPUX_IA64_MODE="64"
12467 ;;
12468 esac
12469 fi
12470 rm -rf conftest*
12471 ;;
12472*-*-irix6*)
12473 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012474 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12479 test $ac_status = 0; }; then
12480 if test "$lt_cv_prog_gnu_ld" = yes; then
12481 case `/usr/bin/file conftest.$ac_objext` in
12482 *32-bit*)
12483 LD="${LD-ld} -melf32bsmip"
12484 ;;
12485 *N32*)
12486 LD="${LD-ld} -melf32bmipn32"
12487 ;;
12488 *64-bit*)
12489 LD="${LD-ld} -melf64bmip"
12490 ;;
12491 esac
12492 else
12493 case `/usr/bin/file conftest.$ac_objext` in
12494 *32-bit*)
12495 LD="${LD-ld} -32"
12496 ;;
12497 *N32*)
12498 LD="${LD-ld} -n32"
12499 ;;
12500 *64-bit*)
12501 LD="${LD-ld} -64"
12502 ;;
12503 esac
12504 fi
12505 fi
12506 rm -rf conftest*
12507 ;;
12508
12509x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12510s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12511 # Find out which ABI we are using.
12512 echo 'int i;' > conftest.$ac_ext
12513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517 test $ac_status = 0; }; then
12518 case `/usr/bin/file conftest.o` in
12519 *32-bit*)
12520 case $host in
12521 x86_64-*kfreebsd*-gnu)
12522 LD="${LD-ld} -m elf_i386_fbsd"
12523 ;;
12524 x86_64-*linux*)
12525 LD="${LD-ld} -m elf_i386"
12526 ;;
12527 ppc64-*linux*|powerpc64-*linux*)
12528 LD="${LD-ld} -m elf32ppclinux"
12529 ;;
12530 s390x-*linux*)
12531 LD="${LD-ld} -m elf_s390"
12532 ;;
12533 sparc64-*linux*)
12534 LD="${LD-ld} -m elf32_sparc"
12535 ;;
12536 esac
12537 ;;
12538 *64-bit*)
12539 case $host in
12540 x86_64-*kfreebsd*-gnu)
12541 LD="${LD-ld} -m elf_x86_64_fbsd"
12542 ;;
12543 x86_64-*linux*)
12544 LD="${LD-ld} -m elf_x86_64"
12545 ;;
12546 ppc*-*linux*|powerpc*-*linux*)
12547 LD="${LD-ld} -m elf64ppc"
12548 ;;
12549 s390*-*linux*|s390*-*tpf*)
12550 LD="${LD-ld} -m elf64_s390"
12551 ;;
12552 sparc*-*linux*)
12553 LD="${LD-ld} -m elf64_sparc"
12554 ;;
12555 esac
12556 ;;
12557 esac
12558 fi
12559 rm -rf conftest*
12560 ;;
12561
12562*-*-sco3.2v5*)
12563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12564 SAVE_CFLAGS="$CFLAGS"
12565 CFLAGS="$CFLAGS -belf"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12567$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012568if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012569 $as_echo_n "(cached) " >&6
12570else
12571 ac_ext=c
12572ac_cpp='$CPP $CPPFLAGS'
12573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_link "$LINENO"; then :
12589 lt_cv_cc_needs_belf=yes
12590else
12591 lt_cv_cc_needs_belf=no
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 ac_ext=c
12596ac_cpp='$CPP $CPPFLAGS'
12597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599ac_compiler_gnu=$ac_cv_c_compiler_gnu
12600
12601fi
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12603$as_echo "$lt_cv_cc_needs_belf" >&6; }
12604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12606 CFLAGS="$SAVE_CFLAGS"
12607 fi
12608 ;;
cristy99bd5232011-12-07 14:38:20 +000012609*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012610 # Find out which ABI we are using.
12611 echo 'int i;' > conftest.$ac_ext
12612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12616 test $ac_status = 0; }; then
12617 case `/usr/bin/file conftest.o` in
12618 *64-bit*)
12619 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012620 yes*)
12621 case $host in
12622 i?86-*-solaris*)
12623 LD="${LD-ld} -m elf_x86_64"
12624 ;;
12625 sparc*-*-solaris*)
12626 LD="${LD-ld} -m elf64_sparc"
12627 ;;
12628 esac
12629 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12630 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12631 LD="${LD-ld}_sol2"
12632 fi
12633 ;;
cristy73bd4a52010-10-05 11:24:23 +000012634 *)
12635 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12636 LD="${LD-ld} -64"
12637 fi
12638 ;;
12639 esac
12640 ;;
12641 esac
12642 fi
12643 rm -rf conftest*
12644 ;;
12645esac
12646
12647need_locks="$enable_libtool_lock"
12648
cristyda16f162011-02-19 23:52:17 +000012649if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12651set dummy ${ac_tool_prefix}mt; ac_word=$2
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653$as_echo_n "checking for $ac_word... " >&6; }
12654if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656else
12657 if test -n "$MANIFEST_TOOL"; then
12658 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12659else
12660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661for as_dir in $PATH
12662do
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012667 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12670 fi
12671done
12672 done
12673IFS=$as_save_IFS
12674
12675fi
12676fi
12677MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12678if test -n "$MANIFEST_TOOL"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12680$as_echo "$MANIFEST_TOOL" >&6; }
12681else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683$as_echo "no" >&6; }
12684fi
12685
12686
12687fi
12688if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12689 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12690 # Extract the first word of "mt", so it can be a program name with args.
12691set dummy mt; ac_word=$2
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693$as_echo_n "checking for $ac_word... " >&6; }
12694if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696else
12697 if test -n "$ac_ct_MANIFEST_TOOL"; then
12698 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12699else
12700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701for as_dir in $PATH
12702do
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012707 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12710 fi
12711done
12712 done
12713IFS=$as_save_IFS
12714
12715fi
12716fi
12717ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12718if test -n "$ac_ct_MANIFEST_TOOL"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12720$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12721else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723$as_echo "no" >&6; }
12724fi
12725
12726 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12727 MANIFEST_TOOL=":"
12728 else
12729 case $cross_compiling:$ac_tool_warned in
12730yes:)
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12733ac_tool_warned=yes ;;
12734esac
12735 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12736 fi
12737else
12738 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12739fi
12740
12741test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12743$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12744if ${lt_cv_path_mainfest_tool+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746else
12747 lt_cv_path_mainfest_tool=no
12748 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12749 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12750 cat conftest.err >&5
12751 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12752 lt_cv_path_mainfest_tool=yes
12753 fi
12754 rm -f conftest*
12755fi
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12757$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12758if test "x$lt_cv_path_mainfest_tool" != xyes; then
12759 MANIFEST_TOOL=:
12760fi
12761
12762
12763
12764
12765
cristy73bd4a52010-10-05 11:24:23 +000012766
12767 case $host_os in
12768 rhapsody* | darwin*)
12769 if test -n "$ac_tool_prefix"; then
12770 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12771set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012774if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012775 $as_echo_n "(cached) " >&6
12776else
12777 if test -n "$DSYMUTIL"; then
12778 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12779else
12780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781for as_dir in $PATH
12782do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012787 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791done
12792 done
12793IFS=$as_save_IFS
12794
12795fi
12796fi
12797DSYMUTIL=$ac_cv_prog_DSYMUTIL
12798if test -n "$DSYMUTIL"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12800$as_echo "$DSYMUTIL" >&6; }
12801else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804fi
12805
12806
12807fi
12808if test -z "$ac_cv_prog_DSYMUTIL"; then
12809 ac_ct_DSYMUTIL=$DSYMUTIL
12810 # Extract the first word of "dsymutil", so it can be a program name with args.
12811set dummy dsymutil; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012814if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$ac_ct_DSYMUTIL"; then
12818 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831done
12832 done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12838if test -n "$ac_ct_DSYMUTIL"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12840$as_echo "$ac_ct_DSYMUTIL" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846 if test "x$ac_ct_DSYMUTIL" = x; then
12847 DSYMUTIL=":"
12848 else
12849 case $cross_compiling:$ac_tool_warned in
12850yes:)
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12853ac_tool_warned=yes ;;
12854esac
12855 DSYMUTIL=$ac_ct_DSYMUTIL
12856 fi
12857else
12858 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12859fi
12860
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12863set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012866if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012867 $as_echo_n "(cached) " >&6
12868else
12869 if test -n "$NMEDIT"; then
12870 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12871else
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012879 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12882 fi
12883done
12884 done
12885IFS=$as_save_IFS
12886
12887fi
12888fi
12889NMEDIT=$ac_cv_prog_NMEDIT
12890if test -n "$NMEDIT"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12892$as_echo "$NMEDIT" >&6; }
12893else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
12896fi
12897
12898
12899fi
12900if test -z "$ac_cv_prog_NMEDIT"; then
12901 ac_ct_NMEDIT=$NMEDIT
12902 # Extract the first word of "nmedit", so it can be a program name with args.
12903set dummy nmedit; ac_word=$2
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012906if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 if test -n "$ac_ct_NMEDIT"; then
12910 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12911else
12912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913for as_dir in $PATH
12914do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012919 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923done
12924 done
12925IFS=$as_save_IFS
12926
12927fi
12928fi
12929ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12930if test -n "$ac_ct_NMEDIT"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12932$as_echo "$ac_ct_NMEDIT" >&6; }
12933else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938 if test "x$ac_ct_NMEDIT" = x; then
12939 NMEDIT=":"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942yes:)
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945ac_tool_warned=yes ;;
12946esac
12947 NMEDIT=$ac_ct_NMEDIT
12948 fi
12949else
12950 NMEDIT="$ac_cv_prog_NMEDIT"
12951fi
12952
12953 if test -n "$ac_tool_prefix"; then
12954 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12955set dummy ${ac_tool_prefix}lipo; ac_word=$2
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012958if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012959 $as_echo_n "(cached) " >&6
12960else
12961 if test -n "$LIPO"; then
12962 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012971 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975done
12976 done
12977IFS=$as_save_IFS
12978
12979fi
12980fi
12981LIPO=$ac_cv_prog_LIPO
12982if test -n "$LIPO"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12984$as_echo "$LIPO" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988fi
12989
12990
12991fi
12992if test -z "$ac_cv_prog_LIPO"; then
12993 ac_ct_LIPO=$LIPO
12994 # Extract the first word of "lipo", so it can be a program name with args.
12995set dummy lipo; ac_word=$2
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012998if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012999 $as_echo_n "(cached) " >&6
13000else
13001 if test -n "$ac_ct_LIPO"; then
13002 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013011 ac_cv_prog_ac_ct_LIPO="lipo"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015done
13016 done
13017IFS=$as_save_IFS
13018
13019fi
13020fi
13021ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13022if test -n "$ac_ct_LIPO"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13024$as_echo "$ac_ct_LIPO" >&6; }
13025else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027$as_echo "no" >&6; }
13028fi
13029
13030 if test "x$ac_ct_LIPO" = x; then
13031 LIPO=":"
13032 else
13033 case $cross_compiling:$ac_tool_warned in
13034yes:)
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13037ac_tool_warned=yes ;;
13038esac
13039 LIPO=$ac_ct_LIPO
13040 fi
13041else
13042 LIPO="$ac_cv_prog_LIPO"
13043fi
13044
13045 if test -n "$ac_tool_prefix"; then
13046 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13047set dummy ${ac_tool_prefix}otool; ac_word=$2
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013050if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013051 $as_echo_n "(cached) " >&6
13052else
13053 if test -n "$OTOOL"; then
13054 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13055else
13056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $PATH
13058do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013063 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067done
13068 done
13069IFS=$as_save_IFS
13070
13071fi
13072fi
13073OTOOL=$ac_cv_prog_OTOOL
13074if test -n "$OTOOL"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13076$as_echo "$OTOOL" >&6; }
13077else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079$as_echo "no" >&6; }
13080fi
13081
13082
13083fi
13084if test -z "$ac_cv_prog_OTOOL"; then
13085 ac_ct_OTOOL=$OTOOL
13086 # Extract the first word of "otool", so it can be a program name with args.
13087set dummy otool; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013090if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$ac_ct_OTOOL"; then
13094 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013103 ac_cv_prog_ac_ct_OTOOL="otool"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13114if test -n "$ac_ct_OTOOL"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13116$as_echo "$ac_ct_OTOOL" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122 if test "x$ac_ct_OTOOL" = x; then
13123 OTOOL=":"
13124 else
13125 case $cross_compiling:$ac_tool_warned in
13126yes:)
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13129ac_tool_warned=yes ;;
13130esac
13131 OTOOL=$ac_ct_OTOOL
13132 fi
13133else
13134 OTOOL="$ac_cv_prog_OTOOL"
13135fi
13136
13137 if test -n "$ac_tool_prefix"; then
13138 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13139set dummy ${ac_tool_prefix}otool64; ac_word=$2
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013142if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013143 $as_echo_n "(cached) " >&6
13144else
13145 if test -n "$OTOOL64"; then
13146 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13147else
13148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151 IFS=$as_save_IFS
13152 test -z "$as_dir" && as_dir=.
13153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013155 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 break 2
13158 fi
13159done
13160 done
13161IFS=$as_save_IFS
13162
13163fi
13164fi
13165OTOOL64=$ac_cv_prog_OTOOL64
13166if test -n "$OTOOL64"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13168$as_echo "$OTOOL64" >&6; }
13169else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
13172fi
13173
13174
13175fi
13176if test -z "$ac_cv_prog_OTOOL64"; then
13177 ac_ct_OTOOL64=$OTOOL64
13178 # Extract the first word of "otool64", so it can be a program name with args.
13179set dummy otool64; ac_word=$2
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013182if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013183 $as_echo_n "(cached) " >&6
13184else
13185 if test -n "$ac_ct_OTOOL64"; then
13186 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13187else
13188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189for as_dir in $PATH
13190do
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013195 ac_cv_prog_ac_ct_OTOOL64="otool64"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199done
13200 done
13201IFS=$as_save_IFS
13202
13203fi
13204fi
13205ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13206if test -n "$ac_ct_OTOOL64"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13208$as_echo "$ac_ct_OTOOL64" >&6; }
13209else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211$as_echo "no" >&6; }
13212fi
13213
13214 if test "x$ac_ct_OTOOL64" = x; then
13215 OTOOL64=":"
13216 else
13217 case $cross_compiling:$ac_tool_warned in
13218yes:)
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13221ac_tool_warned=yes ;;
13222esac
13223 OTOOL64=$ac_ct_OTOOL64
13224 fi
13225else
13226 OTOOL64="$ac_cv_prog_OTOOL64"
13227fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13256$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013257if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013258 $as_echo_n "(cached) " >&6
13259else
13260 lt_cv_apple_cc_single_mod=no
13261 if test -z "${LT_MULTI_MODULE}"; then
13262 # By default we will add the -single_module flag. You can override
13263 # by either setting the environment variable LT_MULTI_MODULE
13264 # non-empty at configure time, or by adding -multi_module to the
13265 # link flags.
13266 rm -rf libconftest.dylib*
13267 echo "int foo(void){return 1;}" > conftest.c
13268 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13269-dynamiclib -Wl,-single_module conftest.c" >&5
13270 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13271 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13272 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013273 # If there is a non-empty error log, and "single_module"
13274 # appears in it, assume the flag caused a linker warning
13275 if test -s conftest.err && $GREP single_module conftest.err; then
13276 cat conftest.err >&5
13277 # Otherwise, if the output was created with a 0 exit code from
13278 # the compiler, it worked.
13279 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013280 lt_cv_apple_cc_single_mod=yes
13281 else
13282 cat conftest.err >&5
13283 fi
13284 rm -rf libconftest.dylib*
13285 rm -f conftest.*
13286 fi
13287fi
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13289$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013290
cristy73bd4a52010-10-05 11:24:23 +000013291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13292$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013293if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013294 $as_echo_n "(cached) " >&6
13295else
13296 lt_cv_ld_exported_symbols_list=no
13297 save_LDFLAGS=$LDFLAGS
13298 echo "_main" > conftest.sym
13299 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301/* end confdefs.h. */
13302
13303int
13304main ()
13305{
13306
13307 ;
13308 return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_link "$LINENO"; then :
13312 lt_cv_ld_exported_symbols_list=yes
13313else
13314 lt_cv_ld_exported_symbols_list=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LDFLAGS="$save_LDFLAGS"
13319
13320fi
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13322$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013323
cristy0c60a692010-11-04 01:09:47 +000013324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13325$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013326if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013327 $as_echo_n "(cached) " >&6
13328else
13329 lt_cv_ld_force_load=no
13330 cat > conftest.c << _LT_EOF
13331int forced_loaded() { return 2;}
13332_LT_EOF
13333 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13334 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13335 echo "$AR cru libconftest.a conftest.o" >&5
13336 $AR cru libconftest.a conftest.o 2>&5
13337 echo "$RANLIB libconftest.a" >&5
13338 $RANLIB libconftest.a 2>&5
13339 cat > conftest.c << _LT_EOF
13340int main() { return 0;}
13341_LT_EOF
13342 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13343 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13344 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013345 if test -s conftest.err && $GREP force_load conftest.err; then
13346 cat conftest.err >&5
13347 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013348 lt_cv_ld_force_load=yes
13349 else
13350 cat conftest.err >&5
13351 fi
13352 rm -f conftest.err libconftest.a conftest conftest.c
13353 rm -rf conftest.dSYM
13354
13355fi
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13357$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013358 case $host_os in
13359 rhapsody* | darwin1.[012])
13360 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13361 darwin1.*)
13362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13363 darwin*) # darwin 5.x on
13364 # if running on 10.5 or later, the deployment target defaults
13365 # to the OS version, if on x86, and 10.4, the deployment
13366 # target defaults to 10.4. Don't you love it?
13367 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13368 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13369 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13370 10.[012]*)
13371 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13372 10.*)
13373 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13374 esac
13375 ;;
13376 esac
13377 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13378 _lt_dar_single_mod='$single_module'
13379 fi
13380 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13381 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13382 else
13383 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13384 fi
cristy0c60a692010-11-04 01:09:47 +000013385 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013386 _lt_dsymutil='~$DSYMUTIL $lib || :'
13387 else
13388 _lt_dsymutil=
13389 fi
13390 ;;
13391 esac
13392
13393for ac_header in dlfcn.h
13394do :
13395 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13396"
cristyda16f162011-02-19 23:52:17 +000013397if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013398 cat >>confdefs.h <<_ACEOF
13399#define HAVE_DLFCN_H 1
13400_ACEOF
13401
13402fi
13403
13404done
13405
13406
13407
cristy73bd4a52010-10-05 11:24:23 +000013408
cristyda16f162011-02-19 23:52:17 +000013409func_stripname_cnf ()
13410{
13411 case ${2} in
13412 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13413 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13414 esac
13415} # func_stripname_cnf
13416
13417
13418
cristy73bd4a52010-10-05 11:24:23 +000013419
13420
13421# Set options
13422enable_win32_dll=yes
13423
13424case $host in
cristy0c60a692010-11-04 01:09:47 +000013425*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013426 if test -n "$ac_tool_prefix"; then
13427 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13428set dummy ${ac_tool_prefix}as; ac_word=$2
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013431if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013432 $as_echo_n "(cached) " >&6
13433else
13434 if test -n "$AS"; then
13435 ac_cv_prog_AS="$AS" # Let the user override the test.
13436else
13437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438for as_dir in $PATH
13439do
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013444 ac_cv_prog_AS="${ac_tool_prefix}as"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13447 fi
13448done
13449 done
13450IFS=$as_save_IFS
13451
13452fi
13453fi
13454AS=$ac_cv_prog_AS
13455if test -n "$AS"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13457$as_echo "$AS" >&6; }
13458else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460$as_echo "no" >&6; }
13461fi
13462
13463
13464fi
13465if test -z "$ac_cv_prog_AS"; then
13466 ac_ct_AS=$AS
13467 # Extract the first word of "as", so it can be a program name with args.
13468set dummy as; ac_word=$2
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013471if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013472 $as_echo_n "(cached) " >&6
13473else
13474 if test -n "$ac_ct_AS"; then
13475 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13476else
13477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $PATH
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013484 ac_cv_prog_ac_ct_AS="as"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13487 fi
13488done
13489 done
13490IFS=$as_save_IFS
13491
13492fi
13493fi
13494ac_ct_AS=$ac_cv_prog_ac_ct_AS
13495if test -n "$ac_ct_AS"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13497$as_echo "$ac_ct_AS" >&6; }
13498else
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500$as_echo "no" >&6; }
13501fi
13502
13503 if test "x$ac_ct_AS" = x; then
13504 AS="false"
13505 else
13506 case $cross_compiling:$ac_tool_warned in
13507yes:)
13508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510ac_tool_warned=yes ;;
13511esac
13512 AS=$ac_ct_AS
13513 fi
13514else
13515 AS="$ac_cv_prog_AS"
13516fi
13517
13518 if test -n "$ac_tool_prefix"; then
13519 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13520set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013523if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013524 $as_echo_n "(cached) " >&6
13525else
13526 if test -n "$DLLTOOL"; then
13527 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13528else
13529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530for as_dir in $PATH
13531do
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013536 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13539 fi
13540done
13541 done
13542IFS=$as_save_IFS
13543
13544fi
13545fi
13546DLLTOOL=$ac_cv_prog_DLLTOOL
13547if test -n "$DLLTOOL"; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13549$as_echo "$DLLTOOL" >&6; }
13550else
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
13553fi
13554
13555
13556fi
13557if test -z "$ac_cv_prog_DLLTOOL"; then
13558 ac_ct_DLLTOOL=$DLLTOOL
13559 # Extract the first word of "dlltool", so it can be a program name with args.
13560set dummy dlltool; ac_word=$2
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013563if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013564 $as_echo_n "(cached) " >&6
13565else
13566 if test -n "$ac_ct_DLLTOOL"; then
13567 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13568else
13569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570for as_dir in $PATH
13571do
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013576 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13579 fi
13580done
13581 done
13582IFS=$as_save_IFS
13583
13584fi
13585fi
13586ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13587if test -n "$ac_ct_DLLTOOL"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13589$as_echo "$ac_ct_DLLTOOL" >&6; }
13590else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592$as_echo "no" >&6; }
13593fi
13594
13595 if test "x$ac_ct_DLLTOOL" = x; then
13596 DLLTOOL="false"
13597 else
13598 case $cross_compiling:$ac_tool_warned in
13599yes:)
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13602ac_tool_warned=yes ;;
13603esac
13604 DLLTOOL=$ac_ct_DLLTOOL
13605 fi
13606else
13607 DLLTOOL="$ac_cv_prog_DLLTOOL"
13608fi
13609
13610 if test -n "$ac_tool_prefix"; then
13611 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13612set dummy ${ac_tool_prefix}objdump; ac_word=$2
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013615if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013616 $as_echo_n "(cached) " >&6
13617else
13618 if test -n "$OBJDUMP"; then
13619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13620else
13621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622for as_dir in $PATH
13623do
13624 IFS=$as_save_IFS
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630 break 2
13631 fi
13632done
13633 done
13634IFS=$as_save_IFS
13635
13636fi
13637fi
13638OBJDUMP=$ac_cv_prog_OBJDUMP
13639if test -n "$OBJDUMP"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13641$as_echo "$OBJDUMP" >&6; }
13642else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645fi
13646
13647
13648fi
13649if test -z "$ac_cv_prog_OBJDUMP"; then
13650 ac_ct_OBJDUMP=$OBJDUMP
13651 # Extract the first word of "objdump", so it can be a program name with args.
13652set dummy objdump; ac_word=$2
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013655if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013656 $as_echo_n "(cached) " >&6
13657else
13658 if test -n "$ac_ct_OBJDUMP"; then
13659 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13660else
13661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662for as_dir in $PATH
13663do
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013668 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13671 fi
13672done
13673 done
13674IFS=$as_save_IFS
13675
13676fi
13677fi
13678ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13679if test -n "$ac_ct_OBJDUMP"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13681$as_echo "$ac_ct_OBJDUMP" >&6; }
13682else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684$as_echo "no" >&6; }
13685fi
13686
13687 if test "x$ac_ct_OBJDUMP" = x; then
13688 OBJDUMP="false"
13689 else
13690 case $cross_compiling:$ac_tool_warned in
13691yes:)
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13694ac_tool_warned=yes ;;
13695esac
13696 OBJDUMP=$ac_ct_OBJDUMP
13697 fi
13698else
13699 OBJDUMP="$ac_cv_prog_OBJDUMP"
13700fi
13701
13702 ;;
13703esac
13704
13705test -z "$AS" && AS=as
13706
13707
13708
13709
13710
13711test -z "$DLLTOOL" && DLLTOOL=dlltool
13712
13713
13714
13715
13716
13717test -z "$OBJDUMP" && OBJDUMP=objdump
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727 # Check whether --enable-shared was given.
13728if test "${enable_shared+set}" = set; then :
13729 enableval=$enable_shared; p=${PACKAGE-default}
13730 case $enableval in
13731 yes) enable_shared=yes ;;
13732 no) enable_shared=no ;;
13733 *)
13734 enable_shared=no
13735 # Look at the argument we got. We use all the common list separators.
13736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13737 for pkg in $enableval; do
13738 IFS="$lt_save_ifs"
13739 if test "X$pkg" = "X$p"; then
13740 enable_shared=yes
13741 fi
13742 done
13743 IFS="$lt_save_ifs"
13744 ;;
13745 esac
13746else
13747 enable_shared=yes
13748fi
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758 # Check whether --enable-static was given.
13759if test "${enable_static+set}" = set; then :
13760 enableval=$enable_static; p=${PACKAGE-default}
13761 case $enableval in
13762 yes) enable_static=yes ;;
13763 no) enable_static=no ;;
13764 *)
13765 enable_static=no
13766 # Look at the argument we got. We use all the common list separators.
13767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13768 for pkg in $enableval; do
13769 IFS="$lt_save_ifs"
13770 if test "X$pkg" = "X$p"; then
13771 enable_static=yes
13772 fi
13773 done
13774 IFS="$lt_save_ifs"
13775 ;;
13776 esac
13777else
13778 enable_static=yes
13779fi
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790# Check whether --with-pic was given.
13791if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013792 withval=$with_pic; lt_p=${PACKAGE-default}
13793 case $withval in
13794 yes|no) pic_mode=$withval ;;
13795 *)
13796 pic_mode=default
13797 # Look at the argument we got. We use all the common list separators.
13798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13799 for lt_pkg in $withval; do
13800 IFS="$lt_save_ifs"
13801 if test "X$lt_pkg" = "X$lt_p"; then
13802 pic_mode=yes
13803 fi
13804 done
13805 IFS="$lt_save_ifs"
13806 ;;
13807 esac
cristy73bd4a52010-10-05 11:24:23 +000013808else
13809 pic_mode=default
13810fi
13811
13812
13813test -z "$pic_mode" && pic_mode=default
13814
13815
13816
13817
13818
13819
13820
13821 # Check whether --enable-fast-install was given.
13822if test "${enable_fast_install+set}" = set; then :
13823 enableval=$enable_fast_install; p=${PACKAGE-default}
13824 case $enableval in
13825 yes) enable_fast_install=yes ;;
13826 no) enable_fast_install=no ;;
13827 *)
13828 enable_fast_install=no
13829 # Look at the argument we got. We use all the common list separators.
13830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13831 for pkg in $enableval; do
13832 IFS="$lt_save_ifs"
13833 if test "X$pkg" = "X$p"; then
13834 enable_fast_install=yes
13835 fi
13836 done
13837 IFS="$lt_save_ifs"
13838 ;;
13839 esac
13840else
13841 enable_fast_install=yes
13842fi
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854# This can be used to rebuild libtool when needed
13855LIBTOOL_DEPS="$ltmain"
13856
13857# Always use our own libtool.
13858LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
cristy0c60a692010-11-04 01:09:47 +000013884
cristy99bd5232011-12-07 14:38:20 +000013885
13886
13887
13888
cristy73bd4a52010-10-05 11:24:23 +000013889test -z "$LN_S" && LN_S="ln -s"
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904if test -n "${ZSH_VERSION+set}" ; then
13905 setopt NO_GLOB_SUBST
13906fi
13907
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13909$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013910if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013911 $as_echo_n "(cached) " >&6
13912else
13913 rm -f .libs 2>/dev/null
13914mkdir .libs 2>/dev/null
13915if test -d .libs; then
13916 lt_cv_objdir=.libs
13917else
13918 # MS-DOS does not allow filenames that begin with a dot.
13919 lt_cv_objdir=_libs
13920fi
13921rmdir .libs 2>/dev/null
13922fi
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13924$as_echo "$lt_cv_objdir" >&6; }
13925objdir=$lt_cv_objdir
13926
13927
13928
13929
13930
13931cat >>confdefs.h <<_ACEOF
13932#define LT_OBJDIR "$lt_cv_objdir/"
13933_ACEOF
13934
13935
13936
13937
cristy73bd4a52010-10-05 11:24:23 +000013938case $host_os in
13939aix3*)
13940 # AIX sometimes has problems with the GCC collect2 program. For some
13941 # reason, if we set the COLLECT_NAMES environment variable, the problems
13942 # vanish in a puff of smoke.
13943 if test "X${COLLECT_NAMES+set}" != Xset; then
13944 COLLECT_NAMES=
13945 export COLLECT_NAMES
13946 fi
13947 ;;
13948esac
13949
cristy73bd4a52010-10-05 11:24:23 +000013950# Global variables:
13951ofile=libtool
13952can_build_shared=yes
13953
13954# All known linkers require a `.a' archive for static linking (except MSVC,
13955# which needs '.lib').
13956libext=a
13957
13958with_gnu_ld="$lt_cv_prog_gnu_ld"
13959
13960old_CC="$CC"
13961old_CFLAGS="$CFLAGS"
13962
13963# Set sane defaults for various variables
13964test -z "$CC" && CC=cc
13965test -z "$LTCC" && LTCC=$CC
13966test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13967test -z "$LD" && LD=ld
13968test -z "$ac_objext" && ac_objext=o
13969
13970for cc_temp in $compiler""; do
13971 case $cc_temp in
13972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13974 \-*) ;;
13975 *) break;;
13976 esac
13977done
cristy0c60a692010-11-04 01:09:47 +000013978cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013979
13980
13981# Only perform the check for file, if the check method requires it
13982test -z "$MAGIC_CMD" && MAGIC_CMD=file
13983case $deplibs_check_method in
13984file_magic*)
13985 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13987$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013988if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013989 $as_echo_n "(cached) " >&6
13990else
13991 case $MAGIC_CMD in
13992[\\/*] | ?:[\\/]*)
13993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13994 ;;
13995*)
13996 lt_save_MAGIC_CMD="$MAGIC_CMD"
13997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13999 for ac_dir in $ac_dummy; do
14000 IFS="$lt_save_ifs"
14001 test -z "$ac_dir" && ac_dir=.
14002 if test -f $ac_dir/${ac_tool_prefix}file; then
14003 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14004 if test -n "$file_magic_test_file"; then
14005 case $deplibs_check_method in
14006 "file_magic "*)
14007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14010 $EGREP "$file_magic_regex" > /dev/null; then
14011 :
14012 else
14013 cat <<_LT_EOF 1>&2
14014
14015*** Warning: the command libtool uses to detect shared libraries,
14016*** $file_magic_cmd, produces output that libtool cannot recognize.
14017*** The result is that libtool may fail to recognize shared libraries
14018*** as such. This will affect the creation of libtool libraries that
14019*** depend on shared libraries, but programs linked with such libtool
14020*** libraries will work regardless of this problem. Nevertheless, you
14021*** may want to report the problem to your system manager and/or to
14022*** bug-libtool@gnu.org
14023
14024_LT_EOF
14025 fi ;;
14026 esac
14027 fi
14028 break
14029 fi
14030 done
14031 IFS="$lt_save_ifs"
14032 MAGIC_CMD="$lt_save_MAGIC_CMD"
14033 ;;
14034esac
14035fi
14036
14037MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14038if test -n "$MAGIC_CMD"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14040$as_echo "$MAGIC_CMD" >&6; }
14041else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043$as_echo "no" >&6; }
14044fi
14045
14046
14047
14048
14049
14050if test -z "$lt_cv_path_MAGIC_CMD"; then
14051 if test -n "$ac_tool_prefix"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14053$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014054if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014055 $as_echo_n "(cached) " >&6
14056else
14057 case $MAGIC_CMD in
14058[\\/*] | ?:[\\/]*)
14059 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14060 ;;
14061*)
14062 lt_save_MAGIC_CMD="$MAGIC_CMD"
14063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14064 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14065 for ac_dir in $ac_dummy; do
14066 IFS="$lt_save_ifs"
14067 test -z "$ac_dir" && ac_dir=.
14068 if test -f $ac_dir/file; then
14069 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14070 if test -n "$file_magic_test_file"; then
14071 case $deplibs_check_method in
14072 "file_magic "*)
14073 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14075 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14076 $EGREP "$file_magic_regex" > /dev/null; then
14077 :
14078 else
14079 cat <<_LT_EOF 1>&2
14080
14081*** Warning: the command libtool uses to detect shared libraries,
14082*** $file_magic_cmd, produces output that libtool cannot recognize.
14083*** The result is that libtool may fail to recognize shared libraries
14084*** as such. This will affect the creation of libtool libraries that
14085*** depend on shared libraries, but programs linked with such libtool
14086*** libraries will work regardless of this problem. Nevertheless, you
14087*** may want to report the problem to your system manager and/or to
14088*** bug-libtool@gnu.org
14089
14090_LT_EOF
14091 fi ;;
14092 esac
14093 fi
14094 break
14095 fi
14096 done
14097 IFS="$lt_save_ifs"
14098 MAGIC_CMD="$lt_save_MAGIC_CMD"
14099 ;;
14100esac
14101fi
14102
14103MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14104if test -n "$MAGIC_CMD"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14106$as_echo "$MAGIC_CMD" >&6; }
14107else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109$as_echo "no" >&6; }
14110fi
14111
14112
14113 else
14114 MAGIC_CMD=:
14115 fi
14116fi
14117
14118 fi
14119 ;;
14120esac
14121
14122# Use C for the default configuration in the libtool script
14123
14124lt_save_CC="$CC"
14125ac_ext=c
14126ac_cpp='$CPP $CPPFLAGS'
14127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129ac_compiler_gnu=$ac_cv_c_compiler_gnu
14130
14131
14132# Source file extension for C test sources.
14133ac_ext=c
14134
14135# Object file extension for compiled C test sources.
14136objext=o
14137objext=$objext
14138
14139# Code to be used in simple compile tests
14140lt_simple_compile_test_code="int some_variable = 0;"
14141
14142# Code to be used in simple link tests
14143lt_simple_link_test_code='int main(){return(0);}'
14144
14145
14146
14147
14148
14149
14150
14151# If no C compiler was specified, use CC.
14152LTCC=${LTCC-"$CC"}
14153
14154# If no C compiler flags were specified, use CFLAGS.
14155LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14156
14157# Allow CC to be a program name with arguments.
14158compiler=$CC
14159
14160# Save the default compiler, since it gets overwritten when the other
14161# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14162compiler_DEFAULT=$CC
14163
14164# save warnings/boilerplate of simple test code
14165ac_outfile=conftest.$ac_objext
14166echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14167eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14168_lt_compiler_boilerplate=`cat conftest.err`
14169$RM conftest*
14170
14171ac_outfile=conftest.$ac_objext
14172echo "$lt_simple_link_test_code" >conftest.$ac_ext
14173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14174_lt_linker_boilerplate=`cat conftest.err`
14175$RM -r conftest*
14176
14177
14178## CAVEAT EMPTOR:
14179## There is no encapsulation within the following macros, do not change
14180## the running order or otherwise move them around unless you know exactly
14181## what you are doing...
14182if test -n "$compiler"; then
14183
14184lt_prog_compiler_no_builtin_flag=
14185
14186if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014187 case $cc_basename in
14188 nvcc*)
14189 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14190 *)
14191 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14192 esac
cristy73bd4a52010-10-05 11:24:23 +000014193
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14195$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014196if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014197 $as_echo_n "(cached) " >&6
14198else
14199 lt_cv_prog_compiler_rtti_exceptions=no
14200 ac_outfile=conftest.$ac_objext
14201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14202 lt_compiler_flag="-fno-rtti -fno-exceptions"
14203 # Insert the option either (1) after the last *FLAGS variable, or
14204 # (2) before a word containing "conftest.", or (3) at the end.
14205 # Note that $ac_compile itself does not contain backslashes and begins
14206 # with a dollar sign (not a hyphen), so the echo should work correctly.
14207 # The option is referenced via a variable to avoid confusing sed.
14208 lt_compile=`echo "$ac_compile" | $SED \
14209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14211 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014213 (eval "$lt_compile" 2>conftest.err)
14214 ac_status=$?
14215 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014217 if (exit $ac_status) && test -s "$ac_outfile"; then
14218 # The compiler can only warn and ignore the option if not recognized
14219 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14223 lt_cv_prog_compiler_rtti_exceptions=yes
14224 fi
14225 fi
14226 $RM conftest*
14227
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14230$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14231
14232if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14233 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14234else
14235 :
14236fi
14237
14238fi
14239
14240
14241
14242
14243
14244
14245 lt_prog_compiler_wl=
14246lt_prog_compiler_pic=
14247lt_prog_compiler_static=
14248
cristy73bd4a52010-10-05 11:24:23 +000014249
14250 if test "$GCC" = yes; then
14251 lt_prog_compiler_wl='-Wl,'
14252 lt_prog_compiler_static='-static'
14253
14254 case $host_os in
14255 aix*)
14256 # All AIX code is PIC.
14257 if test "$host_cpu" = ia64; then
14258 # AIX 5 now supports IA64 processor
14259 lt_prog_compiler_static='-Bstatic'
14260 fi
14261 ;;
14262
14263 amigaos*)
14264 case $host_cpu in
14265 powerpc)
14266 # see comment about AmigaOS4 .so support
14267 lt_prog_compiler_pic='-fPIC'
14268 ;;
14269 m68k)
14270 # FIXME: we need at least 68020 code to build shared libraries, but
14271 # adding the `-m68020' flag to GCC prevents building anything better,
14272 # like `-m68040'.
14273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14274 ;;
14275 esac
14276 ;;
14277
14278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14279 # PIC is the default for these OSes.
14280 ;;
14281
14282 mingw* | cygwin* | pw32* | os2* | cegcc*)
14283 # This hack is so that the source file can tell whether it is being
14284 # built for inclusion in a dll (and should export symbols for example).
14285 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14286 # (--disable-auto-import) libraries
14287 lt_prog_compiler_pic='-DDLL_EXPORT'
14288 ;;
14289
14290 darwin* | rhapsody*)
14291 # PIC is the default on this platform
14292 # Common symbols not allowed in MH_DYLIB files
14293 lt_prog_compiler_pic='-fno-common'
14294 ;;
14295
cristy0c60a692010-11-04 01:09:47 +000014296 haiku*)
14297 # PIC is the default for Haiku.
14298 # The "-static" flag exists, but is broken.
14299 lt_prog_compiler_static=
14300 ;;
14301
cristy73bd4a52010-10-05 11:24:23 +000014302 hpux*)
14303 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14304 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14305 # sets the default TLS model and affects inlining.
14306 case $host_cpu in
14307 hppa*64*)
14308 # +Z the default
14309 ;;
14310 *)
14311 lt_prog_compiler_pic='-fPIC'
14312 ;;
14313 esac
14314 ;;
14315
14316 interix[3-9]*)
14317 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14318 # Instead, we relocate shared libraries at runtime.
14319 ;;
14320
14321 msdosdjgpp*)
14322 # Just because we use GCC doesn't mean we suddenly get shared libraries
14323 # on systems that don't support them.
14324 lt_prog_compiler_can_build_shared=no
14325 enable_shared=no
14326 ;;
14327
14328 *nto* | *qnx*)
14329 # QNX uses GNU C++, but need to define -shared option too, otherwise
14330 # it will coredump.
14331 lt_prog_compiler_pic='-fPIC -shared'
14332 ;;
14333
14334 sysv4*MP*)
14335 if test -d /usr/nec; then
14336 lt_prog_compiler_pic=-Kconform_pic
14337 fi
14338 ;;
14339
14340 *)
14341 lt_prog_compiler_pic='-fPIC'
14342 ;;
14343 esac
cristy0c60a692010-11-04 01:09:47 +000014344
14345 case $cc_basename in
14346 nvcc*) # Cuda Compiler Driver 2.2
14347 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014348 if test -n "$lt_prog_compiler_pic"; then
14349 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14350 fi
cristy0c60a692010-11-04 01:09:47 +000014351 ;;
14352 esac
cristy73bd4a52010-10-05 11:24:23 +000014353 else
14354 # PORTME Check for flag to pass linker flags through the system compiler.
14355 case $host_os in
14356 aix*)
14357 lt_prog_compiler_wl='-Wl,'
14358 if test "$host_cpu" = ia64; then
14359 # AIX 5 now supports IA64 processor
14360 lt_prog_compiler_static='-Bstatic'
14361 else
14362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14363 fi
14364 ;;
14365
14366 mingw* | cygwin* | pw32* | os2* | cegcc*)
14367 # This hack is so that the source file can tell whether it is being
14368 # built for inclusion in a dll (and should export symbols for example).
14369 lt_prog_compiler_pic='-DDLL_EXPORT'
14370 ;;
14371
14372 hpux9* | hpux10* | hpux11*)
14373 lt_prog_compiler_wl='-Wl,'
14374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14375 # not for PA HP-UX.
14376 case $host_cpu in
14377 hppa*64*|ia64*)
14378 # +Z the default
14379 ;;
14380 *)
14381 lt_prog_compiler_pic='+Z'
14382 ;;
14383 esac
14384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14385 lt_prog_compiler_static='${wl}-a ${wl}archive'
14386 ;;
14387
14388 irix5* | irix6* | nonstopux*)
14389 lt_prog_compiler_wl='-Wl,'
14390 # PIC (with -KPIC) is the default.
14391 lt_prog_compiler_static='-non_shared'
14392 ;;
14393
cristy0c60a692010-11-04 01:09:47 +000014394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014395 case $cc_basename in
14396 # old Intel for x86_64 which still supported -KPIC.
14397 ecc*)
14398 lt_prog_compiler_wl='-Wl,'
14399 lt_prog_compiler_pic='-KPIC'
14400 lt_prog_compiler_static='-static'
14401 ;;
14402 # icc used to be incompatible with GCC.
14403 # ICC 10 doesn't accept -KPIC any more.
14404 icc* | ifort*)
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_pic='-fPIC'
14407 lt_prog_compiler_static='-static'
14408 ;;
14409 # Lahey Fortran 8.1.
14410 lf95*)
14411 lt_prog_compiler_wl='-Wl,'
14412 lt_prog_compiler_pic='--shared'
14413 lt_prog_compiler_static='--static'
14414 ;;
cristyda16f162011-02-19 23:52:17 +000014415 nagfor*)
14416 # NAG Fortran compiler
14417 lt_prog_compiler_wl='-Wl,-Wl,,'
14418 lt_prog_compiler_pic='-PIC'
14419 lt_prog_compiler_static='-Bstatic'
14420 ;;
cristy0c60a692010-11-04 01:09:47 +000014421 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014422 # Portland Group compilers (*not* the Pentium gcc compiler,
14423 # which looks to be a dead project)
14424 lt_prog_compiler_wl='-Wl,'
14425 lt_prog_compiler_pic='-fpic'
14426 lt_prog_compiler_static='-Bstatic'
14427 ;;
14428 ccc*)
14429 lt_prog_compiler_wl='-Wl,'
14430 # All Alpha code is PIC.
14431 lt_prog_compiler_static='-non_shared'
14432 ;;
cristy0c60a692010-11-04 01:09:47 +000014433 xl* | bgxl* | bgf* | mpixl*)
14434 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014435 lt_prog_compiler_wl='-Wl,'
14436 lt_prog_compiler_pic='-qpic'
14437 lt_prog_compiler_static='-qstaticlink'
14438 ;;
14439 *)
14440 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014441 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014442 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14443 lt_prog_compiler_pic='-KPIC'
14444 lt_prog_compiler_static='-Bstatic'
14445 lt_prog_compiler_wl=''
14446 ;;
cristy99bd5232011-12-07 14:38:20 +000014447 *Sun\ F* | *Sun*Fortran*)
14448 lt_prog_compiler_pic='-KPIC'
14449 lt_prog_compiler_static='-Bstatic'
14450 lt_prog_compiler_wl='-Qoption ld '
14451 ;;
cristy73bd4a52010-10-05 11:24:23 +000014452 *Sun\ C*)
14453 # Sun C 5.9
14454 lt_prog_compiler_pic='-KPIC'
14455 lt_prog_compiler_static='-Bstatic'
14456 lt_prog_compiler_wl='-Wl,'
14457 ;;
cristy99bd5232011-12-07 14:38:20 +000014458 *Intel*\ [CF]*Compiler*)
14459 lt_prog_compiler_wl='-Wl,'
14460 lt_prog_compiler_pic='-fPIC'
14461 lt_prog_compiler_static='-static'
14462 ;;
14463 *Portland\ Group*)
14464 lt_prog_compiler_wl='-Wl,'
14465 lt_prog_compiler_pic='-fpic'
14466 lt_prog_compiler_static='-Bstatic'
14467 ;;
cristy73bd4a52010-10-05 11:24:23 +000014468 esac
14469 ;;
14470 esac
14471 ;;
14472
14473 newsos6)
14474 lt_prog_compiler_pic='-KPIC'
14475 lt_prog_compiler_static='-Bstatic'
14476 ;;
14477
14478 *nto* | *qnx*)
14479 # QNX uses GNU C++, but need to define -shared option too, otherwise
14480 # it will coredump.
14481 lt_prog_compiler_pic='-fPIC -shared'
14482 ;;
14483
14484 osf3* | osf4* | osf5*)
14485 lt_prog_compiler_wl='-Wl,'
14486 # All OSF/1 code is PIC.
14487 lt_prog_compiler_static='-non_shared'
14488 ;;
14489
14490 rdos*)
14491 lt_prog_compiler_static='-non_shared'
14492 ;;
14493
14494 solaris*)
14495 lt_prog_compiler_pic='-KPIC'
14496 lt_prog_compiler_static='-Bstatic'
14497 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014498 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014499 lt_prog_compiler_wl='-Qoption ld ';;
14500 *)
14501 lt_prog_compiler_wl='-Wl,';;
14502 esac
14503 ;;
14504
14505 sunos4*)
14506 lt_prog_compiler_wl='-Qoption ld '
14507 lt_prog_compiler_pic='-PIC'
14508 lt_prog_compiler_static='-Bstatic'
14509 ;;
14510
14511 sysv4 | sysv4.2uw2* | sysv4.3*)
14512 lt_prog_compiler_wl='-Wl,'
14513 lt_prog_compiler_pic='-KPIC'
14514 lt_prog_compiler_static='-Bstatic'
14515 ;;
14516
14517 sysv4*MP*)
14518 if test -d /usr/nec ;then
14519 lt_prog_compiler_pic='-Kconform_pic'
14520 lt_prog_compiler_static='-Bstatic'
14521 fi
14522 ;;
14523
14524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14525 lt_prog_compiler_wl='-Wl,'
14526 lt_prog_compiler_pic='-KPIC'
14527 lt_prog_compiler_static='-Bstatic'
14528 ;;
14529
14530 unicos*)
14531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_can_build_shared=no
14533 ;;
14534
14535 uts4*)
14536 lt_prog_compiler_pic='-pic'
14537 lt_prog_compiler_static='-Bstatic'
14538 ;;
14539
14540 *)
14541 lt_prog_compiler_can_build_shared=no
14542 ;;
14543 esac
14544 fi
14545
14546case $host_os in
14547 # For platforms which do not support PIC, -DPIC is meaningless:
14548 *djgpp*)
14549 lt_prog_compiler_pic=
14550 ;;
14551 *)
14552 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14553 ;;
14554esac
cristy73bd4a52010-10-05 11:24:23 +000014555
cristyda16f162011-02-19 23:52:17 +000014556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14557$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14558if ${lt_cv_prog_compiler_pic+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560else
14561 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14564$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14565lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014566
14567#
14568# Check to make sure the PIC flag actually works.
14569#
14570if test -n "$lt_prog_compiler_pic"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14572$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014573if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014574 $as_echo_n "(cached) " >&6
14575else
14576 lt_cv_prog_compiler_pic_works=no
14577 ac_outfile=conftest.$ac_objext
14578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14579 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14580 # Insert the option either (1) after the last *FLAGS variable, or
14581 # (2) before a word containing "conftest.", or (3) at the end.
14582 # Note that $ac_compile itself does not contain backslashes and begins
14583 # with a dollar sign (not a hyphen), so the echo should work correctly.
14584 # The option is referenced via a variable to avoid confusing sed.
14585 lt_compile=`echo "$ac_compile" | $SED \
14586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14588 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014590 (eval "$lt_compile" 2>conftest.err)
14591 ac_status=$?
14592 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014594 if (exit $ac_status) && test -s "$ac_outfile"; then
14595 # The compiler can only warn and ignore the option if not recognized
14596 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14600 lt_cv_prog_compiler_pic_works=yes
14601 fi
14602 fi
14603 $RM conftest*
14604
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14607$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14608
14609if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14610 case $lt_prog_compiler_pic in
14611 "" | " "*) ;;
14612 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14613 esac
14614else
14615 lt_prog_compiler_pic=
14616 lt_prog_compiler_can_build_shared=no
14617fi
14618
14619fi
14620
14621
14622
14623
14624
14625
cristyda16f162011-02-19 23:52:17 +000014626
14627
14628
14629
14630
cristy73bd4a52010-10-05 11:24:23 +000014631#
14632# Check to make sure the static flag actually works.
14633#
14634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14636$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014637if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014638 $as_echo_n "(cached) " >&6
14639else
14640 lt_cv_prog_compiler_static_works=no
14641 save_LDFLAGS="$LDFLAGS"
14642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14645 # The linker can only warn and ignore the option if not recognized
14646 # So say no if there are warnings
14647 if test -s conftest.err; then
14648 # Append any errors to the config.log.
14649 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_static_works=yes
14654 fi
14655 else
14656 lt_cv_prog_compiler_static_works=yes
14657 fi
14658 fi
14659 $RM -r conftest*
14660 LDFLAGS="$save_LDFLAGS"
14661
14662fi
14663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14664$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14665
14666if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14667 :
14668else
14669 lt_prog_compiler_static=
14670fi
14671
14672
14673
14674
14675
14676
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014680if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014681 $as_echo_n "(cached) " >&6
14682else
14683 lt_cv_prog_compiler_c_o=no
14684 $RM -r conftest 2>/dev/null
14685 mkdir conftest
14686 cd conftest
14687 mkdir out
14688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14689
14690 lt_compiler_flag="-o out/conftest2.$ac_objext"
14691 # Insert the option either (1) after the last *FLAGS variable, or
14692 # (2) before a word containing "conftest.", or (3) at the end.
14693 # Note that $ac_compile itself does not contain backslashes and begins
14694 # with a dollar sign (not a hyphen), so the echo should work correctly.
14695 lt_compile=`echo "$ac_compile" | $SED \
14696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14698 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014700 (eval "$lt_compile" 2>out/conftest.err)
14701 ac_status=$?
14702 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14705 then
14706 # The compiler can only warn and ignore the option if not recognized
14707 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14711 lt_cv_prog_compiler_c_o=yes
14712 fi
14713 fi
14714 chmod u+w . 2>&5
14715 $RM conftest*
14716 # SGI C++ compiler will create directory out/ii_files/ for
14717 # template instantiation
14718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14719 $RM out/* && rmdir out
14720 cd ..
14721 $RM -r conftest
14722 $RM conftest*
14723
14724fi
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14726$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14727
14728
14729
14730
14731
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014735if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014736 $as_echo_n "(cached) " >&6
14737else
14738 lt_cv_prog_compiler_c_o=no
14739 $RM -r conftest 2>/dev/null
14740 mkdir conftest
14741 cd conftest
14742 mkdir out
14743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
14745 lt_compiler_flag="-o out/conftest2.$ac_objext"
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 lt_compile=`echo "$ac_compile" | $SED \
14751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014755 (eval "$lt_compile" 2>out/conftest.err)
14756 ac_status=$?
14757 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14760 then
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14766 lt_cv_prog_compiler_c_o=yes
14767 fi
14768 fi
14769 chmod u+w . 2>&5
14770 $RM conftest*
14771 # SGI C++ compiler will create directory out/ii_files/ for
14772 # template instantiation
14773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14774 $RM out/* && rmdir out
14775 cd ..
14776 $RM -r conftest
14777 $RM conftest*
14778
14779fi
14780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14781$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14782
14783
14784
14785
14786hard_links="nottested"
14787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14788 # do not overwrite the value of need_locks provided by the user
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14790$as_echo_n "checking if we can lock with hard links... " >&6; }
14791 hard_links=yes
14792 $RM conftest*
14793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14794 touch conftest.a
14795 ln conftest.a conftest.b 2>&5 || hard_links=no
14796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14798$as_echo "$hard_links" >&6; }
14799 if test "$hard_links" = no; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14801$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14802 need_locks=warn
14803 fi
14804else
14805 need_locks=no
14806fi
14807
14808
14809
14810
14811
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14815
14816 runpath_var=
14817 allow_undefined_flag=
14818 always_export_symbols=no
14819 archive_cmds=
14820 archive_expsym_cmds=
14821 compiler_needs_object=no
14822 enable_shared_with_static_runtimes=no
14823 export_dynamic_flag_spec=
14824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14825 hardcode_automatic=no
14826 hardcode_direct=no
14827 hardcode_direct_absolute=no
14828 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014829 hardcode_libdir_separator=
14830 hardcode_minus_L=no
14831 hardcode_shlibpath_var=unsupported
14832 inherit_rpath=no
14833 link_all_deplibs=unknown
14834 module_cmds=
14835 module_expsym_cmds=
14836 old_archive_from_new_cmds=
14837 old_archive_from_expsyms_cmds=
14838 thread_safe_flag_spec=
14839 whole_archive_flag_spec=
14840 # include_expsyms should be a list of space-separated symbols to be *always*
14841 # included in the symbol list
14842 include_expsyms=
14843 # exclude_expsyms can be an extended regexp of symbols to exclude
14844 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14845 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14846 # as well as any symbol that contains `d'.
14847 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14849 # platforms (ab)use it in PIC code, but their linkers get confused if
14850 # the symbol is explicitly referenced. Since portable code cannot
14851 # rely on this symbol name, it's probably fine to never include it in
14852 # preloaded symbol tables.
14853 # Exclude shared library initialization/finalization symbols.
14854 extract_expsyms_cmds=
14855
14856 case $host_os in
14857 cygwin* | mingw* | pw32* | cegcc*)
14858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14859 # When not using gcc, we currently assume that we are using
14860 # Microsoft Visual C++.
14861 if test "$GCC" != yes; then
14862 with_gnu_ld=no
14863 fi
14864 ;;
14865 interix*)
14866 # we just hope/assume this is gcc and not c89 (= MSVC++)
14867 with_gnu_ld=yes
14868 ;;
14869 openbsd*)
14870 with_gnu_ld=no
14871 ;;
14872 esac
14873
14874 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014875
14876 # On some targets, GNU ld is compatible enough with the native linker
14877 # that we're better off using the native interface for both.
14878 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014879 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014880 case $host_os in
14881 aix*)
14882 # The AIX port of GNU ld has always aspired to compatibility
14883 # with the native linker. However, as the warning in the GNU ld
14884 # block says, versions before 2.19.5* couldn't really create working
14885 # shared libraries, regardless of the interface used.
14886 case `$LD -v 2>&1` in
14887 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14888 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14889 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14890 *)
14891 lt_use_gnu_ld_interface=yes
14892 ;;
14893 esac
14894 ;;
14895 *)
14896 lt_use_gnu_ld_interface=yes
14897 ;;
14898 esac
14899 fi
14900
14901 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014902 # If archive_cmds runs LD, not CC, wlarc should be empty
14903 wlarc='${wl}'
14904
14905 # Set some defaults for GNU ld with shared library support. These
14906 # are reset later if shared libraries are not supported. Putting them
14907 # here allows them to be overridden if necessary.
14908 runpath_var=LD_RUN_PATH
14909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14910 export_dynamic_flag_spec='${wl}--export-dynamic'
14911 # ancient GNU ld didn't support --whole-archive et. al.
14912 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14913 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914 else
14915 whole_archive_flag_spec=
14916 fi
14917 supports_anon_versioning=no
14918 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014919 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923 *\ 2.11.*) ;; # other 2.11 versions
14924 *) supports_anon_versioning=yes ;;
14925 esac
14926
14927 # See if GNU ld supports shared libraries.
14928 case $host_os in
14929 aix[3-9]*)
14930 # On AIX/PPC, the GNU linker is very broken
14931 if test "$host_cpu" != ia64; then
14932 ld_shlibs=no
14933 cat <<_LT_EOF 1>&2
14934
cristy0c60a692010-11-04 01:09:47 +000014935*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014936*** to be unable to reliably create shared libraries on AIX.
14937*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014938*** really care for shared libraries, you may want to install binutils
14939*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14940*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014941
14942_LT_EOF
14943 fi
14944 ;;
14945
14946 amigaos*)
14947 case $host_cpu in
14948 powerpc)
14949 # see comment about AmigaOS4 .so support
14950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951 archive_expsym_cmds=''
14952 ;;
14953 m68k)
14954 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)'
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 hardcode_minus_L=yes
14957 ;;
14958 esac
14959 ;;
14960
14961 beos*)
14962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14963 allow_undefined_flag=unsupported
14964 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14965 # support --undefined. This deserves some investigation. FIXME
14966 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 else
14968 ld_shlibs=no
14969 fi
14970 ;;
14971
14972 cygwin* | mingw* | pw32* | cegcc*)
14973 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14974 # as there is no search path for DLLs.
14975 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014976 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014977 allow_undefined_flag=unsupported
14978 always_export_symbols=no
14979 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014980 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'
14981 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 +000014982
14983 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14985 # If the export-symbols file already is a .def file (1st line
14986 # is EXPORTS), use it as is; otherwise, prepend...
14987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14988 cp $export_symbols $output_objdir/$soname.def;
14989 else
14990 echo EXPORTS > $output_objdir/$soname.def;
14991 cat $export_symbols >> $output_objdir/$soname.def;
14992 fi~
14993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14994 else
14995 ld_shlibs=no
14996 fi
14997 ;;
14998
cristy0c60a692010-11-04 01:09:47 +000014999 haiku*)
15000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001 link_all_deplibs=yes
15002 ;;
15003
cristy73bd4a52010-10-05 11:24:23 +000015004 interix[3-9]*)
15005 hardcode_direct=no
15006 hardcode_shlibpath_var=no
15007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15008 export_dynamic_flag_spec='${wl}-E'
15009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15010 # Instead, shared libraries are loaded at an image base (0x10000000 by
15011 # default) and relocated if they conflict, which is a slow very memory
15012 # consuming and fragmenting process. To avoid this, we pick a random,
15013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15016 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'
15017 ;;
15018
cristy0c60a692010-11-04 01:09:47 +000015019 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015020 tmp_diet=no
15021 if test "$host_os" = linux-dietlibc; then
15022 case $cc_basename in
15023 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15024 esac
15025 fi
15026 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15027 && test "$tmp_diet" = no
15028 then
cristyda16f162011-02-19 23:52:17 +000015029 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015030 tmp_sharedflag='-shared'
15031 case $cc_basename,$host_cpu in
15032 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015033 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 +000015034 tmp_addflag=' $pic_flag'
15035 ;;
cristy0c60a692010-11-04 01:09:47 +000015036 pgf77* | pgf90* | pgf95* | pgfortran*)
15037 # Portland Group f77 and f90 compilers
15038 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 +000015039 tmp_addflag=' $pic_flag -Mnomain' ;;
15040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15041 tmp_addflag=' -i_dynamic' ;;
15042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15043 tmp_addflag=' -i_dynamic -nofor_main' ;;
15044 ifc* | ifort*) # Intel Fortran compiler
15045 tmp_addflag=' -nofor_main' ;;
15046 lf95*) # Lahey Fortran 8.1
15047 whole_archive_flag_spec=
15048 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015049 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015050 tmp_sharedflag='-qmkshrobj'
15051 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015052 nvcc*) # Cuda Compiler Driver 2.2
15053 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'
15054 compiler_needs_object=yes
15055 ;;
cristy73bd4a52010-10-05 11:24:23 +000015056 esac
15057 case `$CC -V 2>&1 | sed 5q` in
15058 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015059 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 +000015060 compiler_needs_object=yes
15061 tmp_sharedflag='-G' ;;
15062 *Sun\ F*) # Sun Fortran 8.3
15063 tmp_sharedflag='-G' ;;
15064 esac
15065 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066
15067 if test "x$supports_anon_versioning" = xyes; then
15068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15070 echo "local: *; };" >> $output_objdir/$libname.ver~
15071 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15072 fi
15073
15074 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015075 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15077 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015079 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015080 if test "x$supports_anon_versioning" = xyes; then
15081 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15083 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015084 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015085 fi
15086 ;;
15087 esac
15088 else
15089 ld_shlibs=no
15090 fi
15091 ;;
15092
15093 netbsd*)
15094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15095 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15096 wlarc=
15097 else
cristyda16f162011-02-19 23:52:17 +000015098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099 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 +000015100 fi
15101 ;;
15102
15103 solaris*)
15104 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15105 ld_shlibs=no
15106 cat <<_LT_EOF 1>&2
15107
15108*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15109*** create shared libraries on Solaris systems. Therefore, libtool
15110*** is disabling shared libraries support. We urge you to upgrade GNU
15111*** binutils to release 2.9.1 or newer. Another option is to modify
15112*** your PATH or compiler configuration so that the native linker is
15113*** used, and then restart.
15114
15115_LT_EOF
15116 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 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 +000015119 else
15120 ld_shlibs=no
15121 fi
15122 ;;
15123
15124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15125 case `$LD -v 2>&1` in
15126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15127 ld_shlibs=no
15128 cat <<_LT_EOF 1>&2
15129
15130*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15131*** reliably create shared libraries on SCO systems. Therefore, libtool
15132*** is disabling shared libraries support. We urge you to upgrade GNU
15133*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15134*** your PATH or compiler configuration so that the native linker is
15135*** used, and then restart.
15136
15137_LT_EOF
15138 ;;
15139 *)
15140 # For security reasons, it is highly recommended that you always
15141 # use absolute paths for naming shared libraries, and exclude the
15142 # DT_RUNPATH tag from executables and libraries. But doing so
15143 # requires that you compile everything twice, which is a pain.
15144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15148 else
15149 ld_shlibs=no
15150 fi
15151 ;;
15152 esac
15153 ;;
15154
15155 sunos4*)
15156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15157 wlarc=
15158 hardcode_direct=yes
15159 hardcode_shlibpath_var=no
15160 ;;
15161
15162 *)
15163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15165 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 +000015166 else
15167 ld_shlibs=no
15168 fi
15169 ;;
15170 esac
15171
15172 if test "$ld_shlibs" = no; then
15173 runpath_var=
15174 hardcode_libdir_flag_spec=
15175 export_dynamic_flag_spec=
15176 whole_archive_flag_spec=
15177 fi
15178 else
15179 # PORTME fill in a description of your system's linker (not GNU ld)
15180 case $host_os in
15181 aix3*)
15182 allow_undefined_flag=unsupported
15183 always_export_symbols=yes
15184 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'
15185 # Note: this linker hardcodes the directories in LIBPATH if there
15186 # are no directories specified by -L.
15187 hardcode_minus_L=yes
15188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15189 # Neither direct hardcoding nor static linking is supported with a
15190 # broken collect2.
15191 hardcode_direct=unsupported
15192 fi
15193 ;;
15194
15195 aix[4-9]*)
15196 if test "$host_cpu" = ia64; then
15197 # On IA64, the linker does run time linking by default, so we don't
15198 # have to do anything special.
15199 aix_use_runtimelinking=no
15200 exp_sym_flag='-Bexport'
15201 no_entry_flag=""
15202 else
15203 # If we're using GNU nm, then we don't want the "-C" option.
15204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015205 # Also, AIX nm treats weak defined symbols like other global
15206 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015208 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 +000015209 else
15210 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'
15211 fi
15212 aix_use_runtimelinking=no
15213
15214 # Test if we are trying to use run time linking or normal
15215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15216 # need to do runtime linking.
15217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15218 for ld_flag in $LDFLAGS; do
15219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15220 aix_use_runtimelinking=yes
15221 break
15222 fi
15223 done
15224 ;;
15225 esac
15226
15227 exp_sym_flag='-bexport'
15228 no_entry_flag='-bnoentry'
15229 fi
15230
15231 # When large executables or shared objects are built, AIX ld can
15232 # have problems creating the table of contents. If linking a library
15233 # or program results in "error TOC overflow" add -mminimal-toc to
15234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15236
15237 archive_cmds=''
15238 hardcode_direct=yes
15239 hardcode_direct_absolute=yes
15240 hardcode_libdir_separator=':'
15241 link_all_deplibs=yes
15242 file_list_spec='${wl}-f,'
15243
15244 if test "$GCC" = yes; then
15245 case $host_os in aix4.[012]|aix4.[012].*)
15246 # We only want to do this on AIX 4.2 and lower, the check
15247 # below for broken collect2 doesn't work under 4.3+
15248 collect2name=`${CC} -print-prog-name=collect2`
15249 if test -f "$collect2name" &&
15250 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15251 then
15252 # We have reworked collect2
15253 :
15254 else
15255 # We have old collect2
15256 hardcode_direct=unsupported
15257 # It fails to find uninstalled libraries when the uninstalled
15258 # path is not listed in the libpath. Setting hardcode_minus_L
15259 # to unsupported forces relinking
15260 hardcode_minus_L=yes
15261 hardcode_libdir_flag_spec='-L$libdir'
15262 hardcode_libdir_separator=
15263 fi
15264 ;;
15265 esac
15266 shared_flag='-shared'
15267 if test "$aix_use_runtimelinking" = yes; then
15268 shared_flag="$shared_flag "'${wl}-G'
15269 fi
15270 else
15271 # not using gcc
15272 if test "$host_cpu" = ia64; then
15273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15274 # chokes on -Wl,-G. The following line is correct:
15275 shared_flag='-G'
15276 else
15277 if test "$aix_use_runtimelinking" = yes; then
15278 shared_flag='${wl}-G'
15279 else
15280 shared_flag='${wl}-bM:SRE'
15281 fi
15282 fi
15283 fi
15284
15285 export_dynamic_flag_spec='${wl}-bexpall'
15286 # It seems that -bexpall does not export symbols beginning with
15287 # underscore (_), so it is better to generate a list of symbols to export.
15288 always_export_symbols=yes
15289 if test "$aix_use_runtimelinking" = yes; then
15290 # Warning - without using the other runtime loading flags (-brtl),
15291 # -berok will link without error, but may produce a broken library.
15292 allow_undefined_flag='-berok'
15293 # Determine the default libpath from the value encoded in an
15294 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015295 if test "${lt_cv_aix_libpath+set}" = set; then
15296 aix_libpath=$lt_cv_aix_libpath
15297else
15298 if ${lt_cv_aix_libpath_+:} false; then :
15299 $as_echo_n "(cached) " >&6
15300else
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015302/* end confdefs.h. */
15303
15304int
15305main ()
15306{
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312if ac_fn_c_try_link "$LINENO"; then :
15313
cristyda16f162011-02-19 23:52:17 +000015314 lt_aix_libpath_sed='
15315 /Import File Strings/,/^$/ {
15316 /^0/ {
15317 s/^0 *\([^ ]*\) *$/\1/
15318 p
15319 }
15320 }'
15321 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15322 # Check for a 64-bit object if we didn't find anything.
15323 if test -z "$lt_cv_aix_libpath_"; then
15324 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15325 fi
cristy73bd4a52010-10-05 11:24:23 +000015326fi
15327rm -f core conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015329 if test -z "$lt_cv_aix_libpath_"; then
15330 lt_cv_aix_libpath_="/usr/lib:/lib"
15331 fi
15332
15333fi
15334
15335 aix_libpath=$lt_cv_aix_libpath_
15336fi
cristy73bd4a52010-10-05 11:24:23 +000015337
15338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015339 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 +000015340 else
15341 if test "$host_cpu" = ia64; then
15342 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15343 allow_undefined_flag="-z nodefs"
15344 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"
15345 else
15346 # Determine the default libpath from the value encoded in an
15347 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015348 if test "${lt_cv_aix_libpath+set}" = set; then
15349 aix_libpath=$lt_cv_aix_libpath
15350else
15351 if ${lt_cv_aix_libpath_+:} false; then :
15352 $as_echo_n "(cached) " >&6
15353else
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015355/* end confdefs.h. */
15356
15357int
15358main ()
15359{
15360
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365if ac_fn_c_try_link "$LINENO"; then :
15366
cristyda16f162011-02-19 23:52:17 +000015367 lt_aix_libpath_sed='
15368 /Import File Strings/,/^$/ {
15369 /^0/ {
15370 s/^0 *\([^ ]*\) *$/\1/
15371 p
15372 }
15373 }'
15374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15375 # Check for a 64-bit object if we didn't find anything.
15376 if test -z "$lt_cv_aix_libpath_"; then
15377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15378 fi
cristy73bd4a52010-10-05 11:24:23 +000015379fi
15380rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015382 if test -z "$lt_cv_aix_libpath_"; then
15383 lt_cv_aix_libpath_="/usr/lib:/lib"
15384 fi
15385
15386fi
15387
15388 aix_libpath=$lt_cv_aix_libpath_
15389fi
cristy73bd4a52010-10-05 11:24:23 +000015390
15391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15392 # Warning - without using the other run time loading flags,
15393 # -berok will link without error, but may produce a broken library.
15394 no_undefined_flag=' ${wl}-bernotok'
15395 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015396 if test "$with_gnu_ld" = yes; then
15397 # We only use this code for GNU lds that support --whole-archive.
15398 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15399 else
15400 # Exported symbols can be pulled into shared objects from archives
15401 whole_archive_flag_spec='$convenience'
15402 fi
cristy73bd4a52010-10-05 11:24:23 +000015403 archive_cmds_need_lc=yes
15404 # This is similar to how AIX traditionally builds its shared libraries.
15405 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'
15406 fi
15407 fi
15408 ;;
15409
15410 amigaos*)
15411 case $host_cpu in
15412 powerpc)
15413 # see comment about AmigaOS4 .so support
15414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 archive_expsym_cmds=''
15416 ;;
15417 m68k)
15418 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)'
15419 hardcode_libdir_flag_spec='-L$libdir'
15420 hardcode_minus_L=yes
15421 ;;
15422 esac
15423 ;;
15424
15425 bsdi[45]*)
15426 export_dynamic_flag_spec=-rdynamic
15427 ;;
15428
15429 cygwin* | mingw* | pw32* | cegcc*)
15430 # When not using gcc, we currently assume that we are using
15431 # Microsoft Visual C++.
15432 # hardcode_libdir_flag_spec is actually meaningless, as there is
15433 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015434 case $cc_basename in
15435 cl*)
15436 # Native MSVC
15437 hardcode_libdir_flag_spec=' '
15438 allow_undefined_flag=unsupported
15439 always_export_symbols=yes
15440 file_list_spec='@'
15441 # Tell ltmain to make .lib files, not .a files.
15442 libext=lib
15443 # Tell ltmain to make .dll files, not .so files.
15444 shrext_cmds=".dll"
15445 # FIXME: Setting linknames here is a bad hack.
15446 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15448 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15449 else
15450 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15451 fi~
15452 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15453 linknames='
15454 # The linker will not automatically build a static lib if we build a DLL.
15455 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15456 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015457 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015458 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15459 # Don't use ranlib
15460 old_postinstall_cmds='chmod 644 $oldlib'
15461 postlink_cmds='lt_outputfile="@OUTPUT@"~
15462 lt_tool_outputfile="@TOOL_OUTPUT@"~
15463 case $lt_outputfile in
15464 *.exe|*.EXE) ;;
15465 *)
15466 lt_outputfile="$lt_outputfile.exe"
15467 lt_tool_outputfile="$lt_tool_outputfile.exe"
15468 ;;
15469 esac~
15470 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15471 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15472 $RM "$lt_outputfile.manifest";
15473 fi'
15474 ;;
15475 *)
15476 # Assume MSVC wrapper
15477 hardcode_libdir_flag_spec=' '
15478 allow_undefined_flag=unsupported
15479 # Tell ltmain to make .lib files, not .a files.
15480 libext=lib
15481 # Tell ltmain to make .dll files, not .so files.
15482 shrext_cmds=".dll"
15483 # FIXME: Setting linknames here is a bad hack.
15484 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15485 # The linker will automatically build a .lib file if we build a DLL.
15486 old_archive_from_new_cmds='true'
15487 # FIXME: Should let the user specify the lib program.
15488 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15489 enable_shared_with_static_runtimes=yes
15490 ;;
15491 esac
cristy73bd4a52010-10-05 11:24:23 +000015492 ;;
15493
15494 darwin* | rhapsody*)
15495
15496
15497 archive_cmds_need_lc=no
15498 hardcode_direct=no
15499 hardcode_automatic=yes
15500 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015501 if test "$lt_cv_ld_force_load" = "yes"; then
15502 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 +000015503
cristy0c60a692010-11-04 01:09:47 +000015504 else
15505 whole_archive_flag_spec=''
15506 fi
cristy73bd4a52010-10-05 11:24:23 +000015507 link_all_deplibs=yes
15508 allow_undefined_flag="$_lt_dar_allow_undefined"
15509 case $cc_basename in
15510 ifort*) _lt_dar_can_shared=yes ;;
15511 *) _lt_dar_can_shared=$GCC ;;
15512 esac
15513 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015514 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015515 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15516 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15517 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}"
15518 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}"
15519
15520 else
15521 ld_shlibs=no
15522 fi
15523
15524 ;;
15525
15526 dgux*)
15527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_libdir_flag_spec='-L$libdir'
15529 hardcode_shlibpath_var=no
15530 ;;
15531
cristy73bd4a52010-10-05 11:24:23 +000015532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15533 # support. Future versions do this automatically, but an explicit c++rt0.o
15534 # does not break anything, and helps significantly (at the cost of a little
15535 # extra space).
15536 freebsd2.2*)
15537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15538 hardcode_libdir_flag_spec='-R$libdir'
15539 hardcode_direct=yes
15540 hardcode_shlibpath_var=no
15541 ;;
15542
15543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015544 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct=yes
15547 hardcode_minus_L=yes
15548 hardcode_shlibpath_var=no
15549 ;;
15550
15551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15552 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015554 hardcode_libdir_flag_spec='-R$libdir'
15555 hardcode_direct=yes
15556 hardcode_shlibpath_var=no
15557 ;;
15558
15559 hpux9*)
15560 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015561 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 +000015562 else
15563 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'
15564 fi
15565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15566 hardcode_libdir_separator=:
15567 hardcode_direct=yes
15568
15569 # hardcode_minus_L: Not really in the search PATH,
15570 # but as the default location of the library.
15571 hardcode_minus_L=yes
15572 export_dynamic_flag_spec='${wl}-E'
15573 ;;
15574
15575 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015577 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 +000015578 else
15579 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15580 fi
15581 if test "$with_gnu_ld" = no; then
15582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015583 hardcode_libdir_separator=:
15584 hardcode_direct=yes
15585 hardcode_direct_absolute=yes
15586 export_dynamic_flag_spec='${wl}-E'
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L=yes
15590 fi
15591 ;;
15592
15593 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015595 case $host_cpu in
15596 hppa*64*)
15597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598 ;;
15599 ia64*)
cristyda16f162011-02-19 23:52:17 +000015600 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015601 ;;
15602 *)
cristyda16f162011-02-19 23:52:17 +000015603 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 +000015604 ;;
15605 esac
15606 else
15607 case $host_cpu in
15608 hppa*64*)
15609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15610 ;;
15611 ia64*)
15612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15613 ;;
15614 *)
cristy0c60a692010-11-04 01:09:47 +000015615
15616 # Older versions of the 11.00 compiler do not understand -b yet
15617 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15619$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015620if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015621 $as_echo_n "(cached) " >&6
15622else
15623 lt_cv_prog_compiler__b=no
15624 save_LDFLAGS="$LDFLAGS"
15625 LDFLAGS="$LDFLAGS -b"
15626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15628 # The linker can only warn and ignore the option if not recognized
15629 # So say no if there are warnings
15630 if test -s conftest.err; then
15631 # Append any errors to the config.log.
15632 cat conftest.err 1>&5
15633 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15635 if diff conftest.exp conftest.er2 >/dev/null; then
15636 lt_cv_prog_compiler__b=yes
15637 fi
15638 else
15639 lt_cv_prog_compiler__b=yes
15640 fi
15641 fi
15642 $RM -r conftest*
15643 LDFLAGS="$save_LDFLAGS"
15644
15645fi
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15647$as_echo "$lt_cv_prog_compiler__b" >&6; }
15648
15649if test x"$lt_cv_prog_compiler__b" = xyes; then
15650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15651else
15652 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15653fi
15654
cristy73bd4a52010-10-05 11:24:23 +000015655 ;;
15656 esac
15657 fi
15658 if test "$with_gnu_ld" = no; then
15659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator=:
15661
15662 case $host_cpu in
15663 hppa*64*|ia64*)
15664 hardcode_direct=no
15665 hardcode_shlibpath_var=no
15666 ;;
15667 *)
15668 hardcode_direct=yes
15669 hardcode_direct_absolute=yes
15670 export_dynamic_flag_spec='${wl}-E'
15671
15672 # hardcode_minus_L: Not really in the search PATH,
15673 # but as the default location of the library.
15674 hardcode_minus_L=yes
15675 ;;
15676 esac
15677 fi
15678 ;;
15679
15680 irix5* | irix6* | nonstopux*)
15681 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015682 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 +000015683 # Try to use the -exported_symbol ld option, if it does not
15684 # work, assume that -exports_file does not work either and
15685 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015686 # This should be the same for all languages, so no per-tag cache variable.
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15688$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15689if ${lt_cv_irix_exported_symbol+:} false; then :
15690 $as_echo_n "(cached) " >&6
15691else
15692 save_LDFLAGS="$LDFLAGS"
15693 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015695/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015696int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015697_ACEOF
15698if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015699 lt_cv_irix_exported_symbol=yes
15700else
15701 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015702fi
15703rm -f core conftest.err conftest.$ac_objext \
15704 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015705 LDFLAGS="$save_LDFLAGS"
15706fi
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15708$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15709 if test "$lt_cv_irix_exported_symbol" = yes; then
15710 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'
15711 fi
cristy73bd4a52010-10-05 11:24:23 +000015712 else
cristy0c60a692010-11-04 01:09:47 +000015713 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'
15714 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 +000015715 fi
15716 archive_cmds_need_lc='no'
15717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15718 hardcode_libdir_separator=:
15719 inherit_rpath=yes
15720 link_all_deplibs=yes
15721 ;;
15722
15723 netbsd*)
15724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15726 else
15727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15728 fi
15729 hardcode_libdir_flag_spec='-R$libdir'
15730 hardcode_direct=yes
15731 hardcode_shlibpath_var=no
15732 ;;
15733
15734 newsos6)
15735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_direct=yes
15737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738 hardcode_libdir_separator=:
15739 hardcode_shlibpath_var=no
15740 ;;
15741
15742 *nto* | *qnx*)
15743 ;;
15744
15745 openbsd*)
15746 if test -f /usr/libexec/ld.so; then
15747 hardcode_direct=yes
15748 hardcode_shlibpath_var=no
15749 hardcode_direct_absolute=yes
15750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15754 export_dynamic_flag_spec='${wl}-E'
15755 else
15756 case $host_os in
15757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_libdir_flag_spec='-R$libdir'
15760 ;;
15761 *)
15762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15764 ;;
15765 esac
15766 fi
15767 else
15768 ld_shlibs=no
15769 fi
15770 ;;
15771
15772 os2*)
15773 hardcode_libdir_flag_spec='-L$libdir'
15774 hardcode_minus_L=yes
15775 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015776 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 +000015777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15778 ;;
15779
15780 osf3*)
15781 if test "$GCC" = yes; then
15782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015783 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 +000015784 else
15785 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015786 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 +000015787 fi
15788 archive_cmds_need_lc='no'
15789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15790 hardcode_libdir_separator=:
15791 ;;
15792
15793 osf4* | osf5*) # as osf3* with the addition of -msym flag
15794 if test "$GCC" = yes; then
15795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015796 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 +000015797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15798 else
15799 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015800 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 +000015801 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 +000015802 $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 +000015803
15804 # Both c and cxx compiler support -rpath directly
15805 hardcode_libdir_flag_spec='-rpath $libdir'
15806 fi
15807 archive_cmds_need_lc='no'
15808 hardcode_libdir_separator=:
15809 ;;
15810
15811 solaris*)
15812 no_undefined_flag=' -z defs'
15813 if test "$GCC" = yes; then
15814 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015815 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 +000015816 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 +000015817 $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 +000015818 else
15819 case `$CC -V 2>&1` in
15820 *"Compilers 5.0"*)
15821 wlarc=''
15822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15825 ;;
15826 *)
15827 wlarc='${wl}'
15828 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15831 ;;
15832 esac
15833 fi
15834 hardcode_libdir_flag_spec='-R$libdir'
15835 hardcode_shlibpath_var=no
15836 case $host_os in
15837 solaris2.[0-5] | solaris2.[0-5].*) ;;
15838 *)
15839 # The compiler driver will combine and reorder linker options,
15840 # but understands `-z linker_flag'. GCC discards it without `$wl',
15841 # but is careful enough not to reorder.
15842 # Supported since Solaris 2.6 (maybe 2.5.1?)
15843 if test "$GCC" = yes; then
15844 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15845 else
15846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15847 fi
15848 ;;
15849 esac
15850 link_all_deplibs=yes
15851 ;;
15852
15853 sunos4*)
15854 if test "x$host_vendor" = xsequent; then
15855 # Use $CC to link under sequent, because it throws in some extra .o
15856 # files that make .init and .fini sections work.
15857 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15858 else
15859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15860 fi
15861 hardcode_libdir_flag_spec='-L$libdir'
15862 hardcode_direct=yes
15863 hardcode_minus_L=yes
15864 hardcode_shlibpath_var=no
15865 ;;
15866
15867 sysv4)
15868 case $host_vendor in
15869 sni)
15870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15871 hardcode_direct=yes # is this really true???
15872 ;;
15873 siemens)
15874 ## LD is ld it makes a PLAMLIB
15875 ## CC just makes a GrossModule.
15876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15877 reload_cmds='$CC -r -o $output$reload_objs'
15878 hardcode_direct=no
15879 ;;
15880 motorola)
15881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15883 ;;
15884 esac
15885 runpath_var='LD_RUN_PATH'
15886 hardcode_shlibpath_var=no
15887 ;;
15888
15889 sysv4.3*)
15890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891 hardcode_shlibpath_var=no
15892 export_dynamic_flag_spec='-Bexport'
15893 ;;
15894
15895 sysv4*MP*)
15896 if test -d /usr/nec; then
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_shlibpath_var=no
15899 runpath_var=LD_RUN_PATH
15900 hardcode_runpath_var=yes
15901 ld_shlibs=yes
15902 fi
15903 ;;
15904
15905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15906 no_undefined_flag='${wl}-z,text'
15907 archive_cmds_need_lc=no
15908 hardcode_shlibpath_var=no
15909 runpath_var='LD_RUN_PATH'
15910
15911 if test "$GCC" = yes; then
15912 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15914 else
15915 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 fi
15918 ;;
15919
15920 sysv5* | sco3.2v5* | sco5v6*)
15921 # Note: We can NOT use -z defs as we might desire, because we do not
15922 # link with -lc, and that would cause any symbols used from libc to
15923 # always be unresolved, which means just about no library would
15924 # ever link correctly. If we're not using GNU ld we use -z text
15925 # though, which does catch some bad symbols but isn't as heavy-handed
15926 # as -z defs.
15927 no_undefined_flag='${wl}-z,text'
15928 allow_undefined_flag='${wl}-z,nodefs'
15929 archive_cmds_need_lc=no
15930 hardcode_shlibpath_var=no
15931 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15932 hardcode_libdir_separator=':'
15933 link_all_deplibs=yes
15934 export_dynamic_flag_spec='${wl}-Bexport'
15935 runpath_var='LD_RUN_PATH'
15936
15937 if test "$GCC" = yes; then
15938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 else
15941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 fi
15944 ;;
15945
15946 uts4*)
15947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_libdir_flag_spec='-L$libdir'
15949 hardcode_shlibpath_var=no
15950 ;;
15951
15952 *)
15953 ld_shlibs=no
15954 ;;
15955 esac
15956
15957 if test x$host_vendor = xsni; then
15958 case $host in
15959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15960 export_dynamic_flag_spec='${wl}-Blargedynsym'
15961 ;;
15962 esac
15963 fi
15964 fi
15965
15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15967$as_echo "$ld_shlibs" >&6; }
15968test "$ld_shlibs" = no && can_build_shared=no
15969
15970with_gnu_ld=$with_gnu_ld
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986#
15987# Do we need to explicitly link libc?
15988#
15989case "x$archive_cmds_need_lc" in
15990x|xyes)
15991 # Assume -lc should be added
15992 archive_cmds_need_lc=yes
15993
15994 if test "$enable_shared" = yes && test "$GCC" = yes; then
15995 case $archive_cmds in
15996 *'~'*)
15997 # FIXME: we may have to deal with multi-command sequences.
15998 ;;
15999 '$CC '*)
16000 # Test whether the compiler implicitly links with -lc since on some
16001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16002 # to ld, don't add -lc before -lgcc.
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16004$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016005if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016006 $as_echo_n "(cached) " >&6
16007else
16008 $RM conftest*
16009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016010
cristy0c60a692010-11-04 01:09:47 +000016011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016012 (eval $ac_compile) 2>&5
16013 ac_status=$?
16014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16015 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016016 soname=conftest
16017 lib=conftest
16018 libobjs=conftest.$ac_objext
16019 deplibs=
16020 wl=$lt_prog_compiler_wl
16021 pic_flag=$lt_prog_compiler_pic
16022 compiler_flags=-v
16023 linker_flags=-v
16024 verstring=
16025 output_objdir=.
16026 libname=conftest
16027 lt_save_allow_undefined_flag=$allow_undefined_flag
16028 allow_undefined_flag=
16029 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 +000016030 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016034 then
16035 lt_cv_archive_cmds_need_lc=no
16036 else
16037 lt_cv_archive_cmds_need_lc=yes
16038 fi
16039 allow_undefined_flag=$lt_save_allow_undefined_flag
16040 else
16041 cat conftest.err 1>&5
16042 fi
16043 $RM conftest*
16044
16045fi
16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16047$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16048 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016049 ;;
16050 esac
16051 fi
16052 ;;
16053esac
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
cristy73bd4a52010-10-05 11:24:23 +000016206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16207$as_echo_n "checking dynamic linker characteristics... " >&6; }
16208
16209if test "$GCC" = yes; then
16210 case $host_os in
16211 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16212 *) lt_awk_arg="/^libraries:/" ;;
16213 esac
cristy0c60a692010-11-04 01:09:47 +000016214 case $host_os in
16215 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16216 *) lt_sed_strip_eq="s,=/,/,g" ;;
16217 esac
16218 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16219 case $lt_search_path_spec in
16220 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016221 # if the path contains ";" then we assume it to be the separator
16222 # otherwise default to the standard path separator (i.e. ":") - it is
16223 # assumed that no part of a normal pathname contains ";" but that should
16224 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16226 ;;
16227 *)
16228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16229 ;;
16230 esac
cristy73bd4a52010-10-05 11:24:23 +000016231 # Ok, now we have the path, separated by spaces, we can step through it
16232 # and add multilib dir if necessary.
16233 lt_tmp_lt_search_path_spec=
16234 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16235 for lt_sys_path in $lt_search_path_spec; do
16236 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16238 else
16239 test -d "$lt_sys_path" && \
16240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16241 fi
16242 done
cristy0c60a692010-11-04 01:09:47 +000016243 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016244BEGIN {RS=" "; FS="/|\n";} {
16245 lt_foo="";
16246 lt_count=0;
16247 for (lt_i = NF; lt_i > 0; lt_i--) {
16248 if ($lt_i != "" && $lt_i != ".") {
16249 if ($lt_i == "..") {
16250 lt_count++;
16251 } else {
16252 if (lt_count == 0) {
16253 lt_foo="/" $lt_i lt_foo;
16254 } else {
16255 lt_count--;
16256 }
16257 }
16258 }
16259 }
16260 if (lt_foo != "") { lt_freq[lt_foo]++; }
16261 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16262}'`
cristy0c60a692010-11-04 01:09:47 +000016263 # AWK program above erroneously prepends '/' to C:/dos/paths
16264 # for these hosts.
16265 case $host_os in
16266 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16267 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16268 esac
16269 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016270else
16271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16272fi
16273library_names_spec=
16274libname_spec='lib$name'
16275soname_spec=
16276shrext_cmds=".so"
16277postinstall_cmds=
16278postuninstall_cmds=
16279finish_cmds=
16280finish_eval=
16281shlibpath_var=
16282shlibpath_overrides_runpath=unknown
16283version_type=none
16284dynamic_linker="$host_os ld.so"
16285sys_lib_dlsearch_path_spec="/lib /usr/lib"
16286need_lib_prefix=unknown
16287hardcode_into_libs=no
16288
16289# when you set need_version to no, make sure it does not cause -set_version
16290# flags to be left without arguments
16291need_version=unknown
16292
16293case $host_os in
16294aix3*)
cristy99bd5232011-12-07 14:38:20 +000016295 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16297 shlibpath_var=LIBPATH
16298
16299 # AIX 3 has no versioning support, so we append a major version to the name.
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 ;;
16302
16303aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016304 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016305 need_lib_prefix=no
16306 need_version=no
16307 hardcode_into_libs=yes
16308 if test "$host_cpu" = ia64; then
16309 # AIX 5 supports IA64
16310 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 else
16313 # With GCC up to 2.95.x, collect2 would create an import file
16314 # for dependence libraries. The import file would start with
16315 # the line `#! .'. This would cause the generated library to
16316 # depend on `.', always an invalid library. This was fixed in
16317 # development snapshots of GCC prior to 3.0.
16318 case $host_os in
16319 aix4 | aix4.[01] | aix4.[01].*)
16320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16321 echo ' yes '
16322 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16323 :
16324 else
16325 can_build_shared=no
16326 fi
16327 ;;
16328 esac
16329 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16330 # soname into executable. Probably we can add versioning support to
16331 # collect2, so additional links can be useful in future.
16332 if test "$aix_use_runtimelinking" = yes; then
16333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16334 # instead of lib<name>.a to let people know that these are not
16335 # typical AIX shared libraries.
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 else
16338 # We preserve .a as extension for shared libraries through AIX4.2
16339 # and later when we are not doing run time linking.
16340 library_names_spec='${libname}${release}.a $libname.a'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 fi
16343 shlibpath_var=LIBPATH
16344 fi
16345 ;;
16346
16347amigaos*)
16348 case $host_cpu in
16349 powerpc)
16350 # Since July 2007 AmigaOS4 officially supports .so libraries.
16351 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353 ;;
16354 m68k)
16355 library_names_spec='$libname.ixlibrary $libname.a'
16356 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016357 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 +000016358 ;;
16359 esac
16360 ;;
16361
16362beos*)
16363 library_names_spec='${libname}${shared_ext}'
16364 dynamic_linker="$host_os ld.so"
16365 shlibpath_var=LIBRARY_PATH
16366 ;;
16367
16368bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016369 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016370 need_version=no
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16377 # the default ld.so.conf also contains /usr/contrib/lib and
16378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16379 # libtool to hard-code these into programs
16380 ;;
16381
16382cygwin* | mingw* | pw32* | cegcc*)
16383 version_type=windows
16384 shrext_cmds=".dll"
16385 need_version=no
16386 need_lib_prefix=no
16387
cristyda16f162011-02-19 23:52:17 +000016388 case $GCC,$cc_basename in
16389 yes,*)
16390 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016391 library_names_spec='$libname.dll.a'
16392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16393 postinstall_cmds='base_file=`basename \${file}`~
16394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16395 dldir=$destdir/`dirname \$dlpath`~
16396 test -d \$dldir || mkdir -p \$dldir~
16397 $install_prog $dir/$dlname \$dldir/$dlname~
16398 chmod a+x \$dldir/$dlname~
16399 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16400 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16401 fi'
16402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16403 dlpath=$dir/\$dldll~
16404 $RM \$dlpath'
16405 shlibpath_overrides_runpath=yes
16406
16407 case $host_os in
16408 cygwin*)
16409 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16410 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016411
16412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016413 ;;
16414 mingw* | cegcc*)
16415 # MinGW DLLs use traditional 'lib' prefix
16416 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016417 ;;
16418 pw32*)
16419 # pw32 DLLs use 'pw' prefix rather than 'lib'
16420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16421 ;;
16422 esac
cristyda16f162011-02-19 23:52:17 +000016423 dynamic_linker='Win32 ld.exe'
16424 ;;
16425
16426 *,cl*)
16427 # Native MSVC
16428 libname_spec='$name'
16429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16430 library_names_spec='${libname}.dll.lib'
16431
16432 case $build_os in
16433 mingw*)
16434 sys_lib_search_path_spec=
16435 lt_save_ifs=$IFS
16436 IFS=';'
16437 for lt_path in $LIB
16438 do
16439 IFS=$lt_save_ifs
16440 # Let DOS variable expansion print the short 8.3 style file name.
16441 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16442 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16443 done
16444 IFS=$lt_save_ifs
16445 # Convert to MSYS style.
16446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16447 ;;
16448 cygwin*)
16449 # Convert to unix form, then to dos form, then back to unix form
16450 # but this time dos style (no spaces!) so that the unix form looks
16451 # like /cygdrive/c/PROGRA~1:/cygdr...
16452 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16453 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16454 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16455 ;;
16456 *)
16457 sys_lib_search_path_spec="$LIB"
16458 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16459 # It is most probably a Windows format PATH.
16460 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16461 else
16462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16463 fi
16464 # FIXME: find the short name or the path components, as spaces are
16465 # common. (e.g. "Program Files" -> "PROGRA~1")
16466 ;;
16467 esac
16468
16469 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16470 postinstall_cmds='base_file=`basename \${file}`~
16471 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16472 dldir=$destdir/`dirname \$dlpath`~
16473 test -d \$dldir || mkdir -p \$dldir~
16474 $install_prog $dir/$dlname \$dldir/$dlname'
16475 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16476 dlpath=$dir/\$dldll~
16477 $RM \$dlpath'
16478 shlibpath_overrides_runpath=yes
16479 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016480 ;;
16481
16482 *)
cristyda16f162011-02-19 23:52:17 +000016483 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016485 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016486 ;;
16487 esac
cristy73bd4a52010-10-05 11:24:23 +000016488 # FIXME: first we should search . and the directory the executable is in
16489 shlibpath_var=PATH
16490 ;;
16491
16492darwin* | rhapsody*)
16493 dynamic_linker="$host_os dyld"
16494 version_type=darwin
16495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16498 soname_spec='${libname}${release}${major}$shared_ext'
16499 shlibpath_overrides_runpath=yes
16500 shlibpath_var=DYLD_LIBRARY_PATH
16501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16502
16503 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16505 ;;
16506
16507dgux*)
cristy99bd5232011-12-07 14:38:20 +000016508 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 ;;
16515
cristy73bd4a52010-10-05 11:24:23 +000016516freebsd* | dragonfly*)
16517 # DragonFly does not have aout. When/if they implement a new
16518 # versioning mechanism, adjust this.
16519 if test -x /usr/bin/objformat; then
16520 objformat=`/usr/bin/objformat`
16521 else
16522 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016523 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016524 *) objformat=elf ;;
16525 esac
16526 fi
16527 version_type=freebsd-$objformat
16528 case $version_type in
16529 freebsd-elf*)
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16531 need_version=no
16532 need_lib_prefix=no
16533 ;;
16534 freebsd-*)
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16536 need_version=yes
16537 ;;
16538 esac
16539 shlibpath_var=LD_LIBRARY_PATH
16540 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016541 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016542 shlibpath_overrides_runpath=yes
16543 ;;
16544 freebsd3.[01]* | freebsdelf3.[01]*)
16545 shlibpath_overrides_runpath=yes
16546 hardcode_into_libs=yes
16547 ;;
16548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 ;;
16553 *) # from 4.6 on, and DragonFly
16554 shlibpath_overrides_runpath=yes
16555 hardcode_into_libs=yes
16556 ;;
16557 esac
16558 ;;
16559
16560gnu*)
cristy99bd5232011-12-07 14:38:20 +000016561 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016567 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016568 hardcode_into_libs=yes
16569 ;;
16570
cristy0c60a692010-11-04 01:09:47 +000016571haiku*)
cristy99bd5232011-12-07 14:38:20 +000016572 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016573 need_lib_prefix=no
16574 need_version=no
16575 dynamic_linker="$host_os runtime_loader"
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes
16580 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16581 hardcode_into_libs=yes
16582 ;;
16583
cristy73bd4a52010-10-05 11:24:23 +000016584hpux9* | hpux10* | hpux11*)
16585 # Give a soname corresponding to the major version so that dld.sl refuses to
16586 # link against other versions.
16587 version_type=sunos
16588 need_lib_prefix=no
16589 need_version=no
16590 case $host_cpu in
16591 ia64*)
16592 shrext_cmds='.so'
16593 hardcode_into_libs=yes
16594 dynamic_linker="$host_os dld.so"
16595 shlibpath_var=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 if test "X$HPUX_IA64_MODE" = X32; then
16600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16601 else
16602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16603 fi
16604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16605 ;;
16606 hppa*64*)
16607 shrext_cmds='.sl'
16608 hardcode_into_libs=yes
16609 dynamic_linker="$host_os dld.sl"
16610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16616 ;;
16617 *)
16618 shrext_cmds='.sl'
16619 dynamic_linker="$host_os dld.sl"
16620 shlibpath_var=SHLIB_PATH
16621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16622 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 ;;
16625 esac
cristy0c60a692010-11-04 01:09:47 +000016626 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016627 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016628 # or fails outright, so override atomically:
16629 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016630 ;;
16631
16632interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016633 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016634 need_lib_prefix=no
16635 need_version=no
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16637 soname_spec='${libname}${release}${shared_ext}$major'
16638 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=no
16641 hardcode_into_libs=yes
16642 ;;
16643
16644irix5* | irix6* | nonstopux*)
16645 case $host_os in
16646 nonstopux*) version_type=nonstopux ;;
16647 *)
16648 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016649 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016650 else
16651 version_type=irix
16652 fi ;;
16653 esac
16654 need_lib_prefix=no
16655 need_version=no
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16658 case $host_os in
16659 irix5* | nonstopux*)
16660 libsuff= shlibsuff=
16661 ;;
16662 *)
16663 case $LD in # libtool.m4 will add one of these switches to LD
16664 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16665 libsuff= shlibsuff= libmagic=32-bit;;
16666 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16667 libsuff=32 shlibsuff=N32 libmagic=N32;;
16668 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16669 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16670 *) libsuff= shlibsuff= libmagic=never-match;;
16671 esac
16672 ;;
16673 esac
16674 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16675 shlibpath_overrides_runpath=no
16676 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16677 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16678 hardcode_into_libs=yes
16679 ;;
16680
16681# No shared lib support for Linux oldld, aout, or coff.
16682linux*oldld* | linux*aout* | linux*coff*)
16683 dynamic_linker=no
16684 ;;
16685
cristy99bd5232011-12-07 14:38:20 +000016686# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016687linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016688 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016689 need_lib_prefix=no
16690 need_version=no
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016696
cristy73bd4a52010-10-05 11:24:23 +000016697 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016698 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016699 $as_echo_n "(cached) " >&6
16700else
16701 lt_cv_shlibpath_overrides_runpath=no
16702 save_LDFLAGS=$LDFLAGS
16703 save_libdir=$libdir
16704 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16705 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016707/* end confdefs.h. */
16708
16709int
16710main ()
16711{
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717if ac_fn_c_try_link "$LINENO"; then :
16718 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016719 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016720fi
16721fi
16722rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016724 LDFLAGS=$save_LDFLAGS
16725 libdir=$save_libdir
16726
16727fi
16728
16729 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016730
16731 # This implies no fast_install, which is unacceptable.
16732 # Some rework will be needed to allow for fast_install
16733 # before this can be enabled.
16734 hardcode_into_libs=yes
16735
16736 # Add ABI-specific directories to the system library path.
16737 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16738
16739 # Append ld.so.conf contents to the search path
16740 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016741 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 +000016742 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016743
cristy73bd4a52010-10-05 11:24:23 +000016744 fi
16745
16746 # We used to test for /lib/ld.so.1 and disable shared libraries on
16747 # powerpc, because MkLinux only supported shared libraries with the
16748 # GNU dynamic linker. Since this was broken with cross compilers,
16749 # most powerpc-linux boxes support dynamic linking these days and
16750 # people can always --disable-shared, the test was removed, and we
16751 # assume the GNU/Linux dynamic linker is in use.
16752 dynamic_linker='GNU/Linux ld.so'
16753 ;;
16754
16755netbsd*)
16756 version_type=sunos
16757 need_lib_prefix=no
16758 need_version=no
16759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16762 dynamic_linker='NetBSD (a.out) ld.so'
16763 else
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16765 soname_spec='${libname}${release}${shared_ext}$major'
16766 dynamic_linker='NetBSD ld.elf_so'
16767 fi
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 hardcode_into_libs=yes
16771 ;;
16772
16773newsos6)
cristy99bd5232011-12-07 14:38:20 +000016774 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 ;;
16779
16780*nto* | *qnx*)
16781 version_type=qnx
16782 need_lib_prefix=no
16783 need_version=no
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=no
16788 hardcode_into_libs=yes
16789 dynamic_linker='ldqnx.so'
16790 ;;
16791
16792openbsd*)
16793 version_type=sunos
16794 sys_lib_dlsearch_path_spec="/usr/lib"
16795 need_lib_prefix=no
16796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16797 case $host_os in
16798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16799 *) need_version=no ;;
16800 esac
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16805 case $host_os in
16806 openbsd2.[89] | openbsd2.[89].*)
16807 shlibpath_overrides_runpath=no
16808 ;;
16809 *)
16810 shlibpath_overrides_runpath=yes
16811 ;;
16812 esac
16813 else
16814 shlibpath_overrides_runpath=yes
16815 fi
16816 ;;
16817
16818os2*)
16819 libname_spec='$name'
16820 shrext_cmds=".dll"
16821 need_lib_prefix=no
16822 library_names_spec='$libname${shared_ext} $libname.a'
16823 dynamic_linker='OS/2 ld.exe'
16824 shlibpath_var=LIBPATH
16825 ;;
16826
16827osf3* | osf4* | osf5*)
16828 version_type=osf
16829 need_lib_prefix=no
16830 need_version=no
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16836 ;;
16837
16838rdos*)
16839 dynamic_linker=no
16840 ;;
16841
16842solaris*)
cristy99bd5232011-12-07 14:38:20 +000016843 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016844 need_lib_prefix=no
16845 need_version=no
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 shlibpath_overrides_runpath=yes
16850 hardcode_into_libs=yes
16851 # ldd complains unless libraries are executable
16852 postinstall_cmds='chmod +x $lib'
16853 ;;
16854
16855sunos4*)
16856 version_type=sunos
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 shlibpath_overrides_runpath=yes
16861 if test "$with_gnu_ld" = yes; then
16862 need_lib_prefix=no
16863 fi
16864 need_version=yes
16865 ;;
16866
16867sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016868 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870 soname_spec='${libname}${release}${shared_ext}$major'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 case $host_vendor in
16873 sni)
16874 shlibpath_overrides_runpath=no
16875 need_lib_prefix=no
16876 runpath_var=LD_RUN_PATH
16877 ;;
16878 siemens)
16879 need_lib_prefix=no
16880 ;;
16881 motorola)
16882 need_lib_prefix=no
16883 need_version=no
16884 shlibpath_overrides_runpath=no
16885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16886 ;;
16887 esac
16888 ;;
16889
16890sysv4*MP*)
16891 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016892 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16894 soname_spec='$libname${shared_ext}.$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 fi
16897 ;;
16898
16899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16900 version_type=freebsd-elf
16901 need_lib_prefix=no
16902 need_version=no
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16904 soname_spec='${libname}${release}${shared_ext}$major'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=yes
16907 hardcode_into_libs=yes
16908 if test "$with_gnu_ld" = yes; then
16909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16910 else
16911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16912 case $host_os in
16913 sco3.2v5*)
16914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16915 ;;
16916 esac
16917 fi
16918 sys_lib_dlsearch_path_spec='/usr/lib'
16919 ;;
16920
16921tpf*)
16922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016923 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016924 need_lib_prefix=no
16925 need_version=no
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 shlibpath_overrides_runpath=no
16929 hardcode_into_libs=yes
16930 ;;
16931
16932uts4*)
cristy99bd5232011-12-07 14:38:20 +000016933 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935 soname_spec='${libname}${release}${shared_ext}$major'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 ;;
16938
16939*)
16940 dynamic_linker=no
16941 ;;
16942esac
16943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16944$as_echo "$dynamic_linker" >&6; }
16945test "$dynamic_linker" = no && can_build_shared=no
16946
16947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16948if test "$GCC" = yes; then
16949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16950fi
16951
16952if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16954fi
16955if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16957fi
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
cristy0c60a692010-11-04 01:09:47 +000017045
17046
17047
17048
17049
cristy73bd4a52010-10-05 11:24:23 +000017050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17051$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17052hardcode_action=
17053if test -n "$hardcode_libdir_flag_spec" ||
17054 test -n "$runpath_var" ||
17055 test "X$hardcode_automatic" = "Xyes" ; then
17056
17057 # We can hardcode non-existent directories.
17058 if test "$hardcode_direct" != no &&
17059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17060 # have to relink, otherwise we might link with an installed library
17061 # when we should be linking with a yet-to-be-installed one
17062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17063 test "$hardcode_minus_L" != no; then
17064 # Linking always hardcodes the temporary library directory.
17065 hardcode_action=relink
17066 else
17067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17068 hardcode_action=immediate
17069 fi
17070else
17071 # We cannot hardcode anything, or else we can only hardcode existing
17072 # directories.
17073 hardcode_action=unsupported
17074fi
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17076$as_echo "$hardcode_action" >&6; }
17077
17078if test "$hardcode_action" = relink ||
17079 test "$inherit_rpath" = yes; then
17080 # Fast installation is not supported
17081 enable_fast_install=no
17082elif test "$shlibpath_overrides_runpath" = yes ||
17083 test "$enable_shared" = no; then
17084 # Fast installation is not necessary
17085 enable_fast_install=needless
17086fi
17087
17088
17089
17090
17091
17092
17093 if test "x$enable_dlopen" != xyes; then
17094 enable_dlopen=unknown
17095 enable_dlopen_self=unknown
17096 enable_dlopen_self_static=unknown
17097else
17098 lt_cv_dlopen=no
17099 lt_cv_dlopen_libs=
17100
17101 case $host_os in
17102 beos*)
17103 lt_cv_dlopen="load_add_on"
17104 lt_cv_dlopen_libs=
17105 lt_cv_dlopen_self=yes
17106 ;;
17107
17108 mingw* | pw32* | cegcc*)
17109 lt_cv_dlopen="LoadLibrary"
17110 lt_cv_dlopen_libs=
17111 ;;
17112
17113 cygwin*)
17114 lt_cv_dlopen="dlopen"
17115 lt_cv_dlopen_libs=
17116 ;;
17117
17118 darwin*)
17119 # if libdl is installed we need to link against it
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17121$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017122if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017123 $as_echo_n "(cached) " >&6
17124else
17125 ac_check_lib_save_LIBS=$LIBS
17126LIBS="-ldl $LIBS"
17127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h. */
17129
17130/* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133#ifdef __cplusplus
17134extern "C"
17135#endif
17136char dlopen ();
17137int
17138main ()
17139{
17140return dlopen ();
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145if ac_fn_c_try_link "$LINENO"; then :
17146 ac_cv_lib_dl_dlopen=yes
17147else
17148 ac_cv_lib_dl_dlopen=no
17149fi
17150rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152LIBS=$ac_check_lib_save_LIBS
17153fi
17154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17155$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017156if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17158else
17159
17160 lt_cv_dlopen="dyld"
17161 lt_cv_dlopen_libs=
17162 lt_cv_dlopen_self=yes
17163
17164fi
17165
17166 ;;
17167
17168 *)
17169 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017170if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017171 lt_cv_dlopen="shl_load"
17172else
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17174$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017175if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017176 $as_echo_n "(cached) " >&6
17177else
17178 ac_check_lib_save_LIBS=$LIBS
17179LIBS="-ldld $LIBS"
17180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181/* end confdefs.h. */
17182
17183/* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17186#ifdef __cplusplus
17187extern "C"
17188#endif
17189char shl_load ();
17190int
17191main ()
17192{
17193return shl_load ();
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198if ac_fn_c_try_link "$LINENO"; then :
17199 ac_cv_lib_dld_shl_load=yes
17200else
17201 ac_cv_lib_dld_shl_load=no
17202fi
17203rm -f core conftest.err conftest.$ac_objext \
17204 conftest$ac_exeext conftest.$ac_ext
17205LIBS=$ac_check_lib_save_LIBS
17206fi
17207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17208$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017209if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017210 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17211else
17212 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017213if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017214 lt_cv_dlopen="dlopen"
17215else
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17217$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017218if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017219 $as_echo_n "(cached) " >&6
17220else
17221 ac_check_lib_save_LIBS=$LIBS
17222LIBS="-ldl $LIBS"
17223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224/* end confdefs.h. */
17225
17226/* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17229#ifdef __cplusplus
17230extern "C"
17231#endif
17232char dlopen ();
17233int
17234main ()
17235{
17236return dlopen ();
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241if ac_fn_c_try_link "$LINENO"; then :
17242 ac_cv_lib_dl_dlopen=yes
17243else
17244 ac_cv_lib_dl_dlopen=no
17245fi
17246rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248LIBS=$ac_check_lib_save_LIBS
17249fi
17250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17251$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017252if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17254else
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17256$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017257if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017258 $as_echo_n "(cached) " >&6
17259else
17260 ac_check_lib_save_LIBS=$LIBS
17261LIBS="-lsvld $LIBS"
17262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263/* end confdefs.h. */
17264
17265/* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17268#ifdef __cplusplus
17269extern "C"
17270#endif
17271char dlopen ();
17272int
17273main ()
17274{
17275return dlopen ();
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280if ac_fn_c_try_link "$LINENO"; then :
17281 ac_cv_lib_svld_dlopen=yes
17282else
17283 ac_cv_lib_svld_dlopen=no
17284fi
17285rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17287LIBS=$ac_check_lib_save_LIBS
17288fi
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17290$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017291if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17293else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17295$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017296if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017297 $as_echo_n "(cached) " >&6
17298else
17299 ac_check_lib_save_LIBS=$LIBS
17300LIBS="-ldld $LIBS"
17301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h. */
17303
17304/* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17307#ifdef __cplusplus
17308extern "C"
17309#endif
17310char dld_link ();
17311int
17312main ()
17313{
17314return dld_link ();
17315 ;
17316 return 0;
17317}
17318_ACEOF
17319if ac_fn_c_try_link "$LINENO"; then :
17320 ac_cv_lib_dld_dld_link=yes
17321else
17322 ac_cv_lib_dld_dld_link=no
17323fi
17324rm -f core conftest.err conftest.$ac_objext \
17325 conftest$ac_exeext conftest.$ac_ext
17326LIBS=$ac_check_lib_save_LIBS
17327fi
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17329$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017330if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017331 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17332fi
17333
17334
17335fi
17336
17337
17338fi
17339
17340
17341fi
17342
17343
17344fi
17345
17346
17347fi
17348
17349 ;;
17350 esac
17351
17352 if test "x$lt_cv_dlopen" != xno; then
17353 enable_dlopen=yes
17354 else
17355 enable_dlopen=no
17356 fi
17357
17358 case $lt_cv_dlopen in
17359 dlopen)
17360 save_CPPFLAGS="$CPPFLAGS"
17361 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17362
17363 save_LDFLAGS="$LDFLAGS"
17364 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17365
17366 save_LIBS="$LIBS"
17367 LIBS="$lt_cv_dlopen_libs $LIBS"
17368
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17370$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017371if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017372 $as_echo_n "(cached) " >&6
17373else
17374 if test "$cross_compiling" = yes; then :
17375 lt_cv_dlopen_self=cross
17376else
17377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17378 lt_status=$lt_dlunknown
17379 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017380#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017381#include "confdefs.h"
17382
17383#if HAVE_DLFCN_H
17384#include <dlfcn.h>
17385#endif
17386
17387#include <stdio.h>
17388
17389#ifdef RTLD_GLOBAL
17390# define LT_DLGLOBAL RTLD_GLOBAL
17391#else
17392# ifdef DL_GLOBAL
17393# define LT_DLGLOBAL DL_GLOBAL
17394# else
17395# define LT_DLGLOBAL 0
17396# endif
17397#endif
17398
17399/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17400 find out it does not work in some platform. */
17401#ifndef LT_DLLAZY_OR_NOW
17402# ifdef RTLD_LAZY
17403# define LT_DLLAZY_OR_NOW RTLD_LAZY
17404# else
17405# ifdef DL_LAZY
17406# define LT_DLLAZY_OR_NOW DL_LAZY
17407# else
17408# ifdef RTLD_NOW
17409# define LT_DLLAZY_OR_NOW RTLD_NOW
17410# else
17411# ifdef DL_NOW
17412# define LT_DLLAZY_OR_NOW DL_NOW
17413# else
17414# define LT_DLLAZY_OR_NOW 0
17415# endif
17416# endif
17417# endif
17418# endif
17419#endif
17420
cristy0c60a692010-11-04 01:09:47 +000017421/* When -fvisbility=hidden is used, assume the code has been annotated
17422 correspondingly for the symbols needed. */
17423#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017424int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017425#endif
17426
cristyda16f162011-02-19 23:52:17 +000017427int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017428int main ()
17429{
17430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17431 int status = $lt_dlunknown;
17432
17433 if (self)
17434 {
17435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017436 else
17437 {
17438 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17439 else puts (dlerror ());
17440 }
cristy73bd4a52010-10-05 11:24:23 +000017441 /* dlclose (self); */
17442 }
17443 else
17444 puts (dlerror ());
17445
17446 return status;
17447}
17448_LT_EOF
17449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17450 (eval $ac_link) 2>&5
17451 ac_status=$?
17452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17453 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17454 (./conftest; exit; ) >&5 2>/dev/null
17455 lt_status=$?
17456 case x$lt_status in
17457 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17458 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17459 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17460 esac
17461 else :
17462 # compilation failed
17463 lt_cv_dlopen_self=no
17464 fi
17465fi
17466rm -fr conftest*
17467
17468
17469fi
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17471$as_echo "$lt_cv_dlopen_self" >&6; }
17472
17473 if test "x$lt_cv_dlopen_self" = xyes; then
17474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17476$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017477if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017478 $as_echo_n "(cached) " >&6
17479else
17480 if test "$cross_compiling" = yes; then :
17481 lt_cv_dlopen_self_static=cross
17482else
17483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17484 lt_status=$lt_dlunknown
17485 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017486#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017487#include "confdefs.h"
17488
17489#if HAVE_DLFCN_H
17490#include <dlfcn.h>
17491#endif
17492
17493#include <stdio.h>
17494
17495#ifdef RTLD_GLOBAL
17496# define LT_DLGLOBAL RTLD_GLOBAL
17497#else
17498# ifdef DL_GLOBAL
17499# define LT_DLGLOBAL DL_GLOBAL
17500# else
17501# define LT_DLGLOBAL 0
17502# endif
17503#endif
17504
17505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17506 find out it does not work in some platform. */
17507#ifndef LT_DLLAZY_OR_NOW
17508# ifdef RTLD_LAZY
17509# define LT_DLLAZY_OR_NOW RTLD_LAZY
17510# else
17511# ifdef DL_LAZY
17512# define LT_DLLAZY_OR_NOW DL_LAZY
17513# else
17514# ifdef RTLD_NOW
17515# define LT_DLLAZY_OR_NOW RTLD_NOW
17516# else
17517# ifdef DL_NOW
17518# define LT_DLLAZY_OR_NOW DL_NOW
17519# else
17520# define LT_DLLAZY_OR_NOW 0
17521# endif
17522# endif
17523# endif
17524# endif
17525#endif
17526
cristy0c60a692010-11-04 01:09:47 +000017527/* When -fvisbility=hidden is used, assume the code has been annotated
17528 correspondingly for the symbols needed. */
17529#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017530int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017531#endif
17532
cristyda16f162011-02-19 23:52:17 +000017533int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017534int main ()
17535{
17536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17537 int status = $lt_dlunknown;
17538
17539 if (self)
17540 {
17541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017542 else
17543 {
17544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17545 else puts (dlerror ());
17546 }
cristy73bd4a52010-10-05 11:24:23 +000017547 /* dlclose (self); */
17548 }
17549 else
17550 puts (dlerror ());
17551
17552 return status;
17553}
17554_LT_EOF
17555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17556 (eval $ac_link) 2>&5
17557 ac_status=$?
17558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17559 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17560 (./conftest; exit; ) >&5 2>/dev/null
17561 lt_status=$?
17562 case x$lt_status in
17563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17566 esac
17567 else :
17568 # compilation failed
17569 lt_cv_dlopen_self_static=no
17570 fi
17571fi
17572rm -fr conftest*
17573
17574
17575fi
17576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17577$as_echo "$lt_cv_dlopen_self_static" >&6; }
17578 fi
17579
17580 CPPFLAGS="$save_CPPFLAGS"
17581 LDFLAGS="$save_LDFLAGS"
17582 LIBS="$save_LIBS"
17583 ;;
17584 esac
17585
17586 case $lt_cv_dlopen_self in
17587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17588 *) enable_dlopen_self=unknown ;;
17589 esac
17590
17591 case $lt_cv_dlopen_self_static in
17592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17593 *) enable_dlopen_self_static=unknown ;;
17594 esac
17595fi
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613striplib=
17614old_striplib=
17615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17616$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17617if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17619 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621$as_echo "yes" >&6; }
17622else
17623# FIXME - insert some real tests, host_os isn't really good enough
17624 case $host_os in
17625 darwin*)
17626 if test -n "$STRIP" ; then
17627 striplib="$STRIP -x"
17628 old_striplib="$STRIP -S"
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17630$as_echo "yes" >&6; }
17631 else
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633$as_echo "no" >&6; }
17634 fi
17635 ;;
17636 *)
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17638$as_echo "no" >&6; }
17639 ;;
17640 esac
17641fi
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654 # Report which library types will actually be built
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17656$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17658$as_echo "$can_build_shared" >&6; }
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17661$as_echo_n "checking whether to build shared libraries... " >&6; }
17662 test "$can_build_shared" = "no" && enable_shared=no
17663
17664 # On AIX, shared libraries and static libraries use the same namespace, and
17665 # are all built from PIC.
17666 case $host_os in
17667 aix3*)
17668 test "$enable_shared" = yes && enable_static=no
17669 if test -n "$RANLIB"; then
17670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17671 postinstall_cmds='$RANLIB $lib'
17672 fi
17673 ;;
17674
17675 aix[4-9]*)
17676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17677 test "$enable_shared" = yes && enable_static=no
17678 fi
17679 ;;
17680 esac
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17682$as_echo "$enable_shared" >&6; }
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17685$as_echo_n "checking whether to build static libraries... " >&6; }
17686 # Make sure either enable_shared or enable_static is yes.
17687 test "$enable_shared" = yes || enable_static=yes
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17689$as_echo "$enable_static" >&6; }
17690
17691
17692
17693
17694fi
17695ac_ext=c
17696ac_cpp='$CPP $CPPFLAGS'
17697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17699ac_compiler_gnu=$ac_cv_c_compiler_gnu
17700
17701CC="$lt_save_CC"
17702
cristy0c60a692010-11-04 01:09:47 +000017703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17705 (test "X$CXX" != "Xg++"))) ; then
17706 ac_ext=cpp
17707ac_cpp='$CXXCPP $CPPFLAGS'
17708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17712$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17713if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017714 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017715 $as_echo_n "(cached) " >&6
17716else
17717 # Double quotes because CXXCPP needs to be expanded
17718 for CXXCPP in "$CXX -E" "/lib/cpp"
17719 do
17720 ac_preproc_ok=false
17721for ac_cxx_preproc_warn_flag in '' yes
17722do
17723 # Use a header file that comes with gcc, so configuring glibc
17724 # with a fresh cross-compiler works.
17725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17726 # <limits.h> exists even on freestanding compilers.
17727 # On the NeXT, cc -E runs the code through the compiler's parser,
17728 # not just through cpp. "Syntax error" is here to catch this case.
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730/* end confdefs.h. */
17731#ifdef __STDC__
17732# include <limits.h>
17733#else
17734# include <assert.h>
17735#endif
17736 Syntax error
17737_ACEOF
17738if ac_fn_cxx_try_cpp "$LINENO"; then :
17739
17740else
17741 # Broken: fails on valid input.
17742continue
17743fi
cristyda16f162011-02-19 23:52:17 +000017744rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017745
17746 # OK, works on sane cases. Now check whether nonexistent headers
17747 # can be detected and how.
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749/* end confdefs.h. */
17750#include <ac_nonexistent.h>
17751_ACEOF
17752if ac_fn_cxx_try_cpp "$LINENO"; then :
17753 # Broken: success on invalid input.
17754continue
17755else
17756 # Passes both tests.
17757ac_preproc_ok=:
17758break
17759fi
cristyda16f162011-02-19 23:52:17 +000017760rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017761
17762done
17763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017764rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017765if $ac_preproc_ok; then :
17766 break
17767fi
17768
17769 done
17770 ac_cv_prog_CXXCPP=$CXXCPP
17771
17772fi
17773 CXXCPP=$ac_cv_prog_CXXCPP
17774else
17775 ac_cv_prog_CXXCPP=$CXXCPP
17776fi
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17778$as_echo "$CXXCPP" >&6; }
17779ac_preproc_ok=false
17780for ac_cxx_preproc_warn_flag in '' yes
17781do
17782 # Use a header file that comes with gcc, so configuring glibc
17783 # with a fresh cross-compiler works.
17784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17785 # <limits.h> exists even on freestanding compilers.
17786 # On the NeXT, cc -E runs the code through the compiler's parser,
17787 # not just through cpp. "Syntax error" is here to catch this case.
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789/* end confdefs.h. */
17790#ifdef __STDC__
17791# include <limits.h>
17792#else
17793# include <assert.h>
17794#endif
17795 Syntax error
17796_ACEOF
17797if ac_fn_cxx_try_cpp "$LINENO"; then :
17798
17799else
17800 # Broken: fails on valid input.
17801continue
17802fi
cristyda16f162011-02-19 23:52:17 +000017803rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017804
17805 # OK, works on sane cases. Now check whether nonexistent headers
17806 # can be detected and how.
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808/* end confdefs.h. */
17809#include <ac_nonexistent.h>
17810_ACEOF
17811if ac_fn_cxx_try_cpp "$LINENO"; then :
17812 # Broken: success on invalid input.
17813continue
17814else
17815 # Passes both tests.
17816ac_preproc_ok=:
17817break
17818fi
cristyda16f162011-02-19 23:52:17 +000017819rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017820
17821done
17822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017823rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017824if $ac_preproc_ok; then :
17825
17826else
17827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17829as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17830See \`config.log' for more details" "$LINENO" 5; }
17831fi
17832
17833ac_ext=c
17834ac_cpp='$CPP $CPPFLAGS'
17835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838
17839else
17840 _lt_caught_CXX_error=yes
17841fi
cristy73bd4a52010-10-05 11:24:23 +000017842
17843ac_ext=cpp
17844ac_cpp='$CXXCPP $CPPFLAGS'
17845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17848
17849archive_cmds_need_lc_CXX=no
17850allow_undefined_flag_CXX=
17851always_export_symbols_CXX=no
17852archive_expsym_cmds_CXX=
17853compiler_needs_object_CXX=no
17854export_dynamic_flag_spec_CXX=
17855hardcode_direct_CXX=no
17856hardcode_direct_absolute_CXX=no
17857hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017858hardcode_libdir_separator_CXX=
17859hardcode_minus_L_CXX=no
17860hardcode_shlibpath_var_CXX=unsupported
17861hardcode_automatic_CXX=no
17862inherit_rpath_CXX=no
17863module_cmds_CXX=
17864module_expsym_cmds_CXX=
17865link_all_deplibs_CXX=unknown
17866old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017867reload_flag_CXX=$reload_flag
17868reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017869no_undefined_flag_CXX=
17870whole_archive_flag_spec_CXX=
17871enable_shared_with_static_runtimes_CXX=no
17872
17873# Source file extension for C++ test sources.
17874ac_ext=cpp
17875
17876# Object file extension for compiled C++ test sources.
17877objext=o
17878objext_CXX=$objext
17879
17880# No sense in running all these tests if we already determined that
17881# the CXX compiler isn't working. Some variables (like enable_shared)
17882# are currently assumed to apply to all compilers on this platform,
17883# and will be corrupted by setting them based on a non-working compiler.
17884if test "$_lt_caught_CXX_error" != yes; then
17885 # Code to be used in simple compile tests
17886 lt_simple_compile_test_code="int some_variable = 0;"
17887
17888 # Code to be used in simple link tests
17889 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17890
17891 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17892
17893
17894
17895
17896
17897
17898# If no C compiler was specified, use CC.
17899LTCC=${LTCC-"$CC"}
17900
17901# If no C compiler flags were specified, use CFLAGS.
17902LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17903
17904# Allow CC to be a program name with arguments.
17905compiler=$CC
17906
17907
17908 # save warnings/boilerplate of simple test code
17909 ac_outfile=conftest.$ac_objext
17910echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17911eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17912_lt_compiler_boilerplate=`cat conftest.err`
17913$RM conftest*
17914
17915 ac_outfile=conftest.$ac_objext
17916echo "$lt_simple_link_test_code" >conftest.$ac_ext
17917eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17918_lt_linker_boilerplate=`cat conftest.err`
17919$RM -r conftest*
17920
17921
17922 # Allow CC to be a program name with arguments.
17923 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017924 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017925 lt_save_LD=$LD
17926 lt_save_GCC=$GCC
17927 GCC=$GXX
17928 lt_save_with_gnu_ld=$with_gnu_ld
17929 lt_save_path_LD=$lt_cv_path_LD
17930 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17931 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17932 else
17933 $as_unset lt_cv_prog_gnu_ld
17934 fi
17935 if test -n "${lt_cv_path_LDCXX+set}"; then
17936 lt_cv_path_LD=$lt_cv_path_LDCXX
17937 else
17938 $as_unset lt_cv_path_LD
17939 fi
17940 test -z "${LDCXX+set}" || LD=$LDCXX
17941 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017942 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017943 compiler=$CC
17944 compiler_CXX=$CC
17945 for cc_temp in $compiler""; do
17946 case $cc_temp in
17947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17949 \-*) ;;
17950 *) break;;
17951 esac
17952done
cristy0c60a692010-11-04 01:09:47 +000017953cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017954
17955
17956 if test -n "$compiler"; then
17957 # We don't want -fno-exception when compiling C++ code, so set the
17958 # no_builtin_flag separately
17959 if test "$GXX" = yes; then
17960 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17961 else
17962 lt_prog_compiler_no_builtin_flag_CXX=
17963 fi
17964
17965 if test "$GXX" = yes; then
17966 # Set up default GNU C++ configuration
17967
17968
17969
17970# Check whether --with-gnu-ld was given.
17971if test "${with_gnu_ld+set}" = set; then :
17972 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17973else
17974 with_gnu_ld=no
17975fi
17976
17977ac_prog=ld
17978if test "$GCC" = yes; then
17979 # Check if gcc -print-prog-name=ld gives a path.
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17981$as_echo_n "checking for ld used by $CC... " >&6; }
17982 case $host in
17983 *-*-mingw*)
17984 # gcc leaves a trailing carriage return which upsets mingw
17985 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17986 *)
17987 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17988 esac
17989 case $ac_prog in
17990 # Accept absolute paths.
17991 [\\/]* | ?:[\\/]*)
17992 re_direlt='/[^/][^/]*/\.\./'
17993 # Canonicalize the pathname of ld
17994 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17995 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17996 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17997 done
17998 test -z "$LD" && LD="$ac_prog"
17999 ;;
18000 "")
18001 # If it fails, then pretend we aren't using GCC.
18002 ac_prog=ld
18003 ;;
18004 *)
18005 # If it is relative, then search for the first ld in PATH.
18006 with_gnu_ld=unknown
18007 ;;
18008 esac
18009elif test "$with_gnu_ld" = yes; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18011$as_echo_n "checking for GNU ld... " >&6; }
18012else
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18014$as_echo_n "checking for non-GNU ld... " >&6; }
18015fi
cristyda16f162011-02-19 23:52:17 +000018016if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018017 $as_echo_n "(cached) " >&6
18018else
18019 if test -z "$LD"; then
18020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18021 for ac_dir in $PATH; do
18022 IFS="$lt_save_ifs"
18023 test -z "$ac_dir" && ac_dir=.
18024 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18025 lt_cv_path_LD="$ac_dir/$ac_prog"
18026 # Check to see if the program is GNU ld. I'd rather use --version,
18027 # but apparently some variants of GNU ld only accept -v.
18028 # Break only if it was the GNU/non-GNU ld that we prefer.
18029 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18030 *GNU* | *'with BFD'*)
18031 test "$with_gnu_ld" != no && break
18032 ;;
18033 *)
18034 test "$with_gnu_ld" != yes && break
18035 ;;
18036 esac
18037 fi
18038 done
18039 IFS="$lt_save_ifs"
18040else
18041 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18042fi
18043fi
18044
18045LD="$lt_cv_path_LD"
18046if test -n "$LD"; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18048$as_echo "$LD" >&6; }
18049else
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051$as_echo "no" >&6; }
18052fi
cristy98dddb52010-11-04 00:30:15 +000018053test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18055$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018056if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018057 $as_echo_n "(cached) " >&6
18058else
18059 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18060case `$LD -v 2>&1 </dev/null` in
18061*GNU* | *'with BFD'*)
18062 lt_cv_prog_gnu_ld=yes
18063 ;;
18064*)
18065 lt_cv_prog_gnu_ld=no
18066 ;;
18067esac
18068fi
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18070$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18071with_gnu_ld=$lt_cv_prog_gnu_ld
18072
18073
18074
18075
18076
18077
18078
18079 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18080 # archiving commands below assume that GNU ld is being used.
18081 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018082 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18083 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 +000018084
18085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18087
18088 # If archive_cmds runs LD, not CC, wlarc should be empty
18089 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18090 # investigate it a little bit more. (MM)
18091 wlarc='${wl}'
18092
18093 # ancient GNU ld didn't support --whole-archive et. al.
18094 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18095 $GREP 'no-whole-archive' > /dev/null; then
18096 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18097 else
18098 whole_archive_flag_spec_CXX=
18099 fi
18100 else
18101 with_gnu_ld=no
18102 wlarc=
18103
18104 # A generic and very simple default shared library creation
18105 # command for GNU C++ for the case where it uses the native
18106 # linker, instead of GNU ld. If possible, this setting should
18107 # overridden to take advantage of the native linker features on
18108 # the platform it is being used on.
18109 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18110 fi
18111
18112 # Commands to make compiler produce verbose output that lists
18113 # what "hidden" libraries, object files and flags are used when
18114 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018116
18117 else
18118 GXX=no
18119 with_gnu_ld=no
18120 wlarc=
18121 fi
18122
18123 # PORTME: fill in a description of your system's C++ link characteristics
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18125$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18126 ld_shlibs_CXX=yes
18127 case $host_os in
18128 aix3*)
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 ;;
18132 aix[4-9]*)
18133 if test "$host_cpu" = ia64; then
18134 # On IA64, the linker does run time linking by default, so we don't
18135 # have to do anything special.
18136 aix_use_runtimelinking=no
18137 exp_sym_flag='-Bexport'
18138 no_entry_flag=""
18139 else
18140 aix_use_runtimelinking=no
18141
18142 # Test if we are trying to use run time linking or normal
18143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18144 # need to do runtime linking.
18145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18146 for ld_flag in $LDFLAGS; do
18147 case $ld_flag in
18148 *-brtl*)
18149 aix_use_runtimelinking=yes
18150 break
18151 ;;
18152 esac
18153 done
18154 ;;
18155 esac
18156
18157 exp_sym_flag='-bexport'
18158 no_entry_flag='-bnoentry'
18159 fi
18160
18161 # When large executables or shared objects are built, AIX ld can
18162 # have problems creating the table of contents. If linking a library
18163 # or program results in "error TOC overflow" add -mminimal-toc to
18164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18166
18167 archive_cmds_CXX=''
18168 hardcode_direct_CXX=yes
18169 hardcode_direct_absolute_CXX=yes
18170 hardcode_libdir_separator_CXX=':'
18171 link_all_deplibs_CXX=yes
18172 file_list_spec_CXX='${wl}-f,'
18173
18174 if test "$GXX" = yes; then
18175 case $host_os in aix4.[012]|aix4.[012].*)
18176 # We only want to do this on AIX 4.2 and lower, the check
18177 # below for broken collect2 doesn't work under 4.3+
18178 collect2name=`${CC} -print-prog-name=collect2`
18179 if test -f "$collect2name" &&
18180 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18181 then
18182 # We have reworked collect2
18183 :
18184 else
18185 # We have old collect2
18186 hardcode_direct_CXX=unsupported
18187 # It fails to find uninstalled libraries when the uninstalled
18188 # path is not listed in the libpath. Setting hardcode_minus_L
18189 # to unsupported forces relinking
18190 hardcode_minus_L_CXX=yes
18191 hardcode_libdir_flag_spec_CXX='-L$libdir'
18192 hardcode_libdir_separator_CXX=
18193 fi
18194 esac
18195 shared_flag='-shared'
18196 if test "$aix_use_runtimelinking" = yes; then
18197 shared_flag="$shared_flag "'${wl}-G'
18198 fi
18199 else
18200 # not using gcc
18201 if test "$host_cpu" = ia64; then
18202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18203 # chokes on -Wl,-G. The following line is correct:
18204 shared_flag='-G'
18205 else
18206 if test "$aix_use_runtimelinking" = yes; then
18207 shared_flag='${wl}-G'
18208 else
18209 shared_flag='${wl}-bM:SRE'
18210 fi
18211 fi
18212 fi
18213
18214 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18215 # It seems that -bexpall does not export symbols beginning with
18216 # underscore (_), so it is better to generate a list of symbols to
18217 # export.
18218 always_export_symbols_CXX=yes
18219 if test "$aix_use_runtimelinking" = yes; then
18220 # Warning - without using the other runtime loading flags (-brtl),
18221 # -berok will link without error, but may produce a broken library.
18222 allow_undefined_flag_CXX='-berok'
18223 # Determine the default libpath from the value encoded in an empty
18224 # executable.
cristyda16f162011-02-19 23:52:17 +000018225 if test "${lt_cv_aix_libpath+set}" = set; then
18226 aix_libpath=$lt_cv_aix_libpath
18227else
18228 if ${lt_cv_aix_libpath__CXX+:} false; then :
18229 $as_echo_n "(cached) " >&6
18230else
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018232/* end confdefs.h. */
18233
18234int
18235main ()
18236{
18237
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242if ac_fn_cxx_try_link "$LINENO"; then :
18243
cristyda16f162011-02-19 23:52:17 +000018244 lt_aix_libpath_sed='
18245 /Import File Strings/,/^$/ {
18246 /^0/ {
18247 s/^0 *\([^ ]*\) *$/\1/
18248 p
18249 }
18250 }'
18251 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18252 # Check for a 64-bit object if we didn't find anything.
18253 if test -z "$lt_cv_aix_libpath__CXX"; then
18254 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18255 fi
cristy73bd4a52010-10-05 11:24:23 +000018256fi
18257rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018259 if test -z "$lt_cv_aix_libpath__CXX"; then
18260 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18261 fi
18262
18263fi
18264
18265 aix_libpath=$lt_cv_aix_libpath__CXX
18266fi
cristy73bd4a52010-10-05 11:24:23 +000018267
18268 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18269
cristy0c60a692010-11-04 01:09:47 +000018270 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 +000018271 else
18272 if test "$host_cpu" = ia64; then
18273 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18274 allow_undefined_flag_CXX="-z nodefs"
18275 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"
18276 else
18277 # Determine the default libpath from the value encoded in an
18278 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018279 if test "${lt_cv_aix_libpath+set}" = set; then
18280 aix_libpath=$lt_cv_aix_libpath
18281else
18282 if ${lt_cv_aix_libpath__CXX+:} false; then :
18283 $as_echo_n "(cached) " >&6
18284else
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018286/* end confdefs.h. */
18287
18288int
18289main ()
18290{
18291
18292 ;
18293 return 0;
18294}
18295_ACEOF
18296if ac_fn_cxx_try_link "$LINENO"; then :
18297
cristyda16f162011-02-19 23:52:17 +000018298 lt_aix_libpath_sed='
18299 /Import File Strings/,/^$/ {
18300 /^0/ {
18301 s/^0 *\([^ ]*\) *$/\1/
18302 p
18303 }
18304 }'
18305 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18306 # Check for a 64-bit object if we didn't find anything.
18307 if test -z "$lt_cv_aix_libpath__CXX"; then
18308 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18309 fi
cristy73bd4a52010-10-05 11:24:23 +000018310fi
18311rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018313 if test -z "$lt_cv_aix_libpath__CXX"; then
18314 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18315 fi
18316
18317fi
18318
18319 aix_libpath=$lt_cv_aix_libpath__CXX
18320fi
cristy73bd4a52010-10-05 11:24:23 +000018321
18322 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18323 # Warning - without using the other run time loading flags,
18324 # -berok will link without error, but may produce a broken library.
18325 no_undefined_flag_CXX=' ${wl}-bernotok'
18326 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018327 if test "$with_gnu_ld" = yes; then
18328 # We only use this code for GNU lds that support --whole-archive.
18329 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18330 else
18331 # Exported symbols can be pulled into shared objects from archives
18332 whole_archive_flag_spec_CXX='$convenience'
18333 fi
cristy73bd4a52010-10-05 11:24:23 +000018334 archive_cmds_need_lc_CXX=yes
18335 # This is similar to how AIX traditionally builds its shared
18336 # libraries.
18337 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'
18338 fi
18339 fi
18340 ;;
18341
18342 beos*)
18343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18344 allow_undefined_flag_CXX=unsupported
18345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18346 # support --undefined. This deserves some investigation. FIXME
18347 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18348 else
18349 ld_shlibs_CXX=no
18350 fi
18351 ;;
18352
18353 chorus*)
18354 case $cc_basename in
18355 *)
18356 # FIXME: insert proper C++ library support
18357 ld_shlibs_CXX=no
18358 ;;
18359 esac
18360 ;;
18361
18362 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018363 case $GXX,$cc_basename in
18364 ,cl* | no,cl*)
18365 # Native MSVC
18366 # hardcode_libdir_flag_spec is actually meaningless, as there is
18367 # no search path for DLLs.
18368 hardcode_libdir_flag_spec_CXX=' '
18369 allow_undefined_flag_CXX=unsupported
18370 always_export_symbols_CXX=yes
18371 file_list_spec_CXX='@'
18372 # Tell ltmain to make .lib files, not .a files.
18373 libext=lib
18374 # Tell ltmain to make .dll files, not .so files.
18375 shrext_cmds=".dll"
18376 # FIXME: Setting linknames here is a bad hack.
18377 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18378 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18379 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18380 else
18381 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18382 fi~
18383 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18384 linknames='
18385 # The linker will not automatically build a static lib if we build a DLL.
18386 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18387 enable_shared_with_static_runtimes_CXX=yes
18388 # Don't use ranlib
18389 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18390 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18391 lt_tool_outputfile="@TOOL_OUTPUT@"~
18392 case $lt_outputfile in
18393 *.exe|*.EXE) ;;
18394 *)
18395 lt_outputfile="$lt_outputfile.exe"
18396 lt_tool_outputfile="$lt_tool_outputfile.exe"
18397 ;;
18398 esac~
18399 func_to_tool_file "$lt_outputfile"~
18400 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18401 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18402 $RM "$lt_outputfile.manifest";
18403 fi'
18404 ;;
18405 *)
18406 # g++
18407 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18408 # as there is no search path for DLLs.
18409 hardcode_libdir_flag_spec_CXX='-L$libdir'
18410 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18411 allow_undefined_flag_CXX=unsupported
18412 always_export_symbols_CXX=no
18413 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018414
cristyda16f162011-02-19 23:52:17 +000018415 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18416 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'
18417 # If the export-symbols file already is a .def file (1st line
18418 # is EXPORTS), use it as is; otherwise, prepend...
18419 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18420 cp $export_symbols $output_objdir/$soname.def;
18421 else
18422 echo EXPORTS > $output_objdir/$soname.def;
18423 cat $export_symbols >> $output_objdir/$soname.def;
18424 fi~
18425 $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'
18426 else
18427 ld_shlibs_CXX=no
18428 fi
18429 ;;
18430 esac
18431 ;;
cristy73bd4a52010-10-05 11:24:23 +000018432 darwin* | rhapsody*)
18433
18434
18435 archive_cmds_need_lc_CXX=no
18436 hardcode_direct_CXX=no
18437 hardcode_automatic_CXX=yes
18438 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018439 if test "$lt_cv_ld_force_load" = "yes"; then
18440 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 +000018441
cristy0c60a692010-11-04 01:09:47 +000018442 else
18443 whole_archive_flag_spec_CXX=''
18444 fi
cristy73bd4a52010-10-05 11:24:23 +000018445 link_all_deplibs_CXX=yes
18446 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18447 case $cc_basename in
18448 ifort*) _lt_dar_can_shared=yes ;;
18449 *) _lt_dar_can_shared=$GCC ;;
18450 esac
18451 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018452 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018453 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}"
18454 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18455 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}"
18456 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}"
18457 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18458 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}"
18459 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}"
18460 fi
18461
18462 else
18463 ld_shlibs_CXX=no
18464 fi
18465
18466 ;;
18467
18468 dgux*)
18469 case $cc_basename in
18470 ec++*)
18471 # FIXME: insert proper C++ library support
18472 ld_shlibs_CXX=no
18473 ;;
18474 ghcx*)
18475 # Green Hills C++ Compiler
18476 # FIXME: insert proper C++ library support
18477 ld_shlibs_CXX=no
18478 ;;
18479 *)
18480 # FIXME: insert proper C++ library support
18481 ld_shlibs_CXX=no
18482 ;;
18483 esac
18484 ;;
18485
cristy99bd5232011-12-07 14:38:20 +000018486 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018487 # C++ shared libraries reported to be fairly broken before
18488 # switch to ELF
18489 ld_shlibs_CXX=no
18490 ;;
18491
18492 freebsd-elf*)
18493 archive_cmds_need_lc_CXX=no
18494 ;;
18495
18496 freebsd* | dragonfly*)
18497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18498 # conventions
18499 ld_shlibs_CXX=yes
18500 ;;
18501
18502 gnu*)
18503 ;;
18504
cristy0c60a692010-11-04 01:09:47 +000018505 haiku*)
18506 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18507 link_all_deplibs_CXX=yes
18508 ;;
18509
cristy73bd4a52010-10-05 11:24:23 +000018510 hpux9*)
18511 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18512 hardcode_libdir_separator_CXX=:
18513 export_dynamic_flag_spec_CXX='${wl}-E'
18514 hardcode_direct_CXX=yes
18515 hardcode_minus_L_CXX=yes # Not in the search PATH,
18516 # but as the default
18517 # location of the library.
18518
18519 case $cc_basename in
18520 CC*)
18521 # FIXME: insert proper C++ library support
18522 ld_shlibs_CXX=no
18523 ;;
18524 aCC*)
18525 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'
18526 # Commands to make compiler produce verbose output that lists
18527 # what "hidden" libraries, object files and flags are used when
18528 # linking a shared library.
18529 #
18530 # There doesn't appear to be a way to prevent this compiler from
18531 # explicitly linking system object files so we need to strip them
18532 # from the output so that they don't get included in the library
18533 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018534 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 +000018535 ;;
18536 *)
18537 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018538 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 +000018539 else
18540 # FIXME: insert proper C++ library support
18541 ld_shlibs_CXX=no
18542 fi
18543 ;;
18544 esac
18545 ;;
18546
18547 hpux10*|hpux11*)
18548 if test $with_gnu_ld = no; then
18549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18550 hardcode_libdir_separator_CXX=:
18551
18552 case $host_cpu in
18553 hppa*64*|ia64*)
18554 ;;
18555 *)
18556 export_dynamic_flag_spec_CXX='${wl}-E'
18557 ;;
18558 esac
18559 fi
18560 case $host_cpu in
18561 hppa*64*|ia64*)
18562 hardcode_direct_CXX=no
18563 hardcode_shlibpath_var_CXX=no
18564 ;;
18565 *)
18566 hardcode_direct_CXX=yes
18567 hardcode_direct_absolute_CXX=yes
18568 hardcode_minus_L_CXX=yes # Not in the search PATH,
18569 # but as the default
18570 # location of the library.
18571 ;;
18572 esac
18573
18574 case $cc_basename in
18575 CC*)
18576 # FIXME: insert proper C++ library support
18577 ld_shlibs_CXX=no
18578 ;;
18579 aCC*)
18580 case $host_cpu in
18581 hppa*64*)
18582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18583 ;;
18584 ia64*)
18585 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18586 ;;
18587 *)
18588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18589 ;;
18590 esac
18591 # Commands to make compiler produce verbose output that lists
18592 # what "hidden" libraries, object files and flags are used when
18593 # linking a shared library.
18594 #
18595 # There doesn't appear to be a way to prevent this compiler from
18596 # explicitly linking system object files so we need to strip them
18597 # from the output so that they don't get included in the library
18598 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018599 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 +000018600 ;;
18601 *)
18602 if test "$GXX" = yes; then
18603 if test $with_gnu_ld = no; then
18604 case $host_cpu in
18605 hppa*64*)
18606 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18607 ;;
18608 ia64*)
cristyda16f162011-02-19 23:52:17 +000018609 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 +000018610 ;;
18611 *)
cristyda16f162011-02-19 23:52:17 +000018612 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 +000018613 ;;
18614 esac
18615 fi
18616 else
18617 # FIXME: insert proper C++ library support
18618 ld_shlibs_CXX=no
18619 fi
18620 ;;
18621 esac
18622 ;;
18623
18624 interix[3-9]*)
18625 hardcode_direct_CXX=no
18626 hardcode_shlibpath_var_CXX=no
18627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18628 export_dynamic_flag_spec_CXX='${wl}-E'
18629 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18630 # Instead, shared libraries are loaded at an image base (0x10000000 by
18631 # default) and relocated if they conflict, which is a slow very memory
18632 # consuming and fragmenting process. To avoid this, we pick a random,
18633 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18634 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18635 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'
18636 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'
18637 ;;
18638 irix5* | irix6*)
18639 case $cc_basename in
18640 CC*)
18641 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018642 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 +000018643
18644 # Archives containing C++ object files must be created using
18645 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18646 # necessary to make sure instantiated templates are included
18647 # in the archive.
18648 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18649 ;;
18650 *)
18651 if test "$GXX" = yes; then
18652 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018653 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 +000018654 else
cristyda16f162011-02-19 23:52:17 +000018655 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 +000018656 fi
18657 fi
18658 link_all_deplibs_CXX=yes
18659 ;;
18660 esac
18661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18662 hardcode_libdir_separator_CXX=:
18663 inherit_rpath_CXX=yes
18664 ;;
18665
cristy0c60a692010-11-04 01:09:47 +000018666 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018667 case $cc_basename in
18668 KCC*)
18669 # Kuck and Associates, Inc. (KAI) C++ Compiler
18670
18671 # KCC will only create a shared library if the output file
18672 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18673 # to its proper name (with version) after linking.
18674 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'
18675 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'
18676 # Commands to make compiler produce verbose output that lists
18677 # what "hidden" libraries, object files and flags are used when
18678 # linking a shared library.
18679 #
18680 # There doesn't appear to be a way to prevent this compiler from
18681 # explicitly linking system object files so we need to strip them
18682 # from the output so that they don't get included in the library
18683 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018684 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 +000018685
18686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18688
18689 # Archives containing C++ object files must be created using
18690 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18691 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18692 ;;
18693 icpc* | ecpc* )
18694 # Intel C++
18695 with_gnu_ld=yes
18696 # version 8.0 and above of icpc choke on multiply defined symbols
18697 # if we add $predep_objects and $postdep_objects, however 7.1 and
18698 # earlier do not add the objects themselves.
18699 case `$CC -V 2>&1` in
18700 *"Version 7."*)
18701 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18702 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'
18703 ;;
18704 *) # Version 8.0 or newer
18705 tmp_idyn=
18706 case $host_cpu in
18707 ia64*) tmp_idyn=' -i_dynamic';;
18708 esac
18709 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18710 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'
18711 ;;
18712 esac
18713 archive_cmds_need_lc_CXX=no
18714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18716 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18717 ;;
18718 pgCC* | pgcpp*)
18719 # Portland Group C++ compiler
18720 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018721 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018722 prelink_cmds_CXX='tpldir=Template.dir~
18723 rm -rf $tpldir~
18724 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018725 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018726 old_archive_cmds_CXX='tpldir=Template.dir~
18727 rm -rf $tpldir~
18728 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018729 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018730 $RANLIB $oldlib'
18731 archive_cmds_CXX='tpldir=Template.dir~
18732 rm -rf $tpldir~
18733 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018734 $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 +000018735 archive_expsym_cmds_CXX='tpldir=Template.dir~
18736 rm -rf $tpldir~
18737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018738 $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 +000018739 ;;
cristy0c60a692010-11-04 01:09:47 +000018740 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18742 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'
18743 ;;
18744 esac
18745
18746 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018748 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 +000018749 ;;
18750 cxx*)
18751 # Compaq C++
18752 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18753 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'
18754
18755 runpath_var=LD_RUN_PATH
18756 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18757 hardcode_libdir_separator_CXX=:
18758
18759 # Commands to make compiler produce verbose output that lists
18760 # what "hidden" libraries, object files and flags are used when
18761 # linking a shared library.
18762 #
18763 # There doesn't appear to be a way to prevent this compiler from
18764 # explicitly linking system object files so we need to strip them
18765 # from the output so that they don't get included in the library
18766 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018767 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 +000018768 ;;
cristy0c60a692010-11-04 01:09:47 +000018769 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018770 # IBM XL 8.0 on PPC, with GNU ld
18771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18773 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18774 if test "x$supports_anon_versioning" = xyes; then
18775 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18777 echo "local: *; };" >> $output_objdir/$libname.ver~
18778 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18779 fi
18780 ;;
18781 *)
18782 case `$CC -V 2>&1 | sed 5q` in
18783 *Sun\ C*)
18784 # Sun C++ 5.9
18785 no_undefined_flag_CXX=' -zdefs'
18786 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18787 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'
18788 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018789 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 +000018790 compiler_needs_object_CXX=yes
18791
18792 # Not sure whether something based on
18793 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18794 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018795 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018796
18797 # Archives containing C++ object files must be created using
18798 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18799 # necessary to make sure instantiated templates are included
18800 # in the archive.
18801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18802 ;;
18803 esac
18804 ;;
18805 esac
18806 ;;
18807
18808 lynxos*)
18809 # FIXME: insert proper C++ library support
18810 ld_shlibs_CXX=no
18811 ;;
18812
18813 m88k*)
18814 # FIXME: insert proper C++ library support
18815 ld_shlibs_CXX=no
18816 ;;
18817
18818 mvs*)
18819 case $cc_basename in
18820 cxx*)
18821 # FIXME: insert proper C++ library support
18822 ld_shlibs_CXX=no
18823 ;;
18824 *)
18825 # FIXME: insert proper C++ library support
18826 ld_shlibs_CXX=no
18827 ;;
18828 esac
18829 ;;
18830
18831 netbsd*)
18832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18833 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18834 wlarc=
18835 hardcode_libdir_flag_spec_CXX='-R$libdir'
18836 hardcode_direct_CXX=yes
18837 hardcode_shlibpath_var_CXX=no
18838 fi
18839 # Workaround some broken pre-1.5 toolchains
18840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18841 ;;
18842
18843 *nto* | *qnx*)
18844 ld_shlibs_CXX=yes
18845 ;;
18846
18847 openbsd2*)
18848 # C++ shared libraries are fairly broken
18849 ld_shlibs_CXX=no
18850 ;;
18851
18852 openbsd*)
18853 if test -f /usr/libexec/ld.so; then
18854 hardcode_direct_CXX=yes
18855 hardcode_shlibpath_var_CXX=no
18856 hardcode_direct_absolute_CXX=yes
18857 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18860 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18861 export_dynamic_flag_spec_CXX='${wl}-E'
18862 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18863 fi
cristy0c60a692010-11-04 01:09:47 +000018864 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018865 else
18866 ld_shlibs_CXX=no
18867 fi
18868 ;;
18869
18870 osf3* | osf4* | osf5*)
18871 case $cc_basename in
18872 KCC*)
18873 # Kuck and Associates, Inc. (KAI) C++ Compiler
18874
18875 # KCC will only create a shared library if the output file
18876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18877 # to its proper name (with version) after linking.
18878 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'
18879
18880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18881 hardcode_libdir_separator_CXX=:
18882
18883 # Archives containing C++ object files must be created using
18884 # the KAI C++ compiler.
18885 case $host in
18886 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18887 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18888 esac
18889 ;;
18890 RCC*)
18891 # Rational C++ 2.4.1
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895 cxx*)
18896 case $host in
18897 osf3*)
18898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018899 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 +000018900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18901 ;;
18902 *)
18903 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018904 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 +000018905 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18906 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018907 $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 +000018908 $RM $lib.exp'
18909 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18910 ;;
18911 esac
18912
18913 hardcode_libdir_separator_CXX=:
18914
18915 # Commands to make compiler produce verbose output that lists
18916 # what "hidden" libraries, object files and flags are used when
18917 # linking a shared library.
18918 #
18919 # There doesn't appear to be a way to prevent this compiler from
18920 # explicitly linking system object files so we need to strip them
18921 # from the output so that they don't get included in the library
18922 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018923 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 +000018924 ;;
18925 *)
18926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18927 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18928 case $host in
18929 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018930 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 +000018931 ;;
18932 *)
cristyda16f162011-02-19 23:52:17 +000018933 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 +000018934 ;;
18935 esac
18936
18937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18938 hardcode_libdir_separator_CXX=:
18939
18940 # Commands to make compiler produce verbose output that lists
18941 # what "hidden" libraries, object files and flags are used when
18942 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018944
18945 else
18946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18948 fi
18949 ;;
18950 esac
18951 ;;
18952
18953 psos*)
18954 # FIXME: insert proper C++ library support
18955 ld_shlibs_CXX=no
18956 ;;
18957
18958 sunos4*)
18959 case $cc_basename in
18960 CC*)
18961 # Sun C++ 4.x
18962 # FIXME: insert proper C++ library support
18963 ld_shlibs_CXX=no
18964 ;;
18965 lcc*)
18966 # Lucid
18967 # FIXME: insert proper C++ library support
18968 ld_shlibs_CXX=no
18969 ;;
18970 *)
18971 # FIXME: insert proper C++ library support
18972 ld_shlibs_CXX=no
18973 ;;
18974 esac
18975 ;;
18976
18977 solaris*)
18978 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018979 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018980 # Sun C++ 4.2, 5.x and Centerline C++
18981 archive_cmds_need_lc_CXX=yes
18982 no_undefined_flag_CXX=' -zdefs'
18983 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18985 $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'
18986
18987 hardcode_libdir_flag_spec_CXX='-R$libdir'
18988 hardcode_shlibpath_var_CXX=no
18989 case $host_os in
18990 solaris2.[0-5] | solaris2.[0-5].*) ;;
18991 *)
18992 # The compiler driver will combine and reorder linker options,
18993 # but understands `-z linker_flag'.
18994 # Supported since Solaris 2.6 (maybe 2.5.1?)
18995 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18996 ;;
18997 esac
18998 link_all_deplibs_CXX=yes
18999
cristy0c60a692010-11-04 01:09:47 +000019000 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019001
19002 # Archives containing C++ object files must be created using
19003 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19004 # necessary to make sure instantiated templates are included
19005 # in the archive.
19006 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19007 ;;
19008 gcx*)
19009 # Green Hills C++ Compiler
19010 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19011
19012 # The C++ compiler must be used to create the archive.
19013 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19014 ;;
19015 *)
19016 # GNU C++ compiler with Solaris linker
19017 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19018 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19019 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019020 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 +000019021 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 +000019022 $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 +000019023
19024 # Commands to make compiler produce verbose output that lists
19025 # what "hidden" libraries, object files and flags are used when
19026 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019028 else
19029 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19030 # platform.
19031 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19033 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19034
19035 # Commands to make compiler produce verbose output that lists
19036 # what "hidden" libraries, object files and flags are used when
19037 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019038 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019039 fi
19040
19041 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19042 case $host_os in
19043 solaris2.[0-5] | solaris2.[0-5].*) ;;
19044 *)
19045 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19046 ;;
19047 esac
19048 fi
19049 ;;
19050 esac
19051 ;;
19052
19053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19054 no_undefined_flag_CXX='${wl}-z,text'
19055 archive_cmds_need_lc_CXX=no
19056 hardcode_shlibpath_var_CXX=no
19057 runpath_var='LD_RUN_PATH'
19058
19059 case $cc_basename in
19060 CC*)
19061 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19062 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19063 ;;
19064 *)
19065 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19066 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19067 ;;
19068 esac
19069 ;;
19070
19071 sysv5* | sco3.2v5* | sco5v6*)
19072 # Note: We can NOT use -z defs as we might desire, because we do not
19073 # link with -lc, and that would cause any symbols used from libc to
19074 # always be unresolved, which means just about no library would
19075 # ever link correctly. If we're not using GNU ld we use -z text
19076 # though, which does catch some bad symbols but isn't as heavy-handed
19077 # as -z defs.
19078 no_undefined_flag_CXX='${wl}-z,text'
19079 allow_undefined_flag_CXX='${wl}-z,nodefs'
19080 archive_cmds_need_lc_CXX=no
19081 hardcode_shlibpath_var_CXX=no
19082 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19083 hardcode_libdir_separator_CXX=':'
19084 link_all_deplibs_CXX=yes
19085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19086 runpath_var='LD_RUN_PATH'
19087
19088 case $cc_basename in
19089 CC*)
19090 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19091 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 +000019092 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19093 '"$old_archive_cmds_CXX"
19094 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19095 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019096 ;;
19097 *)
19098 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19099 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19100 ;;
19101 esac
19102 ;;
19103
19104 tandem*)
19105 case $cc_basename in
19106 NCC*)
19107 # NonStop-UX NCC 3.20
19108 # FIXME: insert proper C++ library support
19109 ld_shlibs_CXX=no
19110 ;;
19111 *)
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115 esac
19116 ;;
19117
19118 vxworks*)
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
19122
19123 *)
19124 # FIXME: insert proper C++ library support
19125 ld_shlibs_CXX=no
19126 ;;
19127 esac
19128
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19130$as_echo "$ld_shlibs_CXX" >&6; }
19131 test "$ld_shlibs_CXX" = no && can_build_shared=no
19132
19133 GCC_CXX="$GXX"
19134 LD_CXX="$LD"
19135
19136 ## CAVEAT EMPTOR:
19137 ## There is no encapsulation within the following macros, do not change
19138 ## the running order or otherwise move them around unless you know exactly
19139 ## what you are doing...
19140 # Dependencies to place before and after the object being linked:
19141predep_objects_CXX=
19142postdep_objects_CXX=
19143predeps_CXX=
19144postdeps_CXX=
19145compiler_lib_search_path_CXX=
19146
19147cat > conftest.$ac_ext <<_LT_EOF
19148class Foo
19149{
19150public:
19151 Foo (void) { a = 0; }
19152private:
19153 int a;
19154};
19155_LT_EOF
19156
cristyda16f162011-02-19 23:52:17 +000019157
19158_lt_libdeps_save_CFLAGS=$CFLAGS
19159case "$CC $CFLAGS " in #(
19160*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19161*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019162*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019163esac
19164
cristy73bd4a52010-10-05 11:24:23 +000019165if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19166 (eval $ac_compile) 2>&5
19167 ac_status=$?
19168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169 test $ac_status = 0; }; then
19170 # Parse the compiler output and extract the necessary
19171 # objects, libraries and library flags.
19172
19173 # Sentinel used to keep track of whether or not we are before
19174 # the conftest object file.
19175 pre_test_object_deps_done=no
19176
19177 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019178 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019179
19180 -L* | -R* | -l*)
19181 # Some compilers place space between "-{L,R}" and the path.
19182 # Remove the space.
19183 if test $p = "-L" ||
19184 test $p = "-R"; then
19185 prev=$p
19186 continue
cristy73bd4a52010-10-05 11:24:23 +000019187 fi
19188
cristyda16f162011-02-19 23:52:17 +000019189 # Expand the sysroot to ease extracting the directories later.
19190 if test -z "$prev"; then
19191 case $p in
19192 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19193 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19194 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19195 esac
19196 fi
19197 case $p in
19198 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19199 esac
cristy73bd4a52010-10-05 11:24:23 +000019200 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019201 case ${prev} in
19202 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019203 # Internal compiler library paths should come after those
19204 # provided the user. The postdeps already come after the
19205 # user supplied libs so there is no need to process them.
19206 if test -z "$compiler_lib_search_path_CXX"; then
19207 compiler_lib_search_path_CXX="${prev}${p}"
19208 else
19209 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19210 fi
19211 ;;
19212 # The "-l" case would never come before the object being
19213 # linked, so don't bother handling this case.
19214 esac
19215 else
19216 if test -z "$postdeps_CXX"; then
19217 postdeps_CXX="${prev}${p}"
19218 else
19219 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19220 fi
19221 fi
cristyda16f162011-02-19 23:52:17 +000019222 prev=
cristy73bd4a52010-10-05 11:24:23 +000019223 ;;
19224
cristyda16f162011-02-19 23:52:17 +000019225 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019226 *.$objext)
19227 # This assumes that the test object file only shows up
19228 # once in the compiler output.
19229 if test "$p" = "conftest.$objext"; then
19230 pre_test_object_deps_done=yes
19231 continue
19232 fi
19233
19234 if test "$pre_test_object_deps_done" = no; then
19235 if test -z "$predep_objects_CXX"; then
19236 predep_objects_CXX="$p"
19237 else
19238 predep_objects_CXX="$predep_objects_CXX $p"
19239 fi
19240 else
19241 if test -z "$postdep_objects_CXX"; then
19242 postdep_objects_CXX="$p"
19243 else
19244 postdep_objects_CXX="$postdep_objects_CXX $p"
19245 fi
19246 fi
19247 ;;
19248
19249 *) ;; # Ignore the rest.
19250
19251 esac
19252 done
19253
19254 # Clean up.
19255 rm -f a.out a.exe
19256else
19257 echo "libtool.m4: error: problem compiling CXX test program"
19258fi
19259
19260$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019261CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019262
19263# PORTME: override above test on systems where it is broken
19264case $host_os in
19265interix[3-9]*)
19266 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19267 # hack all around it, let's just trust "g++" to DTRT.
19268 predep_objects_CXX=
19269 postdep_objects_CXX=
19270 postdeps_CXX=
19271 ;;
19272
19273linux*)
19274 case `$CC -V 2>&1 | sed 5q` in
19275 *Sun\ C*)
19276 # Sun C++ 5.9
19277
19278 # The more standards-conforming stlport4 library is
19279 # incompatible with the Cstd library. Avoid specifying
19280 # it if it's in CXXFLAGS. Ignore libCrun as
19281 # -library=stlport4 depends on it.
19282 case " $CXX $CXXFLAGS " in
19283 *" -library=stlport4 "*)
19284 solaris_use_stlport4=yes
19285 ;;
19286 esac
19287
19288 if test "$solaris_use_stlport4" != yes; then
19289 postdeps_CXX='-library=Cstd -library=Crun'
19290 fi
19291 ;;
19292 esac
19293 ;;
19294
19295solaris*)
19296 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019297 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019298 # The more standards-conforming stlport4 library is
19299 # incompatible with the Cstd library. Avoid specifying
19300 # it if it's in CXXFLAGS. Ignore libCrun as
19301 # -library=stlport4 depends on it.
19302 case " $CXX $CXXFLAGS " in
19303 *" -library=stlport4 "*)
19304 solaris_use_stlport4=yes
19305 ;;
19306 esac
19307
19308 # Adding this requires a known-good setup of shared libraries for
19309 # Sun compiler versions before 5.6, else PIC objects from an old
19310 # archive will be linked into the output, leading to subtle bugs.
19311 if test "$solaris_use_stlport4" != yes; then
19312 postdeps_CXX='-library=Cstd -library=Crun'
19313 fi
19314 ;;
19315 esac
19316 ;;
19317esac
19318
19319
19320case " $postdeps_CXX " in
19321*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19322esac
19323 compiler_lib_search_dirs_CXX=
19324if test -n "${compiler_lib_search_path_CXX}"; then
19325 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19326fi
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358 lt_prog_compiler_wl_CXX=
19359lt_prog_compiler_pic_CXX=
19360lt_prog_compiler_static_CXX=
19361
cristy73bd4a52010-10-05 11:24:23 +000019362
19363 # C++ specific cases for pic, static, wl, etc.
19364 if test "$GXX" = yes; then
19365 lt_prog_compiler_wl_CXX='-Wl,'
19366 lt_prog_compiler_static_CXX='-static'
19367
19368 case $host_os in
19369 aix*)
19370 # All AIX code is PIC.
19371 if test "$host_cpu" = ia64; then
19372 # AIX 5 now supports IA64 processor
19373 lt_prog_compiler_static_CXX='-Bstatic'
19374 fi
19375 ;;
19376
19377 amigaos*)
19378 case $host_cpu in
19379 powerpc)
19380 # see comment about AmigaOS4 .so support
19381 lt_prog_compiler_pic_CXX='-fPIC'
19382 ;;
19383 m68k)
19384 # FIXME: we need at least 68020 code to build shared libraries, but
19385 # adding the `-m68020' flag to GCC prevents building anything better,
19386 # like `-m68040'.
19387 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19388 ;;
19389 esac
19390 ;;
19391
19392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19393 # PIC is the default for these OSes.
19394 ;;
19395 mingw* | cygwin* | os2* | pw32* | cegcc*)
19396 # This hack is so that the source file can tell whether it is being
19397 # built for inclusion in a dll (and should export symbols for example).
19398 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19399 # (--disable-auto-import) libraries
19400 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19401 ;;
19402 darwin* | rhapsody*)
19403 # PIC is the default on this platform
19404 # Common symbols not allowed in MH_DYLIB files
19405 lt_prog_compiler_pic_CXX='-fno-common'
19406 ;;
19407 *djgpp*)
19408 # DJGPP does not support shared libraries at all
19409 lt_prog_compiler_pic_CXX=
19410 ;;
cristy0c60a692010-11-04 01:09:47 +000019411 haiku*)
19412 # PIC is the default for Haiku.
19413 # The "-static" flag exists, but is broken.
19414 lt_prog_compiler_static_CXX=
19415 ;;
cristy73bd4a52010-10-05 11:24:23 +000019416 interix[3-9]*)
19417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19418 # Instead, we relocate shared libraries at runtime.
19419 ;;
19420 sysv4*MP*)
19421 if test -d /usr/nec; then
19422 lt_prog_compiler_pic_CXX=-Kconform_pic
19423 fi
19424 ;;
19425 hpux*)
19426 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19427 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19428 # sets the default TLS model and affects inlining.
19429 case $host_cpu in
19430 hppa*64*)
19431 ;;
19432 *)
19433 lt_prog_compiler_pic_CXX='-fPIC'
19434 ;;
19435 esac
19436 ;;
19437 *qnx* | *nto*)
19438 # QNX uses GNU C++, but need to define -shared option too, otherwise
19439 # it will coredump.
19440 lt_prog_compiler_pic_CXX='-fPIC -shared'
19441 ;;
19442 *)
19443 lt_prog_compiler_pic_CXX='-fPIC'
19444 ;;
19445 esac
19446 else
19447 case $host_os in
19448 aix[4-9]*)
19449 # All AIX code is PIC.
19450 if test "$host_cpu" = ia64; then
19451 # AIX 5 now supports IA64 processor
19452 lt_prog_compiler_static_CXX='-Bstatic'
19453 else
19454 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19455 fi
19456 ;;
19457 chorus*)
19458 case $cc_basename in
19459 cxch68*)
19460 # Green Hills C++ Compiler
19461 # _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"
19462 ;;
19463 esac
19464 ;;
cristyda16f162011-02-19 23:52:17 +000019465 mingw* | cygwin* | os2* | pw32* | cegcc*)
19466 # This hack is so that the source file can tell whether it is being
19467 # built for inclusion in a dll (and should export symbols for example).
19468 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19469 ;;
cristy73bd4a52010-10-05 11:24:23 +000019470 dgux*)
19471 case $cc_basename in
19472 ec++*)
19473 lt_prog_compiler_pic_CXX='-KPIC'
19474 ;;
19475 ghcx*)
19476 # Green Hills C++ Compiler
19477 lt_prog_compiler_pic_CXX='-pic'
19478 ;;
19479 *)
19480 ;;
19481 esac
19482 ;;
19483 freebsd* | dragonfly*)
19484 # FreeBSD uses GNU C++
19485 ;;
19486 hpux9* | hpux10* | hpux11*)
19487 case $cc_basename in
19488 CC*)
19489 lt_prog_compiler_wl_CXX='-Wl,'
19490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19491 if test "$host_cpu" != ia64; then
19492 lt_prog_compiler_pic_CXX='+Z'
19493 fi
19494 ;;
19495 aCC*)
19496 lt_prog_compiler_wl_CXX='-Wl,'
19497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19498 case $host_cpu in
19499 hppa*64*|ia64*)
19500 # +Z the default
19501 ;;
19502 *)
19503 lt_prog_compiler_pic_CXX='+Z'
19504 ;;
19505 esac
19506 ;;
19507 *)
19508 ;;
19509 esac
19510 ;;
19511 interix*)
19512 # This is c89, which is MS Visual C++ (no shared libs)
19513 # Anyone wants to do a port?
19514 ;;
19515 irix5* | irix6* | nonstopux*)
19516 case $cc_basename in
19517 CC*)
19518 lt_prog_compiler_wl_CXX='-Wl,'
19519 lt_prog_compiler_static_CXX='-non_shared'
19520 # CC pic flag -KPIC is the default.
19521 ;;
19522 *)
19523 ;;
19524 esac
19525 ;;
cristy0c60a692010-11-04 01:09:47 +000019526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019527 case $cc_basename in
19528 KCC*)
19529 # KAI C++ Compiler
19530 lt_prog_compiler_wl_CXX='--backend -Wl,'
19531 lt_prog_compiler_pic_CXX='-fPIC'
19532 ;;
19533 ecpc* )
19534 # old Intel C++ for x86_64 which still supported -KPIC.
19535 lt_prog_compiler_wl_CXX='-Wl,'
19536 lt_prog_compiler_pic_CXX='-KPIC'
19537 lt_prog_compiler_static_CXX='-static'
19538 ;;
19539 icpc* )
19540 # Intel C++, used to be incompatible with GCC.
19541 # ICC 10 doesn't accept -KPIC any more.
19542 lt_prog_compiler_wl_CXX='-Wl,'
19543 lt_prog_compiler_pic_CXX='-fPIC'
19544 lt_prog_compiler_static_CXX='-static'
19545 ;;
19546 pgCC* | pgcpp*)
19547 # Portland Group C++ compiler
19548 lt_prog_compiler_wl_CXX='-Wl,'
19549 lt_prog_compiler_pic_CXX='-fpic'
19550 lt_prog_compiler_static_CXX='-Bstatic'
19551 ;;
19552 cxx*)
19553 # Compaq C++
19554 # Make sure the PIC flag is empty. It appears that all Alpha
19555 # Linux and Compaq Tru64 Unix objects are PIC.
19556 lt_prog_compiler_pic_CXX=
19557 lt_prog_compiler_static_CXX='-non_shared'
19558 ;;
cristy0c60a692010-11-04 01:09:47 +000019559 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19560 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019561 lt_prog_compiler_wl_CXX='-Wl,'
19562 lt_prog_compiler_pic_CXX='-qpic'
19563 lt_prog_compiler_static_CXX='-qstaticlink'
19564 ;;
19565 *)
19566 case `$CC -V 2>&1 | sed 5q` in
19567 *Sun\ C*)
19568 # Sun C++ 5.9
19569 lt_prog_compiler_pic_CXX='-KPIC'
19570 lt_prog_compiler_static_CXX='-Bstatic'
19571 lt_prog_compiler_wl_CXX='-Qoption ld '
19572 ;;
19573 esac
19574 ;;
19575 esac
19576 ;;
19577 lynxos*)
19578 ;;
19579 m88k*)
19580 ;;
19581 mvs*)
19582 case $cc_basename in
19583 cxx*)
19584 lt_prog_compiler_pic_CXX='-W c,exportall'
19585 ;;
19586 *)
19587 ;;
19588 esac
19589 ;;
19590 netbsd*)
19591 ;;
19592 *qnx* | *nto*)
19593 # QNX uses GNU C++, but need to define -shared option too, otherwise
19594 # it will coredump.
19595 lt_prog_compiler_pic_CXX='-fPIC -shared'
19596 ;;
19597 osf3* | osf4* | osf5*)
19598 case $cc_basename in
19599 KCC*)
19600 lt_prog_compiler_wl_CXX='--backend -Wl,'
19601 ;;
19602 RCC*)
19603 # Rational C++ 2.4.1
19604 lt_prog_compiler_pic_CXX='-pic'
19605 ;;
19606 cxx*)
19607 # Digital/Compaq C++
19608 lt_prog_compiler_wl_CXX='-Wl,'
19609 # Make sure the PIC flag is empty. It appears that all Alpha
19610 # Linux and Compaq Tru64 Unix objects are PIC.
19611 lt_prog_compiler_pic_CXX=
19612 lt_prog_compiler_static_CXX='-non_shared'
19613 ;;
19614 *)
19615 ;;
19616 esac
19617 ;;
19618 psos*)
19619 ;;
19620 solaris*)
19621 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019622 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019623 # Sun C++ 4.2, 5.x and Centerline C++
19624 lt_prog_compiler_pic_CXX='-KPIC'
19625 lt_prog_compiler_static_CXX='-Bstatic'
19626 lt_prog_compiler_wl_CXX='-Qoption ld '
19627 ;;
19628 gcx*)
19629 # Green Hills C++ Compiler
19630 lt_prog_compiler_pic_CXX='-PIC'
19631 ;;
19632 *)
19633 ;;
19634 esac
19635 ;;
19636 sunos4*)
19637 case $cc_basename in
19638 CC*)
19639 # Sun C++ 4.x
19640 lt_prog_compiler_pic_CXX='-pic'
19641 lt_prog_compiler_static_CXX='-Bstatic'
19642 ;;
19643 lcc*)
19644 # Lucid
19645 lt_prog_compiler_pic_CXX='-pic'
19646 ;;
19647 *)
19648 ;;
19649 esac
19650 ;;
19651 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19652 case $cc_basename in
19653 CC*)
19654 lt_prog_compiler_wl_CXX='-Wl,'
19655 lt_prog_compiler_pic_CXX='-KPIC'
19656 lt_prog_compiler_static_CXX='-Bstatic'
19657 ;;
19658 esac
19659 ;;
19660 tandem*)
19661 case $cc_basename in
19662 NCC*)
19663 # NonStop-UX NCC 3.20
19664 lt_prog_compiler_pic_CXX='-KPIC'
19665 ;;
19666 *)
19667 ;;
19668 esac
19669 ;;
19670 vxworks*)
19671 ;;
19672 *)
19673 lt_prog_compiler_can_build_shared_CXX=no
19674 ;;
19675 esac
19676 fi
19677
19678case $host_os in
19679 # For platforms which do not support PIC, -DPIC is meaningless:
19680 *djgpp*)
19681 lt_prog_compiler_pic_CXX=
19682 ;;
19683 *)
19684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19685 ;;
19686esac
cristy73bd4a52010-10-05 11:24:23 +000019687
cristyda16f162011-02-19 23:52:17 +000019688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19690if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19691 $as_echo_n "(cached) " >&6
19692else
19693 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19694fi
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19696$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19697lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019698
19699#
19700# Check to make sure the PIC flag actually works.
19701#
19702if test -n "$lt_prog_compiler_pic_CXX"; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19704$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019705if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019706 $as_echo_n "(cached) " >&6
19707else
19708 lt_cv_prog_compiler_pic_works_CXX=no
19709 ac_outfile=conftest.$ac_objext
19710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19711 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19712 # Insert the option either (1) after the last *FLAGS variable, or
19713 # (2) before a word containing "conftest.", or (3) at the end.
19714 # Note that $ac_compile itself does not contain backslashes and begins
19715 # with a dollar sign (not a hyphen), so the echo should work correctly.
19716 # The option is referenced via a variable to avoid confusing sed.
19717 lt_compile=`echo "$ac_compile" | $SED \
19718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19720 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019722 (eval "$lt_compile" 2>conftest.err)
19723 ac_status=$?
19724 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019726 if (exit $ac_status) && test -s "$ac_outfile"; then
19727 # The compiler can only warn and ignore the option if not recognized
19728 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19732 lt_cv_prog_compiler_pic_works_CXX=yes
19733 fi
19734 fi
19735 $RM conftest*
19736
19737fi
19738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19739$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19740
19741if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19742 case $lt_prog_compiler_pic_CXX in
19743 "" | " "*) ;;
19744 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19745 esac
19746else
19747 lt_prog_compiler_pic_CXX=
19748 lt_prog_compiler_can_build_shared_CXX=no
19749fi
19750
19751fi
19752
19753
19754
cristyda16f162011-02-19 23:52:17 +000019755
19756
cristy73bd4a52010-10-05 11:24:23 +000019757#
19758# Check to make sure the static flag actually works.
19759#
19760wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19762$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019763if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019764 $as_echo_n "(cached) " >&6
19765else
19766 lt_cv_prog_compiler_static_works_CXX=no
19767 save_LDFLAGS="$LDFLAGS"
19768 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19769 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19770 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19771 # The linker can only warn and ignore the option if not recognized
19772 # So say no if there are warnings
19773 if test -s conftest.err; then
19774 # Append any errors to the config.log.
19775 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019776 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19778 if diff conftest.exp conftest.er2 >/dev/null; then
19779 lt_cv_prog_compiler_static_works_CXX=yes
19780 fi
19781 else
19782 lt_cv_prog_compiler_static_works_CXX=yes
19783 fi
19784 fi
19785 $RM -r conftest*
19786 LDFLAGS="$save_LDFLAGS"
19787
19788fi
19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19790$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19791
19792if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19793 :
19794else
19795 lt_prog_compiler_static_CXX=
19796fi
19797
19798
19799
19800
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19802$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019803if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019804 $as_echo_n "(cached) " >&6
19805else
19806 lt_cv_prog_compiler_c_o_CXX=no
19807 $RM -r conftest 2>/dev/null
19808 mkdir conftest
19809 cd conftest
19810 mkdir out
19811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19812
19813 lt_compiler_flag="-o out/conftest2.$ac_objext"
19814 # Insert the option either (1) after the last *FLAGS variable, or
19815 # (2) before a word containing "conftest.", or (3) at the end.
19816 # Note that $ac_compile itself does not contain backslashes and begins
19817 # with a dollar sign (not a hyphen), so the echo should work correctly.
19818 lt_compile=`echo "$ac_compile" | $SED \
19819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19821 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019823 (eval "$lt_compile" 2>out/conftest.err)
19824 ac_status=$?
19825 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19828 then
19829 # The compiler can only warn and ignore the option if not recognized
19830 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19834 lt_cv_prog_compiler_c_o_CXX=yes
19835 fi
19836 fi
19837 chmod u+w . 2>&5
19838 $RM conftest*
19839 # SGI C++ compiler will create directory out/ii_files/ for
19840 # template instantiation
19841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19842 $RM out/* && rmdir out
19843 cd ..
19844 $RM -r conftest
19845 $RM conftest*
19846
19847fi
19848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19849$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19850
19851
19852
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19854$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019855if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019856 $as_echo_n "(cached) " >&6
19857else
19858 lt_cv_prog_compiler_c_o_CXX=no
19859 $RM -r conftest 2>/dev/null
19860 mkdir conftest
19861 cd conftest
19862 mkdir out
19863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19864
19865 lt_compiler_flag="-o out/conftest2.$ac_objext"
19866 # Insert the option either (1) after the last *FLAGS variable, or
19867 # (2) before a word containing "conftest.", or (3) at the end.
19868 # Note that $ac_compile itself does not contain backslashes and begins
19869 # with a dollar sign (not a hyphen), so the echo should work correctly.
19870 lt_compile=`echo "$ac_compile" | $SED \
19871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19873 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019875 (eval "$lt_compile" 2>out/conftest.err)
19876 ac_status=$?
19877 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19880 then
19881 # The compiler can only warn and ignore the option if not recognized
19882 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19886 lt_cv_prog_compiler_c_o_CXX=yes
19887 fi
19888 fi
19889 chmod u+w . 2>&5
19890 $RM conftest*
19891 # SGI C++ compiler will create directory out/ii_files/ for
19892 # template instantiation
19893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19894 $RM out/* && rmdir out
19895 cd ..
19896 $RM -r conftest
19897 $RM conftest*
19898
19899fi
19900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19901$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19902
19903
19904
19905
19906hard_links="nottested"
19907if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19908 # do not overwrite the value of need_locks provided by the user
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19910$as_echo_n "checking if we can lock with hard links... " >&6; }
19911 hard_links=yes
19912 $RM conftest*
19913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19914 touch conftest.a
19915 ln conftest.a conftest.b 2>&5 || hard_links=no
19916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19918$as_echo "$hard_links" >&6; }
19919 if test "$hard_links" = no; then
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19921$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19922 need_locks=warn
19923 fi
19924else
19925 need_locks=no
19926fi
19927
19928
19929
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19931$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19932
19933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019934 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019935 case $host_os in
19936 aix[4-9]*)
19937 # If we're using GNU nm, then we don't want the "-C" option.
19938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019939 # Also, AIX nm treats weak defined symbols like other global defined
19940 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019942 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 +000019943 else
19944 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'
19945 fi
19946 ;;
19947 pw32*)
19948 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019949 ;;
cristy73bd4a52010-10-05 11:24:23 +000019950 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019951 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019952 cl*)
19953 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19954 ;;
cristyda16f162011-02-19 23:52:17 +000019955 *)
19956 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'
19957 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19958 ;;
19959 esac
19960 ;;
cristy73bd4a52010-10-05 11:24:23 +000019961 *)
19962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019963 ;;
cristy73bd4a52010-10-05 11:24:23 +000019964 esac
cristy73bd4a52010-10-05 11:24:23 +000019965
19966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19967$as_echo "$ld_shlibs_CXX" >&6; }
19968test "$ld_shlibs_CXX" = no && can_build_shared=no
19969
19970with_gnu_ld_CXX=$with_gnu_ld
19971
19972
19973
19974
19975
19976
19977#
19978# Do we need to explicitly link libc?
19979#
19980case "x$archive_cmds_need_lc_CXX" in
19981x|xyes)
19982 # Assume -lc should be added
19983 archive_cmds_need_lc_CXX=yes
19984
19985 if test "$enable_shared" = yes && test "$GCC" = yes; then
19986 case $archive_cmds_CXX in
19987 *'~'*)
19988 # FIXME: we may have to deal with multi-command sequences.
19989 ;;
19990 '$CC '*)
19991 # Test whether the compiler implicitly links with -lc since on some
19992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19993 # to ld, don't add -lc before -lgcc.
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19995$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019996if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019997 $as_echo_n "(cached) " >&6
19998else
19999 $RM conftest*
20000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020001
cristy0c60a692010-11-04 01:09:47 +000020002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020003 (eval $ac_compile) 2>&5
20004 ac_status=$?
20005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20006 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020007 soname=conftest
20008 lib=conftest
20009 libobjs=conftest.$ac_objext
20010 deplibs=
20011 wl=$lt_prog_compiler_wl_CXX
20012 pic_flag=$lt_prog_compiler_pic_CXX
20013 compiler_flags=-v
20014 linker_flags=-v
20015 verstring=
20016 output_objdir=.
20017 libname=conftest
20018 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20019 allow_undefined_flag_CXX=
20020 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 +000020021 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20022 ac_status=$?
20023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20024 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020025 then
20026 lt_cv_archive_cmds_need_lc_CXX=no
20027 else
20028 lt_cv_archive_cmds_need_lc_CXX=yes
20029 fi
20030 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20031 else
20032 cat conftest.err 1>&5
20033 fi
20034 $RM conftest*
20035
20036fi
20037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20038$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20039 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020040 ;;
20041 esac
20042 fi
20043 ;;
20044esac
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
cristy73bd4a52010-10-05 11:24:23 +000020107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20108$as_echo_n "checking dynamic linker characteristics... " >&6; }
20109
20110library_names_spec=
20111libname_spec='lib$name'
20112soname_spec=
20113shrext_cmds=".so"
20114postinstall_cmds=
20115postuninstall_cmds=
20116finish_cmds=
20117finish_eval=
20118shlibpath_var=
20119shlibpath_overrides_runpath=unknown
20120version_type=none
20121dynamic_linker="$host_os ld.so"
20122sys_lib_dlsearch_path_spec="/lib /usr/lib"
20123need_lib_prefix=unknown
20124hardcode_into_libs=no
20125
20126# when you set need_version to no, make sure it does not cause -set_version
20127# flags to be left without arguments
20128need_version=unknown
20129
20130case $host_os in
20131aix3*)
cristy99bd5232011-12-07 14:38:20 +000020132 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20134 shlibpath_var=LIBPATH
20135
20136 # AIX 3 has no versioning support, so we append a major version to the name.
20137 soname_spec='${libname}${release}${shared_ext}$major'
20138 ;;
20139
20140aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020141 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020142 need_lib_prefix=no
20143 need_version=no
20144 hardcode_into_libs=yes
20145 if test "$host_cpu" = ia64; then
20146 # AIX 5 supports IA64
20147 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 else
20150 # With GCC up to 2.95.x, collect2 would create an import file
20151 # for dependence libraries. The import file would start with
20152 # the line `#! .'. This would cause the generated library to
20153 # depend on `.', always an invalid library. This was fixed in
20154 # development snapshots of GCC prior to 3.0.
20155 case $host_os in
20156 aix4 | aix4.[01] | aix4.[01].*)
20157 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20158 echo ' yes '
20159 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20160 :
20161 else
20162 can_build_shared=no
20163 fi
20164 ;;
20165 esac
20166 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20167 # soname into executable. Probably we can add versioning support to
20168 # collect2, so additional links can be useful in future.
20169 if test "$aix_use_runtimelinking" = yes; then
20170 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20171 # instead of lib<name>.a to let people know that these are not
20172 # typical AIX shared libraries.
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20174 else
20175 # We preserve .a as extension for shared libraries through AIX4.2
20176 # and later when we are not doing run time linking.
20177 library_names_spec='${libname}${release}.a $libname.a'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 fi
20180 shlibpath_var=LIBPATH
20181 fi
20182 ;;
20183
20184amigaos*)
20185 case $host_cpu in
20186 powerpc)
20187 # Since July 2007 AmigaOS4 officially supports .so libraries.
20188 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 ;;
20191 m68k)
20192 library_names_spec='$libname.ixlibrary $libname.a'
20193 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020194 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 +000020195 ;;
20196 esac
20197 ;;
20198
20199beos*)
20200 library_names_spec='${libname}${shared_ext}'
20201 dynamic_linker="$host_os ld.so"
20202 shlibpath_var=LIBRARY_PATH
20203 ;;
20204
20205bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020206 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020207 need_version=no
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20213 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20214 # the default ld.so.conf also contains /usr/contrib/lib and
20215 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20216 # libtool to hard-code these into programs
20217 ;;
20218
20219cygwin* | mingw* | pw32* | cegcc*)
20220 version_type=windows
20221 shrext_cmds=".dll"
20222 need_version=no
20223 need_lib_prefix=no
20224
cristyda16f162011-02-19 23:52:17 +000020225 case $GCC,$cc_basename in
20226 yes,*)
20227 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020228 library_names_spec='$libname.dll.a'
20229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20230 postinstall_cmds='base_file=`basename \${file}`~
20231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20232 dldir=$destdir/`dirname \$dlpath`~
20233 test -d \$dldir || mkdir -p \$dldir~
20234 $install_prog $dir/$dlname \$dldir/$dlname~
20235 chmod a+x \$dldir/$dlname~
20236 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20237 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20238 fi'
20239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20240 dlpath=$dir/\$dldll~
20241 $RM \$dlpath'
20242 shlibpath_overrides_runpath=yes
20243
20244 case $host_os in
20245 cygwin*)
20246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20247 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020248
cristy73bd4a52010-10-05 11:24:23 +000020249 ;;
20250 mingw* | cegcc*)
20251 # MinGW DLLs use traditional 'lib' prefix
20252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020253 ;;
20254 pw32*)
20255 # pw32 DLLs use 'pw' prefix rather than 'lib'
20256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20257 ;;
20258 esac
cristyda16f162011-02-19 23:52:17 +000020259 dynamic_linker='Win32 ld.exe'
20260 ;;
20261
20262 *,cl*)
20263 # Native MSVC
20264 libname_spec='$name'
20265 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20266 library_names_spec='${libname}.dll.lib'
20267
20268 case $build_os in
20269 mingw*)
20270 sys_lib_search_path_spec=
20271 lt_save_ifs=$IFS
20272 IFS=';'
20273 for lt_path in $LIB
20274 do
20275 IFS=$lt_save_ifs
20276 # Let DOS variable expansion print the short 8.3 style file name.
20277 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20278 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20279 done
20280 IFS=$lt_save_ifs
20281 # Convert to MSYS style.
20282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20283 ;;
20284 cygwin*)
20285 # Convert to unix form, then to dos form, then back to unix form
20286 # but this time dos style (no spaces!) so that the unix form looks
20287 # like /cygdrive/c/PROGRA~1:/cygdr...
20288 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20289 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20290 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20291 ;;
20292 *)
20293 sys_lib_search_path_spec="$LIB"
20294 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20295 # It is most probably a Windows format PATH.
20296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20297 else
20298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20299 fi
20300 # FIXME: find the short name or the path components, as spaces are
20301 # common. (e.g. "Program Files" -> "PROGRA~1")
20302 ;;
20303 esac
20304
20305 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20306 postinstall_cmds='base_file=`basename \${file}`~
20307 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20308 dldir=$destdir/`dirname \$dlpath`~
20309 test -d \$dldir || mkdir -p \$dldir~
20310 $install_prog $dir/$dlname \$dldir/$dlname'
20311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20312 dlpath=$dir/\$dldll~
20313 $RM \$dlpath'
20314 shlibpath_overrides_runpath=yes
20315 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020316 ;;
20317
20318 *)
cristyda16f162011-02-19 23:52:17 +000020319 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020321 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020322 ;;
20323 esac
cristy73bd4a52010-10-05 11:24:23 +000020324 # FIXME: first we should search . and the directory the executable is in
20325 shlibpath_var=PATH
20326 ;;
20327
20328darwin* | rhapsody*)
20329 dynamic_linker="$host_os dyld"
20330 version_type=darwin
20331 need_lib_prefix=no
20332 need_version=no
20333 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20334 soname_spec='${libname}${release}${major}$shared_ext'
20335 shlibpath_overrides_runpath=yes
20336 shlibpath_var=DYLD_LIBRARY_PATH
20337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20338
20339 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20340 ;;
20341
20342dgux*)
cristy99bd5232011-12-07 14:38:20 +000020343 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020344 need_lib_prefix=no
20345 need_version=no
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 shlibpath_var=LD_LIBRARY_PATH
20349 ;;
20350
cristy73bd4a52010-10-05 11:24:23 +000020351freebsd* | dragonfly*)
20352 # DragonFly does not have aout. When/if they implement a new
20353 # versioning mechanism, adjust this.
20354 if test -x /usr/bin/objformat; then
20355 objformat=`/usr/bin/objformat`
20356 else
20357 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020358 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020359 *) objformat=elf ;;
20360 esac
20361 fi
20362 version_type=freebsd-$objformat
20363 case $version_type in
20364 freebsd-elf*)
20365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20366 need_version=no
20367 need_lib_prefix=no
20368 ;;
20369 freebsd-*)
20370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20371 need_version=yes
20372 ;;
20373 esac
20374 shlibpath_var=LD_LIBRARY_PATH
20375 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020376 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020377 shlibpath_overrides_runpath=yes
20378 ;;
20379 freebsd3.[01]* | freebsdelf3.[01]*)
20380 shlibpath_overrides_runpath=yes
20381 hardcode_into_libs=yes
20382 ;;
20383 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20384 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20385 shlibpath_overrides_runpath=no
20386 hardcode_into_libs=yes
20387 ;;
20388 *) # from 4.6 on, and DragonFly
20389 shlibpath_overrides_runpath=yes
20390 hardcode_into_libs=yes
20391 ;;
20392 esac
20393 ;;
20394
20395gnu*)
cristy99bd5232011-12-07 14:38:20 +000020396 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020402 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020403 hardcode_into_libs=yes
20404 ;;
20405
cristy0c60a692010-11-04 01:09:47 +000020406haiku*)
cristy99bd5232011-12-07 14:38:20 +000020407 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020408 need_lib_prefix=no
20409 need_version=no
20410 dynamic_linker="$host_os runtime_loader"
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 shlibpath_var=LIBRARY_PATH
20414 shlibpath_overrides_runpath=yes
20415 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20416 hardcode_into_libs=yes
20417 ;;
20418
cristy73bd4a52010-10-05 11:24:23 +000020419hpux9* | hpux10* | hpux11*)
20420 # Give a soname corresponding to the major version so that dld.sl refuses to
20421 # link against other versions.
20422 version_type=sunos
20423 need_lib_prefix=no
20424 need_version=no
20425 case $host_cpu in
20426 ia64*)
20427 shrext_cmds='.so'
20428 hardcode_into_libs=yes
20429 dynamic_linker="$host_os dld.so"
20430 shlibpath_var=LD_LIBRARY_PATH
20431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 if test "X$HPUX_IA64_MODE" = X32; then
20435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20436 else
20437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20438 fi
20439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20440 ;;
20441 hppa*64*)
20442 shrext_cmds='.sl'
20443 hardcode_into_libs=yes
20444 dynamic_linker="$host_os dld.sl"
20445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 soname_spec='${libname}${release}${shared_ext}$major'
20449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20451 ;;
20452 *)
20453 shrext_cmds='.sl'
20454 dynamic_linker="$host_os dld.sl"
20455 shlibpath_var=SHLIB_PATH
20456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20457 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 ;;
20460 esac
cristy0c60a692010-11-04 01:09:47 +000020461 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020462 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020463 # or fails outright, so override atomically:
20464 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020465 ;;
20466
20467interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020468 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020469 need_lib_prefix=no
20470 need_version=no
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20472 soname_spec='${libname}${release}${shared_ext}$major'
20473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=no
20476 hardcode_into_libs=yes
20477 ;;
20478
20479irix5* | irix6* | nonstopux*)
20480 case $host_os in
20481 nonstopux*) version_type=nonstopux ;;
20482 *)
20483 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020484 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020485 else
20486 version_type=irix
20487 fi ;;
20488 esac
20489 need_lib_prefix=no
20490 need_version=no
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20493 case $host_os in
20494 irix5* | nonstopux*)
20495 libsuff= shlibsuff=
20496 ;;
20497 *)
20498 case $LD in # libtool.m4 will add one of these switches to LD
20499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20500 libsuff= shlibsuff= libmagic=32-bit;;
20501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20502 libsuff=32 shlibsuff=N32 libmagic=N32;;
20503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20504 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20505 *) libsuff= shlibsuff= libmagic=never-match;;
20506 esac
20507 ;;
20508 esac
20509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20510 shlibpath_overrides_runpath=no
20511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20513 hardcode_into_libs=yes
20514 ;;
20515
20516# No shared lib support for Linux oldld, aout, or coff.
20517linux*oldld* | linux*aout* | linux*coff*)
20518 dynamic_linker=no
20519 ;;
20520
cristy99bd5232011-12-07 14:38:20 +000020521# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020522linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020523 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020524 need_lib_prefix=no
20525 need_version=no
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020531
cristy73bd4a52010-10-05 11:24:23 +000020532 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020533 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020534 $as_echo_n "(cached) " >&6
20535else
20536 lt_cv_shlibpath_overrides_runpath=no
20537 save_LDFLAGS=$LDFLAGS
20538 save_libdir=$libdir
20539 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20540 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020542/* end confdefs.h. */
20543
20544int
20545main ()
20546{
20547
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552if ac_fn_cxx_try_link "$LINENO"; then :
20553 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020554 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020555fi
20556fi
20557rm -f core conftest.err conftest.$ac_objext \
20558 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020559 LDFLAGS=$save_LDFLAGS
20560 libdir=$save_libdir
20561
20562fi
20563
20564 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020565
20566 # This implies no fast_install, which is unacceptable.
20567 # Some rework will be needed to allow for fast_install
20568 # before this can be enabled.
20569 hardcode_into_libs=yes
20570
20571 # Add ABI-specific directories to the system library path.
20572 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20573
20574 # Append ld.so.conf contents to the search path
20575 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020576 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 +000020577 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020578
cristy73bd4a52010-10-05 11:24:23 +000020579 fi
20580
20581 # We used to test for /lib/ld.so.1 and disable shared libraries on
20582 # powerpc, because MkLinux only supported shared libraries with the
20583 # GNU dynamic linker. Since this was broken with cross compilers,
20584 # most powerpc-linux boxes support dynamic linking these days and
20585 # people can always --disable-shared, the test was removed, and we
20586 # assume the GNU/Linux dynamic linker is in use.
20587 dynamic_linker='GNU/Linux ld.so'
20588 ;;
20589
20590netbsd*)
20591 version_type=sunos
20592 need_lib_prefix=no
20593 need_version=no
20594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20597 dynamic_linker='NetBSD (a.out) ld.so'
20598 else
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20600 soname_spec='${libname}${release}${shared_ext}$major'
20601 dynamic_linker='NetBSD ld.elf_so'
20602 fi
20603 shlibpath_var=LD_LIBRARY_PATH
20604 shlibpath_overrides_runpath=yes
20605 hardcode_into_libs=yes
20606 ;;
20607
20608newsos6)
cristy99bd5232011-12-07 14:38:20 +000020609 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20611 shlibpath_var=LD_LIBRARY_PATH
20612 shlibpath_overrides_runpath=yes
20613 ;;
20614
20615*nto* | *qnx*)
20616 version_type=qnx
20617 need_lib_prefix=no
20618 need_version=no
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 shlibpath_var=LD_LIBRARY_PATH
20622 shlibpath_overrides_runpath=no
20623 hardcode_into_libs=yes
20624 dynamic_linker='ldqnx.so'
20625 ;;
20626
20627openbsd*)
20628 version_type=sunos
20629 sys_lib_dlsearch_path_spec="/usr/lib"
20630 need_lib_prefix=no
20631 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20632 case $host_os in
20633 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20634 *) need_version=no ;;
20635 esac
20636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20638 shlibpath_var=LD_LIBRARY_PATH
20639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20640 case $host_os in
20641 openbsd2.[89] | openbsd2.[89].*)
20642 shlibpath_overrides_runpath=no
20643 ;;
20644 *)
20645 shlibpath_overrides_runpath=yes
20646 ;;
20647 esac
20648 else
20649 shlibpath_overrides_runpath=yes
20650 fi
20651 ;;
20652
20653os2*)
20654 libname_spec='$name'
20655 shrext_cmds=".dll"
20656 need_lib_prefix=no
20657 library_names_spec='$libname${shared_ext} $libname.a'
20658 dynamic_linker='OS/2 ld.exe'
20659 shlibpath_var=LIBPATH
20660 ;;
20661
20662osf3* | osf4* | osf5*)
20663 version_type=osf
20664 need_lib_prefix=no
20665 need_version=no
20666 soname_spec='${libname}${release}${shared_ext}$major'
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20670 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20671 ;;
20672
20673rdos*)
20674 dynamic_linker=no
20675 ;;
20676
20677solaris*)
cristy99bd5232011-12-07 14:38:20 +000020678 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020679 need_lib_prefix=no
20680 need_version=no
20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682 soname_spec='${libname}${release}${shared_ext}$major'
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes
20685 hardcode_into_libs=yes
20686 # ldd complains unless libraries are executable
20687 postinstall_cmds='chmod +x $lib'
20688 ;;
20689
20690sunos4*)
20691 version_type=sunos
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20694 shlibpath_var=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath=yes
20696 if test "$with_gnu_ld" = yes; then
20697 need_lib_prefix=no
20698 fi
20699 need_version=yes
20700 ;;
20701
20702sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020703 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 shlibpath_var=LD_LIBRARY_PATH
20707 case $host_vendor in
20708 sni)
20709 shlibpath_overrides_runpath=no
20710 need_lib_prefix=no
20711 runpath_var=LD_RUN_PATH
20712 ;;
20713 siemens)
20714 need_lib_prefix=no
20715 ;;
20716 motorola)
20717 need_lib_prefix=no
20718 need_version=no
20719 shlibpath_overrides_runpath=no
20720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20721 ;;
20722 esac
20723 ;;
20724
20725sysv4*MP*)
20726 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020727 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20729 soname_spec='$libname${shared_ext}.$major'
20730 shlibpath_var=LD_LIBRARY_PATH
20731 fi
20732 ;;
20733
20734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20735 version_type=freebsd-elf
20736 need_lib_prefix=no
20737 need_version=no
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20739 soname_spec='${libname}${release}${shared_ext}$major'
20740 shlibpath_var=LD_LIBRARY_PATH
20741 shlibpath_overrides_runpath=yes
20742 hardcode_into_libs=yes
20743 if test "$with_gnu_ld" = yes; then
20744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20745 else
20746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20747 case $host_os in
20748 sco3.2v5*)
20749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20750 ;;
20751 esac
20752 fi
20753 sys_lib_dlsearch_path_spec='/usr/lib'
20754 ;;
20755
20756tpf*)
20757 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020758 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020759 need_lib_prefix=no
20760 need_version=no
20761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 shlibpath_overrides_runpath=no
20764 hardcode_into_libs=yes
20765 ;;
20766
20767uts4*)
cristy99bd5232011-12-07 14:38:20 +000020768 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 soname_spec='${libname}${release}${shared_ext}$major'
20771 shlibpath_var=LD_LIBRARY_PATH
20772 ;;
20773
20774*)
20775 dynamic_linker=no
20776 ;;
20777esac
20778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20779$as_echo "$dynamic_linker" >&6; }
20780test "$dynamic_linker" = no && can_build_shared=no
20781
20782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20783if test "$GCC" = yes; then
20784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20785fi
20786
20787if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20789fi
20790if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20792fi
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
cristy0c60a692010-11-04 01:09:47 +000020829
20830
cristy73bd4a52010-10-05 11:24:23 +000020831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20832$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20833hardcode_action_CXX=
20834if test -n "$hardcode_libdir_flag_spec_CXX" ||
20835 test -n "$runpath_var_CXX" ||
20836 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20837
20838 # We can hardcode non-existent directories.
20839 if test "$hardcode_direct_CXX" != no &&
20840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20841 # have to relink, otherwise we might link with an installed library
20842 # when we should be linking with a yet-to-be-installed one
20843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20844 test "$hardcode_minus_L_CXX" != no; then
20845 # Linking always hardcodes the temporary library directory.
20846 hardcode_action_CXX=relink
20847 else
20848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20849 hardcode_action_CXX=immediate
20850 fi
20851else
20852 # We cannot hardcode anything, or else we can only hardcode existing
20853 # directories.
20854 hardcode_action_CXX=unsupported
20855fi
20856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20857$as_echo "$hardcode_action_CXX" >&6; }
20858
20859if test "$hardcode_action_CXX" = relink ||
20860 test "$inherit_rpath_CXX" = yes; then
20861 # Fast installation is not supported
20862 enable_fast_install=no
20863elif test "$shlibpath_overrides_runpath" = yes ||
20864 test "$enable_shared" = no; then
20865 # Fast installation is not necessary
20866 enable_fast_install=needless
20867fi
20868
20869
20870
20871
20872
20873
20874
20875 fi # test -n "$compiler"
20876
20877 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020878 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020879 LDCXX=$LD
20880 LD=$lt_save_LD
20881 GCC=$lt_save_GCC
20882 with_gnu_ld=$lt_save_with_gnu_ld
20883 lt_cv_path_LDCXX=$lt_cv_path_LD
20884 lt_cv_path_LD=$lt_save_path_LD
20885 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20886 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20887fi # test "$_lt_caught_CXX_error" != yes
20888
20889ac_ext=c
20890ac_cpp='$CPP $CPPFLAGS'
20891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
cristy99bd5232011-12-07 14:38:20 +000020907
20908
cristy73bd4a52010-10-05 11:24:23 +000020909 ac_config_commands="$ac_config_commands libtool"
20910
20911
20912
20913
20914# Only expand once:
20915
20916
20917
cristy3ed852e2009-09-05 21:47:34 +000020918
20919
cristy3ed852e2009-09-05 21:47:34 +000020920# Check to see if building shared libraries
20921libtool_build_shared_libs='no'
20922if test "$enable_shared" = 'yes'; then
20923 libtool_build_shared_libs='yes'
20924fi
20925
20926# Check to see if building static libraries
20927libtool_build_static_libs='no'
20928if test "$enable_static" = 'yes'; then
20929 libtool_build_static_libs='yes'
20930fi
20931
cristy73bd4a52010-10-05 11:24:23 +000020932 if test "${libtool_build_shared_libs}" = 'yes'; then
20933 WITH_SHARED_LIBS_TRUE=
20934 WITH_SHARED_LIBS_FALSE='#'
20935else
20936 WITH_SHARED_LIBS_TRUE='#'
20937 WITH_SHARED_LIBS_FALSE=
20938fi
20939
cristy3ed852e2009-09-05 21:47:34 +000020940#
20941# Enable support for building loadable modules
20942#
cristyaf4cbf32012-10-16 23:47:41 +000020943build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020944
20945# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 withval=$with_modules; with_modules=$withval
20948else
cristy5a1cefd2010-01-06 20:42:35 +000020949 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020950fi
20951
20952
20953# Only allow building loadable modules if we are building shared libraries
20954if test "$with_modules" != 'no' ; then
20955 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020956 { $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 +000020957$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020958 build_modules='no'
20959 else
20960 build_modules='yes'
20961 fi
cristy3ed852e2009-09-05 21:47:34 +000020962fi
cristyc6722092012-10-14 00:19:31 +000020963if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020964
cristy8b350f62009-11-15 23:12:43 +000020965$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020966
cristyfa161182012-12-19 15:45:28 +000020967 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020968fi
cristyc6722092012-10-14 00:19:31 +000020969 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020970 WITH_MODULES_TRUE=
20971 WITH_MODULES_FALSE='#'
20972else
20973 WITH_MODULES_TRUE='#'
20974 WITH_MODULES_FALSE=
20975fi
20976
cristy3ed852e2009-09-05 21:47:34 +000020977
cristy3ed852e2009-09-05 21:47:34 +000020978# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020979# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020980# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020981if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020982 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20983else
20984 enable_delegate_build='no'
20985fi
20986
20987
20988# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020989if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020990 enableval=$enable_deprecated; enable_deprecated=$enableval
20991else
20992 enable_deprecated='no'
20993fi
20994
20995
20996if test "$enable_deprecated" = 'yes'; then
20997
cristy8b350f62009-11-15 23:12:43 +000020998$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020999
21000else
21001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21002fi
21003
21004# Build a version of ImageMagick which operates uninstalled.
21005# Used to build distributions located via MAGICK_HOME / executable path
21006# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021007if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021008 enableval=$enable_installed; enable_installed=$enableval
21009else
21010 enable_installed='yes'
21011fi
21012
21013
21014if test "$enable_installed" = 'yes'; then
21015
cristy8b350f62009-11-15 23:12:43 +000021016$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021017
21018else
21019 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21020fi
21021
21022# Permit enciphering and deciphering image pixels.
21023# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021024if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021025 enableval=$enable_cipher; enable_cipher=$enableval
21026else
21027 enable_cipher='yes'
21028fi
21029
21030
21031if test "$enable_cipher" = 'yes'; then
21032
cristy8b350f62009-11-15 23:12:43 +000021033$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021034
21035fi
21036
cristy6e3607c2011-09-13 13:59:17 +000021037# Build a zero-configuration version of ImageMagick.
21038# Check whether --enable-zero-configuration was given.
21039if test "${enable_zero_configuration+set}" = set; then :
21040 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021041else
cristy6e3607c2011-09-13 13:59:17 +000021042 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021043fi
21044
21045
cristy6e3607c2011-09-13 13:59:17 +000021046if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021047
cristy6e3607c2011-09-13 13:59:17 +000021048$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021049
cristy81af5702011-09-13 14:20:58 +000021050 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021051fi
21052
21053# Build a high dynamic range version of ImageMagick.
21054# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021055if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021056 enableval=$enable_hdri; enable_hdri=$enableval
21057else
cristy191c0b72012-08-12 16:29:52 +000021058 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021059fi
21060
21061
21062MAGICK_HDRI=""
21063if test "$enable_hdri" = 'yes'; then
21064 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021065 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021066 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021067else
21068 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021069fi
21070
cristye52f12f2012-12-31 15:32:36 +000021071cat >>confdefs.h <<_ACEOF
21072#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21073_ACEOF
21074
21075MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21076CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021077CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021078
cristy3ed852e2009-09-05 21:47:34 +000021079# Build a version of ImageMagick with assert statements.
21080# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021081if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021082 enableval=$enable_assert; enable_assert=$enableval
21083else
21084 enable_assert='yes'
21085fi
21086
21087
21088if test "$enable_assert" = 'no'; then
21089
cristy8b350f62009-11-15 23:12:43 +000021090$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021091
21092fi
21093
cristya448bd22011-10-14 12:38:13 +000021094# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021095
21096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21097$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21098 # Check whether --enable-maintainer-mode was given.
21099if test "${enable_maintainer_mode+set}" = set; then :
21100 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21101else
21102 USE_MAINTAINER_MODE=no
21103fi
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21106$as_echo "$USE_MAINTAINER_MODE" >&6; }
21107 if test $USE_MAINTAINER_MODE = yes; then
21108 MAINTAINER_MODE_TRUE=
21109 MAINTAINER_MODE_FALSE='#'
21110else
21111 MAINTAINER_MODE_TRUE='#'
21112 MAINTAINER_MODE_FALSE=
21113fi
21114
21115 MAINT=$MAINTAINER_MODE_TRUE
21116
21117
cristy3ed852e2009-09-05 21:47:34 +000021118
cristy944e51f2013-04-16 18:45:02 +000021119# Enable hugepages support
21120# Check whether --enable-hugepages was given.
21121if test "${enable_hugepages+set}" = set; then :
21122 enableval=$enable_hugepages; enable_hugepages=$enableval
21123else
21124 enable_hugepages='no'
21125fi
21126
21127
cristy3ed852e2009-09-05 21:47:34 +000021128# Enable ccmalloc memory debugging support
21129# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021130if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021131 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21132else
21133 enable_ccmalloc='no'
21134fi
21135
21136
21137# Enable Electric Fence memory debugging support
21138# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021139if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021140 enableval=$enable_efence; enable_efence=$enableval
21141else
21142 enable_efence='no'
21143fi
21144
21145
21146# Enable prof-based profiling support
21147# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021148if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021149 enableval=$enable_prof; enable_prof=$enableval
21150else
21151 enable_prof='no'
21152fi
21153
21154
21155# Enable gprof-based profiling support
21156# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021157if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 enableval=$enable_gprof; enable_gprof=$enableval
21159else
21160 enable_gprof='no'
21161fi
21162
21163
21164# Enable gcov-based profiling support
21165# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021166if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021167 enableval=$enable_gcov; enable_gcov=$enableval
21168else
21169 enable_gcov='no'
21170fi
21171
21172
21173enable_profiling='no'
21174if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21175 enable_profiling='yes'
21176 if test "$libtool_build_shared_libs" = 'yes'; then
21177 echo "Warning: Can not profile code using shared libraries"
21178 fi
21179fi
21180
21181# Magick API method prefix
21182
21183# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021184if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021185 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021186else
cristyfc3d0222012-02-07 15:05:57 +000021187 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021188fi
21189
21190
cristyfc3d0222012-02-07 15:05:57 +000021191if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021192
21193cat >>confdefs.h <<_ACEOF
21194#define NAMESPACE_PREFIX $with_method_prefix
21195_ACEOF
21196
cristyfc3d0222012-02-07 15:05:57 +000021197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021198fi
21199
cristy71d8c202012-03-20 17:05:01 +000021200# Enable legacy support (default no)
21201# Check whether --enable-legacy-support was given.
21202if test "${enable_legacy_support+set}" = set; then :
21203 enableval=$enable_legacy_support; with_legacy_support=$enableval
21204else
21205 with_legacy_support='no'
21206fi
21207
21208 if test "$with_legacy_support" != 'no'; then
21209 LEGACY_SUPPORT_TRUE=
21210 LEGACY_SUPPORT_FALSE='#'
21211else
21212 LEGACY_SUPPORT_TRUE='#'
21213 LEGACY_SUPPORT_FALSE=
21214fi
21215
21216
cristy3ed852e2009-09-05 21:47:34 +000021217# Number of bits in a Quantum
21218
21219# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021220if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021221 withval=$with_quantum_depth; with_quantum_depth=$withval
21222else
21223 with_quantum_depth=16
21224fi
21225
21226
21227if test "$with_quantum_depth" != '8'; then
21228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21229fi
21230
21231case "${with_quantum_depth}" in
21232 8 ) ;;
21233 16 ) ;;
21234 32 ) ;;
21235 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021236 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021237esac
21238QUANTUM_DEPTH="$with_quantum_depth"
21239
21240cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021241#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021242_ACEOF
21243
cristya371edf2013-02-06 13:42:17 +000021244MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021245CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021246CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021247
cristy01ff9f32012-12-01 18:15:29 +000021248# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021249MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021250if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021251 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021252fi
cristy01ff9f32012-12-01 18:15:29 +000021253
21254
cristy3ed852e2009-09-05 21:47:34 +000021255# Set pixel cache threshold
21256
21257# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021258if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021259 withval=$with_cache; with_cache=$withval
21260else
21261 with_cache=''
21262fi
21263
21264
21265if test "$with_cache" != ''; then
21266
21267cat >>confdefs.h <<_ACEOF
21268#define PixelCacheThreshold $with_cache
21269_ACEOF
21270
21271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21272fi
21273
21274# Disable/Enable support for full delegate paths
21275
21276# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021277if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021278 withval=$with_frozenpaths; with_frozenpaths=$withval
21279else
21280 with_frozenpaths='no'
21281fi
21282
21283
21284# Enable build/install of Magick++
21285
21286# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021287if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021288 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21289else
21290 with_magick_plus_plus='yes'
21291fi
21292
21293
cristy3a75f062012-09-08 23:29:40 +000021294# Encode the this name into the shared library.
21295
21296# Check whether --with-package-release-name was given.
21297if test "${with_package_release_name+set}" = set; then :
21298 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21299fi
21300
21301
21302
cristy3ed852e2009-09-05 21:47:34 +000021303# Disable build/install of PerlMagick.
21304
21305# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021306if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021307 withval=$with_perl; with_perl=$withval
21308else
cristyb5f4e2f2010-04-25 00:49:11 +000021309 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021310fi
21311
21312
21313# Options to pass when configuring PerlMagick
21314
21315# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021316if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021317 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021318fi
21319
21320
cristy3ed852e2009-09-05 21:47:34 +000021321
21322# Enable umem, object-caching memory allocation library.
21323
21324# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021325if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021326 withval=$with_umem; with_umem=$withval
21327else
21328 with_umem='no'
21329fi
21330
21331if test "$with_umem" != 'yes' ; then
21332 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21333fi
21334
21335#
21336# Specify path to shared libstdc++ if not in normal location
21337#
21338
21339# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021340if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021341 withval=$with_libstdc; with_libstdc=$withval
21342else
21343 with_libstdc=''
21344fi
21345
21346
21347if test "$with_libstdc" != ''; then
21348 if test -d "$with_libstdc"; then
21349 LIBSTDCLDFLAGS="-L$with_libstdc"
21350 fi
21351fi
21352
21353
21354# Does gcc required -traditional?
21355if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021357$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021358if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 $as_echo_n "(cached) " >&6
21360else
21361 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021363/* end confdefs.h. */
21364#include <sgtty.h>
21365Autoconf TIOCGETP
21366_ACEOF
21367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021368 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 ac_cv_prog_gcc_traditional=yes
21370else
21371 ac_cv_prog_gcc_traditional=no
21372fi
21373rm -f conftest*
21374
21375
21376 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021378/* end confdefs.h. */
21379#include <termio.h>
21380Autoconf TCGETA
21381_ACEOF
21382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021383 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 ac_cv_prog_gcc_traditional=yes
21385fi
21386rm -f conftest*
21387
21388 fi
21389fi
cristy8b350f62009-11-15 23:12:43 +000021390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021391$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21392 if test $ac_cv_prog_gcc_traditional = yes; then
21393 CC="$CC -traditional"
21394 fi
21395fi
21396
21397
21398########
21399#
21400# Set defines required to build DLLs and modules using MinGW
21401#
21402########
21403# These options are set for multi-thread DLL module build
21404# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21405# module: _DLL
21406# executable/Magick++: _DLL _MAGICKMOD_
21407MODULE_EXTRA_CPPFLAGS=''
21408LIBRARY_EXTRA_CPPFLAGS=''
21409if test "${native_win32_build}" = 'yes'; then
21410 if test "${libtool_build_shared_libs}" = 'yes'; then
21411 CPPFLAGS="$CPPFLAGS -D_DLL"
21412 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21413 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21414 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021415 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021416 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21417 else
21418 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21419 fi
21420 else
21421 CPPFLAGS="$CPPFLAGS -D_LIB"
21422 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21423 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21424 fi
21425 if test "$with_threads" = 'yes'; then
21426 CPPFLAGS="$CPPFLAGS -D_MT"
21427 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21428 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21429 fi
21430fi
21431
21432
21433
21434# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021436$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021437if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021438 $as_echo_n "(cached) " >&6
21439else
cristy8b350f62009-11-15 23:12:43 +000021440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021441/* end confdefs.h. */
21442#include <stdlib.h>
21443#include <stdarg.h>
21444#include <string.h>
21445#include <float.h>
21446
21447int
21448main ()
21449{
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021455if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021456 ac_cv_header_stdc=yes
21457else
cristy8b350f62009-11-15 23:12:43 +000021458 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021459fi
cristy3ed852e2009-09-05 21:47:34 +000021460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461
21462if test $ac_cv_header_stdc = yes; then
21463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021465/* end confdefs.h. */
21466#include <string.h>
21467
21468_ACEOF
21469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021470 $EGREP "memchr" >/dev/null 2>&1; then :
21471
cristy3ed852e2009-09-05 21:47:34 +000021472else
21473 ac_cv_header_stdc=no
21474fi
21475rm -f conftest*
21476
21477fi
21478
21479if test $ac_cv_header_stdc = yes; then
21480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021482/* end confdefs.h. */
21483#include <stdlib.h>
21484
21485_ACEOF
21486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021487 $EGREP "free" >/dev/null 2>&1; then :
21488
cristy3ed852e2009-09-05 21:47:34 +000021489else
21490 ac_cv_header_stdc=no
21491fi
21492rm -f conftest*
21493
21494fi
21495
21496if test $ac_cv_header_stdc = yes; then
21497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021498 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021499 :
21500else
cristy8b350f62009-11-15 23:12:43 +000021501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021502/* end confdefs.h. */
21503#include <ctype.h>
21504#include <stdlib.h>
21505#if ((' ' & 0x0FF) == 0x020)
21506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21508#else
21509# define ISLOWER(c) \
21510 (('a' <= (c) && (c) <= 'i') \
21511 || ('j' <= (c) && (c) <= 'r') \
21512 || ('s' <= (c) && (c) <= 'z'))
21513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21514#endif
21515
21516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21517int
21518main ()
21519{
21520 int i;
21521 for (i = 0; i < 256; i++)
21522 if (XOR (islower (i), ISLOWER (i))
21523 || toupper (i) != TOUPPER (i))
21524 return 2;
21525 return 0;
21526}
21527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021528if ac_fn_c_try_run "$LINENO"; then :
21529
cristy3ed852e2009-09-05 21:47:34 +000021530else
cristy8b350f62009-11-15 23:12:43 +000021531 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021532fi
cristy8b350f62009-11-15 23:12:43 +000021533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21534 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021535fi
21536
cristy3ed852e2009-09-05 21:47:34 +000021537fi
21538fi
cristy8b350f62009-11-15 23:12:43 +000021539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021540$as_echo "$ac_cv_header_stdc" >&6; }
21541if test $ac_cv_header_stdc = yes; then
21542
cristy8b350f62009-11-15 23:12:43 +000021543$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021544
21545fi
21546
21547if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021548 { $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 +000021549 header files. Compilation cannot proceed. Please install the ANSI C
21550 headers and rerun this script." >&5
21551$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21552 header files. Compilation cannot proceed. Please install the ANSI C
21553 headers and rerun this script." >&2;};
21554fi
cristya0b81c32010-01-22 02:54:33 +000021555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21557$as_echo_n "checking whether to enable assertions... " >&6; }
21558 # Check whether --enable-assert was given.
21559if test "${enable_assert+set}" = set; then :
21560 enableval=$enable_assert; ac_enable_assert=$enableval
21561 if test "x$enableval" = xno; then :
21562
21563$as_echo "#define NDEBUG 1" >>confdefs.h
21564
21565elif test "x$enableval" != xyes; then :
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21567$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21568 ac_enable_assert=yes
21569fi
21570else
21571 ac_enable_assert=yes
21572fi
21573
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21575$as_echo "$ac_enable_assert" >&6; }
21576
cristy3ed852e2009-09-05 21:47:34 +000021577ac_header_dirent=no
21578for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21579 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021581$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021582if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021583 $as_echo_n "(cached) " >&6
21584else
cristy8b350f62009-11-15 23:12:43 +000021585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021586/* end confdefs.h. */
21587#include <sys/types.h>
21588#include <$ac_hdr>
21589
21590int
21591main ()
21592{
21593if ((DIR *) 0)
21594return 0;
21595 ;
21596 return 0;
21597}
21598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021599if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 eval "$as_ac_Header=yes"
21601else
cristy8b350f62009-11-15 23:12:43 +000021602 eval "$as_ac_Header=no"
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 +000021606eval ac_res=\$$as_ac_Header
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021608$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021609if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021610 cat >>confdefs.h <<_ACEOF
21611#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21612_ACEOF
21613
21614ac_header_dirent=$ac_hdr; break
21615fi
21616
21617done
21618# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21619if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021621$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021622if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021623 $as_echo_n "(cached) " >&6
21624else
21625 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021627/* end confdefs.h. */
21628
21629/* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632#ifdef __cplusplus
21633extern "C"
21634#endif
21635char opendir ();
21636int
21637main ()
21638{
21639return opendir ();
21640 ;
21641 return 0;
21642}
21643_ACEOF
21644for ac_lib in '' dir; do
21645 if test -z "$ac_lib"; then
21646 ac_res="none required"
21647 else
21648 ac_res=-l$ac_lib
21649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21650 fi
cristy8b350f62009-11-15 23:12:43 +000021651 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021652 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021653fi
cristy8b350f62009-11-15 23:12:43 +000021654rm -f core conftest.err conftest.$ac_objext \
21655 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021656 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 break
21658fi
21659done
cristyda16f162011-02-19 23:52:17 +000021660if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021661
cristy3ed852e2009-09-05 21:47:34 +000021662else
21663 ac_cv_search_opendir=no
21664fi
21665rm conftest.$ac_ext
21666LIBS=$ac_func_search_save_LIBS
21667fi
cristy8b350f62009-11-15 23:12:43 +000021668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021669$as_echo "$ac_cv_search_opendir" >&6; }
21670ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021671if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21673
21674fi
21675
21676else
cristy8b350f62009-11-15 23:12:43 +000021677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021678$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021679if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021680 $as_echo_n "(cached) " >&6
21681else
21682 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021684/* end confdefs.h. */
21685
21686/* Override any GCC internal prototype to avoid an error.
21687 Use char because int might match the return type of a GCC
21688 builtin and then its argument prototype would still apply. */
21689#ifdef __cplusplus
21690extern "C"
21691#endif
21692char opendir ();
21693int
21694main ()
21695{
21696return opendir ();
21697 ;
21698 return 0;
21699}
21700_ACEOF
21701for ac_lib in '' x; do
21702 if test -z "$ac_lib"; then
21703 ac_res="none required"
21704 else
21705 ac_res=-l$ac_lib
21706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21707 fi
cristy8b350f62009-11-15 23:12:43 +000021708 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021710fi
cristy8b350f62009-11-15 23:12:43 +000021711rm -f core conftest.err conftest.$ac_objext \
21712 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021713 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 break
21715fi
21716done
cristyda16f162011-02-19 23:52:17 +000021717if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021718
cristy3ed852e2009-09-05 21:47:34 +000021719else
21720 ac_cv_search_opendir=no
21721fi
21722rm conftest.$ac_ext
21723LIBS=$ac_func_search_save_LIBS
21724fi
cristy8b350f62009-11-15 23:12:43 +000021725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021726$as_echo "$ac_cv_search_opendir" >&6; }
21727ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021728if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21730
21731fi
21732
21733fi
21734
21735
21736# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021737for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.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 +000021738do :
21739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21740ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021742 cat >>confdefs.h <<_ACEOF
21743#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21744_ACEOF
21745
21746fi
21747
21748done
21749
21750
21751########
21752#
21753# Checks for typedefs, structures, and compiler characteristics.
21754#
21755########
21756
cristy8b350f62009-11-15 23:12:43 +000021757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021758$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021759if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021760 $as_echo_n "(cached) " >&6
21761else
cristy8b350f62009-11-15 23:12:43 +000021762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021763/* end confdefs.h. */
21764
cristy14fefe52012-05-21 00:59:18 +000021765 #include <stdbool.h>
21766 #ifndef bool
21767 "error: bool is not defined"
21768 #endif
21769 #ifndef false
21770 "error: false is not defined"
21771 #endif
21772 #if false
21773 "error: false is not 0"
21774 #endif
21775 #ifndef true
21776 "error: true is not defined"
21777 #endif
21778 #if true != 1
21779 "error: true is not 1"
21780 #endif
21781 #ifndef __bool_true_false_are_defined
21782 "error: __bool_true_false_are_defined is not defined"
21783 #endif
cristy3ed852e2009-09-05 21:47:34 +000021784
cristy14fefe52012-05-21 00:59:18 +000021785 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021786
cristy14fefe52012-05-21 00:59:18 +000021787 char a[true == 1 ? 1 : -1];
21788 char b[false == 0 ? 1 : -1];
21789 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21790 char d[(bool) 0.5 == true ? 1 : -1];
21791 /* See body of main program for 'e'. */
21792 char f[(_Bool) 0.0 == false ? 1 : -1];
21793 char g[true];
21794 char h[sizeof (_Bool)];
21795 char i[sizeof s.t];
21796 enum { j = false, k = true, l = false * true, m = true * 256 };
21797 /* The following fails for
21798 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21799 _Bool n[m];
21800 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21801 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21802 /* Catch a bug in an HP-UX C compiler. See
21803 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21804 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21805 */
21806 _Bool q = true;
21807 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021808
21809int
21810main ()
21811{
21812
cristy14fefe52012-05-21 00:59:18 +000021813 bool e = &s;
21814 *pq |= q;
21815 *pq |= ! q;
21816 /* Refer to every declared value, to avoid compiler optimizations. */
21817 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21818 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021819
21820 ;
21821 return 0;
21822}
21823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 ac_cv_header_stdbool_h=yes
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristy3ed852e2009-09-05 21:47:34 +000021829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021832$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021833 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021834if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021835
21836cat >>confdefs.h <<_ACEOF
21837#define HAVE__BOOL 1
21838_ACEOF
21839
21840
21841fi
21842
cristy14fefe52012-05-21 00:59:18 +000021843
cristy3ed852e2009-09-05 21:47:34 +000021844if test $ac_cv_header_stdbool_h = yes; then
21845
cristy8b350f62009-11-15 23:12:43 +000021846$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021847
21848fi
21849
cristy8b350f62009-11-15 23:12:43 +000021850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021851$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021852if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021853 $as_echo_n "(cached) " >&6
21854else
cristy8b350f62009-11-15 23:12:43 +000021855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021856/* end confdefs.h. */
21857
21858int
21859main ()
21860{
21861
21862volatile int x;
21863int * volatile y = (int *) 0;
21864return !x && !y;
21865 ;
21866 return 0;
21867}
21868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021869if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021870 ac_cv_c_volatile=yes
21871else
cristy8b350f62009-11-15 23:12:43 +000021872 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021873fi
cristy3ed852e2009-09-05 21:47:34 +000021874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875fi
cristy8b350f62009-11-15 23:12:43 +000021876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021877$as_echo "$ac_cv_c_volatile" >&6; }
21878if test $ac_cv_c_volatile = no; then
21879
cristy8b350f62009-11-15 23:12:43 +000021880$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021881
21882fi
21883
cristy8b350f62009-11-15 23:12:43 +000021884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021885$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021886if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021887 $as_echo_n "(cached) " >&6
21888else
cristy8b350f62009-11-15 23:12:43 +000021889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021890/* end confdefs.h. */
21891#define x(y) #y
21892
21893char *s = x(teststring);
21894_ACEOF
21895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021896 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 ac_cv_c_stringize=no
21898else
21899 ac_cv_c_stringize=yes
21900fi
21901rm -f conftest*
21902
21903fi
cristy8b350f62009-11-15 23:12:43 +000021904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021905$as_echo "$ac_cv_c_stringize" >&6; }
21906if test $ac_cv_c_stringize = yes; then
21907
cristy8b350f62009-11-15 23:12:43 +000021908$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021909
21910fi
21911
cristy8b350f62009-11-15 23:12:43 +000021912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021913$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021914if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021915 $as_echo_n "(cached) " >&6
21916else
cristy8b350f62009-11-15 23:12:43 +000021917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021918/* end confdefs.h. */
21919#include <sys/types.h>
21920#include <sys/stat.h>
21921
21922#if defined S_ISBLK && defined S_IFDIR
21923extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21924#endif
21925
21926#if defined S_ISBLK && defined S_IFCHR
21927extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21928#endif
21929
21930#if defined S_ISLNK && defined S_IFREG
21931extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21932#endif
21933
21934#if defined S_ISSOCK && defined S_IFREG
21935extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21936#endif
21937
21938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021939if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021940 ac_cv_header_stat_broken=no
21941else
cristy8b350f62009-11-15 23:12:43 +000021942 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021943fi
cristy3ed852e2009-09-05 21:47:34 +000021944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945fi
cristy8b350f62009-11-15 23:12:43 +000021946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo "$ac_cv_header_stat_broken" >&6; }
21948if test $ac_cv_header_stat_broken = yes; then
21949
cristy8b350f62009-11-15 23:12:43 +000021950$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021951
21952fi
21953
cristy8b350f62009-11-15 23:12:43 +000021954{ $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 +000021955$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021956if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021957 $as_echo_n "(cached) " >&6
21958else
cristy8b350f62009-11-15 23:12:43 +000021959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021960/* end confdefs.h. */
21961#include <sys/types.h>
21962#include <sys/time.h>
21963#include <time.h>
21964
21965int
21966main ()
21967{
21968if ((struct tm *) 0)
21969return 0;
21970 ;
21971 return 0;
21972}
21973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021974if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021975 ac_cv_header_time=yes
21976else
cristy8b350f62009-11-15 23:12:43 +000021977 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021978fi
cristy3ed852e2009-09-05 21:47:34 +000021979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21980fi
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo "$ac_cv_header_time" >&6; }
21983if test $ac_cv_header_time = yes; then
21984
cristy8b350f62009-11-15 23:12:43 +000021985$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021986
21987fi
21988
cristy8b350f62009-11-15 23:12:43 +000021989{ $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 +000021990$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021991if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021992 $as_echo_n "(cached) " >&6
21993else
cristy8b350f62009-11-15 23:12:43 +000021994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021995/* end confdefs.h. */
21996#include <sys/types.h>
21997#include <time.h>
21998
21999int
22000main ()
22001{
22002struct tm tm;
22003 int *p = &tm.tm_sec;
22004 return !p;
22005 ;
22006 return 0;
22007}
22008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022009if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022010 ac_cv_struct_tm=time.h
22011else
cristy8b350f62009-11-15 23:12:43 +000022012 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022013fi
cristy3ed852e2009-09-05 21:47:34 +000022014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015fi
cristy8b350f62009-11-15 23:12:43 +000022016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022017$as_echo "$ac_cv_struct_tm" >&6; }
22018if test $ac_cv_struct_tm = sys/time.h; then
22019
cristy8b350f62009-11-15 23:12:43 +000022020$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022021
22022fi
22023
cristy92703d82010-04-26 00:18:18 +000022024ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22025#include <$ac_cv_struct_tm>
22026
22027"
cristyda16f162011-02-19 23:52:17 +000022028if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022029
22030cat >>confdefs.h <<_ACEOF
22031#define HAVE_STRUCT_TM_TM_ZONE 1
22032_ACEOF
22033
22034
22035fi
22036
22037if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22038
22039$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22040
22041else
22042 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22043"
cristyda16f162011-02-19 23:52:17 +000022044if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022045 ac_have_decl=1
22046else
22047 ac_have_decl=0
22048fi
22049
22050cat >>confdefs.h <<_ACEOF
22051#define HAVE_DECL_TZNAME $ac_have_decl
22052_ACEOF
22053
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22055$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022056if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022057 $as_echo_n "(cached) " >&6
22058else
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060/* end confdefs.h. */
22061#include <time.h>
22062#if !HAVE_DECL_TZNAME
22063extern char *tzname[];
22064#endif
22065
22066int
22067main ()
22068{
22069return tzname[0][0];
22070 ;
22071 return 0;
22072}
22073_ACEOF
22074if ac_fn_c_try_link "$LINENO"; then :
22075 ac_cv_var_tzname=yes
22076else
22077 ac_cv_var_tzname=no
22078fi
22079rm -f core conftest.err conftest.$ac_objext \
22080 conftest$ac_exeext conftest.$ac_ext
22081fi
22082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22083$as_echo "$ac_cv_var_tzname" >&6; }
22084 if test $ac_cv_var_tzname = yes; then
22085
22086$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22087
22088 fi
22089fi
22090
cristy8b350f62009-11-15 23:12:43 +000022091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022092$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022093if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 $as_echo_n "(cached) " >&6
22095else
22096 echo '#! /bin/cat
22097exit 69
22098' >conftest
22099chmod u+x conftest
22100(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22101if test $? -ne 69; then
22102 ac_cv_sys_interpreter=yes
22103else
22104 ac_cv_sys_interpreter=no
22105fi
22106rm -f conftest
22107fi
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo "$ac_cv_sys_interpreter" >&6; }
22110interpval=$ac_cv_sys_interpreter
22111
22112
cristye80f9cb2013-01-09 01:09:31 +000022113#
22114# Checks for language qualifiers and semantics.
22115#
22116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22117$as_echo_n "checking whether char is unsigned... " >&6; }
22118if ${ac_cv_c_char_unsigned+:} false; then :
22119 $as_echo_n "(cached) " >&6
22120else
22121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122/* end confdefs.h. */
22123$ac_includes_default
22124int
22125main ()
22126{
22127static int test_array [1 - 2 * !(((char) -1) < 0)];
22128test_array [0] = 0;
22129return test_array [0];
22130
22131 ;
22132 return 0;
22133}
22134_ACEOF
22135if ac_fn_c_try_compile "$LINENO"; then :
22136 ac_cv_c_char_unsigned=no
22137else
22138 ac_cv_c_char_unsigned=yes
22139fi
22140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141fi
22142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22143$as_echo "$ac_cv_c_char_unsigned" >&6; }
22144if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22145 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22146
22147fi
22148
22149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22150$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22151if ${ac_cv_c_const+:} false; then :
22152 $as_echo_n "(cached) " >&6
22153else
22154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155/* end confdefs.h. */
22156
22157int
22158main ()
22159{
22160
22161#ifndef __cplusplus
22162 /* Ultrix mips cc rejects this sort of thing. */
22163 typedef int charset[2];
22164 const charset cs = { 0, 0 };
22165 /* SunOS 4.1.1 cc rejects this. */
22166 char const *const *pcpcc;
22167 char **ppc;
22168 /* NEC SVR4.0.2 mips cc rejects this. */
22169 struct point {int x, y;};
22170 static struct point const zero = {0,0};
22171 /* AIX XL C 1.02.0.0 rejects this.
22172 It does not let you subtract one const X* pointer from another in
22173 an arm of an if-expression whose if-part is not a constant
22174 expression */
22175 const char *g = "string";
22176 pcpcc = &g + (g ? g-g : 0);
22177 /* HPUX 7.0 cc rejects these. */
22178 ++pcpcc;
22179 ppc = (char**) pcpcc;
22180 pcpcc = (char const *const *) ppc;
22181 { /* SCO 3.2v4 cc rejects this sort of thing. */
22182 char tx;
22183 char *t = &tx;
22184 char const *s = 0 ? (char *) 0 : (char const *) 0;
22185
22186 *t++ = 0;
22187 if (s) return 0;
22188 }
22189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22190 int x[] = {25, 17};
22191 const int *foo = &x[0];
22192 ++foo;
22193 }
22194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22195 typedef const int *iptr;
22196 iptr p = 0;
22197 ++p;
22198 }
22199 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22201 struct s { int j; const int *ap[3]; } bx;
22202 struct s *b = &bx; b->j = 5;
22203 }
22204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22205 const int foo = 10;
22206 if (!foo) return 0;
22207 }
22208 return !cs[0] && !zero.x;
22209#endif
22210
22211 ;
22212 return 0;
22213}
22214_ACEOF
22215if ac_fn_c_try_compile "$LINENO"; then :
22216 ac_cv_c_const=yes
22217else
22218 ac_cv_c_const=no
22219fi
22220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221fi
22222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22223$as_echo "$ac_cv_c_const" >&6; }
22224if test $ac_cv_c_const = no; then
22225
22226$as_echo "#define const /**/" >>confdefs.h
22227
22228fi
22229
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022232if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 $as_echo_n "(cached) " >&6
22234else
22235 ac_cv_c_inline=no
22236for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022238/* end confdefs.h. */
22239#ifndef __cplusplus
22240typedef int foo_t;
22241static $ac_kw foo_t static_foo () {return 0; }
22242$ac_kw foo_t foo () {return 0; }
22243#endif
22244
22245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022247 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022248fi
cristy3ed852e2009-09-05 21:47:34 +000022249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 test "$ac_cv_c_inline" != no && break
22251done
22252
22253fi
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo "$ac_cv_c_inline" >&6; }
22256
cristy3ed852e2009-09-05 21:47:34 +000022257case $ac_cv_c_inline in
22258 inline | yes) ;;
22259 *)
22260 case $ac_cv_c_inline in
22261 no) ac_val=;;
22262 *) ac_val=$ac_cv_c_inline;;
22263 esac
22264 cat >>confdefs.h <<_ACEOF
22265#ifndef __cplusplus
22266#define inline $ac_val
22267#endif
22268_ACEOF
22269 ;;
22270esac
22271
cristy8b350f62009-11-15 23:12:43 +000022272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022273$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022274if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022275 $as_echo_n "(cached) " >&6
22276else
22277 ac_cv_c_restrict=no
22278 # The order here caters to the fact that C++ does not require restrict.
22279 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022281/* end confdefs.h. */
22282typedef int * int_ptr;
22283 int foo (int_ptr $ac_kw ip) {
22284 return ip[0];
22285 }
22286int
22287main ()
22288{
22289int s[1];
22290 int * $ac_kw t = s;
22291 t[0] = 0;
22292 return foo(t)
22293 ;
22294 return 0;
22295}
22296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022297if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022298 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022299fi
cristy3ed852e2009-09-05 21:47:34 +000022300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 test "$ac_cv_c_restrict" != no && break
22302 done
22303
22304fi
cristy8b350f62009-11-15 23:12:43 +000022305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022306$as_echo "$ac_cv_c_restrict" >&6; }
22307
cristy3ed852e2009-09-05 21:47:34 +000022308 case $ac_cv_c_restrict in
22309 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022310 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022311 ;;
22312 *) cat >>confdefs.h <<_ACEOF
22313#define restrict $ac_cv_c_restrict
22314_ACEOF
22315 ;;
22316 esac
22317
cristye80f9cb2013-01-09 01:09:31 +000022318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22319$as_echo_n "checking for working volatile... " >&6; }
22320if ${ac_cv_c_volatile+:} false; then :
22321 $as_echo_n "(cached) " >&6
22322else
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324/* end confdefs.h. */
22325
22326int
22327main ()
22328{
22329
22330volatile int x;
22331int * volatile y = (int *) 0;
22332return !x && !y;
22333 ;
22334 return 0;
22335}
22336_ACEOF
22337if ac_fn_c_try_compile "$LINENO"; then :
22338 ac_cv_c_volatile=yes
22339else
22340 ac_cv_c_volatile=no
22341fi
22342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343fi
22344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22345$as_echo "$ac_cv_c_volatile" >&6; }
22346if test $ac_cv_c_volatile = no; then
22347
22348$as_echo "#define volatile /**/" >>confdefs.h
22349
22350fi
22351
cristy3ed852e2009-09-05 21:47:34 +000022352
22353# If words are stored with the most significant byte first (like
22354# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022356$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022357if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 $as_echo_n "(cached) " >&6
22359else
22360 ac_cv_c_bigendian=unknown
22361 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022363/* end confdefs.h. */
22364#ifndef __APPLE_CC__
22365 not a universal capable compiler
22366 #endif
22367 typedef int dummy;
22368
22369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022370if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022371
22372 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022373 # there are at least two -arch flags with different values.
22374 ac_arch=
22375 ac_prev=
22376 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22377 if test -n "$ac_prev"; then
22378 case $ac_word in
22379 i?86 | x86_64 | ppc | ppc64)
22380 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22381 ac_arch=$ac_word
22382 else
22383 ac_cv_c_bigendian=universal
22384 break
22385 fi
22386 ;;
22387 esac
22388 ac_prev=
22389 elif test "x$ac_word" = "x-arch"; then
22390 ac_prev=arch
22391 fi
22392 done
cristy3ed852e2009-09-05 21:47:34 +000022393fi
cristy3ed852e2009-09-05 21:47:34 +000022394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 if test $ac_cv_c_bigendian = unknown; then
22396 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022398/* end confdefs.h. */
22399#include <sys/types.h>
22400 #include <sys/param.h>
22401
22402int
22403main ()
22404{
22405#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22406 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22407 && LITTLE_ENDIAN)
22408 bogus endian macros
22409 #endif
22410
22411 ;
22412 return 0;
22413}
22414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022415if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022418/* end confdefs.h. */
22419#include <sys/types.h>
22420 #include <sys/param.h>
22421
22422int
22423main ()
22424{
22425#if BYTE_ORDER != BIG_ENDIAN
22426 not big endian
22427 #endif
22428
22429 ;
22430 return 0;
22431}
22432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022433if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022434 ac_cv_c_bigendian=yes
22435else
cristy8b350f62009-11-15 23:12:43 +000022436 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022437fi
cristy3ed852e2009-09-05 21:47:34 +000022438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022439fi
cristy3ed852e2009-09-05 21:47:34 +000022440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 fi
22442 if test $ac_cv_c_bigendian = unknown; then
22443 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022445/* end confdefs.h. */
22446#include <limits.h>
22447
22448int
22449main ()
22450{
22451#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22452 bogus endian macros
22453 #endif
22454
22455 ;
22456 return 0;
22457}
22458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022460 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022462/* end confdefs.h. */
22463#include <limits.h>
22464
22465int
22466main ()
22467{
22468#ifndef _BIG_ENDIAN
22469 not big endian
22470 #endif
22471
22472 ;
22473 return 0;
22474}
22475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022476if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022477 ac_cv_c_bigendian=yes
22478else
cristy8b350f62009-11-15 23:12:43 +000022479 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022480fi
cristy3ed852e2009-09-05 21:47:34 +000022481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022482fi
cristy3ed852e2009-09-05 21:47:34 +000022483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 fi
22485 if test $ac_cv_c_bigendian = unknown; then
22486 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022487 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022488 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022490/* end confdefs.h. */
22491short int ascii_mm[] =
22492 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22493 short int ascii_ii[] =
22494 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22495 int use_ascii (int i) {
22496 return ascii_mm[i] + ascii_ii[i];
22497 }
22498 short int ebcdic_ii[] =
22499 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22500 short int ebcdic_mm[] =
22501 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22502 int use_ebcdic (int i) {
22503 return ebcdic_mm[i] + ebcdic_ii[i];
22504 }
22505 extern int foo;
22506
22507int
22508main ()
22509{
22510return use_ascii (foo) == use_ebcdic (foo);
22511 ;
22512 return 0;
22513}
22514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022515if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22517 ac_cv_c_bigendian=yes
22518 fi
22519 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22520 if test "$ac_cv_c_bigendian" = unknown; then
22521 ac_cv_c_bigendian=no
22522 else
22523 # finding both strings is unlikely to happen, but who knows?
22524 ac_cv_c_bigendian=unknown
22525 fi
22526 fi
cristy3ed852e2009-09-05 21:47:34 +000022527fi
cristy3ed852e2009-09-05 21:47:34 +000022528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529else
cristy8b350f62009-11-15 23:12:43 +000022530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022531/* end confdefs.h. */
22532$ac_includes_default
22533int
22534main ()
22535{
22536
22537 /* Are we little or big endian? From Harbison&Steele. */
22538 union
22539 {
22540 long int l;
22541 char c[sizeof (long int)];
22542 } u;
22543 u.l = 1;
22544 return u.c[sizeof (long int) - 1] == 1;
22545
22546 ;
22547 return 0;
22548}
22549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022550if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 ac_cv_c_bigendian=no
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022554fi
cristy8b350f62009-11-15 23:12:43 +000022555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22556 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022557fi
22558
cristy3ed852e2009-09-05 21:47:34 +000022559 fi
22560fi
cristy8b350f62009-11-15 23:12:43 +000022561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022562$as_echo "$ac_cv_c_bigendian" >&6; }
22563 case $ac_cv_c_bigendian in #(
22564 yes)
cristy8b350f62009-11-15 23:12:43 +000022565 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022566;; #(
22567 no)
22568 ;; #(
22569 universal)
22570
cristy8b350f62009-11-15 23:12:43 +000022571$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022572
22573 ;; #(
22574 *)
cristy98dddb52010-11-04 00:30:15 +000022575 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022576 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022577 esac
22578
22579
cristy501c8042011-05-26 17:46:28 +000022580# Define to a suitable type, if standard headers do not define it.
22581ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22582case $ac_cv_c_int8_t in #(
22583 no|yes) ;; #(
22584 *)
cristy3ed852e2009-09-05 21:47:34 +000022585
22586cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022587#define int8_t $ac_cv_c_int8_t
22588_ACEOF
22589;;
22590esac
22591
22592ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22593case $ac_cv_c_int16_t in #(
22594 no|yes) ;; #(
22595 *)
22596
22597cat >>confdefs.h <<_ACEOF
22598#define int16_t $ac_cv_c_int16_t
22599_ACEOF
22600;;
22601esac
22602
22603ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22604case $ac_cv_c_int32_t in #(
22605 no|yes) ;; #(
22606 *)
22607
22608cat >>confdefs.h <<_ACEOF
22609#define int32_t $ac_cv_c_int32_t
22610_ACEOF
22611;;
22612esac
22613
22614ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22615case $ac_cv_c_int64_t in #(
22616 no|yes) ;; #(
22617 *)
22618
22619cat >>confdefs.h <<_ACEOF
22620#define int64_t $ac_cv_c_int64_t
22621_ACEOF
22622;;
22623esac
22624
22625
cristy045228a2013-06-23 11:00:16 +000022626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22627$as_echo_n "checking for unsigned long long int... " >&6; }
22628if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022629 $as_echo_n "(cached) " >&6
22630else
cristy045228a2013-06-23 11:00:16 +000022631 ac_cv_type_unsigned_long_long_int=yes
22632 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022634/* end confdefs.h. */
22635
22636 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022637 implementations with broken preprocessors. Perhaps this can
22638 be revisited in 2012. In the meantime, code should not expect
22639 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022640 /* Test literals. */
22641 long long int ll = 9223372036854775807ll;
22642 long long int nll = -9223372036854775807LL;
22643 unsigned long long int ull = 18446744073709551615ULL;
22644 /* Test constant expressions. */
22645 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022646 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022647 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022648 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022649 int i = 63;
22650int
22651main ()
22652{
22653/* Test availability of runtime routines for shift and division. */
22654 long long int llmax = 9223372036854775807ll;
22655 unsigned long long int ullmax = 18446744073709551615ull;
22656 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022657 | (llmax / ll) | (llmax % ll)
22658 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22659 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022660 ;
22661 return 0;
22662}
22663
22664_ACEOF
22665if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022666
22667else
22668 ac_cv_type_unsigned_long_long_int=no
22669fi
22670rm -f core conftest.err conftest.$ac_objext \
22671 conftest$ac_exeext conftest.$ac_ext
22672 fi
22673fi
22674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22675$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22676 if test $ac_cv_type_unsigned_long_long_int = yes; then
22677
22678$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22679
22680 fi
22681
22682
22683
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22685$as_echo_n "checking for long long int... " >&6; }
22686if ${ac_cv_type_long_long_int+:} false; then :
22687 $as_echo_n "(cached) " >&6
22688else
cristy501c8042011-05-26 17:46:28 +000022689 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022690 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022691 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22692 if test $ac_cv_type_long_long_int = yes; then
22693 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022694 :
cristy501c8042011-05-26 17:46:28 +000022695else
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697/* end confdefs.h. */
22698#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022699 #ifndef LLONG_MAX
22700 # define HALF \
22701 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22702 # define LLONG_MAX (HALF - 1 + HALF)
22703 #endif
cristy501c8042011-05-26 17:46:28 +000022704int
22705main ()
22706{
22707long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022708 int i;
22709 for (i = 0; ; i++)
22710 {
22711 long long int m = n << i;
22712 if (m >> i != n)
22713 return 1;
22714 if (LLONG_MAX / 2 < m)
22715 break;
22716 }
22717 return 0;
cristy501c8042011-05-26 17:46:28 +000022718 ;
22719 return 0;
22720}
22721_ACEOF
22722if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022723
cristy501c8042011-05-26 17:46:28 +000022724else
22725 ac_cv_type_long_long_int=no
22726fi
22727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22728 conftest.$ac_objext conftest.beam conftest.$ac_ext
22729fi
22730
cristy5ed9c6e2013-07-14 21:20:31 +000022731 fi
cristy045228a2013-06-23 11:00:16 +000022732 fi
cristy501c8042011-05-26 17:46:28 +000022733fi
22734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22735$as_echo "$ac_cv_type_long_long_int" >&6; }
22736 if test $ac_cv_type_long_long_int = yes; then
22737
22738$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22739
22740 fi
22741
22742
22743
22744 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22745if test "x$ac_cv_type_intmax_t" = xyes; then :
22746
22747$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22748
22749else
22750 test $ac_cv_type_long_long_int = yes \
22751 && ac_type='long long int' \
22752 || ac_type='long int'
22753
22754cat >>confdefs.h <<_ACEOF
22755#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022756_ACEOF
22757
22758fi
22759
22760
cristy501c8042011-05-26 17:46:28 +000022761
22762 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22763if test "x$ac_cv_type_intptr_t" = xyes; then :
22764
22765$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022766
cristy3ed852e2009-09-05 21:47:34 +000022767else
cristy501c8042011-05-26 17:46:28 +000022768 for ac_type in 'int' 'long int' 'long long int'; do
22769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770/* end confdefs.h. */
22771$ac_includes_default
22772int
22773main ()
22774{
22775static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022776test_array [0] = 0;
22777return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022778
22779 ;
22780 return 0;
22781}
22782_ACEOF
22783if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022784
22785cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022786#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022787_ACEOF
22788
cristy501c8042011-05-26 17:46:28 +000022789 ac_type=
22790fi
22791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 test -z "$ac_type" && break
22793 done
cristy3ed852e2009-09-05 21:47:34 +000022794fi
22795
22796
cristy3ed852e2009-09-05 21:47:34 +000022797
cristy501c8042011-05-26 17:46:28 +000022798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22799$as_echo_n "checking for long double... " >&6; }
22800if ${ac_cv_type_long_double+:} false; then :
22801 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022802else
cristy501c8042011-05-26 17:46:28 +000022803 if test "$GCC" = yes; then
22804 ac_cv_type_long_double=yes
22805 else
22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807/* end confdefs.h. */
22808/* The Stardent Vistra knows sizeof (long double), but does
22809 not support it. */
22810 long double foo = 0.0L;
22811int
22812main ()
22813{
22814static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22815 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022816test_array [0] = 0;
22817return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022818
cristy501c8042011-05-26 17:46:28 +000022819 ;
22820 return 0;
22821}
cristy3ed852e2009-09-05 21:47:34 +000022822_ACEOF
cristy501c8042011-05-26 17:46:28 +000022823if ac_fn_c_try_compile "$LINENO"; then :
22824 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022825else
cristy501c8042011-05-26 17:46:28 +000022826 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022827fi
cristy501c8042011-05-26 17:46:28 +000022828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 fi
cristy3ed852e2009-09-05 21:47:34 +000022830fi
cristy501c8042011-05-26 17:46:28 +000022831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22832$as_echo "$ac_cv_type_long_double" >&6; }
22833 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022834
cristy501c8042011-05-26 17:46:28 +000022835$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022836
cristy501c8042011-05-26 17:46:28 +000022837 fi
22838
cristy3ed852e2009-09-05 21:47:34 +000022839
cristy8b350f62009-11-15 23:12:43 +000022840 { $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 +000022841$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022842if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022843 $as_echo_n "(cached) " >&6
22844else
cristy8b350f62009-11-15 23:12:43 +000022845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022846/* end confdefs.h. */
22847#include <float.h>
22848 long double const a[] =
22849 {
22850 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22851 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22852 };
22853 long double
22854 f (long double x)
22855 {
22856 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22857 + (x ? f (x) : 'c'));
22858 }
22859
22860int
22861main ()
22862{
22863static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22864 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22865 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22866 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22867 && (int) LDBL_EPSILON == 0
22868 )];
cristy14fefe52012-05-21 00:59:18 +000022869test_array [0] = 0;
22870return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022871
22872 ;
22873 return 0;
22874}
22875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022876if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022877 ac_cv_type_long_double_wider=yes
22878else
cristy8b350f62009-11-15 23:12:43 +000022879 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022880fi
cristy3ed852e2009-09-05 21:47:34 +000022881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882fi
cristy8b350f62009-11-15 23:12:43 +000022883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022884$as_echo "$ac_cv_type_long_double_wider" >&6; }
22885 if test $ac_cv_type_long_double_wider = yes; then
22886
cristy8b350f62009-11-15 23:12:43 +000022887$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022888
22889 fi
22890
22891
cristy045228a2013-06-23 11:00:16 +000022892
cristy501c8042011-05-26 17:46:28 +000022893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22894$as_echo_n "checking for long long int... " >&6; }
22895if ${ac_cv_type_long_long_int+:} false; then :
22896 $as_echo_n "(cached) " >&6
22897else
cristy501c8042011-05-26 17:46:28 +000022898 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022899 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022900 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22901 if test $ac_cv_type_long_long_int = yes; then
22902 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022903 :
cristy501c8042011-05-26 17:46:28 +000022904else
22905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906/* end confdefs.h. */
22907#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022908 #ifndef LLONG_MAX
22909 # define HALF \
22910 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22911 # define LLONG_MAX (HALF - 1 + HALF)
22912 #endif
cristy501c8042011-05-26 17:46:28 +000022913int
22914main ()
22915{
22916long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022917 int i;
22918 for (i = 0; ; i++)
22919 {
22920 long long int m = n << i;
22921 if (m >> i != n)
22922 return 1;
22923 if (LLONG_MAX / 2 < m)
22924 break;
22925 }
22926 return 0;
cristy501c8042011-05-26 17:46:28 +000022927 ;
22928 return 0;
22929}
22930_ACEOF
22931if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022932
cristy501c8042011-05-26 17:46:28 +000022933else
22934 ac_cv_type_long_long_int=no
22935fi
22936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22937 conftest.$ac_objext conftest.beam conftest.$ac_ext
22938fi
22939
cristy5ed9c6e2013-07-14 21:20:31 +000022940 fi
cristy045228a2013-06-23 11:00:16 +000022941 fi
cristy501c8042011-05-26 17:46:28 +000022942fi
22943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22944$as_echo "$ac_cv_type_long_long_int" >&6; }
22945 if test $ac_cv_type_long_long_int = yes; then
22946
22947$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22948
22949 fi
22950
22951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22952$as_echo_n "checking for mbstate_t... " >&6; }
22953if ${ac_cv_type_mbstate_t+:} false; then :
22954 $as_echo_n "(cached) " >&6
22955else
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957/* end confdefs.h. */
22958$ac_includes_default
22959# include <wchar.h>
22960int
22961main ()
22962{
22963mbstate_t x; return sizeof x;
22964 ;
22965 return 0;
22966}
22967_ACEOF
22968if ac_fn_c_try_compile "$LINENO"; then :
22969 ac_cv_type_mbstate_t=yes
22970else
22971 ac_cv_type_mbstate_t=no
22972fi
22973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974fi
22975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22976$as_echo "$ac_cv_type_mbstate_t" >&6; }
22977 if test $ac_cv_type_mbstate_t = yes; then
22978
22979$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22980
22981 else
22982
22983$as_echo "#define mbstate_t int" >>confdefs.h
22984
22985 fi
22986ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22987if test "x$ac_cv_type_mode_t" = xyes; then :
22988
22989else
22990
22991cat >>confdefs.h <<_ACEOF
22992#define mode_t int
22993_ACEOF
22994
22995fi
22996
22997ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22998if test "x$ac_cv_type_off_t" = xyes; then :
22999
23000else
23001
23002cat >>confdefs.h <<_ACEOF
23003#define off_t long int
23004_ACEOF
23005
23006fi
23007
23008ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23009if test "x$ac_cv_type_pid_t" = xyes; then :
23010
23011else
23012
23013cat >>confdefs.h <<_ACEOF
23014#define pid_t int
23015_ACEOF
23016
23017fi
23018
23019ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23020if test "x$ac_cv_type_size_t" = xyes; then :
23021
23022else
23023
23024cat >>confdefs.h <<_ACEOF
23025#define size_t unsigned int
23026_ACEOF
23027
23028fi
23029
23030ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23031if test "x$ac_cv_type_ssize_t" = xyes; then :
23032
23033else
23034
23035cat >>confdefs.h <<_ACEOF
23036#define ssize_t int
23037_ACEOF
23038
23039fi
23040
23041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23042$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23043if ${ac_cv_type_uid_t+:} false; then :
23044 $as_echo_n "(cached) " >&6
23045else
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047/* end confdefs.h. */
23048#include <sys/types.h>
23049
23050_ACEOF
23051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23052 $EGREP "uid_t" >/dev/null 2>&1; then :
23053 ac_cv_type_uid_t=yes
23054else
23055 ac_cv_type_uid_t=no
23056fi
23057rm -f conftest*
23058
23059fi
23060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23061$as_echo "$ac_cv_type_uid_t" >&6; }
23062if test $ac_cv_type_uid_t = no; then
23063
23064$as_echo "#define uid_t int" >>confdefs.h
23065
23066
23067$as_echo "#define gid_t int" >>confdefs.h
23068
23069fi
23070
23071ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23072case $ac_cv_c_uint8_t in #(
23073 no|yes) ;; #(
23074 *)
23075
23076$as_echo "#define _UINT8_T 1" >>confdefs.h
23077
23078
23079cat >>confdefs.h <<_ACEOF
23080#define uint8_t $ac_cv_c_uint8_t
23081_ACEOF
23082;;
23083 esac
23084
23085ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23086case $ac_cv_c_uint16_t in #(
23087 no|yes) ;; #(
23088 *)
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define uint16_t $ac_cv_c_uint16_t
23093_ACEOF
23094;;
23095 esac
23096
23097ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23098case $ac_cv_c_uint32_t in #(
23099 no|yes) ;; #(
23100 *)
23101
23102$as_echo "#define _UINT32_T 1" >>confdefs.h
23103
23104
23105cat >>confdefs.h <<_ACEOF
23106#define uint32_t $ac_cv_c_uint32_t
23107_ACEOF
23108;;
23109 esac
23110
23111ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23112case $ac_cv_c_uint64_t in #(
23113 no|yes) ;; #(
23114 *)
23115
23116$as_echo "#define _UINT64_T 1" >>confdefs.h
23117
23118
23119cat >>confdefs.h <<_ACEOF
23120#define uint64_t $ac_cv_c_uint64_t
23121_ACEOF
23122;;
23123 esac
23124
23125
cristy501c8042011-05-26 17:46:28 +000023126
23127 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23128if test "x$ac_cv_type_uintmax_t" = xyes; then :
23129
23130$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23131
23132else
23133 test $ac_cv_type_unsigned_long_long_int = yes \
23134 && ac_type='unsigned long long int' \
23135 || ac_type='unsigned long int'
23136
23137cat >>confdefs.h <<_ACEOF
23138#define uintmax_t $ac_type
23139_ACEOF
23140
23141fi
23142
23143
23144
23145 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23146if test "x$ac_cv_type_uintptr_t" = xyes; then :
23147
23148$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23149
23150else
23151 for ac_type in 'unsigned int' 'unsigned long int' \
23152 'unsigned long long int'; do
23153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23154/* end confdefs.h. */
23155$ac_includes_default
23156int
23157main ()
23158{
23159static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023160test_array [0] = 0;
23161return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023162
23163 ;
23164 return 0;
23165}
23166_ACEOF
23167if ac_fn_c_try_compile "$LINENO"; then :
23168
23169cat >>confdefs.h <<_ACEOF
23170#define uintptr_t $ac_type
23171_ACEOF
23172
23173 ac_type=
23174fi
23175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23176 test -z "$ac_type" && break
23177 done
23178fi
23179
23180
23181
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23183$as_echo_n "checking for unsigned long long int... " >&6; }
23184if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23185 $as_echo_n "(cached) " >&6
23186else
cristy045228a2013-06-23 11:00:16 +000023187 ac_cv_type_unsigned_long_long_int=yes
23188 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023190/* end confdefs.h. */
23191
23192 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023193 implementations with broken preprocessors. Perhaps this can
23194 be revisited in 2012. In the meantime, code should not expect
23195 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023196 /* Test literals. */
23197 long long int ll = 9223372036854775807ll;
23198 long long int nll = -9223372036854775807LL;
23199 unsigned long long int ull = 18446744073709551615ULL;
23200 /* Test constant expressions. */
23201 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023202 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023203 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023204 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023205 int i = 63;
23206int
23207main ()
23208{
23209/* Test availability of runtime routines for shift and division. */
23210 long long int llmax = 9223372036854775807ll;
23211 unsigned long long int ullmax = 18446744073709551615ull;
23212 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023213 | (llmax / ll) | (llmax % ll)
23214 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23215 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023216 ;
23217 return 0;
23218}
23219
23220_ACEOF
23221if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023222
cristy501c8042011-05-26 17:46:28 +000023223else
23224 ac_cv_type_unsigned_long_long_int=no
23225fi
23226rm -f core conftest.err conftest.$ac_objext \
23227 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023228 fi
cristy501c8042011-05-26 17:46:28 +000023229fi
23230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23231$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23232 if test $ac_cv_type_unsigned_long_long_int = yes; then
23233
23234$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23235
23236 fi
23237
23238
cristyfec31822013-05-23 12:32:12 +000023239# Float_t and double_t are intended to be the the most efficient type.
23240ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23241"
23242if test "x$ac_cv_type_float_t" = xyes; then :
23243
23244cat >>confdefs.h <<_ACEOF
23245#define HAVE_FLOAT_T 1
23246_ACEOF
23247
23248
23249fi
23250
23251ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23252"
23253if test "x$ac_cv_type_double_t" = xyes; then :
23254
23255cat >>confdefs.h <<_ACEOF
23256#define HAVE_DOUBLE_T 1
23257_ACEOF
23258
23259
23260fi
23261
23262# The cast to long int works around a bug in the HP C Compiler
23263# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23264# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23265# This bug is HP SR number 8606223364.
23266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23267$as_echo_n "checking size of float_t... " >&6; }
23268if ${ac_cv_sizeof_float_t+:} false; then :
23269 $as_echo_n "(cached) " >&6
23270else
23271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23272"; then :
23273
23274else
23275 if test "$ac_cv_type_float_t" = yes; then
23276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23278as_fn_error 77 "cannot compute sizeof (float_t)
23279See \`config.log' for more details" "$LINENO" 5; }
23280 else
23281 ac_cv_sizeof_float_t=0
23282 fi
23283fi
23284
23285fi
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23287$as_echo "$ac_cv_sizeof_float_t" >&6; }
23288
23289
23290
23291cat >>confdefs.h <<_ACEOF
23292#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23293_ACEOF
23294
23295
23296# The cast to long int works around a bug in the HP C Compiler
23297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23299# This bug is HP SR number 8606223364.
23300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23301$as_echo_n "checking size of double_t... " >&6; }
23302if ${ac_cv_sizeof_double_t+:} false; then :
23303 $as_echo_n "(cached) " >&6
23304else
23305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23306"; then :
23307
23308else
23309 if test "$ac_cv_type_double_t" = yes; then
23310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23312as_fn_error 77 "cannot compute sizeof (double_t)
23313See \`config.log' for more details" "$LINENO" 5; }
23314 else
23315 ac_cv_sizeof_double_t=0
23316 fi
23317fi
23318
23319fi
23320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23321$as_echo "$ac_cv_sizeof_double_t" >&6; }
23322
23323
23324
23325cat >>confdefs.h <<_ACEOF
23326#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23327_ACEOF
23328
23329
23330
cristy9b86f202012-11-28 21:55:35 +000023331# Get size of float, double and long double for comparaison.
23332# The cast to long int works around a bug in the HP C Compiler
23333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23335# This bug is HP SR number 8606223364.
23336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23337$as_echo_n "checking size of float... " >&6; }
23338if ${ac_cv_sizeof_float+:} false; then :
23339 $as_echo_n "(cached) " >&6
23340else
23341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23342
23343else
23344 if test "$ac_cv_type_float" = yes; then
23345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23347as_fn_error 77 "cannot compute sizeof (float)
23348See \`config.log' for more details" "$LINENO" 5; }
23349 else
23350 ac_cv_sizeof_float=0
23351 fi
23352fi
23353
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23356$as_echo "$ac_cv_sizeof_float" >&6; }
23357
23358
23359
23360cat >>confdefs.h <<_ACEOF
23361#define SIZEOF_FLOAT $ac_cv_sizeof_float
23362_ACEOF
23363
23364
23365# The cast to long int works around a bug in the HP C Compiler
23366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23368# This bug is HP SR number 8606223364.
23369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23370$as_echo_n "checking size of double... " >&6; }
23371if ${ac_cv_sizeof_double+:} false; then :
23372 $as_echo_n "(cached) " >&6
23373else
23374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23375
23376else
23377 if test "$ac_cv_type_double" = yes; then
23378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23380as_fn_error 77 "cannot compute sizeof (double)
23381See \`config.log' for more details" "$LINENO" 5; }
23382 else
23383 ac_cv_sizeof_double=0
23384 fi
23385fi
23386
23387fi
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23389$as_echo "$ac_cv_sizeof_double" >&6; }
23390
23391
23392
23393cat >>confdefs.h <<_ACEOF
23394#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23395_ACEOF
23396
23397
cristyfec31822013-05-23 12:32:12 +000023398# The cast to long int works around a bug in the HP C Compiler
23399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23401# This bug is HP SR number 8606223364.
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23403$as_echo_n "checking size of long double... " >&6; }
23404if ${ac_cv_sizeof_long_double+:} false; then :
23405 $as_echo_n "(cached) " >&6
23406else
23407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23408
23409else
23410 if test "$ac_cv_type_long_double" = yes; then
23411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23413as_fn_error 77 "cannot compute sizeof (long double)
23414See \`config.log' for more details" "$LINENO" 5; }
23415 else
23416 ac_cv_sizeof_long_double=0
23417 fi
23418fi
23419
23420fi
23421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23422$as_echo "$ac_cv_sizeof_long_double" >&6; }
23423
23424
23425
23426cat >>confdefs.h <<_ACEOF
23427#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23428_ACEOF
23429
23430
cristyf0cf9a22012-10-24 12:05:01 +000023431
cristy3ed852e2009-09-05 21:47:34 +000023432# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23433# The cast to long int works around a bug in the HP C Compiler
23434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23436# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023439if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023440 $as_echo_n "(cached) " >&6
23441else
cristy8b350f62009-11-15 23:12:43 +000023442 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 +000023443
cristy3ed852e2009-09-05 21:47:34 +000023444else
cristy8b350f62009-11-15 23:12:43 +000023445 if test "$ac_cv_type_signed_short" = yes; then
23446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023448as_fn_error 77 "cannot compute sizeof (signed short)
23449See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023450 else
23451 ac_cv_sizeof_signed_short=0
23452 fi
23453fi
cristy8b350f62009-11-15 23:12:43 +000023454
cristy3ed852e2009-09-05 21:47:34 +000023455fi
cristy8b350f62009-11-15 23:12:43 +000023456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023457$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23458
23459
23460
23461cat >>confdefs.h <<_ACEOF
23462#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23463_ACEOF
23464
23465
23466
23467# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23468# The cast to long int works around a bug in the HP C Compiler
23469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23471# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023474if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023475 $as_echo_n "(cached) " >&6
23476else
cristy8b350f62009-11-15 23:12:43 +000023477 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 +000023478
cristy3ed852e2009-09-05 21:47:34 +000023479else
cristy8b350f62009-11-15 23:12:43 +000023480 if test "$ac_cv_type_unsigned_short" = yes; then
23481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023483as_fn_error 77 "cannot compute sizeof (unsigned short)
23484See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023485 else
23486 ac_cv_sizeof_unsigned_short=0
23487 fi
23488fi
cristy8b350f62009-11-15 23:12:43 +000023489
cristy3ed852e2009-09-05 21:47:34 +000023490fi
cristy8b350f62009-11-15 23:12:43 +000023491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023492$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23493
23494
23495
23496cat >>confdefs.h <<_ACEOF
23497#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23498_ACEOF
23499
23500
23501
23502# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23503# The cast to long int works around a bug in the HP C Compiler
23504# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23505# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23506# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023508$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023509if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023510 $as_echo_n "(cached) " >&6
23511else
cristy8b350f62009-11-15 23:12:43 +000023512 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 +000023513
cristy3ed852e2009-09-05 21:47:34 +000023514else
cristy8b350f62009-11-15 23:12:43 +000023515 if test "$ac_cv_type_signed_int" = yes; then
23516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023518as_fn_error 77 "cannot compute sizeof (signed int)
23519See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023520 else
23521 ac_cv_sizeof_signed_int=0
23522 fi
23523fi
cristy8b350f62009-11-15 23:12:43 +000023524
cristy3ed852e2009-09-05 21:47:34 +000023525fi
cristy8b350f62009-11-15 23:12:43 +000023526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023527$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23528
23529
23530
23531cat >>confdefs.h <<_ACEOF
23532#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23533_ACEOF
23534
23535
23536
23537# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23538# The cast to long int works around a bug in the HP C Compiler
23539# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23540# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23541# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023543$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023544if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023545 $as_echo_n "(cached) " >&6
23546else
cristy8b350f62009-11-15 23:12:43 +000023547 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 +000023548
cristy3ed852e2009-09-05 21:47:34 +000023549else
cristy8b350f62009-11-15 23:12:43 +000023550 if test "$ac_cv_type_unsigned_int" = yes; then
23551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023553as_fn_error 77 "cannot compute sizeof (unsigned int)
23554See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023555 else
23556 ac_cv_sizeof_unsigned_int=0
23557 fi
23558fi
cristy8b350f62009-11-15 23:12:43 +000023559
cristy3ed852e2009-09-05 21:47:34 +000023560fi
cristy8b350f62009-11-15 23:12:43 +000023561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23563
23564
23565
23566cat >>confdefs.h <<_ACEOF
23567#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23568_ACEOF
23569
23570
23571
23572# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23573# The cast to long int works around a bug in the HP C Compiler
23574# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23575# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23576# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023579if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023580 $as_echo_n "(cached) " >&6
23581else
cristy8b350f62009-11-15 23:12:43 +000023582 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 +000023583
cristy3ed852e2009-09-05 21:47:34 +000023584else
cristy8b350f62009-11-15 23:12:43 +000023585 if test "$ac_cv_type_signed_long" = yes; then
23586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023588as_fn_error 77 "cannot compute sizeof (signed long)
23589See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023590 else
23591 ac_cv_sizeof_signed_long=0
23592 fi
23593fi
cristy8b350f62009-11-15 23:12:43 +000023594
cristy3ed852e2009-09-05 21:47:34 +000023595fi
cristy8b350f62009-11-15 23:12:43 +000023596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023597$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23598
23599
23600
23601cat >>confdefs.h <<_ACEOF
23602#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23603_ACEOF
23604
23605
23606
23607# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23608# The cast to long int works around a bug in the HP C Compiler
23609# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23610# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23611# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023614if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023615 $as_echo_n "(cached) " >&6
23616else
cristy8b350f62009-11-15 23:12:43 +000023617 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 +000023618
cristy3ed852e2009-09-05 21:47:34 +000023619else
cristy8b350f62009-11-15 23:12:43 +000023620 if test "$ac_cv_type_unsigned_long" = yes; then
23621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023623as_fn_error 77 "cannot compute sizeof (unsigned long)
23624See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023625 else
23626 ac_cv_sizeof_unsigned_long=0
23627 fi
23628fi
cristy8b350f62009-11-15 23:12:43 +000023629
cristy3ed852e2009-09-05 21:47:34 +000023630fi
cristy8b350f62009-11-15 23:12:43 +000023631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23633
23634
23635
23636cat >>confdefs.h <<_ACEOF
23637#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23638_ACEOF
23639
23640
23641
23642# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23643# 'signed long long' is not supported then the value defined is zero.
23644# The cast to long int works around a bug in the HP C Compiler
23645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23647# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023649$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023650if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023651 $as_echo_n "(cached) " >&6
23652else
cristy8b350f62009-11-15 23:12:43 +000023653 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 +000023654
cristy3ed852e2009-09-05 21:47:34 +000023655else
cristy8b350f62009-11-15 23:12:43 +000023656 if test "$ac_cv_type_signed_long_long" = yes; then
23657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023659as_fn_error 77 "cannot compute sizeof (signed long long)
23660See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023661 else
23662 ac_cv_sizeof_signed_long_long=0
23663 fi
23664fi
cristy8b350f62009-11-15 23:12:43 +000023665
cristy3ed852e2009-09-05 21:47:34 +000023666fi
cristy8b350f62009-11-15 23:12:43 +000023667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023668$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23669
23670
23671
23672cat >>confdefs.h <<_ACEOF
23673#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23674_ACEOF
23675
23676
23677
23678# Obtain size of a 'unsigned long long' and define as
23679# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23680# supported then the value defined is zero.
23681# The cast to long int works around a bug in the HP C Compiler
23682# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23683# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23684# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023687if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023688 $as_echo_n "(cached) " >&6
23689else
cristy8b350f62009-11-15 23:12:43 +000023690 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 +000023691
cristy3ed852e2009-09-05 21:47:34 +000023692else
cristy8b350f62009-11-15 23:12:43 +000023693 if test "$ac_cv_type_unsigned_long_long" = yes; then
23694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023696as_fn_error 77 "cannot compute sizeof (unsigned long long)
23697See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023698 else
23699 ac_cv_sizeof_unsigned_long_long=0
23700 fi
23701fi
cristy8b350f62009-11-15 23:12:43 +000023702
cristy3ed852e2009-09-05 21:47:34 +000023703fi
cristy8b350f62009-11-15 23:12:43 +000023704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023705$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23706
23707
23708
23709cat >>confdefs.h <<_ACEOF
23710#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23711_ACEOF
23712
23713
23714
cristyfec31822013-05-23 12:32:12 +000023715# Obtain size of off_t and define as SIZEOF_OFF_T
23716# The cast to long int works around a bug in the HP C Compiler
23717# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23718# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23719# This bug is HP SR number 8606223364.
23720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23721$as_echo_n "checking size of off_t... " >&6; }
23722if ${ac_cv_sizeof_off_t+:} false; then :
23723 $as_echo_n "(cached) " >&6
23724else
23725 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23726
23727else
23728 if test "$ac_cv_type_off_t" = yes; then
23729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23731as_fn_error 77 "cannot compute sizeof (off_t)
23732See \`config.log' for more details" "$LINENO" 5; }
23733 else
23734 ac_cv_sizeof_off_t=0
23735 fi
23736fi
23737
23738fi
23739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23740$as_echo "$ac_cv_sizeof_off_t" >&6; }
23741
23742
23743
23744cat >>confdefs.h <<_ACEOF
23745#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23746_ACEOF
23747
23748
23749
23750# Obtain size of size_t and define as SIZEOF_SIZE_T
23751# The cast to long int works around a bug in the HP C Compiler
23752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23754# This bug is HP SR number 8606223364.
23755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23756$as_echo_n "checking size of size_t... " >&6; }
23757if ${ac_cv_sizeof_size_t+:} false; then :
23758 $as_echo_n "(cached) " >&6
23759else
23760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23761
23762else
23763 if test "$ac_cv_type_size_t" = yes; then
23764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23766as_fn_error 77 "cannot compute sizeof (size_t)
23767See \`config.log' for more details" "$LINENO" 5; }
23768 else
23769 ac_cv_sizeof_size_t=0
23770 fi
23771fi
23772
23773fi
23774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23775$as_echo "$ac_cv_sizeof_size_t" >&6; }
23776
23777
23778
23779cat >>confdefs.h <<_ACEOF
23780#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23781_ACEOF
23782
23783
23784
23785# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23786# The cast to long int works around a bug in the HP C Compiler
23787# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23788# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23789# This bug is HP SR number 8606223364.
23790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23791$as_echo_n "checking size of ssize_t... " >&6; }
23792if ${ac_cv_sizeof_ssize_t+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794else
23795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23796
23797else
23798 if test "$ac_cv_type_ssize_t" = yes; then
23799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23801as_fn_error 77 "cannot compute sizeof (ssize_t)
23802See \`config.log' for more details" "$LINENO" 5; }
23803 else
23804 ac_cv_sizeof_ssize_t=0
23805 fi
23806fi
23807
23808fi
23809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23810$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23811
23812
23813
23814cat >>confdefs.h <<_ACEOF
23815#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23816_ACEOF
23817
23818
23819
cristy3ed852e2009-09-05 21:47:34 +000023820# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23821# The cast to long int works around a bug in the HP C Compiler
23822# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23823# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23824# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023826$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023827if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023828 $as_echo_n "(cached) " >&6
23829else
cristy8b350f62009-11-15 23:12:43 +000023830 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 +000023831
cristy3ed852e2009-09-05 21:47:34 +000023832else
cristy8b350f62009-11-15 23:12:43 +000023833 if test "$ac_cv_type_unsigned_intp" = yes; then
23834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023836as_fn_error 77 "cannot compute sizeof (unsigned int*)
23837See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023838 else
23839 ac_cv_sizeof_unsigned_intp=0
23840 fi
23841fi
cristy8b350f62009-11-15 23:12:43 +000023842
cristy3ed852e2009-09-05 21:47:34 +000023843fi
cristy8b350f62009-11-15 23:12:43 +000023844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23846
23847
23848
23849cat >>confdefs.h <<_ACEOF
23850#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23851_ACEOF
23852
23853
23854
23855#
23856# Compute sized types for current CPU and compiler options.
23857#
23858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for signed 8-bit type... " >&6; }
23861INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23863$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23868UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23870$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for signed 16-bit type... " >&6; }
23875INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23877$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023878
23879
cristy8b350f62009-11-15 23:12:43 +000023880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023881$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23882UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23884$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023885
23886
cristy8b350f62009-11-15 23:12:43 +000023887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023888$as_echo_n "checking for signed 32-bit type... " >&6; }
23889INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023890INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023891if test $ac_cv_sizeof_signed_int -eq 4; then
23892 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023893 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023894elif test $ac_cv_sizeof_signed_long -eq 4; then
23895 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023896 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023897fi
cristyad38abe2012-12-23 23:03:21 +000023898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23899$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023900
23901
cristy6d5e20f2011-04-25 13:48:54 +000023902
cristy8b350f62009-11-15 23:12:43 +000023903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023904$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23905UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023906UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023907if test $ac_cv_sizeof_unsigned_int -eq 4; then
23908 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023909 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023910elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23911 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023912 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023913fi
cristyad38abe2012-12-23 23:03:21 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23915$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023916
23917
cristy6d5e20f2011-04-25 13:48:54 +000023918
cristy8b350f62009-11-15 23:12:43 +000023919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023920$as_echo_n "checking for signed 64-bit type... " >&6; }
23921INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023922INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023923if test $ac_cv_sizeof_signed_long -eq 8; then
23924 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023925 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023926elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23927 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023928 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023929fi
cristy3a99dcf2011-12-17 01:29:40 +000023930case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023931 mingw* )
23932 INT64_F='"I64"'
23933 ;;
23934esac
cristyad38abe2012-12-23 23:03:21 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23936$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023937
23938
cristy6d5e20f2011-04-25 13:48:54 +000023939
cristy8b350f62009-11-15 23:12:43 +000023940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023941$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23942UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023943UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023944if test $ac_cv_sizeof_unsigned_long -eq 8; then
23945 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023946 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023947elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23948 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023949 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023950fi
cristy3a99dcf2011-12-17 01:29:40 +000023951case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023952 mingw* )
23953 UINT64_F='"I64"'
23954 ;;
23955esac
cristyad38abe2012-12-23 23:03:21 +000023956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23957$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023958
23959
cristy6d5e20f2011-04-25 13:48:54 +000023960
cristy8b350f62009-11-15 23:12:43 +000023961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023962$as_echo_n "checking for unsigned maximum type... " >&6; }
23963UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023964UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023965if test "$UINT64_T" != 'none'; then
23966 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023967 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023968elif test "$UINT32_T" != 'none'; then
23969 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023970 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023971fi
cristyad38abe2012-12-23 23:03:21 +000023972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23973$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023974
23975
cristy6d5e20f2011-04-25 13:48:54 +000023976
cristy8b350f62009-11-15 23:12:43 +000023977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023978$as_echo_n "checking for pointer difference type... " >&6; }
23979UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023980UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023981if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23982 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023983 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023984elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23985 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023986 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023987fi
cristyad38abe2012-12-23 23:03:21 +000023988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23989$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023990
23991
cristy6d5e20f2011-04-25 13:48:54 +000023992
cristy8b350f62009-11-15 23:12:43 +000023993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023994$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023996/* end confdefs.h. */
23997
23998int
23999main ()
24000{
24001{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24002 ;
24003 return 0;
24004}
24005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024006if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24008$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024009else
cristyad38abe2012-12-23 23:03:21 +000024010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24011$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024013$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024015/* end confdefs.h. */
24016
24017int
24018main ()
24019{
24020{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24021 ;
24022 return 0;
24023}
24024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024025if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24027$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024028
cristy8b350f62009-11-15 23:12:43 +000024029$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024030
24031else
cristyad38abe2012-12-23 23:03:21 +000024032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24033$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024034
cristy8b350f62009-11-15 23:12:43 +000024035$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024036
24037fi
cristy3ed852e2009-09-05 21:47:34 +000024038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039fi
cristy3ed852e2009-09-05 21:47:34 +000024040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24041
24042########
24043#
24044# Check for functions
24045#
24046########
cristy8b350f62009-11-15 23:12:43 +000024047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024048$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024049if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024050 $as_echo_n "(cached) " >&6
24051else
cristy8b350f62009-11-15 23:12:43 +000024052 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024053 ac_cv_func_closedir_void=yes
24054else
cristy8b350f62009-11-15 23:12:43 +000024055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024056/* end confdefs.h. */
24057$ac_includes_default
24058#include <$ac_header_dirent>
24059#ifndef __cplusplus
24060int closedir ();
24061#endif
24062
24063int
24064main ()
24065{
24066return closedir (opendir (".")) != 0;
24067 ;
24068 return 0;
24069}
24070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024071if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 ac_cv_func_closedir_void=no
24073else
cristy8b350f62009-11-15 23:12:43 +000024074 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024075fi
cristy8b350f62009-11-15 23:12:43 +000024076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24077 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024078fi
24079
cristy3ed852e2009-09-05 21:47:34 +000024080fi
cristy8b350f62009-11-15 23:12:43 +000024081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo "$ac_cv_func_closedir_void" >&6; }
24083if test $ac_cv_func_closedir_void = yes; then
24084
cristy8b350f62009-11-15 23:12:43 +000024085$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024086
24087fi
24088
cristycd4c5312009-11-22 01:19:08 +000024089
24090
24091
24092 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024093do :
24094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024095ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24096"
cristy98dddb52010-11-04 00:30:15 +000024097if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024098 cat >>confdefs.h <<_ACEOF
24099#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24100_ACEOF
24101
24102fi
24103
24104done
24105
cristycd4c5312009-11-22 01:19:08 +000024106
24107
24108
24109
24110
24111
24112
cristy3ed852e2009-09-05 21:47:34 +000024113for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024114do :
24115 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024116if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024117 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024118#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024119_ACEOF
24120
24121fi
24122done
24123
cristy8b350f62009-11-15 23:12:43 +000024124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024125$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024126if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 $as_echo_n "(cached) " >&6
24128else
cristy8b350f62009-11-15 23:12:43 +000024129 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 ac_cv_func_mmap_fixed_mapped=no
24131else
cristy8b350f62009-11-15 23:12:43 +000024132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024133/* end confdefs.h. */
24134$ac_includes_default
24135/* malloc might have been renamed as rpl_malloc. */
24136#undef malloc
24137
24138/* Thanks to Mike Haertel and Jim Avera for this test.
24139 Here is a matrix of mmap possibilities:
24140 mmap private not fixed
24141 mmap private fixed at somewhere currently unmapped
24142 mmap private fixed at somewhere already mapped
24143 mmap shared not fixed
24144 mmap shared fixed at somewhere currently unmapped
24145 mmap shared fixed at somewhere already mapped
24146 For private mappings, we should verify that changes cannot be read()
24147 back from the file, nor mmap's back from the file at a different
24148 address. (There have been systems where private was not correctly
24149 implemented like the infamous i386 svr4.0, and systems where the
24150 VM page cache was not coherent with the file system buffer cache
24151 like early versions of FreeBSD and possibly contemporary NetBSD.)
24152 For shared mappings, we should conversely verify that changes get
24153 propagated back to all the places they're supposed to be.
24154
24155 Grep wants private fixed already mapped.
24156 The main things grep needs to know about mmap are:
24157 * does it exist and is it safe to write into the mmap'd area
24158 * how to use it (BSD variants) */
24159
24160#include <fcntl.h>
24161#include <sys/mman.h>
24162
24163#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24164char *malloc ();
24165#endif
24166
24167/* This mess was copied from the GNU getpagesize.h. */
24168#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024169# ifdef _SC_PAGESIZE
24170# define getpagesize() sysconf(_SC_PAGESIZE)
24171# else /* no _SC_PAGESIZE */
24172# ifdef HAVE_SYS_PARAM_H
24173# include <sys/param.h>
24174# ifdef EXEC_PAGESIZE
24175# define getpagesize() EXEC_PAGESIZE
24176# else /* no EXEC_PAGESIZE */
24177# ifdef NBPG
24178# define getpagesize() NBPG * CLSIZE
24179# ifndef CLSIZE
24180# define CLSIZE 1
24181# endif /* no CLSIZE */
24182# else /* no NBPG */
24183# ifdef NBPC
24184# define getpagesize() NBPC
24185# else /* no NBPC */
24186# ifdef PAGESIZE
24187# define getpagesize() PAGESIZE
24188# endif /* PAGESIZE */
24189# endif /* no NBPC */
24190# endif /* no NBPG */
24191# endif /* no EXEC_PAGESIZE */
24192# else /* no HAVE_SYS_PARAM_H */
24193# define getpagesize() 8192 /* punt totally */
24194# endif /* no HAVE_SYS_PARAM_H */
24195# endif /* no _SC_PAGESIZE */
24196
24197#endif /* no HAVE_GETPAGESIZE */
24198
24199int
24200main ()
24201{
24202 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024203 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024204 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024205 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024206
24207 pagesize = getpagesize ();
24208
24209 /* First, make a file with some known garbage in it. */
24210 data = (char *) malloc (pagesize);
24211 if (!data)
24212 return 1;
24213 for (i = 0; i < pagesize; ++i)
24214 *(data + i) = rand ();
24215 umask (0);
24216 fd = creat ("conftest.mmap", 0600);
24217 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024218 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024219 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024220 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024221 close (fd);
24222
cristycd4c5312009-11-22 01:19:08 +000024223 /* Next, check that the tail of a page is zero-filled. File must have
24224 non-zero length, otherwise we risk SIGBUS for entire page. */
24225 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24226 if (fd2 < 0)
24227 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024228 cdata2 = "";
24229 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024230 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024231 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024232 if (data2 == MAP_FAILED)
24233 return 6;
24234 for (i = 0; i < pagesize; ++i)
24235 if (*(data2 + i))
24236 return 7;
24237 close (fd2);
24238 if (munmap (data2, pagesize))
24239 return 8;
24240
cristy3ed852e2009-09-05 21:47:34 +000024241 /* Next, try to mmap the file at a fixed address which already has
24242 something else allocated at it. If we can, also make sure that
24243 we see the same garbage. */
24244 fd = open ("conftest.mmap", O_RDWR);
24245 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024246 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024247 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24248 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024249 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024250 for (i = 0; i < pagesize; ++i)
24251 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024252 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024253
24254 /* Finally, make sure that changes to the mapped area do not
24255 percolate back to the file as seen by read(). (This is a bug on
24256 some variants of i386 svr4.0.) */
24257 for (i = 0; i < pagesize; ++i)
24258 *(data2 + i) = *(data2 + i) + 1;
24259 data3 = (char *) malloc (pagesize);
24260 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024261 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024262 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024263 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024264 for (i = 0; i < pagesize; ++i)
24265 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024266 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024267 close (fd);
24268 return 0;
24269}
24270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024271if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024272 ac_cv_func_mmap_fixed_mapped=yes
24273else
cristy8b350f62009-11-15 23:12:43 +000024274 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024275fi
cristy8b350f62009-11-15 23:12:43 +000024276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24277 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024278fi
24279
cristy3ed852e2009-09-05 21:47:34 +000024280fi
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24283if test $ac_cv_func_mmap_fixed_mapped = yes; then
24284
cristy8b350f62009-11-15 23:12:43 +000024285$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024286
24287fi
cristycd4c5312009-11-22 01:19:08 +000024288rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024289
cristy3ed852e2009-09-05 21:47:34 +000024290for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024291do :
24292 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024293if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024294 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024295#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024296_ACEOF
24297
24298fi
24299
24300done
24301
cristy3ed852e2009-09-05 21:47:34 +000024302for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024303do :
24304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24305ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024306if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 cat >>confdefs.h <<_ACEOF
24308#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24309_ACEOF
24310
24311fi
24312done
24313
24314if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024317if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024318 $as_echo_n "(cached) " >&6
24319else
cristy8b350f62009-11-15 23:12:43 +000024320 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024321 ac_cv_func_fork_works=cross
24322else
cristy8b350f62009-11-15 23:12:43 +000024323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024324/* end confdefs.h. */
24325$ac_includes_default
24326int
24327main ()
24328{
24329
24330 /* By Ruediger Kuhlmann. */
24331 return fork () < 0;
24332
24333 ;
24334 return 0;
24335}
24336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024337if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024338 ac_cv_func_fork_works=yes
24339else
cristy8b350f62009-11-15 23:12:43 +000024340 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024341fi
cristy8b350f62009-11-15 23:12:43 +000024342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24343 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024344fi
24345
cristy3ed852e2009-09-05 21:47:34 +000024346fi
cristy8b350f62009-11-15 23:12:43 +000024347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024348$as_echo "$ac_cv_func_fork_works" >&6; }
24349
24350else
24351 ac_cv_func_fork_works=$ac_cv_func_fork
24352fi
24353if test "x$ac_cv_func_fork_works" = xcross; then
24354 case $host in
24355 *-*-amigaos* | *-*-msdosdjgpp*)
24356 # Override, as these systems have only a dummy fork() stub
24357 ac_cv_func_fork_works=no
24358 ;;
24359 *)
24360 ac_cv_func_fork_works=yes
24361 ;;
24362 esac
cristy8b350f62009-11-15 23:12:43 +000024363 { $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 +000024364$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24365fi
24366ac_cv_func_vfork_works=$ac_cv_func_vfork
24367if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024369$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024370if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024371 $as_echo_n "(cached) " >&6
24372else
cristy8b350f62009-11-15 23:12:43 +000024373 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024374 ac_cv_func_vfork_works=cross
24375else
cristy8b350f62009-11-15 23:12:43 +000024376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024377/* end confdefs.h. */
24378/* Thanks to Paul Eggert for this test. */
24379$ac_includes_default
24380#include <sys/wait.h>
24381#ifdef HAVE_VFORK_H
24382# include <vfork.h>
24383#endif
24384/* On some sparc systems, changes by the child to local and incoming
24385 argument registers are propagated back to the parent. The compiler
24386 is told about this with #include <vfork.h>, but some compilers
24387 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24388 static variable whose address is put into a register that is
24389 clobbered by the vfork. */
24390static void
24391#ifdef __cplusplus
24392sparc_address_test (int arg)
24393# else
24394sparc_address_test (arg) int arg;
24395#endif
24396{
24397 static pid_t child;
24398 if (!child) {
24399 child = vfork ();
24400 if (child < 0) {
24401 perror ("vfork");
24402 _exit(2);
24403 }
24404 if (!child) {
24405 arg = getpid();
24406 write(-1, "", 0);
24407 _exit (arg);
24408 }
24409 }
24410}
24411
24412int
24413main ()
24414{
24415 pid_t parent = getpid ();
24416 pid_t child;
24417
24418 sparc_address_test (0);
24419
24420 child = vfork ();
24421
24422 if (child == 0) {
24423 /* Here is another test for sparc vfork register problems. This
24424 test uses lots of local variables, at least as many local
24425 variables as main has allocated so far including compiler
24426 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24427 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24428 reuse the register of parent for one of the local variables,
24429 since it will think that parent can't possibly be used any more
24430 in this routine. Assigning to the local variable will thus
24431 munge parent in the parent process. */
24432 pid_t
24433 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24434 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24435 /* Convince the compiler that p..p7 are live; otherwise, it might
24436 use the same hardware register for all 8 local variables. */
24437 if (p != p1 || p != p2 || p != p3 || p != p4
24438 || p != p5 || p != p6 || p != p7)
24439 _exit(1);
24440
24441 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24442 from child file descriptors. If the child closes a descriptor
24443 before it execs or exits, this munges the parent's descriptor
24444 as well. Test for this by closing stdout in the child. */
24445 _exit(close(fileno(stdout)) != 0);
24446 } else {
24447 int status;
24448 struct stat st;
24449
24450 while (wait(&status) != child)
24451 ;
24452 return (
24453 /* Was there some problem with vforking? */
24454 child < 0
24455
24456 /* Did the child fail? (This shouldn't happen.) */
24457 || status
24458
24459 /* Did the vfork/compiler bug occur? */
24460 || parent != getpid()
24461
24462 /* Did the file descriptor bug occur? */
24463 || fstat(fileno(stdout), &st) != 0
24464 );
24465 }
24466}
24467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024468if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 ac_cv_func_vfork_works=yes
24470else
cristy8b350f62009-11-15 23:12:43 +000024471 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024472fi
cristy8b350f62009-11-15 23:12:43 +000024473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24474 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024475fi
24476
cristy3ed852e2009-09-05 21:47:34 +000024477fi
cristy8b350f62009-11-15 23:12:43 +000024478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024479$as_echo "$ac_cv_func_vfork_works" >&6; }
24480
24481fi;
24482if test "x$ac_cv_func_fork_works" = xcross; then
24483 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024484 { $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 +000024485$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24486fi
24487
24488if test "x$ac_cv_func_vfork_works" = xyes; then
24489
cristy8b350f62009-11-15 23:12:43 +000024490$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024491
24492else
24493
cristy8b350f62009-11-15 23:12:43 +000024494$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024495
24496fi
24497if test "x$ac_cv_func_fork_works" = xyes; then
24498
cristy8b350f62009-11-15 23:12:43 +000024499$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024500
24501fi
24502
cristy8b350f62009-11-15 23:12:43 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024504$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024505if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 $as_echo_n "(cached) " >&6
24507else
cristy8b350f62009-11-15 23:12:43 +000024508 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 ac_cv_func_memcmp_working=no
24510else
cristy8b350f62009-11-15 23:12:43 +000024511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024512/* end confdefs.h. */
24513$ac_includes_default
24514int
24515main ()
24516{
24517
24518 /* Some versions of memcmp are not 8-bit clean. */
24519 char c0 = '\100', c1 = '\200', c2 = '\201';
24520 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24521 return 1;
24522
24523 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24524 or more and with at least one buffer not starting on a 4-byte boundary.
24525 William Lewis provided this test program. */
24526 {
24527 char foo[21];
24528 char bar[21];
24529 int i;
24530 for (i = 0; i < 4; i++)
24531 {
24532 char *a = foo + i;
24533 char *b = bar + i;
24534 strcpy (a, "--------01111111");
24535 strcpy (b, "--------10000000");
24536 if (memcmp (a, b, 16) >= 0)
24537 return 1;
24538 }
24539 return 0;
24540 }
24541
24542 ;
24543 return 0;
24544}
24545_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024546if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 ac_cv_func_memcmp_working=yes
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024550fi
cristy8b350f62009-11-15 23:12:43 +000024551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24552 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024553fi
24554
cristy3ed852e2009-09-05 21:47:34 +000024555fi
cristy8b350f62009-11-15 23:12:43 +000024556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024557$as_echo "$ac_cv_func_memcmp_working" >&6; }
24558test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24559 *" memcmp.$ac_objext "* ) ;;
24560 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24561 ;;
24562esac
24563
24564
cristy3ed852e2009-09-05 21:47:34 +000024565for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024566do :
24567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24568ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024570 cat >>confdefs.h <<_ACEOF
24571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24572_ACEOF
24573
24574fi
24575
24576done
24577
cristy8b350f62009-11-15 23:12:43 +000024578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024579$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024580if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 $as_echo_n "(cached) " >&6
24582else
24583 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24584 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24585 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024587/* end confdefs.h. */
24588$ac_includes_default
24589#ifdef HAVE_SYS_SELECT_H
24590# include <sys/select.h>
24591#endif
24592#ifdef HAVE_SYS_SOCKET_H
24593# include <sys/socket.h>
24594#endif
24595
24596int
24597main ()
24598{
24599extern int select ($ac_arg1,
24600 $ac_arg234, $ac_arg234, $ac_arg234,
24601 $ac_arg5);
24602 ;
24603 return 0;
24604}
24605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024606if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024607 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024608fi
cristy3ed852e2009-09-05 21:47:34 +000024609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610 done
24611 done
24612done
24613# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024614: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024615
24616fi
cristy8b350f62009-11-15 23:12:43 +000024617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024618$as_echo "$ac_cv_func_select_args" >&6; }
24619ac_save_IFS=$IFS; IFS=','
24620set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24621IFS=$ac_save_IFS
24622shift
24623
24624cat >>confdefs.h <<_ACEOF
24625#define SELECT_TYPE_ARG1 $1
24626_ACEOF
24627
24628
24629cat >>confdefs.h <<_ACEOF
24630#define SELECT_TYPE_ARG234 ($2)
24631_ACEOF
24632
24633
24634cat >>confdefs.h <<_ACEOF
24635#define SELECT_TYPE_ARG5 ($3)
24636_ACEOF
24637
24638rm -f conftest*
24639
cristyda16f162011-02-19 23:52:17 +000024640if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024641 $as_echo_n "(cached) " >&6
24642else
24643 ac_cv_func_setvbuf_reversed=no
24644fi
24645
24646
cristy8b350f62009-11-15 23:12:43 +000024647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024648$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024649if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024650 $as_echo_n "(cached) " >&6
24651else
cristy8b350f62009-11-15 23:12:43 +000024652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024653/* end confdefs.h. */
24654#include <sys/types.h>
24655#include <signal.h>
24656
24657int
24658main ()
24659{
24660return *(signal (0, 0)) (0) == 1;
24661 ;
24662 return 0;
24663}
24664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024665if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024666 ac_cv_type_signal=int
24667else
cristy8b350f62009-11-15 23:12:43 +000024668 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024669fi
cristy3ed852e2009-09-05 21:47:34 +000024670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671fi
cristy8b350f62009-11-15 23:12:43 +000024672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024673$as_echo "$ac_cv_type_signal" >&6; }
24674
24675cat >>confdefs.h <<_ACEOF
24676#define RETSIGTYPE $ac_cv_type_signal
24677_ACEOF
24678
24679
cristy8b350f62009-11-15 23:12:43 +000024680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024681$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024682if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 $as_echo_n "(cached) " >&6
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 ac_cv_func_strtod=no
24687else
cristy8b350f62009-11-15 23:12:43 +000024688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689/* end confdefs.h. */
24690
24691$ac_includes_default
24692#ifndef strtod
24693double strtod ();
24694#endif
24695int
24696main()
24697{
24698 {
24699 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24700 char *string = " +69";
24701 char *term;
24702 double value;
24703 value = strtod (string, &term);
24704 if (value != 69 || term != (string + 4))
24705 return 1;
24706 }
24707
24708 {
24709 /* Under Solaris 2.4, strtod returns the wrong value for the
24710 terminating character under some conditions. */
24711 char *string = "NaN";
24712 char *term;
24713 strtod (string, &term);
24714 if (term != string && *(term - 1) == 0)
24715 return 1;
24716 }
24717 return 0;
24718}
24719
24720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024721if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024722 ac_cv_func_strtod=yes
24723else
cristy8b350f62009-11-15 23:12:43 +000024724 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024725fi
cristy8b350f62009-11-15 23:12:43 +000024726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24727 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024728fi
24729
cristy3ed852e2009-09-05 21:47:34 +000024730fi
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo "$ac_cv_func_strtod" >&6; }
24733if test $ac_cv_func_strtod = no; then
24734 case " $LIBOBJS " in
24735 *" strtod.$ac_objext "* ) ;;
24736 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24737 ;;
24738esac
24739
cristy8b350f62009-11-15 23:12:43 +000024740ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024741if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024742
cristy3ed852e2009-09-05 21:47:34 +000024743fi
24744
cristy3ed852e2009-09-05 21:47:34 +000024745if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024747$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024748if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024749 $as_echo_n "(cached) " >&6
24750else
24751 ac_check_lib_save_LIBS=$LIBS
24752LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024754/* end confdefs.h. */
24755
24756/* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24759#ifdef __cplusplus
24760extern "C"
24761#endif
24762char pow ();
24763int
24764main ()
24765{
24766return pow ();
24767 ;
24768 return 0;
24769}
24770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024771if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024772 ac_cv_lib_m_pow=yes
24773else
cristy8b350f62009-11-15 23:12:43 +000024774 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024775fi
cristy8b350f62009-11-15 23:12:43 +000024776rm -f core conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024778LIBS=$ac_check_lib_save_LIBS
24779fi
cristy8b350f62009-11-15 23:12:43 +000024780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024782if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 POW_LIB=-lm
24784else
cristy8b350f62009-11-15 23:12:43 +000024785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24787fi
24788
24789fi
24790
24791fi
24792
cristy7d4a1d62011-10-13 15:54:12 +000024793ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24794if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24795 ac_have_decl=1
24796else
24797 ac_have_decl=0
24798fi
24799
24800cat >>confdefs.h <<_ACEOF
24801#define HAVE_DECL_STRERROR_R $ac_have_decl
24802_ACEOF
24803
24804for ac_func in strerror_r
24805do :
24806 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24807if test "x$ac_cv_func_strerror_r" = xyes; then :
24808 cat >>confdefs.h <<_ACEOF
24809#define HAVE_STRERROR_R 1
24810_ACEOF
24811
24812fi
24813done
24814
24815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24816$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24817if ${ac_cv_func_strerror_r_char_p+:} false; then :
24818 $as_echo_n "(cached) " >&6
24819else
24820
24821 ac_cv_func_strerror_r_char_p=no
24822 if test $ac_cv_have_decl_strerror_r = yes; then
24823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24824/* end confdefs.h. */
24825$ac_includes_default
24826int
24827main ()
24828{
24829
24830 char buf[100];
24831 char x = *strerror_r (0, buf, sizeof buf);
24832 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024833 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024834
24835 ;
24836 return 0;
24837}
24838_ACEOF
24839if ac_fn_c_try_compile "$LINENO"; then :
24840 ac_cv_func_strerror_r_char_p=yes
24841fi
24842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24843 else
24844 # strerror_r is not declared. Choose between
24845 # systems that have relatively inaccessible declarations for the
24846 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24847 # former has a strerror_r that returns char*, while the latter
24848 # has a strerror_r that returns `int'.
24849 # This test should segfault on the DEC system.
24850 if test "$cross_compiling" = yes; then :
24851 :
24852else
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854/* end confdefs.h. */
24855$ac_includes_default
24856 extern char *strerror_r ();
24857int
24858main ()
24859{
24860char buf[100];
24861 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024862 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024863 ;
24864 return 0;
24865}
24866_ACEOF
24867if ac_fn_c_try_run "$LINENO"; then :
24868 ac_cv_func_strerror_r_char_p=yes
24869fi
24870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24871 conftest.$ac_objext conftest.beam conftest.$ac_ext
24872fi
24873
24874 fi
24875
24876fi
24877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24878$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24879if test $ac_cv_func_strerror_r_char_p = yes; then
24880
24881$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24882
24883fi
24884
cristy3ed852e2009-09-05 21:47:34 +000024885for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024886do :
24887 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024888if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024889 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024890#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024891_ACEOF
24892
cristy8b350f62009-11-15 23:12:43 +000024893ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024894if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024895
cristy8b350f62009-11-15 23:12:43 +000024896$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024897
24898fi
24899
24900fi
24901done
24902
24903
24904
cristy161b9262010-03-20 19:34:32 +000024905#
24906# Find math library
24907#
24908MATH_LIBS=''
24909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24910$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024911if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024912 $as_echo_n "(cached) " >&6
24913else
24914 ac_check_lib_save_LIBS=$LIBS
24915LIBS="-lm $LIBS"
24916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917/* end confdefs.h. */
24918
24919/* Override any GCC internal prototype to avoid an error.
24920 Use char because int might match the return type of a GCC
24921 builtin and then its argument prototype would still apply. */
24922#ifdef __cplusplus
24923extern "C"
24924#endif
24925char sqrt ();
24926int
24927main ()
24928{
24929return sqrt ();
24930 ;
24931 return 0;
24932}
24933_ACEOF
24934if ac_fn_c_try_link "$LINENO"; then :
24935 ac_cv_lib_m_sqrt=yes
24936else
24937 ac_cv_lib_m_sqrt=no
24938fi
24939rm -f core conftest.err conftest.$ac_objext \
24940 conftest$ac_exeext conftest.$ac_ext
24941LIBS=$ac_check_lib_save_LIBS
24942fi
24943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24944$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024945if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024946 MATH_LIBS="-lm"
24947fi
24948
24949LIBS="$MATH_LIBS $LIBS"
24950
24951
cristy85572162013-01-04 19:19:32 +000024952#
24953# Find socket library
24954#
cristy8a5d7f42013-01-06 15:24:33 +000024955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24956$as_echo_n "checking for library containing gethostbyname... " >&6; }
24957if ${ac_cv_search_gethostbyname+:} false; then :
24958 $as_echo_n "(cached) " >&6
24959else
24960 ac_func_search_save_LIBS=$LIBS
24961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24962/* end confdefs.h. */
24963
24964/* Override any GCC internal prototype to avoid an error.
24965 Use char because int might match the return type of a GCC
24966 builtin and then its argument prototype would still apply. */
24967#ifdef __cplusplus
24968extern "C"
24969#endif
24970char gethostbyname ();
24971int
24972main ()
24973{
24974return gethostbyname ();
24975 ;
24976 return 0;
24977}
24978_ACEOF
24979for ac_lib in '' resolv nsl; do
24980 if test -z "$ac_lib"; then
24981 ac_res="none required"
24982 else
24983 ac_res=-l$ac_lib
24984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24985 fi
24986 if ac_fn_c_try_link "$LINENO"; then :
24987 ac_cv_search_gethostbyname=$ac_res
24988fi
24989rm -f core conftest.err conftest.$ac_objext \
24990 conftest$ac_exeext
24991 if ${ac_cv_search_gethostbyname+:} false; then :
24992 break
24993fi
24994done
24995if ${ac_cv_search_gethostbyname+:} false; then :
24996
24997else
24998 ac_cv_search_gethostbyname=no
24999fi
25000rm conftest.$ac_ext
25001LIBS=$ac_func_search_save_LIBS
25002fi
25003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25004$as_echo "$ac_cv_search_gethostbyname" >&6; }
25005ac_res=$ac_cv_search_gethostbyname
25006if test "$ac_res" != no; then :
25007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25008
25009fi
25010
cristy85572162013-01-04 19:19:32 +000025011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25012$as_echo_n "checking for library containing socket... " >&6; }
25013if ${ac_cv_search_socket+:} false; then :
25014 $as_echo_n "(cached) " >&6
25015else
25016 ac_func_search_save_LIBS=$LIBS
25017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25018/* end confdefs.h. */
25019
25020/* Override any GCC internal prototype to avoid an error.
25021 Use char because int might match the return type of a GCC
25022 builtin and then its argument prototype would still apply. */
25023#ifdef __cplusplus
25024extern "C"
25025#endif
25026char socket ();
25027int
25028main ()
25029{
25030return socket ();
25031 ;
25032 return 0;
25033}
25034_ACEOF
25035for ac_lib in '' socket; do
25036 if test -z "$ac_lib"; then
25037 ac_res="none required"
25038 else
25039 ac_res=-l$ac_lib
25040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25041 fi
25042 if ac_fn_c_try_link "$LINENO"; then :
25043 ac_cv_search_socket=$ac_res
25044fi
25045rm -f core conftest.err conftest.$ac_objext \
25046 conftest$ac_exeext
25047 if ${ac_cv_search_socket+:} false; then :
25048 break
25049fi
25050done
25051if ${ac_cv_search_socket+:} false; then :
25052
25053else
25054 ac_cv_search_socket=no
25055fi
25056rm conftest.$ac_ext
25057LIBS=$ac_func_search_save_LIBS
25058fi
25059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25060$as_echo "$ac_cv_search_socket" >&6; }
25061ac_res=$ac_cv_search_socket
25062if test "$ac_res" != no; then :
25063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25064
cristy85572162013-01-04 19:19:32 +000025065
cristy8a5d7f42013-01-06 15:24:33 +000025066$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025067
cristy03f187e2013-01-24 00:22:19 +000025068 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025069
25070fi
25071
25072
25073for 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 socket 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 +000025074do :
25075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025078 cat >>confdefs.h <<_ACEOF
25079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25080_ACEOF
25081
25082fi
25083done
25084
25085
cristye43a45e2009-09-28 14:49:00 +000025086#
25087# Check for clock_gettime().
25088#
cristy8b350f62009-11-15 23:12:43 +000025089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025090$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025091if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025092 $as_echo_n "(cached) " >&6
25093else
25094 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025096/* end confdefs.h. */
25097
25098/* Override any GCC internal prototype to avoid an error.
25099 Use char because int might match the return type of a GCC
25100 builtin and then its argument prototype would still apply. */
25101#ifdef __cplusplus
25102extern "C"
25103#endif
25104char clock_gettime ();
25105int
25106main ()
25107{
25108return clock_gettime ();
25109 ;
25110 return 0;
25111}
25112_ACEOF
25113for ac_lib in '' rt; do
25114 if test -z "$ac_lib"; then
25115 ac_res="none required"
25116 else
25117 ac_res=-l$ac_lib
25118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25119 fi
cristy8b350f62009-11-15 23:12:43 +000025120 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025121 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025122fi
cristy8b350f62009-11-15 23:12:43 +000025123rm -f core conftest.err conftest.$ac_objext \
25124 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025125 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025126 break
25127fi
25128done
cristyda16f162011-02-19 23:52:17 +000025129if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025130
cristye43a45e2009-09-28 14:49:00 +000025131else
25132 ac_cv_search_clock_gettime=no
25133fi
25134rm conftest.$ac_ext
25135LIBS=$ac_func_search_save_LIBS
25136fi
cristy8b350f62009-11-15 23:12:43 +000025137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025138$as_echo "$ac_cv_search_clock_gettime" >&6; }
25139ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025140if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25142
25143
cristy8b350f62009-11-15 23:12:43 +000025144$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025145
cristy8b350f62009-11-15 23:12:43 +000025146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025147$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025149/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025150
25151 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025152int
25153main ()
25154{
25155clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025156 ;
25157 return 0;
25158}
25159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025160if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025161
cristyad38abe2012-12-23 23:03:21 +000025162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25163$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025164
cristy8b350f62009-11-15 23:12:43 +000025165$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025166
25167
25168else
cristyad38abe2012-12-23 23:03:21 +000025169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25170$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025171
25172fi
cristye43a45e2009-09-28 14:49:00 +000025173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25174
25175else
25176
cristy8b350f62009-11-15 23:12:43 +000025177 for ac_func in gettimeofday ftime
25178do :
25179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25180ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025181if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025182 cat >>confdefs.h <<_ACEOF
25183#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25184_ACEOF
25185 break
25186fi
25187done
25188
25189
25190
25191fi
25192
25193
cristy3ed852e2009-09-05 21:47:34 +000025194########
25195#
25196# Check for function prototypes
25197#
25198########
25199
cristy8b350f62009-11-15 23:12:43 +000025200ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025201#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025202"
cristyda16f162011-02-19 23:52:17 +000025203if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025204 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025205else
cristy8b350f62009-11-15 23:12:43 +000025206 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025207fi
25208
cristy3ed852e2009-09-05 21:47:34 +000025209cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025212ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025213#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025214"
cristyda16f162011-02-19 23:52:17 +000025215if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025216 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025217else
cristy8b350f62009-11-15 23:12:43 +000025218 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025219fi
25220
cristy3ed852e2009-09-05 21:47:34 +000025221cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025222#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025223_ACEOF
25224
25225
cristy8b350f62009-11-15 23:12:43 +000025226ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025227#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025228"
cristyda16f162011-02-19 23:52:17 +000025229if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025230 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025231else
cristy8b350f62009-11-15 23:12:43 +000025232 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025233fi
25234
cristy3ed852e2009-09-05 21:47:34 +000025235cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025236#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025237_ACEOF
25238
25239
cristy8b350f62009-11-15 23:12:43 +000025240ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025241#include <stdio.h>
25242#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025243"
cristyda16f162011-02-19 23:52:17 +000025244if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025245 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025246else
cristy8b350f62009-11-15 23:12:43 +000025247 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025248fi
25249
cristy3ed852e2009-09-05 21:47:34 +000025250cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025251#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025252_ACEOF
25253
25254
cristy3ed852e2009-09-05 21:47:34 +000025255########
25256#
25257# C++ Support Tests (For Magick++)
25258#
25259########
25260have_magick_plus_plus='no'
25261if test "$with_magick_plus_plus" = 'yes'; then
25262 OLIBS="$LIBS"
25263 LIBS=''
25264 ac_ext=cpp
25265ac_cpp='$CXXCPP $CPPFLAGS'
25266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25269
25270
25271 # Full set of headers used...
25272 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25273 # functional iomanip iosfwd iostream iterator list string strstream utility
25274 ac_ext=cpp
25275ac_cpp='$CXXCPP $CPPFLAGS'
25276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25279
25280 ac_ext=cpp
25281ac_cpp='$CXXCPP $CPPFLAGS'
25282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25285if test -z "$CXX"; then
25286 if test -n "$CCC"; then
25287 CXX=$CCC
25288 else
25289 if test -n "$ac_tool_prefix"; then
25290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25291 do
25292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025296if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025297 $as_echo_n "(cached) " >&6
25298else
25299 if test -n "$CXX"; then
25300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25301else
25302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25303for as_dir in $PATH
25304do
25305 IFS=$as_save_IFS
25306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025309 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311 break 2
25312 fi
25313done
cristy8b350f62009-11-15 23:12:43 +000025314 done
cristy3ed852e2009-09-05 21:47:34 +000025315IFS=$as_save_IFS
25316
25317fi
25318fi
25319CXX=$ac_cv_prog_CXX
25320if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025322$as_echo "$CXX" >&6; }
25323else
cristy8b350f62009-11-15 23:12:43 +000025324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325$as_echo "no" >&6; }
25326fi
25327
25328
25329 test -n "$CXX" && break
25330 done
25331fi
25332if test -z "$CXX"; then
25333 ac_ct_CXX=$CXX
25334 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25335do
25336 # Extract the first word of "$ac_prog", so it can be a program name with args.
25337set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025340if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 $as_echo_n "(cached) " >&6
25342else
25343 if test -n "$ac_ct_CXX"; then
25344 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25345else
25346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25347for as_dir in $PATH
25348do
25349 IFS=$as_save_IFS
25350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025353 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025355 break 2
25356 fi
25357done
cristy8b350f62009-11-15 23:12:43 +000025358 done
cristy3ed852e2009-09-05 21:47:34 +000025359IFS=$as_save_IFS
25360
25361fi
25362fi
25363ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25364if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025366$as_echo "$ac_ct_CXX" >&6; }
25367else
cristy8b350f62009-11-15 23:12:43 +000025368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025369$as_echo "no" >&6; }
25370fi
25371
25372
25373 test -n "$ac_ct_CXX" && break
25374done
25375
25376 if test "x$ac_ct_CXX" = x; then
25377 CXX="g++"
25378 else
25379 case $cross_compiling:$ac_tool_warned in
25380yes:)
cristy8b350f62009-11-15 23:12:43 +000025381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25383ac_tool_warned=yes ;;
25384esac
25385 CXX=$ac_ct_CXX
25386 fi
25387fi
25388
25389 fi
25390fi
25391# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025392$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025393set X $ac_compile
25394ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025395for ac_option in --version -v -V -qversion; do
25396 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025397case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400esac
cristy8b350f62009-11-15 23:12:43 +000025401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25402$as_echo "$ac_try_echo"; } >&5
25403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025404 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025405 if test -s conftest.err; then
25406 sed '10a\
25407... rest of stderr output deleted ...
25408 10q' conftest.err >conftest.er1
25409 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025410 fi
cristycd4c5312009-11-22 01:19:08 +000025411 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }
25414done
cristy3ed852e2009-09-05 21:47:34 +000025415
cristy8b350f62009-11-15 23:12:43 +000025416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025417$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025418if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025419 $as_echo_n "(cached) " >&6
25420else
cristy8b350f62009-11-15 23:12:43 +000025421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025422/* end confdefs.h. */
25423
25424int
25425main ()
25426{
25427#ifndef __GNUC__
25428 choke me
25429#endif
25430
25431 ;
25432 return 0;
25433}
25434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025435if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 ac_compiler_gnu=yes
25437else
cristy8b350f62009-11-15 23:12:43 +000025438 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025439fi
cristy3ed852e2009-09-05 21:47:34 +000025440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25442
25443fi
cristy8b350f62009-11-15 23:12:43 +000025444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025445$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25446if test $ac_compiler_gnu = yes; then
25447 GXX=yes
25448else
25449 GXX=
25450fi
25451ac_test_CXXFLAGS=${CXXFLAGS+set}
25452ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025455if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025456 $as_echo_n "(cached) " >&6
25457else
25458 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25459 ac_cxx_werror_flag=yes
25460 ac_cv_prog_cxx_g=no
25461 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025463/* end confdefs.h. */
25464
25465int
25466main ()
25467{
25468
25469 ;
25470 return 0;
25471}
25472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025473if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025474 ac_cv_prog_cxx_g=yes
25475else
cristy8b350f62009-11-15 23:12:43 +000025476 CXXFLAGS=""
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025478/* end confdefs.h. */
25479
25480int
25481main ()
25482{
25483
25484 ;
25485 return 0;
25486}
25487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025488if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025489
cristy8b350f62009-11-15 23:12:43 +000025490else
25491 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025492 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025494/* end confdefs.h. */
25495
25496int
25497main ()
25498{
25499
25500 ;
25501 return 0;
25502}
25503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025504if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025505 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025506fi
cristy3ed852e2009-09-05 21:47:34 +000025507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508fi
cristy3ed852e2009-09-05 21:47:34 +000025509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510fi
cristy3ed852e2009-09-05 21:47:34 +000025511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25513fi
cristy8b350f62009-11-15 23:12:43 +000025514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025515$as_echo "$ac_cv_prog_cxx_g" >&6; }
25516if test "$ac_test_CXXFLAGS" = set; then
25517 CXXFLAGS=$ac_save_CXXFLAGS
25518elif test $ac_cv_prog_cxx_g = yes; then
25519 if test "$GXX" = yes; then
25520 CXXFLAGS="-g -O2"
25521 else
25522 CXXFLAGS="-g"
25523 fi
25524else
25525 if test "$GXX" = yes; then
25526 CXXFLAGS="-O2"
25527 else
25528 CXXFLAGS=
25529 fi
25530fi
25531ac_ext=cpp
25532ac_cpp='$CXXCPP $CPPFLAGS'
25533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25536
cristy73bd4a52010-10-05 11:24:23 +000025537depcc="$CXX" am_compiler_list=
25538
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25540$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025541if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025542 $as_echo_n "(cached) " >&6
25543else
25544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25545 # We make a subdir and do the tests there. Otherwise we can end up
25546 # making bogus files that we don't know about and never remove. For
25547 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025548 # making a dummy file named 'D' -- because '-MD' means "put the output
25549 # in D".
cristy7247bba2012-02-05 16:37:27 +000025550 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025551 mkdir conftest.dir
25552 # Copy depcomp to subdir because otherwise we won't find it if we're
25553 # using a relative directory.
25554 cp "$am_depcomp" conftest.dir
25555 cd conftest.dir
25556 # We will build objects and dependencies in a subdirectory because
25557 # it helps to detect inapplicable dependency modes. For instance
25558 # both Tru64's cc and ICC support -MD to output dependencies as a
25559 # side effect of compilation, but ICC will put the dependencies in
25560 # the current directory while Tru64 will put them in the object
25561 # directory.
25562 mkdir sub
25563
25564 am_cv_CXX_dependencies_compiler_type=none
25565 if test "$am_compiler_list" = ""; then
25566 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25567 fi
25568 am__universal=false
25569 case " $depcc " in #(
25570 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25571 esac
25572
25573 for depmode in $am_compiler_list; do
25574 # Setup a source with many dependencies, because some compilers
25575 # like to wrap large dependency lists on column 80 (with \), and
25576 # we should not choose a depcomp mode which is confused by this.
25577 #
25578 # We need to recreate these files for each test, as the compiler may
25579 # overwrite some of them when testing with obscure command lines.
25580 # This happens at least with the AIX C compiler.
25581 : > sub/conftest.c
25582 for i in 1 2 3 4 5 6; do
25583 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025584 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25585 # Solaris 10 /bin/sh.
25586 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025587 done
25588 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25589
cristyc0890a62012-07-19 00:18:20 +000025590 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025591 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025592 # handle '-M -o', and we need to detect this. Also, some Intel
25593 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025594 am__obj=sub/conftest.${OBJEXT-o}
25595 am__minus_obj="-o $am__obj"
25596 case $depmode in
25597 gcc)
25598 # This depmode causes a compiler race in universal mode.
25599 test "$am__universal" = false || continue
25600 ;;
25601 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025602 # After this tag, mechanisms are not by side-effect, so they'll
25603 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025604 if test "x$enable_dependency_tracking" = xyes; then
25605 continue
25606 else
25607 break
25608 fi
25609 ;;
cristy7247bba2012-02-05 16:37:27 +000025610 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025611 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025612 # not run yet. These depmodes are late enough in the game, and
25613 # so weak that their functioning should not be impacted.
25614 am__obj=conftest.${OBJEXT-o}
25615 am__minus_obj=
25616 ;;
25617 none) break ;;
25618 esac
25619 if depmode=$depmode \
25620 source=sub/conftest.c object=$am__obj \
25621 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25622 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25623 >/dev/null 2>conftest.err &&
25624 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25625 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25626 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25627 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25628 # icc doesn't choke on unknown options, it will just issue warnings
25629 # or remarks (even with -Werror). So we grep stderr for any message
25630 # that says an option was ignored or not supported.
25631 # When given -MP, icc 7.0 and 7.1 complain thusly:
25632 # icc: Command line warning: ignoring option '-M'; no argument required
25633 # The diagnosis changed in icc 8.0:
25634 # icc: Command line remark: option '-MP' not supported
25635 if (grep 'ignoring option' conftest.err ||
25636 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25637 am_cv_CXX_dependencies_compiler_type=$depmode
25638 break
25639 fi
25640 fi
25641 done
25642
25643 cd ..
25644 rm -rf conftest.dir
25645else
25646 am_cv_CXX_dependencies_compiler_type=none
25647fi
25648
25649fi
25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25651$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25652CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25653
25654 if
25655 test "x$enable_dependency_tracking" != xno \
25656 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25657 am__fastdepCXX_TRUE=
25658 am__fastdepCXX_FALSE='#'
25659else
25660 am__fastdepCXX_TRUE='#'
25661 am__fastdepCXX_FALSE=
25662fi
25663
25664
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25666$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025667if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025668 $as_echo_n "(cached) " >&6
25669else
25670
25671 ac_ext=cpp
25672ac_cpp='$CXXCPP $CPPFLAGS'
25673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25676
25677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25678/* end confdefs.h. */
25679
25680int f(int x){return 1;}
25681int f(char x){return 1;}
25682int f(bool x){return 1;}
25683
25684int
25685main ()
25686{
25687bool b = true; return f(b);
25688 ;
25689 return 0;
25690}
25691_ACEOF
25692if ac_fn_cxx_try_compile "$LINENO"; then :
25693 ax_cv_cxx_bool=yes
25694else
25695 ax_cv_cxx_bool=no
25696fi
25697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 ac_ext=cpp
25699ac_cpp='$CXXCPP $CPPFLAGS'
25700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25703
25704
25705fi
25706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25707$as_echo "$ax_cv_cxx_bool" >&6; }
25708if test "$ax_cv_cxx_bool" = yes; then
25709
25710$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25711
25712fi
25713
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25715$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025716if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025717 $as_echo_n "(cached) " >&6
25718else
25719
25720 ac_ext=cpp
25721ac_cpp='$CXXCPP $CPPFLAGS'
25722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25725
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727/* end confdefs.h. */
25728namespace Outer { namespace Inner { int i = 0; }}
25729int
25730main ()
25731{
25732using namespace Outer::Inner; return i;
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737if ac_fn_cxx_try_compile "$LINENO"; then :
25738 ax_cv_cxx_namespaces=yes
25739else
25740 ax_cv_cxx_namespaces=no
25741fi
25742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25743 ac_ext=cpp
25744ac_cpp='$CXXCPP $CPPFLAGS'
25745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25748
25749
25750fi
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25752$as_echo "$ax_cv_cxx_namespaces" >&6; }
25753if test "$ax_cv_cxx_namespaces" = yes; then
25754
25755$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25756
25757fi
25758
25759
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25761$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025762if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025763 $as_echo_n "(cached) " >&6
25764else
25765
25766 ac_ext=cpp
25767ac_cpp='$CXXCPP $CPPFLAGS'
25768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25771
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773/* end confdefs.h. */
25774#include <iostream>
25775 std::istream& is = std::cin;
25776int
25777main ()
25778{
25779
25780 ;
25781 return 0;
25782}
25783_ACEOF
25784if ac_fn_cxx_try_compile "$LINENO"; then :
25785 ax_cv_cxx_have_std_namespace=yes
25786else
25787 ax_cv_cxx_have_std_namespace=no
25788fi
25789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 ac_ext=cpp
25791ac_cpp='$CXXCPP $CPPFLAGS'
25792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25795
25796
25797fi
25798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25799$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25800 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25801
25802$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25803
25804 fi
25805
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25807$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025808if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025809 $as_echo_n "(cached) " >&6
25810else
25811
25812
25813 ac_ext=cpp
25814ac_cpp='$CXXCPP $CPPFLAGS'
25815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25818
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820/* end confdefs.h. */
25821#include <iostream>
25822#include <map>
25823#include <iomanip>
25824#include <cmath>
25825#ifdef HAVE_NAMESPACES
25826using namespace std;
25827#endif
25828int
25829main ()
25830{
25831return 0;
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836if ac_fn_cxx_try_compile "$LINENO"; then :
25837 ac_cv_cxx_have_std_libs=yes
25838else
25839 ac_cv_cxx_have_std_libs=no
25840fi
25841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842 ac_ext=cpp
25843ac_cpp='$CXXCPP $CPPFLAGS'
25844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25847
25848
25849fi
25850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25851$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25852if test "$ac_cv_cxx_have_std_libs" = yes; then
25853
25854$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25855
25856fi
25857
cristy3ed852e2009-09-05 21:47:34 +000025858
25859 OPENMP_CXXFLAGS=
25860 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025861if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025862 enableval=$enable_openmp;
25863fi
25864
25865 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25867$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025868if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 $as_echo_n "(cached) " >&6
25870else
cristy8b350f62009-11-15 23:12:43 +000025871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25872/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025873
25874#ifndef _OPENMP
25875 choke me
25876#endif
25877#include <omp.h>
25878int main () { return omp_get_num_threads (); }
25879
25880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025881if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025882 ac_cv_prog_cxx_openmp='none needed'
25883else
cristy8b350f62009-11-15 23:12:43 +000025884 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025885 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25886 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025887 ac_save_CXXFLAGS=$CXXFLAGS
25888 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025891
25892#ifndef _OPENMP
25893 choke me
25894#endif
25895#include <omp.h>
25896int main () { return omp_get_num_threads (); }
25897
25898_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025899if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025900 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025901fi
cristy8b350f62009-11-15 23:12:43 +000025902rm -f core conftest.err conftest.$ac_objext \
25903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025904 CXXFLAGS=$ac_save_CXXFLAGS
25905 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25906 break
25907 fi
25908 done
25909fi
cristy8b350f62009-11-15 23:12:43 +000025910rm -f core conftest.err conftest.$ac_objext \
25911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025912fi
cristy8b350f62009-11-15 23:12:43 +000025913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025914$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25915 case $ac_cv_prog_cxx_openmp in #(
25916 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025917 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025918 *)
cristy8b350f62009-11-15 23:12:43 +000025919 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025920 esac
25921 fi
25922
25923
25924 ac_ext=c
25925ac_cpp='$CPP $CPPFLAGS'
25926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25928ac_compiler_gnu=$ac_cv_c_compiler_gnu
25929
25930
cristy8b350f62009-11-15 23:12:43 +000025931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025932$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25933 if \
cristy964cb7f2010-04-25 23:18:00 +000025934 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025935 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025936 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025937 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025938 have_magick_plus_plus='yes'
25939 else
25940 have_magick_plus_plus='no (failed tests)'
25941 fi
cristyad38abe2012-12-23 23:03:21 +000025942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25943$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025944 LIBS="$OLIBS"
25945fi
cristy73bd4a52010-10-05 11:24:23 +000025946 if test "$have_magick_plus_plus" = 'yes'; then
25947 WITH_MAGICK_PLUS_PLUS_TRUE=
25948 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25949else
25950 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25951 WITH_MAGICK_PLUS_PLUS_FALSE=
25952fi
25953
cristy3ed852e2009-09-05 21:47:34 +000025954
25955# Only check for delegate libraries in subdirectories if requested.
25956if test "$enable_delegate_build" != 'no'; then
25957 # Check for delegate sub-directories and add -I & -L options as required.
25958 # This presumes that delegates are installed as detailed in the ImageMagick
25959 # README. If delegates are installed in a standard location where the
25960 # compiler will automatically find them then these options should not be
25961 # required.
25962
25963 #
25964 # Most delegates have includes in the same directory as the library, but not all...
25965 #
25966 # Includes
cristyc0884e92013-08-10 17:14:59 +000025967 for dir in bzlib fftw fitz 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 +000025968 if test -d "$builddir/$dir"; then
25969 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25970 else
25971 if test -d "$srcdirfull/$dir"; then
25972 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25973 fi
25974 fi
25975 done
25976
25977 # Libraries
cristyc0884e92013-08-10 17:14:59 +000025978 for dir in bzlib fitz 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 +000025979 if test -d "$builddir/$dir/.libs"; then
25980 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25981 else
25982 if test -d "$srcdirfull/$dir/.libs"; then
25983 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25984 fi
25985 fi
25986 if test -d "$builddir/$dir"; then
25987 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25988 else
25989 if test -d "$srcdirfull/$dir"; then
25990 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25991 fi
25992 fi
25993 done
25994fi
25995
25996# Assume that delegate headers reside under same directory as ImageMagick
25997# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000025998MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000025999
26000#
26001# Find the X11 RGB database
26002#
cristy8b350f62009-11-15 23:12:43 +000026003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026005if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 $as_echo_n "(cached) " >&6
26007else
26008 # Look for the header file in a standard set of common directories.
26009# Check X11 before X11Rn because it is often a symlink to the current release.
26010 for ac_dir in \
26011 /lib/usr/lib/X11 \
26012 /usr/X11/lib \
26013 /usr/X11R4/lib \
26014 /usr/X11R5/lib \
26015 /usr/X11R6/lib \
26016 /usr/X11R7/lib \
26017 /usr/X386/lib \
26018 /usr/XFree86/lib/X11 \
26019 /usr/athena/lib \
26020 /usr/lib \
26021 /usr/lib/X11 \
26022 /usr/lib/X11R4 \
26023 /usr/lib/X11R5 \
26024 /usr/lib/X11R6 \
26025 /usr/lib/X11R7 \
26026 /usr/local/X11/lib \
26027 /usr/local/X11R4/lib \
26028 /usr/local/X11R5/lib \
26029 /usr/local/X11R6/lib \
26030 /usr/local/lib \
26031 /usr/local/lib/X11 \
26032 /usr/local/lib/X11R4 \
26033 /usr/local/lib/X11R5 \
26034 /usr/local/lib/X11R6 \
26035 /usr/local/lib/X11R7 \
26036 /usr/local/x11r5/lib \
26037 /usr/lpp/Xamples/lib \
26038 /usr/openwin/lib \
26039 /usr/openwin/share/lib \
26040 /usr/unsupported/lib \
26041 /usr/x386/lib \
26042 ; do
26043 if test -f "$ac_dir/X11/rgb.txt"; then
26044 im_cv_x_configure="$ac_dir/X11/"
26045 break
26046 elif test -f "$ac_dir/rgb.txt"; then
26047 im_cv_x_configure="$ac_dir/"
26048 break
26049 fi
26050
26051 done
26052fi
cristy8b350f62009-11-15 23:12:43 +000026053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026054$as_echo "$im_cv_x_configure" >&6; }
26055X11_CONFIGURE_PATH="$im_cv_x_configure"
26056case "${build_os}" in
26057 mingw* )
26058 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26059 ;;
26060esac
26061
26062cat >>confdefs.h <<_ACEOF
26063#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26064_ACEOF
26065
26066
26067#
26068# Find OpenMP library
26069#
26070GOMP_LIBS=''
26071if test "$enable_openmp" != 'no'; then
26072 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026073 # Open64 (passes for GCC but uses different OpenMP implementation)
26074 if test "x$GOMP_LIBS" = x ; then
26075 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26077$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26078if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26079 $as_echo_n "(cached) " >&6
26080else
26081 ac_check_lib_save_LIBS=$LIBS
26082LIBS="-lopenmp $LIBS"
26083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084/* end confdefs.h. */
26085
26086/* Override any GCC internal prototype to avoid an error.
26087 Use char because int might match the return type of a GCC
26088 builtin and then its argument prototype would still apply. */
26089#ifdef __cplusplus
26090extern "C"
26091#endif
26092char omp_get_num_procs ();
26093int
26094main ()
26095{
26096return omp_get_num_procs ();
26097 ;
26098 return 0;
26099}
26100_ACEOF
26101if ac_fn_c_try_link "$LINENO"; then :
26102 ac_cv_lib_openmp_omp_get_num_procs=yes
26103else
26104 ac_cv_lib_openmp_omp_get_num_procs=no
26105fi
26106rm -f core conftest.err conftest.$ac_objext \
26107 conftest$ac_exeext conftest.$ac_ext
26108LIBS=$ac_check_lib_save_LIBS
26109fi
26110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26111$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26112if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26113 GOMP_LIBS="-lopenmp"
26114fi
26115
26116 fi
26117 fi
26118 # GCC
26119 if test "x$GOMP_LIBS" = x ; then
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026121$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026122if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026123 $as_echo_n "(cached) " >&6
26124else
26125 ac_check_lib_save_LIBS=$LIBS
26126LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026128/* end confdefs.h. */
26129
26130/* Override any GCC internal prototype to avoid an error.
26131 Use char because int might match the return type of a GCC
26132 builtin and then its argument prototype would still apply. */
26133#ifdef __cplusplus
26134extern "C"
26135#endif
26136char GOMP_parallel_start ();
26137int
26138main ()
26139{
26140return GOMP_parallel_start ();
26141 ;
26142 return 0;
26143}
26144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026145if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026146 ac_cv_lib_gomp_GOMP_parallel_start=yes
26147else
cristy8b350f62009-11-15 23:12:43 +000026148 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026149fi
cristy8b350f62009-11-15 23:12:43 +000026150rm -f core conftest.err conftest.$ac_objext \
26151 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026152LIBS=$ac_check_lib_save_LIBS
26153fi
cristy8b350f62009-11-15 23:12:43 +000026154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026155$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026156if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026157 GOMP_LIBS="-lgomp"
26158fi
cristy18307f12011-12-30 01:20:16 +000026159
26160 fi
cristy3ed852e2009-09-05 21:47:34 +000026161 else
cristy18307f12011-12-30 01:20:16 +000026162 # Sun CC
26163 if test "x$GOMP_LIBS" = x ; then
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026166if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 $as_echo_n "(cached) " >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172/* end confdefs.h. */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175 Use char because int might match the return type of a GCC
26176 builtin and then its argument prototype would still apply. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char sunw_mp_register_warn ();
26181int
26182main ()
26183{
26184return sunw_mp_register_warn ();
26185 ;
26186 return 0;
26187}
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy8b350f62009-11-15 23:12:43 +000026194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196LIBS=$ac_check_lib_save_LIBS
26197fi
cristy8b350f62009-11-15 23:12:43 +000026198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026200if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 GOMP_LIBS="-lmtsk"
26202fi
cristy18307f12011-12-30 01:20:16 +000026203
26204 fi
26205 # AIX xlc
26206 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026209if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026210 $as_echo_n "(cached) " >&6
26211else
26212 ac_check_lib_save_LIBS=$LIBS
26213LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026215/* end confdefs.h. */
26216
26217/* Override any GCC internal prototype to avoid an error.
26218 Use char because int might match the return type of a GCC
26219 builtin and then its argument prototype would still apply. */
26220#ifdef __cplusplus
26221extern "C"
26222#endif
26223char _xlsmpFlush ();
26224int
26225main ()
26226{
26227return _xlsmpFlush ();
26228 ;
26229 return 0;
26230}
26231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026233 ac_cv_lib_xlsmp__xlsmpFlush=yes
26234else
cristy8b350f62009-11-15 23:12:43 +000026235 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026236fi
cristy8b350f62009-11-15 23:12:43 +000026237rm -f core conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026239LIBS=$ac_check_lib_save_LIBS
26240fi
cristy8b350f62009-11-15 23:12:43 +000026241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026242$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026243if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026244 GOMP_LIBS="-lxlsmp"
26245fi
cristy18307f12011-12-30 01:20:16 +000026246
26247 fi
26248 # SGI IRIX 6.5 MIPSpro C/C++
26249 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026251$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026252if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026253 $as_echo_n "(cached) " >&6
26254else
26255 ac_check_lib_save_LIBS=$LIBS
26256LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026258/* end confdefs.h. */
26259
26260/* Override any GCC internal prototype to avoid an error.
26261 Use char because int might match the return type of a GCC
26262 builtin and then its argument prototype would still apply. */
26263#ifdef __cplusplus
26264extern "C"
26265#endif
26266char mp_destroy ();
26267int
26268main ()
26269{
26270return mp_destroy ();
26271 ;
26272 return 0;
26273}
26274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026276 ac_cv_lib_mp_mp_destroy=yes
26277else
cristy8b350f62009-11-15 23:12:43 +000026278 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026279fi
cristy8b350f62009-11-15 23:12:43 +000026280rm -f core conftest.err conftest.$ac_objext \
26281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026282LIBS=$ac_check_lib_save_LIBS
26283fi
cristy8b350f62009-11-15 23:12:43 +000026284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026285$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026286if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026287 GOMP_LIBS="-lmp"
26288fi
cristy18307f12011-12-30 01:20:16 +000026289
26290 fi
cristy3ed852e2009-09-05 21:47:34 +000026291 fi
26292 LIBS="$GOMP_LIBS $LIBS"
26293fi
26294
26295
cristy3ed852e2009-09-05 21:47:34 +000026296
26297
26298#
26299# Check for umem.
26300#
26301have_umem='no'
26302UMEM_LIBS=''
26303if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026305$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26307$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026308 failed=0
26309 passed=0
cristy8b350f62009-11-15 23:12:43 +000026310 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026311if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026312 passed=`expr $passed + 1`
26313else
26314 failed=`expr $failed + 1`
26315fi
26316
26317
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026320if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026321 $as_echo_n "(cached) " >&6
26322else
26323 ac_check_lib_save_LIBS=$LIBS
26324LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026326/* end confdefs.h. */
26327
26328/* Override any GCC internal prototype to avoid an error.
26329 Use char because int might match the return type of a GCC
26330 builtin and then its argument prototype would still apply. */
26331#ifdef __cplusplus
26332extern "C"
26333#endif
26334char umem_alloc ();
26335int
26336main ()
26337{
26338return umem_alloc ();
26339 ;
26340 return 0;
26341}
26342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026344 ac_cv_lib_umem_umem_alloc=yes
26345else
cristy8b350f62009-11-15 23:12:43 +000026346 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026347fi
cristy8b350f62009-11-15 23:12:43 +000026348rm -f core conftest.err conftest.$ac_objext \
26349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350LIBS=$ac_check_lib_save_LIBS
26351fi
cristy8b350f62009-11-15 23:12:43 +000026352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 passed=`expr $passed + 1`
26356else
26357 failed=`expr $failed + 1`
26358fi
26359
cristy8b350f62009-11-15 23:12:43 +000026360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026361$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026362if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026363 $as_echo_n "(cached) " >&6
26364else
26365 ac_check_lib_save_LIBS=$LIBS
26366LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026368/* end confdefs.h. */
26369
26370/* Override any GCC internal prototype to avoid an error.
26371 Use char because int might match the return type of a GCC
26372 builtin and then its argument prototype would still apply. */
26373#ifdef __cplusplus
26374extern "C"
26375#endif
26376char umem_free ();
26377int
26378main ()
26379{
26380return umem_free ();
26381 ;
26382 return 0;
26383}
26384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 ac_cv_lib_umem_umem_free=yes
26387else
cristy8b350f62009-11-15 23:12:43 +000026388 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026389fi
cristy8b350f62009-11-15 23:12:43 +000026390rm -f core conftest.err conftest.$ac_objext \
26391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026392LIBS=$ac_check_lib_save_LIBS
26393fi
cristy8b350f62009-11-15 23:12:43 +000026394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026395$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026396if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 passed=`expr $passed + 1`
26398else
26399 failed=`expr $failed + 1`
26400fi
26401
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26404 if test $passed -gt 0; then
26405 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26407$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026408 have_umem='no (failed tests)'
26409 else
26410 UMEM_LIBS='-lumem'
26411 LIBS="$UMEM_LIBS $LIBS"
26412
cristy8b350f62009-11-15 23:12:43 +000026413$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026414
cristyad38abe2012-12-23 23:03:21 +000026415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026417 have_umem='yes'
26418 fi
26419 else
cristyad38abe2012-12-23 23:03:21 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26421$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026422 fi
26423fi
cristy73bd4a52010-10-05 11:24:23 +000026424 if test "$have_umem" = 'yes'; then
26425 HasUMEM_TRUE=
26426 HasUMEM_FALSE='#'
26427else
26428 HasUMEM_TRUE='#'
26429 HasUMEM_FALSE=
26430fi
26431
cristy3ed852e2009-09-05 21:47:34 +000026432
26433
26434#
26435# Add support for ccmalloc memory debugging library if requested
26436#
26437have_ccmalloc='no'
26438CCMALLOC_LIBS=''
26439if test "$enable_ccmalloc" = 'yes'; then
26440 # Extract the first word of "ccmalloc", so it can be a program name with args.
26441set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026444if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 $as_echo_n "(cached) " >&6
26446else
26447 case $CCMALLOCDelegate in
26448 [\\/]* | ?:[\\/]*)
26449 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26450 ;;
26451 *)
26452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26453for as_dir in $PATH
26454do
26455 IFS=$as_save_IFS
26456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026459 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026461 break 2
26462 fi
26463done
cristy8b350f62009-11-15 23:12:43 +000026464 done
cristy3ed852e2009-09-05 21:47:34 +000026465IFS=$as_save_IFS
26466
26467 ;;
26468esac
26469fi
26470CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26471if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo "$CCMALLOCDelegate" >&6; }
26474else
cristy8b350f62009-11-15 23:12:43 +000026475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026476$as_echo "no" >&6; }
26477fi
26478
26479
26480 if test -n "$CCMALLOCDelegate"; then
26481 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26482 OLIBS="$LIBS"
26483 # Assume that gcc is used with ccmalloc.
26484 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026486$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026487if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026488 $as_echo_n "(cached) " >&6
26489else
26490 ac_check_lib_save_LIBS=$LIBS
26491LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026493/* end confdefs.h. */
26494
26495/* Override any GCC internal prototype to avoid an error.
26496 Use char because int might match the return type of a GCC
26497 builtin and then its argument prototype would still apply. */
26498#ifdef __cplusplus
26499extern "C"
26500#endif
26501char ccmalloc_malloc ();
26502int
26503main ()
26504{
26505return ccmalloc_malloc ();
26506 ;
26507 return 0;
26508}
26509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26512else
cristy8b350f62009-11-15 23:12:43 +000026513 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026514fi
cristy8b350f62009-11-15 23:12:43 +000026515rm -f core conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026517LIBS=$ac_check_lib_save_LIBS
26518fi
cristy8b350f62009-11-15 23:12:43 +000026519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026520$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026521if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026522 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26523fi
26524
26525 if test -n "$CCMALLOC_LIBS"; then
26526 LIBS="$OLIBS"
26527 LIBS="$LIBS $CCMALLOC_LIBS"
26528 have_ccmalloc='yes'
26529 else
26530 LIBS="$OLIBS"
26531 fi
26532 fi
26533fi
26534
26535#
cristy944e51f2013-04-16 18:45:02 +000026536# Add support for 'huge pages' if requested
26537#
26538if test "x$enable_hugepages" != "xno"; then :
26539
26540
26541$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26542
26543
26544fi
26545
26546#
cristy3ed852e2009-09-05 21:47:34 +000026547# Add support for efence memory debugging library if requested
26548#
26549if test "$enable_efence" = 'yes'; then
26550 EFENCE_LIBS='-lefence'
26551 LIBS="$EFENCE_LIBS $LIBS"
26552fi
26553
cristy3ed852e2009-09-05 21:47:34 +000026554
26555#
26556# Check for BZLIB
26557#
26558
26559
26560# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026561if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 withval=$with_bzlib; with_bzlib=$withval
26563else
26564 with_bzlib='yes'
26565fi
26566
26567
26568if test "$with_bzlib" != 'yes'; then
26569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26570fi
26571
26572have_bzlib='no'
26573if test "$with_bzlib" != 'no'; then
26574 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26576$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26580$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026581 failed=0
26582 passed=0
26583 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026584 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026585if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 passed=`expr $passed + 1`
26587else
26588 failed=`expr $failed + 1`
26589fi
26590
26591
cristy8b350f62009-11-15 23:12:43 +000026592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026593$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026594if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026595 $as_echo_n "(cached) " >&6
26596else
26597 ac_check_lib_save_LIBS=$LIBS
26598LIBS="-lbz2 $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 BZ2_bzDecompress ();
26609int
26610main ()
26611{
26612return BZ2_bzDecompress ();
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_bz2_BZ2_bzDecompress=yes
26619else
cristy8b350f62009-11-15 23:12:43 +000026620 ac_cv_lib_bz2_BZ2_bzDecompress=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_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026627$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026628if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 found_libbz=`expr $found_libbz + 1`
26630fi
26631
26632 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026635if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026636 $as_echo_n "(cached) " >&6
26637else
26638 ac_check_lib_save_LIBS=$LIBS
26639LIBS="-lbz2 $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 _imp__BZ2_decompress ();
26650int
26651main ()
26652{
26653return _imp__BZ2_decompress ();
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_bz2__imp__BZ2_decompress=yes
26660else
cristy8b350f62009-11-15 23:12:43 +000026661 ac_cv_lib_bz2__imp__BZ2_decompress=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_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026668$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026669if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026670 found_libbz=`expr $found_libbz + 1`
26671fi
26672
26673 fi
26674 if test $found_libbz -gt 0; then
26675 passed=`expr $passed + 1`
26676 else
26677 failed=`expr $failed + 1`
26678 fi
cristy8b350f62009-11-15 23:12:43 +000026679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026680$as_echo_n "checking if BZLIB package is complete... " >&6; }
26681 if test $passed -gt 0; then
26682 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26684$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026685 have_bzlib='no (failed tests)'
26686 else
26687 BZLIB_LIBS='-lbz2'
26688 LIBS="$BZLIB_LIBS $LIBS"
26689
cristy8b350f62009-11-15 23:12:43 +000026690$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026691
cristyad38abe2012-12-23 23:03:21 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26693$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026694 have_bzlib='yes'
26695 fi
26696 else
cristyad38abe2012-12-23 23:03:21 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26698$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026699 fi
26700fi
cristy73bd4a52010-10-05 11:24:23 +000026701 if test "$have_bzlib" = 'yes'; then
26702 BZLIB_DELEGATE_TRUE=
26703 BZLIB_DELEGATE_FALSE='#'
26704else
26705 BZLIB_DELEGATE_TRUE='#'
26706 BZLIB_DELEGATE_FALSE=
26707fi
26708
cristy3ed852e2009-09-05 21:47:34 +000026709
26710
26711#
26712# Find the X11 include and library directories.
26713#
26714IPC_LIBS=''
26715X11_LIBS=''
26716XEXT_LIBS=''
26717XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026719$as_echo_n "checking for X... " >&6; }
26720
26721
26722# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026723if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026724 withval=$with_x;
26725fi
26726
26727# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26728if test "x$with_x" = xno; then
26729 # The user explicitly disabled X.
26730 have_x=disabled
26731else
26732 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026733 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026734 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026735 $as_echo_n "(cached) " >&6
26736else
26737 # One or both of the vars are not set, and there is no cached value.
26738ac_x_includes=no ac_x_libraries=no
26739rm -f -r conftest.dir
26740if mkdir conftest.dir; then
26741 cd conftest.dir
26742 cat >Imakefile <<'_ACEOF'
26743incroot:
26744 @echo incroot='${INCROOT}'
26745usrlibdir:
26746 @echo usrlibdir='${USRLIBDIR}'
26747libdir:
26748 @echo libdir='${LIBDIR}'
26749_ACEOF
26750 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026751 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026752 for ac_var in incroot usrlibdir libdir; do
26753 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26754 done
26755 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26756 for ac_extension in a so sl dylib la dll; do
26757 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26758 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26759 ac_im_usrlibdir=$ac_im_libdir; break
26760 fi
26761 done
26762 # Screen out bogus values from the imake configuration. They are
26763 # bogus both because they are the default anyway, and because
26764 # using them would break gcc on systems where it needs fixed includes.
26765 case $ac_im_incroot in
26766 /usr/include) ac_x_includes= ;;
26767 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26768 esac
26769 case $ac_im_usrlibdir in
26770 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26771 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26772 esac
26773 fi
26774 cd ..
26775 rm -f -r conftest.dir
26776fi
26777
26778# Standard set of common directories for X headers.
26779# Check X11 before X11Rn because it is often a symlink to the current release.
26780ac_x_header_dirs='
26781/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026782/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026783/usr/X11R6/include
26784/usr/X11R5/include
26785/usr/X11R4/include
26786
26787/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026788/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026789/usr/include/X11R6
26790/usr/include/X11R5
26791/usr/include/X11R4
26792
26793/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026794/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026795/usr/local/X11R6/include
26796/usr/local/X11R5/include
26797/usr/local/X11R4/include
26798
26799/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026800/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026801/usr/local/include/X11R6
26802/usr/local/include/X11R5
26803/usr/local/include/X11R4
26804
26805/usr/X386/include
26806/usr/x386/include
26807/usr/XFree86/include/X11
26808
26809/usr/include
26810/usr/local/include
26811/usr/unsupported/include
26812/usr/athena/include
26813/usr/local/x11r5/include
26814/usr/lpp/Xamples/include
26815
26816/usr/openwin/include
26817/usr/openwin/share/include'
26818
26819if test "$ac_x_includes" = no; then
26820 # Guess where to find include files, by looking for Xlib.h.
26821 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026823/* end confdefs.h. */
26824#include <X11/Xlib.h>
26825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026826if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026827 # We can compile using X headers with no special include directory.
26828ac_x_includes=
26829else
cristyc7083c12009-10-14 03:16:55 +000026830 for ac_dir in $ac_x_header_dirs; do
26831 if test -r "$ac_dir/X11/Xlib.h"; then
26832 ac_x_includes=$ac_dir
26833 break
26834 fi
26835done
26836fi
cristyda16f162011-02-19 23:52:17 +000026837rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026838fi # $ac_x_includes = no
26839
26840if test "$ac_x_libraries" = no; then
26841 # Check for the libraries.
26842 # See if we find them without any special options.
26843 # Don't add to $LIBS permanently.
26844 ac_save_LIBS=$LIBS
26845 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026847/* end confdefs.h. */
26848#include <X11/Xlib.h>
26849int
26850main ()
26851{
26852XrmInitialize ()
26853 ;
26854 return 0;
26855}
26856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026857if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026858 LIBS=$ac_save_LIBS
26859# We can link X programs with no special library path.
26860ac_x_libraries=
26861else
cristy8b350f62009-11-15 23:12:43 +000026862 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026863for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26864do
26865 # Don't even attempt the hair of trying to link an X program!
26866 for ac_extension in a so sl dylib la dll; do
26867 if test -r "$ac_dir/libX11.$ac_extension"; then
26868 ac_x_libraries=$ac_dir
26869 break 2
26870 fi
26871 done
26872done
26873fi
cristy8b350f62009-11-15 23:12:43 +000026874rm -f core conftest.err conftest.$ac_objext \
26875 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026876fi # $ac_x_libraries = no
26877
26878case $ac_x_includes,$ac_x_libraries in #(
26879 no,* | *,no | *\'*)
26880 # Didn't find X, or a directory has "'" in its name.
26881 ac_cv_have_x="have_x=no";; #(
26882 *)
26883 # Record where we found X for the cache.
26884 ac_cv_have_x="have_x=yes\
26885 ac_x_includes='$ac_x_includes'\
26886 ac_x_libraries='$ac_x_libraries'"
26887esac
26888fi
26889;; #(
26890 *) have_x=yes;;
26891 esac
26892 eval "$ac_cv_have_x"
26893fi # $with_x != no
26894
26895if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026897$as_echo "$have_x" >&6; }
26898 no_x=yes
26899else
26900 # If each of the values was on the command line, it overrides each guess.
26901 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26902 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26903 # Update the cache value to reflect the command line values.
26904 ac_cv_have_x="have_x=yes\
26905 ac_x_includes='$x_includes'\
26906 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026908$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26909fi
26910
cristy3ed852e2009-09-05 21:47:34 +000026911if test "$no_x" = yes; then
26912 # Not all programs may use this symbol, but it does not hurt to define it.
26913
cristy8b350f62009-11-15 23:12:43 +000026914$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026915
26916 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26917else
26918 if test -n "$x_includes"; then
26919 X_CFLAGS="$X_CFLAGS -I$x_includes"
26920 fi
26921
26922 # It would also be nice to do this for all -L options, not just this one.
26923 if test -n "$x_libraries"; then
26924 X_LIBS="$X_LIBS -L$x_libraries"
26925 # For Solaris; some versions of Sun CC require a space after -R and
26926 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026928$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26929 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26930 ac_xsave_c_werror_flag=$ac_c_werror_flag
26931 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933/* end confdefs.h. */
26934
26935int
26936main ()
26937{
26938
26939 ;
26940 return 0;
26941}
26942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026943if ac_fn_c_try_link "$LINENO"; then :
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026945$as_echo "no" >&6; }
26946 X_LIBS="$X_LIBS -R$x_libraries"
26947else
cristy8b350f62009-11-15 23:12:43 +000026948 LIBS="$ac_xsave_LIBS -R $x_libraries"
26949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026950/* end confdefs.h. */
26951
26952int
26953main ()
26954{
26955
26956 ;
26957 return 0;
26958}
26959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026960if ac_fn_c_try_link "$LINENO"; then :
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026962$as_echo "yes" >&6; }
26963 X_LIBS="$X_LIBS -R $x_libraries"
26964else
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo "neither works" >&6; }
26967fi
cristy8b350f62009-11-15 23:12:43 +000026968rm -f core conftest.err conftest.$ac_objext \
26969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026970fi
cristy8b350f62009-11-15 23:12:43 +000026971rm -f core conftest.err conftest.$ac_objext \
26972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026973 ac_c_werror_flag=$ac_xsave_c_werror_flag
26974 LIBS=$ac_xsave_LIBS
26975 fi
26976
26977 # Check for system-dependent libraries X programs must link with.
26978 # Do this before checking for the system-independent R6 libraries
26979 # (-lICE), since we may need -lsocket or whatever for X linking.
26980
26981 if test "$ISC" = yes; then
26982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26983 else
26984 # Martyn Johnson says this is needed for Ultrix, if the X
26985 # libraries were built with DECnet support. And Karl Berry says
26986 # the Alpha needs dnet_stub (dnet does not exist).
26987 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026989/* end confdefs.h. */
26990
26991/* Override any GCC internal prototype to avoid an error.
26992 Use char because int might match the return type of a GCC
26993 builtin and then its argument prototype would still apply. */
26994#ifdef __cplusplus
26995extern "C"
26996#endif
26997char XOpenDisplay ();
26998int
26999main ()
27000{
27001return XOpenDisplay ();
27002 ;
27003 return 0;
27004}
27005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027007
cristy8b350f62009-11-15 23:12:43 +000027008else
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027011if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027012 $as_echo_n "(cached) " >&6
27013else
27014 ac_check_lib_save_LIBS=$LIBS
27015LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027017/* end confdefs.h. */
27018
27019/* Override any GCC internal prototype to avoid an error.
27020 Use char because int might match the return type of a GCC
27021 builtin and then its argument prototype would still apply. */
27022#ifdef __cplusplus
27023extern "C"
27024#endif
27025char dnet_ntoa ();
27026int
27027main ()
27028{
27029return dnet_ntoa ();
27030 ;
27031 return 0;
27032}
27033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027035 ac_cv_lib_dnet_dnet_ntoa=yes
27036else
cristy8b350f62009-11-15 23:12:43 +000027037 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027038fi
cristy8b350f62009-11-15 23:12:43 +000027039rm -f core conftest.err conftest.$ac_objext \
27040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027041LIBS=$ac_check_lib_save_LIBS
27042fi
cristy8b350f62009-11-15 23:12:43 +000027043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027044$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027045if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027046 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27047fi
27048
27049 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027052if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 $as_echo_n "(cached) " >&6
27054else
27055 ac_check_lib_save_LIBS=$LIBS
27056LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058/* end confdefs.h. */
27059
27060/* Override any GCC internal prototype to avoid an error.
27061 Use char because int might match the return type of a GCC
27062 builtin and then its argument prototype would still apply. */
27063#ifdef __cplusplus
27064extern "C"
27065#endif
27066char dnet_ntoa ();
27067int
27068main ()
27069{
27070return dnet_ntoa ();
27071 ;
27072 return 0;
27073}
27074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027076 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27077else
cristy8b350f62009-11-15 23:12:43 +000027078 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027079fi
cristy8b350f62009-11-15 23:12:43 +000027080rm -f core conftest.err conftest.$ac_objext \
27081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027082LIBS=$ac_check_lib_save_LIBS
27083fi
cristy8b350f62009-11-15 23:12:43 +000027084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027086if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27088fi
27089
27090 fi
27091fi
cristy8b350f62009-11-15 23:12:43 +000027092rm -f core conftest.err conftest.$ac_objext \
27093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027094 LIBS="$ac_xsave_LIBS"
27095
27096 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27097 # to get the SysV transport functions.
27098 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27099 # needs -lnsl.
27100 # The nsl library prevents programs from opening the X display
27101 # on Irix 5.2, according to T.E. Dickey.
27102 # The functions gethostbyname, getservbyname, and inet_addr are
27103 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027104 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027105if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027106
cristy3ed852e2009-09-05 21:47:34 +000027107fi
27108
cristy3ed852e2009-09-05 21:47:34 +000027109 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027112if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027113 $as_echo_n "(cached) " >&6
27114else
27115 ac_check_lib_save_LIBS=$LIBS
27116LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027118/* end confdefs.h. */
27119
27120/* Override any GCC internal prototype to avoid an error.
27121 Use char because int might match the return type of a GCC
27122 builtin and then its argument prototype would still apply. */
27123#ifdef __cplusplus
27124extern "C"
27125#endif
27126char gethostbyname ();
27127int
27128main ()
27129{
27130return gethostbyname ();
27131 ;
27132 return 0;
27133}
27134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027136 ac_cv_lib_nsl_gethostbyname=yes
27137else
cristy8b350f62009-11-15 23:12:43 +000027138 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027139fi
cristy8b350f62009-11-15 23:12:43 +000027140rm -f core conftest.err conftest.$ac_objext \
27141 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027142LIBS=$ac_check_lib_save_LIBS
27143fi
cristy8b350f62009-11-15 23:12:43 +000027144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027146if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027147 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27148fi
27149
27150 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027153if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027154 $as_echo_n "(cached) " >&6
27155else
27156 ac_check_lib_save_LIBS=$LIBS
27157LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027159/* end confdefs.h. */
27160
27161/* Override any GCC internal prototype to avoid an error.
27162 Use char because int might match the return type of a GCC
27163 builtin and then its argument prototype would still apply. */
27164#ifdef __cplusplus
27165extern "C"
27166#endif
27167char gethostbyname ();
27168int
27169main ()
27170{
27171return gethostbyname ();
27172 ;
27173 return 0;
27174}
27175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 ac_cv_lib_bsd_gethostbyname=yes
27178else
cristy8b350f62009-11-15 23:12:43 +000027179 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027180fi
cristy8b350f62009-11-15 23:12:43 +000027181rm -f core conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027183LIBS=$ac_check_lib_save_LIBS
27184fi
cristy8b350f62009-11-15 23:12:43 +000027185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027186$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027187if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027188 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27189fi
27190
27191 fi
27192 fi
27193
27194 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27195 # socket/setsockopt and other routines are undefined under SCO ODT
27196 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27197 # on later versions), says Simon Leinen: it contains gethostby*
27198 # variants that don't use the name server (or something). -lsocket
27199 # must be given before -lnsl if both are needed. We assume that
27200 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027201 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027202if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203
cristy3ed852e2009-09-05 21:47:34 +000027204fi
27205
cristy3ed852e2009-09-05 21:47:34 +000027206 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027209if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027210 $as_echo_n "(cached) " >&6
27211else
27212 ac_check_lib_save_LIBS=$LIBS
27213LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027215/* end confdefs.h. */
27216
27217/* Override any GCC internal prototype to avoid an error.
27218 Use char because int might match the return type of a GCC
27219 builtin and then its argument prototype would still apply. */
27220#ifdef __cplusplus
27221extern "C"
27222#endif
27223char connect ();
27224int
27225main ()
27226{
27227return connect ();
27228 ;
27229 return 0;
27230}
27231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027233 ac_cv_lib_socket_connect=yes
27234else
cristy8b350f62009-11-15 23:12:43 +000027235 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027236fi
cristy8b350f62009-11-15 23:12:43 +000027237rm -f core conftest.err conftest.$ac_objext \
27238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027239LIBS=$ac_check_lib_save_LIBS
27240fi
cristy8b350f62009-11-15 23:12:43 +000027241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027242$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027243if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27245fi
27246
27247 fi
27248
27249 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027250 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027251if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027252
cristy3ed852e2009-09-05 21:47:34 +000027253fi
27254
cristy3ed852e2009-09-05 21:47:34 +000027255 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027258if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 $as_echo_n "(cached) " >&6
27260else
27261 ac_check_lib_save_LIBS=$LIBS
27262LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264/* end confdefs.h. */
27265
27266/* Override any GCC internal prototype to avoid an error.
27267 Use char because int might match the return type of a GCC
27268 builtin and then its argument prototype would still apply. */
27269#ifdef __cplusplus
27270extern "C"
27271#endif
27272char remove ();
27273int
27274main ()
27275{
27276return remove ();
27277 ;
27278 return 0;
27279}
27280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 ac_cv_lib_posix_remove=yes
27283else
cristy8b350f62009-11-15 23:12:43 +000027284 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027285fi
cristy8b350f62009-11-15 23:12:43 +000027286rm -f core conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027288LIBS=$ac_check_lib_save_LIBS
27289fi
cristy8b350f62009-11-15 23:12:43 +000027290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027292if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27294fi
27295
27296 fi
27297
27298 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027299 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027300if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027301
cristy3ed852e2009-09-05 21:47:34 +000027302fi
27303
cristy3ed852e2009-09-05 21:47:34 +000027304 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027306$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027307if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027308 $as_echo_n "(cached) " >&6
27309else
27310 ac_check_lib_save_LIBS=$LIBS
27311LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027313/* end confdefs.h. */
27314
27315/* Override any GCC internal prototype to avoid an error.
27316 Use char because int might match the return type of a GCC
27317 builtin and then its argument prototype would still apply. */
27318#ifdef __cplusplus
27319extern "C"
27320#endif
27321char shmat ();
27322int
27323main ()
27324{
27325return shmat ();
27326 ;
27327 return 0;
27328}
27329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027330if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027331 ac_cv_lib_ipc_shmat=yes
27332else
cristy8b350f62009-11-15 23:12:43 +000027333 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027334fi
cristy8b350f62009-11-15 23:12:43 +000027335rm -f core conftest.err conftest.$ac_objext \
27336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027337LIBS=$ac_check_lib_save_LIBS
27338fi
cristy8b350f62009-11-15 23:12:43 +000027339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027340$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027341if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27343fi
27344
27345 fi
27346 fi
27347
27348 # Check for libraries that X11R6 Xt/Xaw programs need.
27349 ac_save_LDFLAGS=$LDFLAGS
27350 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27351 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27352 # check for ICE first), but we must link in the order -lSM -lICE or
27353 # we get undefined symbols. So assume we have SM if we have ICE.
27354 # These have to be linked with before -lX11, unlike the other
27355 # libraries we check for below, so use a different variable.
27356 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027359if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 $as_echo_n "(cached) " >&6
27361else
27362 ac_check_lib_save_LIBS=$LIBS
27363LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027365/* end confdefs.h. */
27366
27367/* Override any GCC internal prototype to avoid an error.
27368 Use char because int might match the return type of a GCC
27369 builtin and then its argument prototype would still apply. */
27370#ifdef __cplusplus
27371extern "C"
27372#endif
27373char IceConnectionNumber ();
27374int
27375main ()
27376{
27377return IceConnectionNumber ();
27378 ;
27379 return 0;
27380}
27381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 ac_cv_lib_ICE_IceConnectionNumber=yes
27384else
cristy8b350f62009-11-15 23:12:43 +000027385 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027386fi
cristy8b350f62009-11-15 23:12:43 +000027387rm -f core conftest.err conftest.$ac_objext \
27388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389LIBS=$ac_check_lib_save_LIBS
27390fi
cristy8b350f62009-11-15 23:12:43 +000027391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027392$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027393if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027394 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27395fi
27396
27397 LDFLAGS=$ac_save_LDFLAGS
27398
27399fi
27400
27401if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27403$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27407$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027408 LDFLAGS="$LDFLAGS $X_LIBS"
27409 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27410 LIBS="$X11_LIBS $LIBS"
27411 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27412
27413
cristy8b350f62009-11-15 23:12:43 +000027414$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027415
27416 #
27417 # Check for X11 shared memory extension
27418 #
27419 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027420 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027421if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 have_shmctl='yes'
27423fi
27424
27425 if test "$have_shmctl" != 'yes'; then
27426 PERSIST_LIBS=$LIBS
27427 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027429/* end confdefs.h. */
27430
27431/* Override any GCC internal prototype to avoid an error.
27432 Use char because int might match the return type of a GCC
27433 builtin and then its argument prototype would still apply. */
27434#ifdef __cplusplus
27435extern "C"
27436#endif
27437char shmctl ();
27438int
27439main ()
27440{
27441return shmctl ();
27442 ;
27443 return 0;
27444}
27445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027446if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027447 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027448fi
cristy8b350f62009-11-15 23:12:43 +000027449rm -f core conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027451 LIBS=$PERSIST_LIBS
27452 fi
27453
27454 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027456$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027457if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 $as_echo_n "(cached) " >&6
27459else
27460 ac_check_lib_save_LIBS=$LIBS
27461LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027463/* end confdefs.h. */
27464
27465/* Override any GCC internal prototype to avoid an error.
27466 Use char because int might match the return type of a GCC
27467 builtin and then its argument prototype would still apply. */
27468#ifdef __cplusplus
27469extern "C"
27470#endif
27471char XShmAttach ();
27472int
27473main ()
27474{
27475return XShmAttach ();
27476 ;
27477 return 0;
27478}
27479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 ac_cv_lib_Xext_XShmAttach=yes
27482else
cristy8b350f62009-11-15 23:12:43 +000027483 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027484fi
cristy8b350f62009-11-15 23:12:43 +000027485rm -f core conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027487LIBS=$ac_check_lib_save_LIBS
27488fi
cristy8b350f62009-11-15 23:12:43 +000027489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027491if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027492 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027493$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027494
27495fi
27496
27497 fi
27498
27499 #
27500 # Check for X11 shape extension
27501 #
cristy8b350f62009-11-15 23:12:43 +000027502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027503$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027504if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 $as_echo_n "(cached) " >&6
27506else
27507 ac_check_lib_save_LIBS=$LIBS
27508LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027510/* end confdefs.h. */
27511
27512/* Override any GCC internal prototype to avoid an error.
27513 Use char because int might match the return type of a GCC
27514 builtin and then its argument prototype would still apply. */
27515#ifdef __cplusplus
27516extern "C"
27517#endif
27518char XShapeCombineMask ();
27519int
27520main ()
27521{
27522return XShapeCombineMask ();
27523 ;
27524 return 0;
27525}
27526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 ac_cv_lib_Xext_XShapeCombineMask=yes
27529else
cristy8b350f62009-11-15 23:12:43 +000027530 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027531fi
cristy8b350f62009-11-15 23:12:43 +000027532rm -f core conftest.err conftest.$ac_objext \
27533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027534LIBS=$ac_check_lib_save_LIBS
27535fi
cristy8b350f62009-11-15 23:12:43 +000027536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027538if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027539 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027540$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027541
27542fi
27543
cristy8b350f62009-11-15 23:12:43 +000027544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027545$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027546if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027547 $as_echo_n "(cached) " >&6
27548else
27549 ac_check_lib_save_LIBS=$LIBS
27550LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027552/* end confdefs.h. */
27553
27554/* Override any GCC internal prototype to avoid an error.
27555 Use char because int might match the return type of a GCC
27556 builtin and then its argument prototype would still apply. */
27557#ifdef __cplusplus
27558extern "C"
27559#endif
27560char XtSetEventDispatcher ();
27561int
27562main ()
27563{
27564return XtSetEventDispatcher ();
27565 ;
27566 return 0;
27567}
27568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027570 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27571else
cristy8b350f62009-11-15 23:12:43 +000027572 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027573fi
cristy8b350f62009-11-15 23:12:43 +000027574rm -f core conftest.err conftest.$ac_objext \
27575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027576LIBS=$ac_check_lib_save_LIBS
27577fi
cristy8b350f62009-11-15 23:12:43 +000027578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027580if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 XT_LIBS='-lXt'
27582fi
27583
27584 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27585fi
27586if test "$no_x" != 'yes'; then
27587 have_x='yes'
27588else
27589 have_x='no'
27590fi
cristy73bd4a52010-10-05 11:24:23 +000027591 if test "$have_x" = 'yes'; then
27592 X11_DELEGATE_TRUE=
27593 X11_DELEGATE_FALSE='#'
27594else
27595 X11_DELEGATE_TRUE='#'
27596 X11_DELEGATE_FALSE=
27597fi
27598
cristy3ed852e2009-09-05 21:47:34 +000027599
27600
27601
27602
27603#
27604# Check for ZLIB
27605#
27606
27607# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027608if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027609 withval=$with_zlib; with_zlib=$withval
27610else
27611 with_zlib='yes'
27612fi
27613
27614
27615if test "$with_zlib" != 'yes'; then
27616 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27617fi
27618
27619have_zlib='no'
27620ZLIB_LIBS=''
27621if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27623$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27627$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027628 ZLIB_LIBS=''
27629 failed=0
27630 passed=0
cristy8b350f62009-11-15 23:12:43 +000027631 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027632if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 passed=`expr $passed + 1`
27634else
27635 failed=`expr $failed + 1`
27636fi
27637
27638
cristy8b350f62009-11-15 23:12:43 +000027639 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027640if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 passed=`expr $passed + 1`
27642else
27643 failed=`expr $failed + 1`
27644fi
27645
27646
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027649if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 $as_echo_n "(cached) " >&6
27651else
27652 ac_check_lib_save_LIBS=$LIBS
27653LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655/* end confdefs.h. */
27656
27657/* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27660#ifdef __cplusplus
27661extern "C"
27662#endif
27663char compress ();
27664int
27665main ()
27666{
27667return compress ();
27668 ;
27669 return 0;
27670}
27671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 ac_cv_lib_z_compress=yes
27674else
cristy8b350f62009-11-15 23:12:43 +000027675 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027676fi
cristy8b350f62009-11-15 23:12:43 +000027677rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027679LIBS=$ac_check_lib_save_LIBS
27680fi
cristy8b350f62009-11-15 23:12:43 +000027681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027683if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 passed=`expr $passed + 1`
27685else
27686 failed=`expr $failed + 1`
27687fi
27688
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027691if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 $as_echo_n "(cached) " >&6
27693else
27694 ac_check_lib_save_LIBS=$LIBS
27695LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027697/* end confdefs.h. */
27698
27699/* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27702#ifdef __cplusplus
27703extern "C"
27704#endif
27705char uncompress ();
27706int
27707main ()
27708{
27709return uncompress ();
27710 ;
27711 return 0;
27712}
27713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 ac_cv_lib_z_uncompress=yes
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027718fi
cristy8b350f62009-11-15 23:12:43 +000027719rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027721LIBS=$ac_check_lib_save_LIBS
27722fi
cristy8b350f62009-11-15 23:12:43 +000027723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027725if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 passed=`expr $passed + 1`
27727else
27728 failed=`expr $failed + 1`
27729fi
27730
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char deflate ();
27748int
27749main ()
27750{
27751return deflate ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_z_deflate=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char inflate ();
27790int
27791main ()
27792{
27793return inflate ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_z_inflate=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 passed=`expr $passed + 1`
27811else
27812 failed=`expr $failed + 1`
27813fi
27814
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027817if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 $as_echo_n "(cached) " >&6
27819else
27820 ac_check_lib_save_LIBS=$LIBS
27821LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823/* end confdefs.h. */
27824
27825/* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27828#ifdef __cplusplus
27829extern "C"
27830#endif
27831char gzseek ();
27832int
27833main ()
27834{
27835return gzseek ();
27836 ;
27837 return 0;
27838}
27839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 ac_cv_lib_z_gzseek=yes
27842else
cristy8b350f62009-11-15 23:12:43 +000027843 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027844fi
cristy8b350f62009-11-15 23:12:43 +000027845rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027847LIBS=$ac_check_lib_save_LIBS
27848fi
cristy8b350f62009-11-15 23:12:43 +000027849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027851if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 passed=`expr $passed + 1`
27853else
27854 failed=`expr $failed + 1`
27855fi
27856
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027859if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027860 $as_echo_n "(cached) " >&6
27861else
27862 ac_check_lib_save_LIBS=$LIBS
27863LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027865/* end confdefs.h. */
27866
27867/* Override any GCC internal prototype to avoid an error.
27868 Use char because int might match the return type of a GCC
27869 builtin and then its argument prototype would still apply. */
27870#ifdef __cplusplus
27871extern "C"
27872#endif
27873char gztell ();
27874int
27875main ()
27876{
27877return gztell ();
27878 ;
27879 return 0;
27880}
27881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027882if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027883 ac_cv_lib_z_gztell=yes
27884else
cristy8b350f62009-11-15 23:12:43 +000027885 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027886fi
cristy8b350f62009-11-15 23:12:43 +000027887rm -f core conftest.err conftest.$ac_objext \
27888 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027889LIBS=$ac_check_lib_save_LIBS
27890fi
cristy8b350f62009-11-15 23:12:43 +000027891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027893if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027894 passed=`expr $passed + 1`
27895else
27896 failed=`expr $failed + 1`
27897fi
27898
cristy8b350f62009-11-15 23:12:43 +000027899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027900$as_echo_n "checking if ZLIB package is complete... " >&6; }
27901 if test $passed -gt 0; then
27902 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27904$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027905 have_zlib='no (failed tests)'
27906 else
27907 ZLIB_LIBS='-lz'
27908 LIBS="$ZLIB_LIBS $LIBS"
27909
cristy8b350f62009-11-15 23:12:43 +000027910$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027911
cristyad38abe2012-12-23 23:03:21 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27913$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027914 have_zlib='yes'
27915 fi
27916 else
cristyad38abe2012-12-23 23:03:21 +000027917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27918$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027919 fi
27920fi
cristy73bd4a52010-10-05 11:24:23 +000027921 if test "$have_zlib" = 'yes'; then
27922 ZLIB_DELEGATE_TRUE=
27923 ZLIB_DELEGATE_FALSE='#'
27924else
27925 ZLIB_DELEGATE_TRUE='#'
27926 ZLIB_DELEGATE_FALSE=
27927fi
27928
cristy3ed852e2009-09-05 21:47:34 +000027929
27930
cristy5eef09f2012-10-16 12:08:28 +000027931# whether modules are built or not.
27932with_ltdl='yes'
27933have_ltdl='no'
27934LTDL_LIBS=''
27935if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27937$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27939$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27941$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000027942 failed=0
27943 passed=0
27944 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27945if test "x$ac_cv_header_ltdl_h" = xyes; then :
27946 passed=`expr $passed + 1`
27947else
27948 failed=`expr $failed + 1`
27949fi
27950
27951
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27953$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27954if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27955 $as_echo_n "(cached) " >&6
27956else
27957 ac_check_lib_save_LIBS=$LIBS
27958LIBS="-lltdl $LIBS"
27959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960/* end confdefs.h. */
27961
27962/* Override any GCC internal prototype to avoid an error.
27963 Use char because int might match the return type of a GCC
27964 builtin and then its argument prototype would still apply. */
27965#ifdef __cplusplus
27966extern "C"
27967#endif
27968char lt_dlinit ();
27969int
27970main ()
27971{
27972return lt_dlinit ();
27973 ;
27974 return 0;
27975}
27976_ACEOF
27977if ac_fn_c_try_link "$LINENO"; then :
27978 ac_cv_lib_ltdl_lt_dlinit=yes
27979else
27980 ac_cv_lib_ltdl_lt_dlinit=no
27981fi
27982rm -f core conftest.err conftest.$ac_objext \
27983 conftest$ac_exeext conftest.$ac_ext
27984LIBS=$ac_check_lib_save_LIBS
27985fi
27986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27987$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27988if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27989 passed=`expr $passed + 1`
27990else
27991 failed=`expr $failed + 1`
27992fi
27993
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27995$as_echo_n "checking if libltdl package is complete... " >&6; }
27996 if test $passed -gt 0 ; then
27997 if test $failed -gt 0 ; then
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27999$as_echo "no -- some components failed test" >&6; }
28000 have_ltdl='no (failed tests)'
28001 else
28002 LTDL_LIBS='-lltdl'
28003 LIBS="$LTDL_LIBS $LIBS"
28004
28005$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28006
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28008$as_echo "yes" >&6; }
28009 have_ltdl='yes'
28010 fi
28011 else
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28013$as_echo "no" >&6; }
28014 fi
cristyaf4cbf32012-10-16 23:47:41 +000028015 if test "$have_ltdl" != 'yes' ; then
28016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28018as_fn_error 1 "libltdl is required for modules build
28019See \`config.log' for more details" "$LINENO" 5; }
28020 fi
cristy5eef09f2012-10-16 12:08:28 +000028021fi
28022 if test "$have_ltdl" != 'no'; then
28023 WITH_LTDL_TRUE=
28024 WITH_LTDL_FALSE='#'
28025else
28026 WITH_LTDL_TRUE='#'
28027 WITH_LTDL_FALSE=
28028fi
28029
28030
cristy3ed852e2009-09-05 21:47:34 +000028031#
28032# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28033#
28034LIB_DL=''
28035if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028038if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 $as_echo_n "(cached) " >&6
28040else
28041 ac_check_lib_save_LIBS=$LIBS
28042LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028044/* end confdefs.h. */
28045
28046/* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28049#ifdef __cplusplus
28050extern "C"
28051#endif
28052char dlopen ();
28053int
28054main ()
28055{
28056return dlopen ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 ac_cv_lib_dl_dlopen=yes
28063else
cristy8b350f62009-11-15 23:12:43 +000028064 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028065fi
cristy8b350f62009-11-15 23:12:43 +000028066rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028068LIBS=$ac_check_lib_save_LIBS
28069fi
cristy8b350f62009-11-15 23:12:43 +000028070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028071$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028072if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028073 LIB_DL='-ldl'
28074fi
28075
28076 LIBS="$LIB_DL $LIBS"
28077fi
28078
28079
28080
28081#
28082# Check for Autotrace delegate library.
28083#
28084
28085# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028086if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028087 withval=$with_autotrace; with_autotrace=$withval
28088else
28089 with_autotrace='no'
28090fi
28091
28092
28093if test "$with_autotrace" != 'yes'; then
28094 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28095fi
28096
28097have_autotrace='no'
28098AUTOTRACE_CFLAGS=""
28099AUTOTRACE_LIBS=""
28100AUTOTRACE_PKG=""
28101if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28103$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028104
28105pkg_failed=no
28106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28107$as_echo_n "checking for AUTOTRACE... " >&6; }
28108
28109if test -n "$AUTOTRACE_CFLAGS"; then
28110 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28111 elif test -n "$PKG_CONFIG"; then
28112 if test -n "$PKG_CONFIG" && \
28113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28114 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28115 ac_status=$?
28116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28117 test $ac_status = 0; }; then
28118 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28119else
28120 pkg_failed=yes
28121fi
28122 else
28123 pkg_failed=untried
28124fi
28125if test -n "$AUTOTRACE_LIBS"; then
28126 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28127 elif test -n "$PKG_CONFIG"; then
28128 if test -n "$PKG_CONFIG" && \
28129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28130 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28131 ac_status=$?
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; then
28134 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28135else
28136 pkg_failed=yes
28137fi
28138 else
28139 pkg_failed=untried
28140fi
28141
28142
28143
28144if test $pkg_failed = yes; then
28145
28146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28147 _pkg_short_errors_supported=yes
28148else
28149 _pkg_short_errors_supported=no
28150fi
28151 if test $_pkg_short_errors_supported = yes; then
28152 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28153 else
28154 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28155 fi
28156 # Put the nasty error message in config.log where it belongs
28157 echo "$AUTOTRACE_PKG_ERRORS" >&5
28158
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28160$as_echo "no" >&6; }
28161 have_autotrace=no
28162elif test $pkg_failed = untried; then
28163 have_autotrace=no
28164else
28165 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28166 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28168$as_echo "yes" >&6; }
28169 have_autotrace=yes
28170fi
cristyad38abe2012-12-23 23:03:21 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28172$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028173fi
28174
28175if test "$have_autotrace" = 'yes'; then
28176 failed=0
28177
cristy8b350f62009-11-15 23:12:43 +000028178$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028179
cristyc6722092012-10-14 00:19:31 +000028180 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028181 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028182 fi
28183fi
28184
cristy73bd4a52010-10-05 11:24:23 +000028185 if test "$have_autotrace" = 'yes'; then
28186 AUTOTRACE_DELEGATE_TRUE=
28187 AUTOTRACE_DELEGATE_FALSE='#'
28188else
28189 AUTOTRACE_DELEGATE_TRUE='#'
28190 AUTOTRACE_DELEGATE_FALSE=
28191fi
28192
cristy3ed852e2009-09-05 21:47:34 +000028193
28194
28195
28196
28197#
28198# Check for Display Postscript delegate library.
28199#
28200
28201# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028202if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028203 withval=$with_dps; with_dps=$withval
28204else
28205 with_dps='yes'
28206fi
28207
28208
28209if test "$with_dps" != 'yes'; then
28210 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28211fi
28212
28213have_dps='no'
28214DPS_LIBS=''
28215if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28217$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028219$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28221$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028222 failed=0
28223 passed=0
28224 PERSIST_CPPFLAGS="$CPPFLAGS"
28225 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028226 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 +000028227if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028228 passed=`expr $passed + 1`
28229else
28230 failed=`expr $failed + 1`
28231fi
28232
28233
28234 # DPS issues:
28235 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28236 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28237 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28238 # ImageMagick itself doesn't use -lXt.
28239 have_libdps='no'
28240 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028242$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028243if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028244 $as_echo_n "(cached) " >&6
28245else
28246 ac_check_lib_save_LIBS=$LIBS
28247LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028249/* end confdefs.h. */
28250
28251/* Override any GCC internal prototype to avoid an error.
28252 Use char because int might match the return type of a GCC
28253 builtin and then its argument prototype would still apply. */
28254#ifdef __cplusplus
28255extern "C"
28256#endif
28257char DPSInitialize ();
28258int
28259main ()
28260{
28261return DPSInitialize ();
28262 ;
28263 return 0;
28264}
28265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028266if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028267 ac_cv_lib_dps_DPSInitialize=yes
28268else
cristy8b350f62009-11-15 23:12:43 +000028269 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028270fi
cristy8b350f62009-11-15 23:12:43 +000028271rm -f core conftest.err conftest.$ac_objext \
28272 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273LIBS=$ac_check_lib_save_LIBS
28274fi
cristy8b350f62009-11-15 23:12:43 +000028275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028276$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028277if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 have_libdps='yes'
28279else
28280 have_libdps='no'
28281fi
28282
28283 if test "$have_libdps" != 'yes'; then
28284 # Unset cache variable so we can try again.
28285 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028287$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028288if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028289 $as_echo_n "(cached) " >&6
28290else
28291 ac_check_lib_save_LIBS=$LIBS
28292LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028294/* end confdefs.h. */
28295
28296/* Override any GCC internal prototype to avoid an error.
28297 Use char because int might match the return type of a GCC
28298 builtin and then its argument prototype would still apply. */
28299#ifdef __cplusplus
28300extern "C"
28301#endif
28302char DPSInitialize ();
28303int
28304main ()
28305{
28306return DPSInitialize ();
28307 ;
28308 return 0;
28309}
28310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028312 ac_cv_lib_dps_DPSInitialize=yes
28313else
cristy8b350f62009-11-15 23:12:43 +000028314 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028315fi
cristy8b350f62009-11-15 23:12:43 +000028316rm -f core conftest.err conftest.$ac_objext \
28317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028318LIBS=$ac_check_lib_save_LIBS
28319fi
cristy8b350f62009-11-15 23:12:43 +000028320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028321$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028322if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028323 have_libdps='yes'
28324else
28325 have_libdps='no'
28326fi
28327
28328 if test "$have_libdps" = 'yes'; then
28329 LIBDPS_XT='-lXt'
28330 fi
28331 fi
28332 if test "$have_libdps" = 'yes'; then
28333 passed=`expr $passed + 1`
28334 else
28335 failed=`expr $failed + 1`
28336 fi
cristy8b350f62009-11-15 23:12:43 +000028337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028338$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028339if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028340 $as_echo_n "(cached) " >&6
28341else
28342 ac_check_lib_save_LIBS=$LIBS
28343LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028345/* end confdefs.h. */
28346
28347/* Override any GCC internal prototype to avoid an error.
28348 Use char because int might match the return type of a GCC
28349 builtin and then its argument prototype would still apply. */
28350#ifdef __cplusplus
28351extern "C"
28352#endif
28353char XDPSPixelsPerPoint ();
28354int
28355main ()
28356{
28357return XDPSPixelsPerPoint ();
28358 ;
28359 return 0;
28360}
28361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028362if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028363 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28364else
cristy8b350f62009-11-15 23:12:43 +000028365 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028366fi
cristy8b350f62009-11-15 23:12:43 +000028367rm -f core conftest.err conftest.$ac_objext \
28368 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028369LIBS=$ac_check_lib_save_LIBS
28370fi
cristy8b350f62009-11-15 23:12:43 +000028371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028372$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028373if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028374 passed=`expr $passed + 1`
28375else
28376 failed=`expr $failed + 1`
28377fi
28378
cristy8b350f62009-11-15 23:12:43 +000028379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028380$as_echo_n "checking if DPS package is complete... " >&6; }
28381 if test $passed -gt 0; then
28382 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28384$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028385 have_dps='no (failed tests)'
28386 CPPFLAGS="$PERSIST_CPPFLAGS"
28387 else
28388 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28389 LIBS="$DPS_LIBS $LIBS"
28390
cristy8b350f62009-11-15 23:12:43 +000028391$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028392
cristyad38abe2012-12-23 23:03:21 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28394$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028395 have_dps='yes'
28396 fi
28397 else
cristyad38abe2012-12-23 23:03:21 +000028398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28399$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028400 CPPFLAGS=$PERSIST_CPPFLAGS
28401 fi
28402fi
cristy73bd4a52010-10-05 11:24:23 +000028403 if test "$have_dps" = 'yes'; then
28404 DPS_DELEGATE_TRUE=
28405 DPS_DELEGATE_FALSE='#'
28406else
28407 DPS_DELEGATE_TRUE='#'
28408 DPS_DELEGATE_FALSE=
28409fi
28410
cristy3ed852e2009-09-05 21:47:34 +000028411
28412
28413
28414#
28415# Check for DJVU delegate library.
28416#
28417
28418# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028419if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 withval=$with_djvu; with_djvu=$withval
28421else
28422 with_djvu='yes'
28423fi
28424
28425
28426if test "$with_djvu" != 'yes'; then
28427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28428fi
28429
28430have_djvu='no'
28431DJVU_LIBS=''
28432if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28434$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28438$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028439 failed=0
28440 passed=0
cristy8b350f62009-11-15 23:12:43 +000028441 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 +000028442if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028443 passed=`expr $passed + 1`
28444else
28445 failed=`expr $failed + 1`
28446fi
28447
28448
cristy8b350f62009-11-15 23:12:43 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028450$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028451if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 $as_echo_n "(cached) " >&6
28453else
28454 ac_check_lib_save_LIBS=$LIBS
28455LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028457/* end confdefs.h. */
28458
28459/* Override any GCC internal prototype to avoid an error.
28460 Use char because int might match the return type of a GCC
28461 builtin and then its argument prototype would still apply. */
28462#ifdef __cplusplus
28463extern "C"
28464#endif
28465char ddjvu_context_create ();
28466int
28467main ()
28468{
28469return ddjvu_context_create ();
28470 ;
28471 return 0;
28472}
28473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028475 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28476else
cristy8b350f62009-11-15 23:12:43 +000028477 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028478fi
cristy8b350f62009-11-15 23:12:43 +000028479rm -f core conftest.err conftest.$ac_objext \
28480 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028481LIBS=$ac_check_lib_save_LIBS
28482fi
cristy8b350f62009-11-15 23:12:43 +000028483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028484$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028485if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028486 passed=`expr $passed + 1`
28487else
28488 failed=`expr $failed + 1`
28489fi
28490
cristy8b350f62009-11-15 23:12:43 +000028491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028492$as_echo_n "checking if DJVU package is complete... " >&6; }
28493 if test $passed -gt 0; then
28494 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28496$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028497 have_djvu='no (failed tests)'
28498 else
28499 DJVU_LIBS='-ldjvulibre'
28500 LIBS="$DJVU_LIBS $LIBS"
28501
cristy8b350f62009-11-15 23:12:43 +000028502$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028503
cristyad38abe2012-12-23 23:03:21 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28505$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028506 have_djvu='yes'
28507 fi
28508 else
cristyad38abe2012-12-23 23:03:21 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28510$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028511 fi
28512fi
cristy73bd4a52010-10-05 11:24:23 +000028513 if test "$have_djvu" = 'yes'; then
28514 DJVU_DELEGATE_TRUE=
28515 DJVU_DELEGATE_FALSE='#'
28516else
28517 DJVU_DELEGATE_TRUE='#'
28518 DJVU_DELEGATE_FALSE=
28519fi
28520
cristy3ed852e2009-09-05 21:47:34 +000028521
28522
28523
28524#
cristy430a7312010-01-21 20:44:04 +000028525# Set DejaVu font directory.
28526#
28527
28528# Check whether --with-dejavu-font-dir was given.
28529if test "${with_dejavu_font_dir+set}" = set; then :
28530 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28531else
28532 with_dejavu_font_dir='default'
28533fi
28534
28535
28536if test "$with_dejavu_font_dir" != 'default'; then
28537 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28538fi
28539
28540
28541#
cristy3ed852e2009-09-05 21:47:34 +000028542# Check for FFTW delegate library.
28543#
28544
28545# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028546if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028547 withval=$with_fftw; with_fftw=$withval
28548else
28549 with_fftw='yes'
28550fi
28551
28552
28553if test "$with_fftw" != 'yes'; then
28554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28555fi
28556
cristy81beccd2011-10-03 18:17:24 +000028557have_fftw='no'
28558FFTW_LIBS=''
28559if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28561$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28563$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28565$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028566 failed=0
28567 passed=0
28568 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28569if test "x$ac_cv_header_fftw3_h" = xyes; then :
28570 passed=`expr $passed + 1`
28571else
28572 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028573fi
28574
cristy81beccd2011-10-03 18:17:24 +000028575
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28577$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28578if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28579 $as_echo_n "(cached) " >&6
28580else
28581 ac_check_lib_save_LIBS=$LIBS
28582LIBS="-lfftw3 $LIBS"
28583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584/* end confdefs.h. */
28585
28586/* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28589#ifdef __cplusplus
28590extern "C"
28591#endif
28592char fftw_execute ();
28593int
28594main ()
28595{
28596return fftw_execute ();
28597 ;
28598 return 0;
28599}
28600_ACEOF
28601if ac_fn_c_try_link "$LINENO"; then :
28602 ac_cv_lib_fftw3_fftw_execute=yes
28603else
28604 ac_cv_lib_fftw3_fftw_execute=no
28605fi
28606rm -f core conftest.err conftest.$ac_objext \
28607 conftest$ac_exeext conftest.$ac_ext
28608LIBS=$ac_check_lib_save_LIBS
28609fi
28610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28611$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28612if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28613 passed=`expr $passed + 1`
28614else
28615 failed=`expr $failed + 1`
28616fi
28617
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28619$as_echo_n "checking if FFTW package is complete... " >&6; }
28620 if test $passed -gt 0; then
28621 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28623$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028624 have_fftw='no (failed tests)'
28625 else
28626 FFTW_LIBS='-lfftw3'
28627 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028628
cristy8b350f62009-11-15 23:12:43 +000028629$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028630
cristyad38abe2012-12-23 23:03:21 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28632$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028633 have_fftw='yes'
28634 fi
28635 else
cristyad38abe2012-12-23 23:03:21 +000028636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28637$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028638 fi
28639fi
cristy73bd4a52010-10-05 11:24:23 +000028640 if test "$have_fftw" = 'yes'; then
28641 FFTW_DELEGATE_TRUE=
28642 FFTW_DELEGATE_FALSE='#'
28643else
28644 FFTW_DELEGATE_TRUE='#'
28645 FFTW_DELEGATE_FALSE=
28646fi
28647
cristy3ed852e2009-09-05 21:47:34 +000028648
28649
28650
28651#
28652# Check for FlashPIX delegate library.
28653#
28654
28655# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028656if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028657 withval=$with_fpx; with_fpx=$withval
28658else
28659 with_fpx='yes'
28660fi
28661
28662
28663if test "$with_fpx" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28665fi
28666
28667have_fpx='no'
28668FPX_LIBS=''
28669if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28671$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28675$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028676 failed=0
28677 passed=0
28678 ac_ext=cpp
28679ac_cpp='$CXXCPP $CPPFLAGS'
28680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28683
28684
cristy8b350f62009-11-15 23:12:43 +000028685ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028686if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028687 passed=`expr $passed + 1`
28688else
28689 failed=`expr $failed + 1`
28690fi
28691
28692
cristy8b350f62009-11-15 23:12:43 +000028693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028694$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028695if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028696 $as_echo_n "(cached) " >&6
28697else
28698 ac_check_lib_save_LIBS=$LIBS
28699LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028701/* end confdefs.h. */
28702
28703/* Override any GCC internal prototype to avoid an error.
28704 Use char because int might match the return type of a GCC
28705 builtin and then its argument prototype would still apply. */
28706#ifdef __cplusplus
28707extern "C"
28708#endif
28709char FPX_OpenImageByFilename ();
28710int
28711main ()
28712{
28713return FPX_OpenImageByFilename ();
28714 ;
28715 return 0;
28716}
28717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028718if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028719 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28720else
cristy8b350f62009-11-15 23:12:43 +000028721 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028722fi
cristy8b350f62009-11-15 23:12:43 +000028723rm -f core conftest.err conftest.$ac_objext \
28724 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028725LIBS=$ac_check_lib_save_LIBS
28726fi
cristy8b350f62009-11-15 23:12:43 +000028727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028729if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028730 passed=`expr $passed + 1`
28731else
28732 failed=`expr $failed + 1`
28733fi
28734
28735 ac_ext=c
28736ac_cpp='$CPP $CPPFLAGS'
28737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28739ac_compiler_gnu=$ac_cv_c_compiler_gnu
28740
cristy8b350f62009-11-15 23:12:43 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028742$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28743 if test $passed -gt 0; then
28744 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28746$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028747 have_fpx='no (failed tests)'
28748 else
28749 FPX_LIBS='-lfpx'
28750
cristy8b350f62009-11-15 23:12:43 +000028751$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028752
cristyad38abe2012-12-23 23:03:21 +000028753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28754$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028755 have_fpx='yes'
28756 PERLMAINCC="$CXX"
28757 fi
28758 else
cristyad38abe2012-12-23 23:03:21 +000028759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28760$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028761 fi
28762fi
cristy73bd4a52010-10-05 11:24:23 +000028763 if test "$have_fpx" = 'yes'; then
28764 FPX_DELEGATE_TRUE=
28765 FPX_DELEGATE_FALSE='#'
28766else
28767 FPX_DELEGATE_TRUE='#'
28768 FPX_DELEGATE_FALSE=
28769fi
28770
cristy3ed852e2009-09-05 21:47:34 +000028771
28772
28773
28774#
28775# Check for fontconfig delegate library.
28776#
28777
28778# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028779if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028780 withval=$with_fontconfig; with_fontconfig=$withval
28781else
cristyfc3d0222012-02-07 15:05:57 +000028782 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028783fi
28784
28785
28786if test "$with_fontconfig" != 'yes'; then
28787 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28788fi
28789
28790have_fontconfig='no'
28791FONTCONFIG_CFLAGS=""
28792FONTCONFIG_LIBS=""
28793FONTCONFIG_PKG=""
28794if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28796$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028797
28798pkg_failed=no
28799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28800$as_echo_n "checking for FONTCONFIG... " >&6; }
28801
28802if test -n "$FONTCONFIG_CFLAGS"; then
28803 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28804 elif test -n "$PKG_CONFIG"; then
28805 if test -n "$PKG_CONFIG" && \
28806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28807 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28808 ac_status=$?
28809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28810 test $ac_status = 0; }; then
28811 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28812else
28813 pkg_failed=yes
28814fi
28815 else
28816 pkg_failed=untried
28817fi
28818if test -n "$FONTCONFIG_LIBS"; then
28819 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28820 elif test -n "$PKG_CONFIG"; then
28821 if test -n "$PKG_CONFIG" && \
28822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28823 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28824 ac_status=$?
28825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28826 test $ac_status = 0; }; then
28827 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28828else
28829 pkg_failed=yes
28830fi
28831 else
28832 pkg_failed=untried
28833fi
28834
28835
28836
28837if test $pkg_failed = yes; then
28838
28839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28840 _pkg_short_errors_supported=yes
28841else
28842 _pkg_short_errors_supported=no
28843fi
28844 if test $_pkg_short_errors_supported = yes; then
28845 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28846 else
28847 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28848 fi
28849 # Put the nasty error message in config.log where it belongs
28850 echo "$FONTCONFIG_PKG_ERRORS" >&5
28851
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28853$as_echo "no" >&6; }
28854 have_fontconfig=no
28855elif test $pkg_failed = untried; then
28856 have_fontconfig=no
28857else
28858 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28859 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861$as_echo "yes" >&6; }
28862 have_fontconfig=yes
28863fi
cristyad38abe2012-12-23 23:03:21 +000028864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28865$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028866fi
28867
28868if test "$have_fontconfig" = 'yes'; then
28869
cristy8b350f62009-11-15 23:12:43 +000028870$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028871
cristyc6722092012-10-14 00:19:31 +000028872 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028873 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028874 fi
cristy3ed852e2009-09-05 21:47:34 +000028875fi
28876
cristy73bd4a52010-10-05 11:24:23 +000028877 if test "$have_fontconfig" = 'yes'; then
28878 FONTCONFIG_DELEGATE_TRUE=
28879 FONTCONFIG_DELEGATE_FALSE='#'
28880else
28881 FONTCONFIG_DELEGATE_TRUE='#'
28882 FONTCONFIG_DELEGATE_FALSE=
28883fi
28884
cristy3ed852e2009-09-05 21:47:34 +000028885
28886
28887
28888
28889#
cristy03f187e2013-01-24 00:22:19 +000028890# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028891#
28892
28893# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028894if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 withval=$with_freetype; with_freetype=$withval
28896else
28897 with_freetype='yes'
28898fi
28899
28900
cristy3ed852e2009-09-05 21:47:34 +000028901if test "$with_freetype" != 'yes'; then
28902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28903fi
28904
cristy81beccd2011-10-03 18:17:24 +000028905have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028906FREETYPE_CFLAGS=""
28907FREETYPE_LIBS=""
28908FREETYPE_PKG=""
28909if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28911$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028912
28913pkg_failed=no
28914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28915$as_echo_n "checking for FREETYPE... " >&6; }
28916
28917if test -n "$FREETYPE_CFLAGS"; then
28918 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28919 elif test -n "$PKG_CONFIG"; then
28920 if test -n "$PKG_CONFIG" && \
28921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28922 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28923 ac_status=$?
28924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28925 test $ac_status = 0; }; then
28926 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28927else
28928 pkg_failed=yes
28929fi
28930 else
28931 pkg_failed=untried
28932fi
28933if test -n "$FREETYPE_LIBS"; then
28934 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
28935 elif test -n "$PKG_CONFIG"; then
28936 if test -n "$PKG_CONFIG" && \
28937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28938 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28939 ac_status=$?
28940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28941 test $ac_status = 0; }; then
28942 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
28943else
28944 pkg_failed=yes
28945fi
28946 else
28947 pkg_failed=untried
28948fi
28949
28950
28951
28952if test $pkg_failed = yes; then
28953
28954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28955 _pkg_short_errors_supported=yes
28956else
28957 _pkg_short_errors_supported=no
28958fi
28959 if test $_pkg_short_errors_supported = yes; then
28960 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
28961 else
28962 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
28963 fi
28964 # Put the nasty error message in config.log where it belongs
28965 echo "$FREETYPE_PKG_ERRORS" >&5
28966
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28968$as_echo "no" >&6; }
28969 have_freetype=no
28970elif test $pkg_failed = untried; then
28971 have_freetype=no
28972else
28973 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
28974 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28976$as_echo "yes" >&6; }
28977 have_freetype=yes
28978fi
cristyad38abe2012-12-23 23:03:21 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28980$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028981fi
28982
cristy03f187e2013-01-24 00:22:19 +000028983if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028984
cristy8b350f62009-11-15 23:12:43 +000028985$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028986
cristy03f187e2013-01-24 00:22:19 +000028987 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028988fi
cristy03f187e2013-01-24 00:22:19 +000028989
cristy73bd4a52010-10-05 11:24:23 +000028990 if test "$have_freetype" = 'yes'; then
28991 FREETYPE_DELEGATE_TRUE=
28992 FREETYPE_DELEGATE_FALSE='#'
28993else
28994 FREETYPE_DELEGATE_TRUE='#'
28995 FREETYPE_DELEGATE_FALSE=
28996fi
28997
cristy3ed852e2009-09-05 21:47:34 +000028998
28999
29000
cristy03f187e2013-01-24 00:22:19 +000029001
cristy3ed852e2009-09-05 21:47:34 +000029002#
cristyc0884e92013-08-10 17:14:59 +000029003# Check for FITZ delegate library.
29004#
29005
29006# Check whether --with-fitz was given.
29007if test "${with_fitz+set}" = set; then :
29008 withval=$with_fitz; with_fitz=$withval
29009else
29010 with_fitz='yes'
29011fi
29012
29013
29014if test "$with_fitz" != 'yes'; then
29015 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fitz=$with_fitz "
29016fi
29017
29018have_fitz='no'
29019FITZ_LIBS=''
29020if test "$with_fitz" != 'no'; then
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29022$as_echo "-------------------------------------------------------------" >&6; }
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FITZ" >&5
29024$as_echo_n "checking for FITZ... " >&6; }
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29026$as_echo "" >&6; }
29027 failed=0
29028 passed=0
29029 ac_fn_c_check_header_mongrel "$LINENO" "fitz.h" "ac_cv_header_fitz_h" "$ac_includes_default"
29030if test "x$ac_cv_header_fitz_h" = xyes; then :
29031 passed=`expr $passed + 1`
29032else
29033 failed=`expr $failed + 1`
29034fi
29035
29036
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lfitz" >&5
29038$as_echo_n "checking for fz_new_context in -lfitz... " >&6; }
29039if ${ac_cv_lib_fitz_fz_new_context+:} false; then :
29040 $as_echo_n "(cached) " >&6
29041else
29042 ac_check_lib_save_LIBS=$LIBS
29043LIBS="-lfitz -lfitz $FREETYPE_LIBS $LIBS"
29044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29045/* end confdefs.h. */
29046
29047/* Override any GCC internal prototype to avoid an error.
29048 Use char because int might match the return type of a GCC
29049 builtin and then its argument prototype would still apply. */
29050#ifdef __cplusplus
29051extern "C"
29052#endif
29053char fz_new_context ();
29054int
29055main ()
29056{
29057return fz_new_context ();
29058 ;
29059 return 0;
29060}
29061_ACEOF
29062if ac_fn_c_try_link "$LINENO"; then :
29063 ac_cv_lib_fitz_fz_new_context=yes
29064else
29065 ac_cv_lib_fitz_fz_new_context=no
29066fi
29067rm -f core conftest.err conftest.$ac_objext \
29068 conftest$ac_exeext conftest.$ac_ext
29069LIBS=$ac_check_lib_save_LIBS
29070fi
29071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fitz_fz_new_context" >&5
29072$as_echo "$ac_cv_lib_fitz_fz_new_context" >&6; }
29073if test "x$ac_cv_lib_fitz_fz_new_context" = xyes; then :
29074 passed=`expr $passed + 1`
29075else
29076 failed=`expr $failed + 1`
29077fi
29078
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FITZ package is complete" >&5
29080$as_echo_n "checking if FITZ package is complete... " >&6; }
29081 if test $passed -gt 0; then
29082 if test $failed -gt 0; then
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29084$as_echo "no -- some components failed test" >&6; }
29085 have_fitz='no (failed tests)'
29086 else
29087 FITZ_LIBS='-lfitz'
29088 LIBS="$FITZ_LIBS $LIBS"
29089
29090$as_echo "#define FITZ_DELEGATE 1" >>confdefs.h
29091
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29093$as_echo "yes" >&6; }
29094 have_fitz='yes'
29095 fi
29096 else
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29098$as_echo "no" >&6; }
29099 fi
29100fi
29101 if test "$have_fitz" = 'yes'; then
29102 FITZ_DELEGATE_TRUE=
29103 FITZ_DELEGATE_FALSE='#'
29104else
29105 FITZ_DELEGATE_TRUE='#'
29106 FITZ_DELEGATE_FALSE=
29107fi
29108
29109
29110
29111
29112#
cristy3ed852e2009-09-05 21:47:34 +000029113# Check for Ghostscript library or framework.
29114#
29115# Test for iapi.h & test for gsapi_new_instance in -lgs
29116# or -framework Ghostscript
29117
29118
29119# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029120if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029121 withval=$with_gslib; with_gslib=$withval
29122else
29123 with_gslib='no'
29124fi
29125
29126
cristyb7931f12009-09-25 10:22:21 +000029127gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029128if test "$with_gslib" != 'yes'; then
29129 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29130fi
29131
29132have_gslib='no'
29133GS_LIBS=''
29134if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29136$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029138$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29140$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029141 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029142 failed=0
29143 passed=0
cristy8b350f62009-11-15 23:12:43 +000029144 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 +000029145if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029146 passed=`expr $passed + 1`
29147else
29148 failed=`expr $failed + 1`
29149fi
29150
29151
cristy8b350f62009-11-15 23:12:43 +000029152 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 +000029153if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029154 passed=`expr $passed + 1`
29155else
29156 failed=`expr $failed + 1`
29157fi
29158
29159
cristy73bd4a52010-10-05 11:24:23 +000029160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29161$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029162if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029163 $as_echo_n "(cached) " >&6
29164else
29165 ac_check_framework_save_LIBS=$LIBS
29166LIBS="-framework Ghostscript $LIBS"
29167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29168/* end confdefs.h. */
29169
29170/* Override any GCC internal prototype to avoid an error.
29171 Use char because int might match the return type of a GCC
29172 builtin and then its argument prototype would still apply. */
29173#ifdef __cplusplus
29174extern "C"
29175#endif
29176char gsapi_new_instance ();
29177int
29178main ()
29179{
29180return gsapi_new_instance ();
29181 ;
29182 return 0;
29183}
29184_ACEOF
29185if ac_fn_c_try_link "$LINENO"; then :
29186 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29187else
29188 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29189fi
29190rm -f core conftest.err conftest.$ac_objext \
29191 conftest$ac_exeext conftest.$ac_ext
29192LIBS=$ac_check_framework_save_LIBS
29193fi
29194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29195$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29196if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29197 framework=`expr $framework + 1`
29198else
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029201if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029202 $as_echo_n "(cached) " >&6
29203else
29204 ac_check_lib_save_LIBS=$LIBS
29205LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029207/* end confdefs.h. */
29208
29209/* Override any GCC internal prototype to avoid an error.
29210 Use char because int might match the return type of a GCC
29211 builtin and then its argument prototype would still apply. */
29212#ifdef __cplusplus
29213extern "C"
29214#endif
29215char gsapi_new_instance ();
29216int
29217main ()
29218{
29219return gsapi_new_instance ();
29220 ;
29221 return 0;
29222}
29223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029224if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029225 ac_cv_lib_gs_gsapi_new_instance=yes
29226else
cristy8b350f62009-11-15 23:12:43 +000029227 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029228fi
cristy8b350f62009-11-15 23:12:43 +000029229rm -f core conftest.err conftest.$ac_objext \
29230 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029231LIBS=$ac_check_lib_save_LIBS
29232fi
cristy8b350f62009-11-15 23:12:43 +000029233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029235if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 passed=`expr $passed + 1`
29237else
29238 failed=`expr $failed + 1`
29239fi
cristy73bd4a52010-10-05 11:24:23 +000029240
29241fi
cristy8b350f62009-11-15 23:12:43 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029243$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29244 if test $passed -gt 0; then
29245 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29247$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029248 have_gslib='no (failed tests)'
29249 else
29250 if test $framework -gt 0; then
29251 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029252 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29254$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029255 else
cristyad38abe2012-12-23 23:03:21 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29257$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029258 GS_LIBS='-lgs'
29259 fi
29260 LIBS="$GS_LIBS $LIBS"
29261
cristy8b350f62009-11-15 23:12:43 +000029262$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029263
29264 have_gslib='yes'
29265 fi
29266 else
cristyad38abe2012-12-23 23:03:21 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29268$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029269 fi
29270fi
cristy73bd4a52010-10-05 11:24:23 +000029271 if test "$have_gslib" = 'yes'; then
29272 GS_DELEGATE_TRUE=
29273 GS_DELEGATE_FALSE='#'
29274else
29275 GS_DELEGATE_TRUE='#'
29276 GS_DELEGATE_FALSE=
29277fi
29278
cristy3ed852e2009-09-05 21:47:34 +000029279
29280
29281# Set default font search path
29282
29283# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029284if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029285 withval=$with_fontpath; with_fontpath=$withval
29286else
29287 with_fontpath=''
29288fi
29289
29290
29291if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29292 with_fontpath=''
29293else
29294
29295cat >>confdefs.h <<_ACEOF
29296#define MAGICK_FONT_PATH "$with_fontpath"
29297_ACEOF
29298
29299fi
29300if test "$with_fontpath=" != ''; then
29301 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29302fi
29303
29304# Set Ghostscript font directory
29305
29306# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029307if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029308 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29309else
29310 with_gs_font_dir='default'
29311fi
29312
29313
29314if test "$with_gs_font_dir" != 'default'; then
29315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29316fi
29317
29318
29319#
29320# Check for GVC delegate library.
29321#
29322
29323# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029324if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029325 withval=$with_gvc; with_gvc=$withval
29326else
cristy1b70dc82012-07-01 23:15:05 +000029327 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029328fi
29329
29330
29331if test "$with_gvc" != 'yes'; then
29332 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29333fi
29334
29335GVC_PKG=""
29336if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29338$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029339
29340pkg_failed=no
29341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29342$as_echo_n "checking for GVC... " >&6; }
29343
29344if test -n "$GVC_CFLAGS"; then
29345 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29346 elif test -n "$PKG_CONFIG"; then
29347 if test -n "$PKG_CONFIG" && \
29348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29349 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29350 ac_status=$?
29351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29352 test $ac_status = 0; }; then
29353 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29354else
29355 pkg_failed=yes
29356fi
29357 else
29358 pkg_failed=untried
29359fi
29360if test -n "$GVC_LIBS"; then
29361 pkg_cv_GVC_LIBS="$GVC_LIBS"
29362 elif test -n "$PKG_CONFIG"; then
29363 if test -n "$PKG_CONFIG" && \
29364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29365 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29366 ac_status=$?
29367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29368 test $ac_status = 0; }; then
29369 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29370else
29371 pkg_failed=yes
29372fi
29373 else
29374 pkg_failed=untried
29375fi
29376
29377
29378
29379if test $pkg_failed = yes; then
29380
29381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29382 _pkg_short_errors_supported=yes
29383else
29384 _pkg_short_errors_supported=no
29385fi
29386 if test $_pkg_short_errors_supported = yes; then
29387 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29388 else
29389 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29390 fi
29391 # Put the nasty error message in config.log where it belongs
29392 echo "$GVC_PKG_ERRORS" >&5
29393
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29395$as_echo "no" >&6; }
29396 have_gvc=no
29397elif test $pkg_failed = untried; then
29398 have_gvc=no
29399else
29400 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29401 GVC_LIBS=$pkg_cv_GVC_LIBS
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29403$as_echo "yes" >&6; }
29404 have_gvc=yes
29405fi
cristyad38abe2012-12-23 23:03:21 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29407$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029408fi
29409
29410if test "$have_gvc" = 'yes'; then
29411
cristy8b350f62009-11-15 23:12:43 +000029412$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029413
cristyc6722092012-10-14 00:19:31 +000029414 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029415 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29416 fi
29417fi
29418
cristy73bd4a52010-10-05 11:24:23 +000029419 if test "$have_gvc" = 'yes'; then
29420 GVC_DELEGATE_TRUE=
29421 GVC_DELEGATE_FALSE='#'
29422else
29423 GVC_DELEGATE_TRUE='#'
29424 GVC_DELEGATE_FALSE=
29425fi
29426
cristy3ed852e2009-09-05 21:47:34 +000029427
29428
29429
29430
29431#
29432# Check for JBIG delegate library.
29433#
29434
29435
29436# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029437if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029438 withval=$with_jbig; with_jbig=$withval
29439else
29440 with_jbig='yes'
29441fi
29442
29443
29444have_jbig='no'
29445JBIG_LIBS=''
29446if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29448$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29452$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029453 failed=0
29454 passed=0
cristy8b350f62009-11-15 23:12:43 +000029455 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029456if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029457 passed=`expr $passed + 1`
29458else
29459 failed=`expr $failed + 1`
29460fi
29461
29462
cristy8b350f62009-11-15 23:12:43 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029464$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029465if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029466 $as_echo_n "(cached) " >&6
29467else
29468 ac_check_lib_save_LIBS=$LIBS
29469LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029471/* end confdefs.h. */
29472
29473/* Override any GCC internal prototype to avoid an error.
29474 Use char because int might match the return type of a GCC
29475 builtin and then its argument prototype would still apply. */
29476#ifdef __cplusplus
29477extern "C"
29478#endif
29479char jbg_dec_init ();
29480int
29481main ()
29482{
29483return jbg_dec_init ();
29484 ;
29485 return 0;
29486}
29487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029489 ac_cv_lib_jbig_jbg_dec_init=yes
29490else
cristy8b350f62009-11-15 23:12:43 +000029491 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029492fi
cristy8b350f62009-11-15 23:12:43 +000029493rm -f core conftest.err conftest.$ac_objext \
29494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029495LIBS=$ac_check_lib_save_LIBS
29496fi
cristy8b350f62009-11-15 23:12:43 +000029497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029499if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029500 passed=`expr $passed + 1`
29501else
29502 failed=`expr $failed + 1`
29503fi
29504
cristy8b350f62009-11-15 23:12:43 +000029505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo_n "checking if JBIG package is complete... " >&6; }
29507 if test $passed -gt 0; then
29508 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29510$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029511 have_jbig='no (failed tests)'
29512 else
29513 JBIG_LIBS='-ljbig'
29514 LIBS="$JBIG_LIBS $LIBS"
29515
cristy8b350f62009-11-15 23:12:43 +000029516$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029517
cristyad38abe2012-12-23 23:03:21 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29519$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029520 have_jbig='yes'
29521 fi
29522 else
cristyad38abe2012-12-23 23:03:21 +000029523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29524$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029525 fi
29526fi
cristy73bd4a52010-10-05 11:24:23 +000029527 if test "$have_jbig" = 'yes'; then
29528 JBIG_DELEGATE_TRUE=
29529 JBIG_DELEGATE_FALSE='#'
29530else
29531 JBIG_DELEGATE_TRUE='#'
29532 JBIG_DELEGATE_FALSE=
29533fi
29534
cristy3ed852e2009-09-05 21:47:34 +000029535
29536
29537
29538#
29539# Check for JPEG delegate library.
29540#
29541
29542# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029543if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029544 withval=$with_jpeg; with_jpeg=$withval
29545else
29546 with_jpeg='yes'
29547fi
29548
29549
29550if test "$with_jpeg" != 'yes'; then
29551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29552fi
29553
29554have_jpeg='no'
29555JPEG_LIBS=''
29556if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29558$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029560$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29562$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029563 failed=0
29564 passed=0
cristy8b350f62009-11-15 23:12:43 +000029565 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029566if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029567 passed=`expr $passed + 1`
29568else
29569 failed=`expr $failed + 1`
29570fi
29571
29572
cristy8b350f62009-11-15 23:12:43 +000029573 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029574if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 passed=`expr $passed + 1`
29576else
29577 failed=`expr $failed + 1`
29578fi
29579
29580
cristy8b350f62009-11-15 23:12:43 +000029581 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029582if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029583 passed=`expr $passed + 1`
29584else
29585 failed=`expr $failed + 1`
29586fi
29587
29588
cristy8b350f62009-11-15 23:12:43 +000029589 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029590if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 passed=`expr $passed + 1`
29592else
29593 failed=`expr $failed + 1`
29594fi
29595
29596
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029599if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029600 $as_echo_n "(cached) " >&6
29601else
29602 ac_check_lib_save_LIBS=$LIBS
29603LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029605/* end confdefs.h. */
29606
29607/* Override any GCC internal prototype to avoid an error.
29608 Use char because int might match the return type of a GCC
29609 builtin and then its argument prototype would still apply. */
29610#ifdef __cplusplus
29611extern "C"
29612#endif
29613char jpeg_read_header ();
29614int
29615main ()
29616{
29617return jpeg_read_header ();
29618 ;
29619 return 0;
29620}
29621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029622if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029623 ac_cv_lib_jpeg_jpeg_read_header=yes
29624else
cristy8b350f62009-11-15 23:12:43 +000029625 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029626fi
cristy8b350f62009-11-15 23:12:43 +000029627rm -f core conftest.err conftest.$ac_objext \
29628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029629LIBS=$ac_check_lib_save_LIBS
29630fi
cristy8b350f62009-11-15 23:12:43 +000029631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029632$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029633if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029634 passed=`expr $passed + 1`
29635else
29636 failed=`expr $failed + 1`
29637fi
29638
29639
29640# Test for compatible JPEG library
29641if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029643$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029644if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029645 $as_echo_n "(cached) " >&6
29646else
cristy8b350f62009-11-15 23:12:43 +000029647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029648/* end confdefs.h. */
29649#include <stdio.h>
29650#include <stdlib.h>
29651#include <jpeglib.h>
29652
29653int
29654main ()
29655{
29656
29657#if JPEG_LIB_VERSION < 62
29658#error IJG JPEG library must be version 6b or newer!
29659#endif
29660return 0;
29661
29662 ;
29663 return 0;
29664}
29665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029666if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029667 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29668else
cristy8b350f62009-11-15 23:12:43 +000029669 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029670fi
cristy3ed852e2009-09-05 21:47:34 +000029671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29672fi
cristy8b350f62009-11-15 23:12:43 +000029673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029674$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29675fi
cristy8b350f62009-11-15 23:12:43 +000029676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029677$as_echo_n "checking if JPEG package is complete... " >&6; }
29678 if test $passed -gt 0; then
29679 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29681$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029682 have_jpeg='no (failed tests)'
29683 else
29684 JPEG_LIBS='-ljpeg'
29685 LIBS="$JPEG_LIBS $LIBS"
29686
cristy8b350f62009-11-15 23:12:43 +000029687$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029688
cristyad38abe2012-12-23 23:03:21 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029691 have_jpeg='yes'
29692 fi
29693 else
cristyad38abe2012-12-23 23:03:21 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29695$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029696 fi
29697fi
cristy73bd4a52010-10-05 11:24:23 +000029698 if test "$have_jpeg" = 'yes'; then
29699 JPEG_DELEGATE_TRUE=
29700 JPEG_DELEGATE_FALSE='#'
29701else
29702 JPEG_DELEGATE_TRUE='#'
29703 JPEG_DELEGATE_FALSE=
29704fi
29705
cristy3ed852e2009-09-05 21:47:34 +000029706
29707
29708
29709#
29710# Check for JPEG Version 2 delegate library.
29711#
29712
29713# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029714if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029715 withval=$with_jp2; with_jp2=$withval
29716else
29717 with_jp2='yes'
29718fi
29719
29720
29721if test "$with_jp2" != 'yes'; then
29722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29723fi
29724
29725have_jp2='no'
29726JP2_LIBS=''
29727if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29729$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29733$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029734 failed=0
29735 passed=0
cristy8b350f62009-11-15 23:12:43 +000029736 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029737if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 passed=`expr $passed + 1`
29739else
29740 failed=`expr $failed + 1`
29741fi
29742
29743
cristy8b350f62009-11-15 23:12:43 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029746if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029747 $as_echo_n "(cached) " >&6
29748else
29749 ac_check_lib_save_LIBS=$LIBS
29750LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029752/* end confdefs.h. */
29753
29754/* Override any GCC internal prototype to avoid an error.
29755 Use char because int might match the return type of a GCC
29756 builtin and then its argument prototype would still apply. */
29757#ifdef __cplusplus
29758extern "C"
29759#endif
29760char jas_stream_fopen ();
29761int
29762main ()
29763{
29764return jas_stream_fopen ();
29765 ;
29766 return 0;
29767}
29768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029769if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 ac_cv_lib_jasper_jas_stream_fopen=yes
29771else
cristy8b350f62009-11-15 23:12:43 +000029772 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029773fi
cristy8b350f62009-11-15 23:12:43 +000029774rm -f core conftest.err conftest.$ac_objext \
29775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029776LIBS=$ac_check_lib_save_LIBS
29777fi
cristy8b350f62009-11-15 23:12:43 +000029778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029779$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029780if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029781 passed=`expr $passed + 1`
29782else
29783 failed=`expr $failed + 1`
29784fi
29785
cristy8b350f62009-11-15 23:12:43 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29788 if test $passed -gt 0; then
29789 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29791$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029792 have_jp2='no (failed tests)'
29793 else
29794 JP2_LIBS='-ljasper'
29795 LIBS="$JP2_LIBS $LIBS"
29796
cristy8b350f62009-11-15 23:12:43 +000029797$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029798
cristyad38abe2012-12-23 23:03:21 +000029799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29800$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029801 have_jp2='yes'
29802 fi
29803 else
cristyad38abe2012-12-23 23:03:21 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29805$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029806 fi
29807fi
cristy73bd4a52010-10-05 11:24:23 +000029808 if test "$have_jp2" = 'yes'; then
29809 JP2_DELEGATE_TRUE=
29810 JP2_DELEGATE_FALSE='#'
29811else
29812 JP2_DELEGATE_TRUE='#'
29813 JP2_DELEGATE_FALSE=
29814fi
29815
cristy3ed852e2009-09-05 21:47:34 +000029816
29817
29818
29819#
29820# Check for LCMS delegate library.
29821#
cristy71203402010-06-18 13:12:03 +000029822# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029823
29824# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029825if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029826 withval=$with_lcms; with_lcms=$withval
29827else
29828 with_lcms='yes'
29829fi
29830
cristy71203402010-06-18 13:12:03 +000029831if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029832 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29833fi
29834
cristy71203402010-06-18 13:12:03 +000029835# Disable LCMS2.
29836
29837# Check whether --with-lcms2 was given.
29838if test "${with_lcms2+set}" = set; then :
29839 withval=$with_lcms2; with_lcms2=$withval
29840else
29841 with_lcms2='yes'
29842fi
29843
29844if test "$with_lcms2" != 'yes' ; then
29845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29846fi
29847
29848have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029849LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029850if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29852$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29854$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29856$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029857 failed=0
29858 passed=0
29859 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029860
29861 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029862 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029863if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029864 have_lcms_header='yes'
29865fi
29866
29867
29868 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029869
29870$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29871
cristy71203402010-06-18 13:12:03 +000029872 passed=`expr $passed + 1`
29873 fi
29874
29875 # Check for <lcms2/lcms2.h)
29876 if test "$have_lcms_header" != 'yes'; then
29877 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 +000029878if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029879 have_lcms_header='yes'
29880fi
29881
29882
cristy71203402010-06-18 13:12:03 +000029883 if test "$have_lcms_header" = 'yes'; then
29884 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029885
cristy71203402010-06-18 13:12:03 +000029886$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029887
cristy71203402010-06-18 13:12:03 +000029888 fi
cristyd09bcf92010-03-25 03:04:45 +000029889 fi
cristy71203402010-06-18 13:12:03 +000029890
29891 # Failed to find lcms header?
29892 if test "$have_lcms_header" != 'yes'; then
29893 failed=`expr $failed + 1`
29894 fi
29895
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29897$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029898if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029899 $as_echo_n "(cached) " >&6
29900else
29901 ac_check_lib_save_LIBS=$LIBS
29902LIBS="-llcms2 $LIBS"
29903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29904/* end confdefs.h. */
29905
29906/* Override any GCC internal prototype to avoid an error.
29907 Use char because int might match the return type of a GCC
29908 builtin and then its argument prototype would still apply. */
29909#ifdef __cplusplus
29910extern "C"
29911#endif
cristy71203402010-06-18 13:12:03 +000029912char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029913int
29914main ()
29915{
cristy71203402010-06-18 13:12:03 +000029916return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029917 ;
29918 return 0;
29919}
29920_ACEOF
29921if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029922 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029923else
cristy71203402010-06-18 13:12:03 +000029924 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029925fi
29926rm -f core conftest.err conftest.$ac_objext \
29927 conftest$ac_exeext conftest.$ac_ext
29928LIBS=$ac_check_lib_save_LIBS
29929fi
cristy71203402010-06-18 13:12:03 +000029930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29931$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029932if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029933 passed=`expr $passed + 1`
29934else
29935 failed=`expr $failed + 1`
29936fi
29937
cristy71203402010-06-18 13:12:03 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29939$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029940 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029941 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29943$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029944 have_lcms2='no (failed tests)'
29945 else
29946 LCMS_LIBS='-llcms2'
29947 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29949$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029950 have_lcms2='yes'
29951 fi
cristyd09bcf92010-03-25 03:04:45 +000029952 else
cristyad38abe2012-12-23 23:03:21 +000029953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29954$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029955 fi
29956fi
29957
cristy71203402010-06-18 13:12:03 +000029958#
29959# Check for LCMS v1 (1.11 or later)
29960#
29961if test $have_lcms2 = 'yes'; then
29962 with_lcms='no'
29963fi
29964
29965have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029966if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29968$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29970$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29972$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029973 failed=0
29974 passed=0
29975 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029976
29977 # Check for <lcms.h>
29978 if test "$have_lcms_header" != 'yes'; then
29979 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029980if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 have_lcms_header='yes'
29982fi
29983
29984
cristy71203402010-06-18 13:12:03 +000029985 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029986 passed=`expr $passed + 1`
29987
cristy8b350f62009-11-15 23:12:43 +000029988$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029989
cristy71203402010-06-18 13:12:03 +000029990 fi
29991 fi
29992
29993 # Check for <lcms/lcms.h>
29994 if test "$have_lcms_header" != 'yes'; then
29995 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 +000029996if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029997 have_lcms_header='yes'
29998fi
29999
30000
cristy71203402010-06-18 13:12:03 +000030001 if test "$have_lcms_header" = 'yes'; then
30002 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030003
cristy8b350f62009-11-15 23:12:43 +000030004$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030005
cristy71203402010-06-18 13:12:03 +000030006 fi
cristy3ed852e2009-09-05 21:47:34 +000030007 fi
cristy71203402010-06-18 13:12:03 +000030008
30009 # Failed to find lcms header?
30010 if test "$have_lcms_header" != 'yes'; then
30011 failed=`expr $failed + 1`
30012 fi
30013
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30015$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030016if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030017 $as_echo_n "(cached) " >&6
30018else
30019 ac_check_lib_save_LIBS=$LIBS
30020LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030022/* end confdefs.h. */
30023
30024/* Override any GCC internal prototype to avoid an error.
30025 Use char because int might match the return type of a GCC
30026 builtin and then its argument prototype would still apply. */
30027#ifdef __cplusplus
30028extern "C"
30029#endif
cristy71203402010-06-18 13:12:03 +000030030char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030031int
30032main ()
30033{
cristy71203402010-06-18 13:12:03 +000030034return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030035 ;
30036 return 0;
30037}
30038_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030039if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030040 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030041else
cristy71203402010-06-18 13:12:03 +000030042 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030043fi
cristy8b350f62009-11-15 23:12:43 +000030044rm -f core conftest.err conftest.$ac_objext \
30045 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030046LIBS=$ac_check_lib_save_LIBS
30047fi
cristy71203402010-06-18 13:12:03 +000030048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30049$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030050if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030051 passed=`expr $passed + 1`
30052else
30053 failed=`expr $failed + 1`
30054fi
30055
cristy8b350f62009-11-15 23:12:43 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057$as_echo_n "checking if LCMS package is complete... " >&6; }
30058 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030059 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30061$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030062 have_lcms='no (failed tests)'
30063 else
30064 LCMS_LIBS='-llcms'
30065 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30067$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030068 have_lcms='yes'
30069 fi
cristy3ed852e2009-09-05 21:47:34 +000030070 else
cristyad38abe2012-12-23 23:03:21 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30072$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030073 fi
30074fi
cristy71203402010-06-18 13:12:03 +000030075
cristy73bd4a52010-10-05 11:24:23 +000030076 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30077 LCMS_DELEGATE_TRUE=
30078 LCMS_DELEGATE_FALSE='#'
30079else
30080 LCMS_DELEGATE_TRUE='#'
30081 LCMS_DELEGATE_FALSE=
30082fi
30083
cristy71203402010-06-18 13:12:03 +000030084if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30085
30086$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30087
30088fi
30089
cristy3ed852e2009-09-05 21:47:34 +000030090
30091
30092
30093#
30094# Check for the LQR (Liquid Rescale) delegate library.
30095#
30096
30097# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030098if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030099 withval=$with_lqr; with_lqr=$withval
30100else
30101 with_lqr='yes'
30102fi
30103
30104
30105if test "$with_lqr" != 'yes'; then
30106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30107fi
30108
30109have_lqr='no'
30110LQR_CFLAGS=""
30111LQR_LIBS=""
30112LQR_PKG=""
30113if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30115$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030116
30117pkg_failed=no
30118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30119$as_echo_n "checking for LQR... " >&6; }
30120
30121if test -n "$LQR_CFLAGS"; then
30122 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30123 elif test -n "$PKG_CONFIG"; then
30124 if test -n "$PKG_CONFIG" && \
30125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30126 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30127 ac_status=$?
30128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30129 test $ac_status = 0; }; then
30130 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30131else
30132 pkg_failed=yes
30133fi
30134 else
30135 pkg_failed=untried
30136fi
30137if test -n "$LQR_LIBS"; then
30138 pkg_cv_LQR_LIBS="$LQR_LIBS"
30139 elif test -n "$PKG_CONFIG"; then
30140 if test -n "$PKG_CONFIG" && \
30141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30142 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30143 ac_status=$?
30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145 test $ac_status = 0; }; then
30146 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30147else
30148 pkg_failed=yes
30149fi
30150 else
30151 pkg_failed=untried
30152fi
30153
30154
30155
30156if test $pkg_failed = yes; then
30157
30158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30159 _pkg_short_errors_supported=yes
30160else
30161 _pkg_short_errors_supported=no
30162fi
30163 if test $_pkg_short_errors_supported = yes; then
30164 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30165 else
30166 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30167 fi
30168 # Put the nasty error message in config.log where it belongs
30169 echo "$LQR_PKG_ERRORS" >&5
30170
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30172$as_echo "no" >&6; }
30173 have_lqr=no
30174elif test $pkg_failed = untried; then
30175 have_lqr=no
30176else
30177 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30178 LQR_LIBS=$pkg_cv_LQR_LIBS
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30180$as_echo "yes" >&6; }
30181 have_lqr=yes
30182fi
cristyad38abe2012-12-23 23:03:21 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30184$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030185fi
30186
30187if test "$have_lqr" = 'yes'; then
30188
cristy8b350f62009-11-15 23:12:43 +000030189$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030190
30191 CFLAGS="$LQR_CFLAGS $CFLAGS"
30192fi
30193
cristy73bd4a52010-10-05 11:24:23 +000030194 if test "$have_lqr" = 'yes'; then
30195 LQR_DELEGATE_TRUE=
30196 LQR_DELEGATE_FALSE='#'
30197else
30198 LQR_DELEGATE_TRUE='#'
30199 LQR_DELEGATE_FALSE=
30200fi
30201
cristy3ed852e2009-09-05 21:47:34 +000030202
30203
30204
30205
cristy81beccd2011-10-03 18:17:24 +000030206# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030207
30208# Check whether --with-lzma was given.
30209if test "${with_lzma+set}" = set; then :
30210 withval=$with_lzma; with_lzma=$withval
30211else
30212 with_lzma='yes'
30213fi
30214
cristy81beccd2011-10-03 18:17:24 +000030215if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30217fi
30218
cristyb94e5002011-11-14 13:20:10 +000030219LZMA_PKG=""
30220if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30222$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030223
30224pkg_failed=no
30225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030226$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030227
30228if test -n "$LZMA_CFLAGS"; then
30229 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30230 elif test -n "$PKG_CONFIG"; then
30231 if test -n "$PKG_CONFIG" && \
30232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30233 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30234 ac_status=$?
30235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30236 test $ac_status = 0; }; then
30237 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30238else
30239 pkg_failed=yes
30240fi
30241 else
30242 pkg_failed=untried
30243fi
30244if test -n "$LZMA_LIBS"; then
30245 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30246 elif test -n "$PKG_CONFIG"; then
30247 if test -n "$PKG_CONFIG" && \
30248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30249 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30250 ac_status=$?
30251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30252 test $ac_status = 0; }; then
30253 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30254else
30255 pkg_failed=yes
30256fi
30257 else
30258 pkg_failed=untried
30259fi
30260
30261
30262
30263if test $pkg_failed = yes; then
30264
30265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30266 _pkg_short_errors_supported=yes
30267else
30268 _pkg_short_errors_supported=no
30269fi
30270 if test $_pkg_short_errors_supported = yes; then
30271 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30272 else
30273 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30274 fi
30275 # Put the nasty error message in config.log where it belongs
30276 echo "$LZMA_PKG_ERRORS" >&5
30277
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279$as_echo "no" >&6; }
30280 have_lzma=no
30281elif test $pkg_failed = untried; then
30282 have_lzma=no
30283else
30284 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30285 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30287$as_echo "yes" >&6; }
30288 have_lzma=yes
30289fi
cristyad38abe2012-12-23 23:03:21 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30291$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030292fi
30293
cristyb94e5002011-11-14 13:20:10 +000030294if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030295
30296$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30297
cristyc6722092012-10-14 00:19:31 +000030298 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030299 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030300 fi
cristyfbb0ef02010-12-19 02:32:11 +000030301fi
cristyb94e5002011-11-14 13:20:10 +000030302
cristyfbb0ef02010-12-19 02:32:11 +000030303 if test "$have_lzma" = 'yes'; then
30304 LZMA_DELEGATE_TRUE=
30305 LZMA_DELEGATE_FALSE='#'
30306else
30307 LZMA_DELEGATE_TRUE='#'
30308 LZMA_DELEGATE_FALSE=
30309fi
30310
30311
30312
30313
cristyb94e5002011-11-14 13:20:10 +000030314
cristy3ed852e2009-09-05 21:47:34 +000030315#
30316# Check for the OpenEXR delegate library.
30317#
30318
30319# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030320if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030321 withval=$with_openexr; with_openexr=$withval
30322else
30323 with_openexr='yes'
30324fi
30325
30326
30327if test "$with_openexr" != 'yes'; then
30328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30329fi
30330
30331have_openexr='no'
30332OPENEXR_CFLAGS=""
30333OPENEXR_LIBS=""
30334OPENEXR_PKG=""
30335if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30337$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030338
30339pkg_failed=no
30340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30341$as_echo_n "checking for OPENEXR... " >&6; }
30342
30343if test -n "$OPENEXR_CFLAGS"; then
30344 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30345 elif test -n "$PKG_CONFIG"; then
30346 if test -n "$PKG_CONFIG" && \
30347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30348 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30349 ac_status=$?
30350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30351 test $ac_status = 0; }; then
30352 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30353else
30354 pkg_failed=yes
30355fi
30356 else
30357 pkg_failed=untried
30358fi
30359if test -n "$OPENEXR_LIBS"; then
30360 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30361 elif test -n "$PKG_CONFIG"; then
30362 if test -n "$PKG_CONFIG" && \
30363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30364 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30365 ac_status=$?
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; then
30368 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30369else
30370 pkg_failed=yes
30371fi
30372 else
30373 pkg_failed=untried
30374fi
30375
30376
30377
30378if test $pkg_failed = yes; then
30379
30380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30381 _pkg_short_errors_supported=yes
30382else
30383 _pkg_short_errors_supported=no
30384fi
30385 if test $_pkg_short_errors_supported = yes; then
30386 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30387 else
30388 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30389 fi
30390 # Put the nasty error message in config.log where it belongs
30391 echo "$OPENEXR_PKG_ERRORS" >&5
30392
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394$as_echo "no" >&6; }
30395 have_openexr=no
30396elif test $pkg_failed = untried; then
30397 have_openexr=no
30398else
30399 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30400 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30402$as_echo "yes" >&6; }
30403 have_openexr=yes
30404fi
cristyad38abe2012-12-23 23:03:21 +000030405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30406$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030407fi
30408
30409if test "$have_openexr" = 'yes'; then
30410
cristy8b350f62009-11-15 23:12:43 +000030411$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030412
cristyc6722092012-10-14 00:19:31 +000030413 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030414 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30415 fi
30416fi
30417
cristy73bd4a52010-10-05 11:24:23 +000030418 if test "$have_openexr" = 'yes'; then
30419 OPENEXR_DELEGATE_TRUE=
30420 OPENEXR_DELEGATE_FALSE='#'
30421else
30422 OPENEXR_DELEGATE_TRUE='#'
30423 OPENEXR_DELEGATE_FALSE=
30424fi
30425
cristy3ed852e2009-09-05 21:47:34 +000030426
30427
30428
30429
30430#
cristy41cbe8a2011-10-27 01:35:18 +000030431# Check for PANGO delegate library.
30432#
30433
30434# Check whether --with-pango was given.
30435if test "${with_pango+set}" = set; then :
30436 withval=$with_pango; with_pango=$withval
30437else
cristyfc3d0222012-02-07 15:05:57 +000030438 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030439fi
30440
30441
30442if test "$with_pango" != 'yes'; then
30443 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30444fi
30445
30446have_pango='no'
cristya054b762012-03-26 23:16:00 +000030447have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030448PANGO_CFLAGS=""
30449PANGO_LIBS=""
30450PANGO_PKG=""
30451if test "x$with_pango" = "xyes"; then
30452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30453$as_echo "-------------------------------------------------------------" >&6; }
30454
30455pkg_failed=no
30456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30457$as_echo_n "checking for PANGO... " >&6; }
30458
30459if test -n "$PANGO_CFLAGS"; then
30460 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30461 elif test -n "$PKG_CONFIG"; then
30462 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30464 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030465 ac_status=$?
30466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30467 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030468 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030469else
30470 pkg_failed=yes
30471fi
30472 else
30473 pkg_failed=untried
30474fi
30475if test -n "$PANGO_LIBS"; then
30476 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30477 elif test -n "$PKG_CONFIG"; then
30478 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30480 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030481 ac_status=$?
30482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30483 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030484 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030485else
30486 pkg_failed=yes
30487fi
30488 else
30489 pkg_failed=untried
30490fi
30491
30492
30493
30494if test $pkg_failed = yes; then
30495
30496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30497 _pkg_short_errors_supported=yes
30498else
30499 _pkg_short_errors_supported=no
30500fi
30501 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030502 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030503 else
cristya054b762012-03-26 23:16:00 +000030504 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030505 fi
30506 # Put the nasty error message in config.log where it belongs
30507 echo "$PANGO_PKG_ERRORS" >&5
30508
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30510$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030511 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030512elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030513 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030514else
30515 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30516 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30518$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030519 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030520fi
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30522$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030523
30524pkg_failed=no
30525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30526$as_echo_n "checking for PANGO... " >&6; }
30527
30528if test -n "$PANGO_CFLAGS"; then
30529 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30530 elif test -n "$PKG_CONFIG"; then
30531 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30533 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030534 ac_status=$?
30535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30536 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030537 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030538else
30539 pkg_failed=yes
30540fi
30541 else
30542 pkg_failed=untried
30543fi
30544if test -n "$PANGO_LIBS"; then
30545 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30546 elif test -n "$PKG_CONFIG"; then
30547 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30549 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030550 ac_status=$?
30551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030553 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030554else
30555 pkg_failed=yes
30556fi
30557 else
30558 pkg_failed=untried
30559fi
30560
30561
30562
30563if test $pkg_failed = yes; then
30564
30565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30566 _pkg_short_errors_supported=yes
30567else
30568 _pkg_short_errors_supported=no
30569fi
30570 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030571 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030572 else
cristy2542fc62011-12-06 17:50:25 +000030573 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030574 fi
30575 # Put the nasty error message in config.log where it belongs
30576 echo "$PANGO_PKG_ERRORS" >&5
30577
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30579$as_echo "no" >&6; }
30580 have_pango=no
30581elif test $pkg_failed = untried; then
30582 have_pango=no
30583else
30584 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30585 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30587$as_echo "yes" >&6; }
30588 have_pango=yes
30589fi
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30591$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030592fi
30593
30594if test "$have_pango" = 'yes'; then
30595
30596$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30597
cristyc6722092012-10-14 00:19:31 +000030598 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030599 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30600 fi
30601fi
30602
cristya054b762012-03-26 23:16:00 +000030603if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030604
cristya054b762012-03-26 23:16:00 +000030605$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030606
cristyc6722092012-10-14 00:19:31 +000030607 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030608 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030609 fi
30610fi
30611
30612 if test "$have_pango" = 'yes'; then
30613 PANGO_DELEGATE_TRUE=
30614 PANGO_DELEGATE_FALSE='#'
30615else
30616 PANGO_DELEGATE_TRUE='#'
30617 PANGO_DELEGATE_FALSE=
30618fi
30619
cristya054b762012-03-26 23:16:00 +000030620 if test "$have_pangocairo" = 'yes'; then
30621 PANGOCAIRO_DELEGATE_TRUE=
30622 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030623else
cristya054b762012-03-26 23:16:00 +000030624 PANGOCAIRO_DELEGATE_TRUE='#'
30625 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030626fi
30627
30628
30629
30630
30631
30632#
cristy3ed852e2009-09-05 21:47:34 +000030633# Check for PNG delegate library.
30634#
30635
30636# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030637if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030638 withval=$with_png; with_png=$withval
30639else
30640 with_png='yes'
30641fi
30642
30643
30644if test "$with_png" != 'yes'; then
30645 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30646fi
30647
cristy81beccd2011-10-03 18:17:24 +000030648have_png='no'
30649PNG_LIBS=''
30650
30651if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30653$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30655$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30657$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030658 failed=0
30659 passed=0
30660 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30661if test "x$ac_cv_header_png_h" = xyes; then :
30662 passed=`expr $passed + 1`
30663else
30664 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030665fi
30666
cristy81beccd2011-10-03 18:17:24 +000030667
30668
30669 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030670 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030671 if test "$have_png" = 'no' ; then
30672 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030673 pnglib='png'
30674 else
30675 pnglib="png1${var}"
30676 fi
30677
30678# Test for compatible LIBPNG library
30679 failed=0
30680 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030681 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030682 if test "${pnglib}" != 'png' ; then
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30684$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30686/* end confdefs.h. */
30687#include <stdio.h>
30688#include <stdlib.h>
30689#include <png.h>
30690
30691int
30692main ()
30693{
30694
30695#if PNG_LIBPNG_VER_MINOR != ${var}
30696#error LIBPNG library must be version 1${var}!
30697Kaboom, Kaboom
30698#endif
30699return 0;
30700
30701 ;
30702 return 0;
30703}
30704_ACEOF
30705if ac_fn_c_try_compile "$LINENO"; then :
30706 ac_cv_libpng_ok='yes'
30707else
30708 ac_cv_libpng_ok='no'
30709fi
30710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30711 if test "$ac_cv_libpng_ok" = 'yes' ; then
30712 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30714$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030715 else
30716 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030719 fi
30720 else
30721 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30723$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030724 fi
30725 fi
30726
30727 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030728 if test "1${var}" = '17' ; then
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30730$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30731if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30732 $as_echo_n "(cached) " >&6
30733else
30734 ac_check_lib_save_LIBS=$LIBS
30735LIBS="-lpng17 $LIBS"
30736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737/* end confdefs.h. */
30738
30739/* Override any GCC internal prototype to avoid an error.
30740 Use char because int might match the return type of a GCC
30741 builtin and then its argument prototype would still apply. */
30742#ifdef __cplusplus
30743extern "C"
30744#endif
30745char png_get_io_ptr ();
30746int
30747main ()
30748{
30749return png_get_io_ptr ();
30750 ;
30751 return 0;
30752}
30753_ACEOF
30754if ac_fn_c_try_link "$LINENO"; then :
30755 ac_cv_lib_png17_png_get_io_ptr=yes
30756else
30757 ac_cv_lib_png17_png_get_io_ptr=no
30758fi
30759rm -f core conftest.err conftest.$ac_objext \
30760 conftest$ac_exeext conftest.$ac_ext
30761LIBS=$ac_check_lib_save_LIBS
30762fi
30763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30764$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30765if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30766 passed=`expr $passed + 1`
30767else
30768 failed=`expr $failed + 1`
30769fi
30770
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30772$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30773if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30774 $as_echo_n "(cached) " >&6
30775else
30776 ac_check_lib_save_LIBS=$LIBS
30777LIBS="-lpng17 $LIBS"
30778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30779/* end confdefs.h. */
30780
30781/* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
30784#ifdef __cplusplus
30785extern "C"
30786#endif
30787char png_longjmp ();
30788int
30789main ()
30790{
30791return png_longjmp ();
30792 ;
30793 return 0;
30794}
30795_ACEOF
30796if ac_fn_c_try_link "$LINENO"; then :
30797 ac_cv_lib_png17_png_longjmp=yes
30798else
30799 ac_cv_lib_png17_png_longjmp=no
30800fi
30801rm -f core conftest.err conftest.$ac_objext \
30802 conftest$ac_exeext conftest.$ac_ext
30803LIBS=$ac_check_lib_save_LIBS
30804fi
30805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30806$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30807if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30808 passed=`expr $passed + 1`
30809else
30810 failed=`expr $failed + 1`
30811fi
30812
30813 fi
30814 if test "1${var}" = '16' ; then
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30816$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30817if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30818 $as_echo_n "(cached) " >&6
30819else
30820 ac_check_lib_save_LIBS=$LIBS
30821LIBS="-lpng16 $LIBS"
30822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30823/* end confdefs.h. */
30824
30825/* Override any GCC internal prototype to avoid an error.
30826 Use char because int might match the return type of a GCC
30827 builtin and then its argument prototype would still apply. */
30828#ifdef __cplusplus
30829extern "C"
30830#endif
30831char png_get_io_ptr ();
30832int
30833main ()
30834{
30835return png_get_io_ptr ();
30836 ;
30837 return 0;
30838}
30839_ACEOF
30840if ac_fn_c_try_link "$LINENO"; then :
30841 ac_cv_lib_png16_png_get_io_ptr=yes
30842else
30843 ac_cv_lib_png16_png_get_io_ptr=no
30844fi
30845rm -f core conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
30847LIBS=$ac_check_lib_save_LIBS
30848fi
30849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30850$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30851if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30852 passed=`expr $passed + 1`
30853else
30854 failed=`expr $failed + 1`
30855fi
30856
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30858$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30859if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30860 $as_echo_n "(cached) " >&6
30861else
30862 ac_check_lib_save_LIBS=$LIBS
30863LIBS="-lpng16 $LIBS"
30864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30865/* end confdefs.h. */
30866
30867/* Override any GCC internal prototype to avoid an error.
30868 Use char because int might match the return type of a GCC
30869 builtin and then its argument prototype would still apply. */
30870#ifdef __cplusplus
30871extern "C"
30872#endif
30873char png_longjmp ();
30874int
30875main ()
30876{
30877return png_longjmp ();
30878 ;
30879 return 0;
30880}
30881_ACEOF
30882if ac_fn_c_try_link "$LINENO"; then :
30883 ac_cv_lib_png16_png_longjmp=yes
30884else
30885 ac_cv_lib_png16_png_longjmp=no
30886fi
30887rm -f core conftest.err conftest.$ac_objext \
30888 conftest$ac_exeext conftest.$ac_ext
30889LIBS=$ac_check_lib_save_LIBS
30890fi
30891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30892$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30893if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30894 passed=`expr $passed + 1`
30895else
30896 failed=`expr $failed + 1`
30897fi
30898
30899 fi
cristy81beccd2011-10-03 18:17:24 +000030900 if test "1${var}" = '15' ; then
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30902$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30903if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30904 $as_echo_n "(cached) " >&6
30905else
30906 ac_check_lib_save_LIBS=$LIBS
30907LIBS="-lpng15 $LIBS"
30908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30909/* end confdefs.h. */
30910
30911/* Override any GCC internal prototype to avoid an error.
30912 Use char because int might match the return type of a GCC
30913 builtin and then its argument prototype would still apply. */
30914#ifdef __cplusplus
30915extern "C"
30916#endif
30917char png_get_io_ptr ();
30918int
30919main ()
30920{
30921return png_get_io_ptr ();
30922 ;
30923 return 0;
30924}
30925_ACEOF
30926if ac_fn_c_try_link "$LINENO"; then :
30927 ac_cv_lib_png15_png_get_io_ptr=yes
30928else
30929 ac_cv_lib_png15_png_get_io_ptr=no
30930fi
30931rm -f core conftest.err conftest.$ac_objext \
30932 conftest$ac_exeext conftest.$ac_ext
30933LIBS=$ac_check_lib_save_LIBS
30934fi
30935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30936$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30937if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30938 passed=`expr $passed + 1`
30939else
30940 failed=`expr $failed + 1`
30941fi
30942
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30944$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30945if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30946 $as_echo_n "(cached) " >&6
30947else
30948 ac_check_lib_save_LIBS=$LIBS
30949LIBS="-lpng15 $LIBS"
30950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30951/* end confdefs.h. */
30952
30953/* Override any GCC internal prototype to avoid an error.
30954 Use char because int might match the return type of a GCC
30955 builtin and then its argument prototype would still apply. */
30956#ifdef __cplusplus
30957extern "C"
30958#endif
30959char png_longjmp ();
30960int
30961main ()
30962{
30963return png_longjmp ();
30964 ;
30965 return 0;
30966}
30967_ACEOF
30968if ac_fn_c_try_link "$LINENO"; then :
30969 ac_cv_lib_png15_png_longjmp=yes
30970else
30971 ac_cv_lib_png15_png_longjmp=no
30972fi
30973rm -f core conftest.err conftest.$ac_objext \
30974 conftest$ac_exeext conftest.$ac_ext
30975LIBS=$ac_check_lib_save_LIBS
30976fi
30977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30978$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30979if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30980 passed=`expr $passed + 1`
30981else
30982 failed=`expr $failed + 1`
30983fi
30984
30985 fi
30986 if test "1${var}" = '14' ; then
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30988$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30989if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30990 $as_echo_n "(cached) " >&6
30991else
30992 ac_check_lib_save_LIBS=$LIBS
30993LIBS="-lpng14 $LIBS"
30994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30995/* end confdefs.h. */
30996
30997/* Override any GCC internal prototype to avoid an error.
30998 Use char because int might match the return type of a GCC
30999 builtin and then its argument prototype would still apply. */
31000#ifdef __cplusplus
31001extern "C"
31002#endif
31003char png_get_io_ptr ();
31004int
31005main ()
31006{
31007return png_get_io_ptr ();
31008 ;
31009 return 0;
31010}
31011_ACEOF
31012if ac_fn_c_try_link "$LINENO"; then :
31013 ac_cv_lib_png14_png_get_io_ptr=yes
31014else
31015 ac_cv_lib_png14_png_get_io_ptr=no
31016fi
31017rm -f core conftest.err conftest.$ac_objext \
31018 conftest$ac_exeext conftest.$ac_ext
31019LIBS=$ac_check_lib_save_LIBS
31020fi
31021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31022$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31023if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31024 passed=`expr $passed + 1`
31025else
31026 failed=`expr $failed + 1`
31027fi
31028
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31030$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31031if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31032 $as_echo_n "(cached) " >&6
31033else
31034 ac_check_lib_save_LIBS=$LIBS
31035LIBS="-lpng14 $LIBS"
31036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31037/* end confdefs.h. */
31038
31039/* Override any GCC internal prototype to avoid an error.
31040 Use char because int might match the return type of a GCC
31041 builtin and then its argument prototype would still apply. */
31042#ifdef __cplusplus
31043extern "C"
31044#endif
31045char png_get_io_state ();
31046int
31047main ()
31048{
31049return png_get_io_state ();
31050 ;
31051 return 0;
31052}
31053_ACEOF
31054if ac_fn_c_try_link "$LINENO"; then :
31055 ac_cv_lib_png14_png_get_io_state=yes
31056else
31057 ac_cv_lib_png14_png_get_io_state=no
31058fi
31059rm -f core conftest.err conftest.$ac_objext \
31060 conftest$ac_exeext conftest.$ac_ext
31061LIBS=$ac_check_lib_save_LIBS
31062fi
31063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31064$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31065if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31066 passed=`expr $passed + 1`
31067else
31068 failed=`expr $failed + 1`
31069fi
31070
31071 fi
31072 if test "1${var}" = '12' ; then
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31074$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31075if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31076 $as_echo_n "(cached) " >&6
31077else
31078 ac_check_lib_save_LIBS=$LIBS
31079LIBS="-lpng12 $LIBS"
31080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31081/* end confdefs.h. */
31082
31083/* Override any GCC internal prototype to avoid an error.
31084 Use char because int might match the return type of a GCC
31085 builtin and then its argument prototype would still apply. */
31086#ifdef __cplusplus
31087extern "C"
31088#endif
31089char png_get_io_ptr ();
31090int
31091main ()
31092{
31093return png_get_io_ptr ();
31094 ;
31095 return 0;
31096}
31097_ACEOF
31098if ac_fn_c_try_link "$LINENO"; then :
31099 ac_cv_lib_png12_png_get_io_ptr=yes
31100else
31101 ac_cv_lib_png12_png_get_io_ptr=no
31102fi
31103rm -f core conftest.err conftest.$ac_objext \
31104 conftest$ac_exeext conftest.$ac_ext
31105LIBS=$ac_check_lib_save_LIBS
31106fi
31107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31108$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31109if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31110 passed=`expr $passed + 1`
31111else
31112 failed=`expr $failed + 1`
31113fi
31114
31115 fi
31116 if test "1${var}" = '1' ; then
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31118$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31119if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31120 $as_echo_n "(cached) " >&6
31121else
31122 ac_check_lib_save_LIBS=$LIBS
31123LIBS="-lpng $LIBS"
31124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31125/* end confdefs.h. */
31126
31127/* Override any GCC internal prototype to avoid an error.
31128 Use char because int might match the return type of a GCC
31129 builtin and then its argument prototype would still apply. */
31130#ifdef __cplusplus
31131extern "C"
31132#endif
31133char png_get_io_ptr ();
31134int
31135main ()
31136{
31137return png_get_io_ptr ();
31138 ;
31139 return 0;
31140}
31141_ACEOF
31142if ac_fn_c_try_link "$LINENO"; then :
31143 ac_cv_lib_png_png_get_io_ptr=yes
31144else
31145 ac_cv_lib_png_png_get_io_ptr=no
31146fi
31147rm -f core conftest.err conftest.$ac_objext \
31148 conftest$ac_exeext conftest.$ac_ext
31149LIBS=$ac_check_lib_save_LIBS
31150fi
31151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31152$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31153if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31154 passed=`expr $passed + 1`
31155else
31156 failed=`expr $failed + 1`
31157fi
31158
31159 fi
31160 if test $passed -gt 0 -a $failed -le 0 ; then
31161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31162$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31163 if test $passed -gt 0 ; then
31164 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31166$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031167 have_png='no (failed tests)'
31168 else
31169 PNG_LIBS="-l${pnglib}"
31170 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031171
cristy8b350f62009-11-15 23:12:43 +000031172$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031173
cristyad38abe2012-12-23 23:03:21 +000031174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31175$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031176 have_png='yes'
31177 fi
31178 fi
31179 fi
31180 fi
31181 fi
31182 done
31183 fi
cristy3ed852e2009-09-05 21:47:34 +000031184fi
cristy64877302011-08-23 19:10:31 +000031185
cristy73bd4a52010-10-05 11:24:23 +000031186 if test "$have_png" = 'yes'; then
31187 PNG_DELEGATE_TRUE=
31188 PNG_DELEGATE_FALSE='#'
31189else
31190 PNG_DELEGATE_TRUE='#'
31191 PNG_DELEGATE_FALSE=
31192fi
31193
cristy3ed852e2009-09-05 21:47:34 +000031194
cristy50d3f5c2011-09-10 20:09:06 +000031195
cristy3ed852e2009-09-05 21:47:34 +000031196
31197
31198#
31199# Check for RSVG delegate library.
31200#
31201
31202# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031203if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031204 withval=$with_rsvg; with_rsvg=$withval
31205else
cristy1164d5f2012-08-15 00:58:25 +000031206 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031207fi
31208
31209
31210if test "$with_rsvg" != 'yes'; then
31211 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31212fi
31213
31214have_rsvg='no'
31215have_cairo='no'
31216RSVG_CFLAGS=""
31217RSVG_LIBS=""
31218RSVG_PKG=""
31219if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31221$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031222
31223pkg_failed=no
31224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31225$as_echo_n "checking for RSVG... " >&6; }
31226
31227if test -n "$RSVG_CFLAGS"; then
31228 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31229 elif test -n "$PKG_CONFIG"; then
31230 if test -n "$PKG_CONFIG" && \
31231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31232 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31233 ac_status=$?
31234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31235 test $ac_status = 0; }; then
31236 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31237else
31238 pkg_failed=yes
31239fi
31240 else
31241 pkg_failed=untried
31242fi
31243if test -n "$RSVG_LIBS"; then
31244 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31245 elif test -n "$PKG_CONFIG"; then
31246 if test -n "$PKG_CONFIG" && \
31247 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31248 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31249 ac_status=$?
31250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31251 test $ac_status = 0; }; then
31252 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31253else
31254 pkg_failed=yes
31255fi
31256 else
31257 pkg_failed=untried
31258fi
31259
31260
31261
31262if test $pkg_failed = yes; then
31263
31264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31265 _pkg_short_errors_supported=yes
31266else
31267 _pkg_short_errors_supported=no
31268fi
31269 if test $_pkg_short_errors_supported = yes; then
31270 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31271 else
31272 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31273 fi
31274 # Put the nasty error message in config.log where it belongs
31275 echo "$RSVG_PKG_ERRORS" >&5
31276
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31278$as_echo "no" >&6; }
31279 have_rsvg=no
31280elif test $pkg_failed = untried; then
31281 have_rsvg=no
31282else
31283 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31284 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31286$as_echo "yes" >&6; }
31287 have_rsvg=yes
31288fi
cristyad38abe2012-12-23 23:03:21 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31290$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031291
31292pkg_failed=no
31293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31294$as_echo_n "checking for CAIRO_SVG... " >&6; }
31295
31296if test -n "$CAIRO_SVG_CFLAGS"; then
31297 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31298 elif test -n "$PKG_CONFIG"; then
31299 if test -n "$PKG_CONFIG" && \
31300 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31301 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31302 ac_status=$?
31303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31304 test $ac_status = 0; }; then
31305 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31306else
31307 pkg_failed=yes
31308fi
31309 else
31310 pkg_failed=untried
31311fi
31312if test -n "$CAIRO_SVG_LIBS"; then
31313 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31314 elif test -n "$PKG_CONFIG"; then
31315 if test -n "$PKG_CONFIG" && \
31316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31317 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31318 ac_status=$?
31319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31320 test $ac_status = 0; }; then
31321 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31322else
31323 pkg_failed=yes
31324fi
31325 else
31326 pkg_failed=untried
31327fi
31328
31329
31330
31331if test $pkg_failed = yes; then
31332
31333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31334 _pkg_short_errors_supported=yes
31335else
31336 _pkg_short_errors_supported=no
31337fi
31338 if test $_pkg_short_errors_supported = yes; then
31339 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31340 else
31341 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31342 fi
31343 # Put the nasty error message in config.log where it belongs
31344 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31345
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31347$as_echo "no" >&6; }
31348 have_cairo=no
31349elif test $pkg_failed = untried; then
31350 have_cairo=no
31351else
31352 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31353 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31355$as_echo "yes" >&6; }
31356 have_cairo=yes
31357fi
cristyad38abe2012-12-23 23:03:21 +000031358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31359$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031360fi
31361
31362if test "$have_rsvg" = 'yes'; then
31363
cristy8b350f62009-11-15 23:12:43 +000031364$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031365
cristyc6722092012-10-14 00:19:31 +000031366 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031367 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31368 fi
31369fi
31370
31371if test "$have_cairo" = 'yes'; then
31372
cristy8b350f62009-11-15 23:12:43 +000031373$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031374
cristyc6722092012-10-14 00:19:31 +000031375 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031376 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31377 fi
31378fi
31379
cristy73bd4a52010-10-05 11:24:23 +000031380 if test "$have_rsvg" = 'yes'; then
31381 RSVG_DELEGATE_TRUE=
31382 RSVG_DELEGATE_FALSE='#'
31383else
31384 RSVG_DELEGATE_TRUE='#'
31385 RSVG_DELEGATE_FALSE=
31386fi
31387
31388 if test "$have_cairo" = 'yes'; then
31389 CAIRO_DELEGATE_TRUE=
31390 CAIRO_DELEGATE_FALSE='#'
31391else
31392 CAIRO_DELEGATE_TRUE='#'
31393 CAIRO_DELEGATE_FALSE=
31394fi
31395
cristy3ed852e2009-09-05 21:47:34 +000031396
31397
31398
31399
31400#
31401# Check for TIFF delegate library.
31402#
31403
31404# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031405if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031406 withval=$with_tiff; with_tiff=$withval
31407else
31408 with_tiff='yes'
31409fi
31410
31411
31412if test "$with_tiff" != 'yes'; then
31413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31414fi
31415
31416have_tiff='no'
31417TIFF_LIBS=''
31418if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31420$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031422$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31424$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031425 failed=0
31426 passed=0
cristy8b350f62009-11-15 23:12:43 +000031427 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031428if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031429 passed=`expr $passed + 1`
31430else
31431 failed=`expr $failed + 1`
31432fi
31433
31434
cristy8b350f62009-11-15 23:12:43 +000031435 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031436if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031437 passed=`expr $passed + 1`
31438else
31439 failed=`expr $failed + 1`
31440fi
31441
31442
cristy8b350f62009-11-15 23:12:43 +000031443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031444$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031445if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031446 $as_echo_n "(cached) " >&6
31447else
31448 ac_check_lib_save_LIBS=$LIBS
31449LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031451/* end confdefs.h. */
31452
31453/* Override any GCC internal prototype to avoid an error.
31454 Use char because int might match the return type of a GCC
31455 builtin and then its argument prototype would still apply. */
31456#ifdef __cplusplus
31457extern "C"
31458#endif
31459char TIFFOpen ();
31460int
31461main ()
31462{
31463return TIFFOpen ();
31464 ;
31465 return 0;
31466}
31467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031468if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031469 ac_cv_lib_tiff_TIFFOpen=yes
31470else
cristy8b350f62009-11-15 23:12:43 +000031471 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031472fi
cristy8b350f62009-11-15 23:12:43 +000031473rm -f core conftest.err conftest.$ac_objext \
31474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031475LIBS=$ac_check_lib_save_LIBS
31476fi
cristy8b350f62009-11-15 23:12:43 +000031477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031478$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031479if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031480 passed=`expr $passed + 1`
31481else
31482 failed=`expr $failed + 1`
31483fi
31484
cristy8b350f62009-11-15 23:12:43 +000031485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031486$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031487if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031488 $as_echo_n "(cached) " >&6
31489else
31490 ac_check_lib_save_LIBS=$LIBS
31491LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031493/* end confdefs.h. */
31494
31495/* Override any GCC internal prototype to avoid an error.
31496 Use char because int might match the return type of a GCC
31497 builtin and then its argument prototype would still apply. */
31498#ifdef __cplusplus
31499extern "C"
31500#endif
31501char TIFFClientOpen ();
31502int
31503main ()
31504{
31505return TIFFClientOpen ();
31506 ;
31507 return 0;
31508}
31509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031511 ac_cv_lib_tiff_TIFFClientOpen=yes
31512else
cristy8b350f62009-11-15 23:12:43 +000031513 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031514fi
cristy8b350f62009-11-15 23:12:43 +000031515rm -f core conftest.err conftest.$ac_objext \
31516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031517LIBS=$ac_check_lib_save_LIBS
31518fi
cristy8b350f62009-11-15 23:12:43 +000031519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031520$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031521if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031522 passed=`expr $passed + 1`
31523else
31524 failed=`expr $failed + 1`
31525fi
31526
cristy8b350f62009-11-15 23:12:43 +000031527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031528$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031529if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031530 $as_echo_n "(cached) " >&6
31531else
31532 ac_check_lib_save_LIBS=$LIBS
31533LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031535/* end confdefs.h. */
31536
31537/* Override any GCC internal prototype to avoid an error.
31538 Use char because int might match the return type of a GCC
31539 builtin and then its argument prototype would still apply. */
31540#ifdef __cplusplus
31541extern "C"
31542#endif
31543char TIFFIsByteSwapped ();
31544int
31545main ()
31546{
31547return TIFFIsByteSwapped ();
31548 ;
31549 return 0;
31550}
31551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031553 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31554else
cristy8b350f62009-11-15 23:12:43 +000031555 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031556fi
cristy8b350f62009-11-15 23:12:43 +000031557rm -f core conftest.err conftest.$ac_objext \
31558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031559LIBS=$ac_check_lib_save_LIBS
31560fi
cristy8b350f62009-11-15 23:12:43 +000031561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031563if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031564 passed=`expr $passed + 1`
31565else
31566 failed=`expr $failed + 1`
31567fi
31568
cristy8b350f62009-11-15 23:12:43 +000031569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031570$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031571if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031572 $as_echo_n "(cached) " >&6
31573else
31574 ac_check_lib_save_LIBS=$LIBS
31575LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031577/* end confdefs.h. */
31578
31579/* Override any GCC internal prototype to avoid an error.
31580 Use char because int might match the return type of a GCC
31581 builtin and then its argument prototype would still apply. */
31582#ifdef __cplusplus
31583extern "C"
31584#endif
31585char TIFFReadRGBATile ();
31586int
31587main ()
31588{
31589return TIFFReadRGBATile ();
31590 ;
31591 return 0;
31592}
31593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031595 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31596else
cristy8b350f62009-11-15 23:12:43 +000031597 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031598fi
cristy8b350f62009-11-15 23:12:43 +000031599rm -f core conftest.err conftest.$ac_objext \
31600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031601LIBS=$ac_check_lib_save_LIBS
31602fi
cristy8b350f62009-11-15 23:12:43 +000031603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031604$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031605if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031606 passed=`expr $passed + 1`
31607else
31608 failed=`expr $failed + 1`
31609fi
31610
cristy8b350f62009-11-15 23:12:43 +000031611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031612$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031613if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031614 $as_echo_n "(cached) " >&6
31615else
31616 ac_check_lib_save_LIBS=$LIBS
31617LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031619/* end confdefs.h. */
31620
31621/* Override any GCC internal prototype to avoid an error.
31622 Use char because int might match the return type of a GCC
31623 builtin and then its argument prototype would still apply. */
31624#ifdef __cplusplus
31625extern "C"
31626#endif
31627char TIFFReadRGBAStrip ();
31628int
31629main ()
31630{
31631return TIFFReadRGBAStrip ();
31632 ;
31633 return 0;
31634}
31635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031637 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31638else
cristy8b350f62009-11-15 23:12:43 +000031639 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031640fi
cristy8b350f62009-11-15 23:12:43 +000031641rm -f core conftest.err conftest.$ac_objext \
31642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031643LIBS=$ac_check_lib_save_LIBS
31644fi
cristy8b350f62009-11-15 23:12:43 +000031645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031647if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031648 passed=`expr $passed + 1`
31649else
31650 failed=`expr $failed + 1`
31651fi
31652
cristy8b350f62009-11-15 23:12:43 +000031653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654$as_echo_n "checking if TIFF package is complete... " >&6; }
31655 if test $passed -gt 0; then
31656 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31658$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031659 have_tiff='no (failed tests)'
31660 else
31661 TIFF_LIBS='-ltiff'
31662 LIBS="$TIFF_LIBS $LIBS"
31663
cristy8b350f62009-11-15 23:12:43 +000031664$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031665
cristyad38abe2012-12-23 23:03:21 +000031666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31667$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031668 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031669 for ac_header in tiffconf.h
31670do :
31671 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031672if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031673 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031674#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031675_ACEOF
31676
31677fi
31678
31679done
31680
cristy8b350f62009-11-15 23:12:43 +000031681 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031682 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31683 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31684 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031685do :
31686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31687ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031688if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031689 cat >>confdefs.h <<_ACEOF
31690#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31691_ACEOF
31692
31693fi
31694done
31695
31696 fi
31697 else
cristyad38abe2012-12-23 23:03:21 +000031698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31699$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031700 fi
31701fi
cristy73bd4a52010-10-05 11:24:23 +000031702 if test "$have_tiff" = 'yes'; then
31703 TIFF_DELEGATE_TRUE=
31704 TIFF_DELEGATE_FALSE='#'
31705else
31706 TIFF_DELEGATE_TRUE='#'
31707 TIFF_DELEGATE_FALSE=
31708fi
31709
cristy3ed852e2009-09-05 21:47:34 +000031710
31711
31712
31713#
cristyb1860752011-03-14 00:27:46 +000031714# Check for WEBP delegate library.
31715#
31716
31717# Check whether --with-webp was given.
31718if test "${with_webp+set}" = set; then :
31719 withval=$with_webp; with_webp=$withval
31720else
31721 with_webp='yes'
31722fi
31723
31724
31725if test "$with_webp" != 'yes'; then
31726 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31727fi
31728
31729have_webp='no'
31730WEBP_LIBS=''
31731if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31733$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31735$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31737$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031738 failed=0
31739 passed=0
31740 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31741if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31742 passed=`expr $passed + 1`
31743else
31744 failed=`expr $failed + 1`
31745fi
31746
31747
cristy6d670312013-03-22 23:23:01 +000031748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31749$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31750if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031751 $as_echo_n "(cached) " >&6
31752else
31753 ac_check_lib_save_LIBS=$LIBS
31754LIBS="-lwebp $LIBS"
31755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31756/* end confdefs.h. */
31757
31758/* Override any GCC internal prototype to avoid an error.
31759 Use char because int might match the return type of a GCC
31760 builtin and then its argument prototype would still apply. */
31761#ifdef __cplusplus
31762extern "C"
31763#endif
cristy6d670312013-03-22 23:23:01 +000031764char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031765int
31766main ()
31767{
cristy6d670312013-03-22 23:23:01 +000031768return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031769 ;
31770 return 0;
31771}
31772_ACEOF
31773if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031774 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031775else
cristy6d670312013-03-22 23:23:01 +000031776 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031777fi
31778rm -f core conftest.err conftest.$ac_objext \
31779 conftest$ac_exeext conftest.$ac_ext
31780LIBS=$ac_check_lib_save_LIBS
31781fi
cristy6d670312013-03-22 23:23:01 +000031782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31783$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31784if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031785 passed=`expr $passed + 1`
31786else
31787 failed=`expr $failed + 1`
31788fi
31789
31790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31791$as_echo_n "checking if WEBP package is complete... " >&6; }
31792 if test $passed -gt 0; then
31793 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31795$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031796 have_webp='no (failed tests)'
31797 else
31798 WEBP_LIBS='-lwebp'
31799 LIBS="$WEBP_LIBS $LIBS"
31800
31801$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31802
cristyad38abe2012-12-23 23:03:21 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31804$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031805 have_webp='yes'
31806 fi
31807 else
cristyad38abe2012-12-23 23:03:21 +000031808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31809$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031810 fi
31811fi
31812 if test "$have_webp" = 'yes'; then
31813 WEBP_DELEGATE_TRUE=
31814 WEBP_DELEGATE_FALSE='#'
31815else
31816 WEBP_DELEGATE_TRUE='#'
31817 WEBP_DELEGATE_FALSE=
31818fi
31819
31820
31821
31822
31823#
cristy3ed852e2009-09-05 21:47:34 +000031824# Set Windows font directory.
31825#
31826
31827# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031828if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031829 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31830else
31831 with_windows_font_dir=''
31832fi
31833
31834if test "$with_windows_font_dir" != '' ; then
31835 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31836fi
31837
31838
31839#
31840# Check for WMF delegate library.
31841#
31842
31843# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031844if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031845 withval=$with_wmf; with_wmf=$withval
31846else
cristyfc3d0222012-02-07 15:05:57 +000031847 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031848fi
31849
31850
31851if test "$with_wmf" != 'yes'; then
31852 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31853fi
31854
31855have_wmf='no'
31856WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031857WMF_LIBS_DEPS=''
31858OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031859if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31861$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31865$as_echo "" >&6; }
31866 have_libwmf='no'
31867 have_libwmflite='no'
31868 have_libwmf_ipa_h='no'
31869
31870 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31871"
31872if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31873 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031874fi
31875
31876
cristy03f7cf92011-12-15 01:40:41 +000031877 if test "$have_libwmf_ipa_h" = 'yes'; then
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31879$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31880if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031881 $as_echo_n "(cached) " >&6
31882else
31883 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031884LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031886/* end confdefs.h. */
31887
31888/* Override any GCC internal prototype to avoid an error.
31889 Use char because int might match the return type of a GCC
31890 builtin and then its argument prototype would still apply. */
31891#ifdef __cplusplus
31892extern "C"
31893#endif
cristy03f7cf92011-12-15 01:40:41 +000031894char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031895int
31896main ()
31897{
cristy03f7cf92011-12-15 01:40:41 +000031898return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031899 ;
31900 return 0;
31901}
31902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031903if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031904 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031905else
cristy03f7cf92011-12-15 01:40:41 +000031906 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031907fi
cristy8b350f62009-11-15 23:12:43 +000031908rm -f core conftest.err conftest.$ac_objext \
31909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031910LIBS=$ac_check_lib_save_LIBS
31911fi
cristy03f7cf92011-12-15 01:40:41 +000031912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31913$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31914if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31915 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031916fi
31917
cristy03f7cf92011-12-15 01:40:41 +000031918 if test "$have_libwmflite" = 'yes'; then
31919
31920$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31921
31922 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031923 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031924 have_wmf='yes'
31925 else
31926 WMF_LIBS_DEPS=''
31927 WMF_CONFIG_LIBS=`libwmf-config --libs`
31928 for lib in xml2 expat freetype jpeg png z; do
31929 testlib="-l${lib}"
31930 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31931 done
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31933$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31934if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31935 $as_echo_n "(cached) " >&6
31936else
31937 ac_check_lib_save_LIBS=$LIBS
31938LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31940/* end confdefs.h. */
31941
31942/* Override any GCC internal prototype to avoid an error.
31943 Use char because int might match the return type of a GCC
31944 builtin and then its argument prototype would still apply. */
31945#ifdef __cplusplus
31946extern "C"
31947#endif
31948char wmf_api_create ();
31949int
31950main ()
31951{
31952return wmf_api_create ();
31953 ;
31954 return 0;
31955}
31956_ACEOF
31957if ac_fn_c_try_link "$LINENO"; then :
31958 ac_cv_lib_wmf_wmf_api_create=yes
31959else
31960 ac_cv_lib_wmf_wmf_api_create=no
31961fi
31962rm -f core conftest.err conftest.$ac_objext \
31963 conftest$ac_exeext conftest.$ac_ext
31964LIBS=$ac_check_lib_save_LIBS
31965fi
31966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31967$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31968if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31969 have_libwmf='yes'
31970fi
31971
31972 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031973
cristy8b350f62009-11-15 23:12:43 +000031974$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031975
cristy03f7cf92011-12-15 01:40:41 +000031976 WMF_LIBS='-lwmf'
31977 LIBS="$WMF_LIBS $LIBS"
31978 have_wmf='yes'
31979 else
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31981$as_echo "no -- some components failed test" >&6; }
31982 have_wmf='no (failed tests)'
31983 have_wmflite='no (failed tests)'
31984 LIBS="$OLIBS"
31985 WMF_LIBS=''
31986 fi
glennrp33e524b2011-08-24 17:41:57 +000031987 fi
cristy03f7cf92011-12-15 01:40:41 +000031988 fi
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31990$as_echo_n "checking if WMF package is complete... " >&6; }
31991 if test "$have_wmf" = 'yes'; then
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031994 else
cristy03f7cf92011-12-15 01:40:41 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031997 fi
cristy3ed852e2009-09-05 21:47:34 +000031998fi
cristy73bd4a52010-10-05 11:24:23 +000031999 if test "$have_wmf" = 'yes'; then
32000 WMF_DELEGATE_TRUE=
32001 WMF_DELEGATE_FALSE='#'
32002else
32003 WMF_DELEGATE_TRUE='#'
32004 WMF_DELEGATE_FALSE=
32005fi
32006
cristy3ed852e2009-09-05 21:47:34 +000032007
32008
32009
cristy81beccd2011-10-03 18:17:24 +000032010
32011
cristy3ed852e2009-09-05 21:47:34 +000032012#
32013# Check for XML delegate library.
32014#
32015
32016# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032017if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032018 withval=$with_xml; with_xml=$withval
32019else
cristyfc3d0222012-02-07 15:05:57 +000032020 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032021fi
32022
32023
cristy81beccd2011-10-03 18:17:24 +000032024if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32026fi
32027
cristy81beccd2011-10-03 18:17:24 +000032028have_xml='no'
32029XML_LIBS=''
32030if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32032$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32034$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32036$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032037 PERSIST_LDFLAGS=$LDFLAGS
32038 PERSIST_CPPFLAGS=$CPPFLAGS
32039 xml2_config=''
32040 # Extract the first word of "xml2-config", so it can be a program name with args.
32041set dummy xml2-config; ac_word=$2
32042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32043$as_echo_n "checking for $ac_word... " >&6; }
32044if ${ac_cv_path_xml2_config+:} false; then :
32045 $as_echo_n "(cached) " >&6
32046else
32047 case $xml2_config in
32048 [\\/]* | ?:[\\/]*)
32049 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32050 ;;
32051 *)
32052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32053for as_dir in $PATH
32054do
32055 IFS=$as_save_IFS
32056 test -z "$as_dir" && as_dir=.
32057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032059 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32061 break 2
32062 fi
32063done
32064 done
32065IFS=$as_save_IFS
32066
32067 ;;
32068esac
32069fi
32070xml2_config=$ac_cv_path_xml2_config
32071if test -n "$xml2_config"; then
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32073$as_echo "$xml2_config" >&6; }
32074else
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32076$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032077fi
32078
cristy81beccd2011-10-03 18:17:24 +000032079 if test -n "$xml2_config"; then
32080 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32081 # the shared library installed under /usr/lib, whereas the package
32082 # installs itself under $prefix/libxml and $prefix/lib.
32083 xml2_prefix=`xml2-config --prefix`
32084 if test -d "${xml2_prefix}/include/libxml2"; then
32085 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32086 fi
32087 if test "${xml2_prefix}" != '/usr'; then
32088 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32089 fi
32090 fi
32091 failed=0
32092 passed=0
32093 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32094if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32095 passed=`expr $passed + 1`
32096else
32097 failed=`expr $failed + 1`
32098fi
32099
32100
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32102$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32103if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32104 $as_echo_n "(cached) " >&6
32105else
32106 ac_check_lib_save_LIBS=$LIBS
32107LIBS="-lxml2 $LIBS"
32108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32109/* end confdefs.h. */
32110
32111/* Override any GCC internal prototype to avoid an error.
32112 Use char because int might match the return type of a GCC
32113 builtin and then its argument prototype would still apply. */
32114#ifdef __cplusplus
32115extern "C"
32116#endif
32117char xmlSAXVersion ();
32118int
32119main ()
32120{
32121return xmlSAXVersion ();
32122 ;
32123 return 0;
32124}
32125_ACEOF
32126if ac_fn_c_try_link "$LINENO"; then :
32127 ac_cv_lib_xml2_xmlSAXVersion=yes
32128else
32129 ac_cv_lib_xml2_xmlSAXVersion=no
32130fi
32131rm -f core conftest.err conftest.$ac_objext \
32132 conftest$ac_exeext conftest.$ac_ext
32133LIBS=$ac_check_lib_save_LIBS
32134fi
32135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32136$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32137if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32138 passed=`expr $passed + 1`
32139else
32140 failed=`expr $failed + 1`
32141fi
32142
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32144$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32145if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32146 $as_echo_n "(cached) " >&6
32147else
32148 ac_check_lib_save_LIBS=$LIBS
32149LIBS="-lxml2 $LIBS"
32150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32151/* end confdefs.h. */
32152
32153/* Override any GCC internal prototype to avoid an error.
32154 Use char because int might match the return type of a GCC
32155 builtin and then its argument prototype would still apply. */
32156#ifdef __cplusplus
32157extern "C"
32158#endif
32159char xmlParseChunk ();
32160int
32161main ()
32162{
32163return xmlParseChunk ();
32164 ;
32165 return 0;
32166}
32167_ACEOF
32168if ac_fn_c_try_link "$LINENO"; then :
32169 ac_cv_lib_xml2_xmlParseChunk=yes
32170else
32171 ac_cv_lib_xml2_xmlParseChunk=no
32172fi
32173rm -f core conftest.err conftest.$ac_objext \
32174 conftest$ac_exeext conftest.$ac_ext
32175LIBS=$ac_check_lib_save_LIBS
32176fi
32177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32178$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32179if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32180 passed=`expr $passed + 1`
32181else
32182 failed=`expr $failed + 1`
32183fi
32184
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32186$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32187if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32188 $as_echo_n "(cached) " >&6
32189else
32190 ac_check_lib_save_LIBS=$LIBS
32191LIBS="-lxml2 $LIBS"
32192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193/* end confdefs.h. */
32194
32195/* Override any GCC internal prototype to avoid an error.
32196 Use char because int might match the return type of a GCC
32197 builtin and then its argument prototype would still apply. */
32198#ifdef __cplusplus
32199extern "C"
32200#endif
32201char xmlCreatePushParserCtxt ();
32202int
32203main ()
32204{
32205return xmlCreatePushParserCtxt ();
32206 ;
32207 return 0;
32208}
32209_ACEOF
32210if ac_fn_c_try_link "$LINENO"; then :
32211 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32212else
32213 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32214fi
32215rm -f core conftest.err conftest.$ac_objext \
32216 conftest$ac_exeext conftest.$ac_ext
32217LIBS=$ac_check_lib_save_LIBS
32218fi
32219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32220$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32221if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32222 passed=`expr $passed + 1`
32223else
32224 failed=`expr $failed + 1`
32225fi
32226
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32228$as_echo_n "checking if XML package is complete... " >&6; }
32229 if test $passed -gt 0; then
32230 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32232$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032233 have_xml='no (failed tests)'
32234 LDFLAGS="$PERSIST_LDFLAGS"
32235 CPPFLAGS="$PERSIST_CPPFLAGS"
32236 else
32237 XML_LIBS='-lxml2'
32238 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032239
cristy8b350f62009-11-15 23:12:43 +000032240$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032241
cristyad38abe2012-12-23 23:03:21 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32243$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032244 have_xml='yes'
32245 fi
32246 else
cristyad38abe2012-12-23 23:03:21 +000032247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32248$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032249 fi
32250fi
cristy73bd4a52010-10-05 11:24:23 +000032251 if test "$have_xml" = 'yes'; then
32252 XML_DELEGATE_TRUE=
32253 XML_DELEGATE_FALSE='#'
32254else
32255 XML_DELEGATE_TRUE='#'
32256 XML_DELEGATE_FALSE=
32257fi
32258
cristy3ed852e2009-09-05 21:47:34 +000032259
32260
32261
32262# Substitute compiler name to build/link PerlMagick
32263#
32264
32265
32266#
32267# Configure install Paths
32268#
cristy7def36a2011-10-28 19:04:41 +000032269
cristy2a11bef2011-10-28 18:33:11 +000032270# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032271INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032272INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32273DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032274case "${build_os}" in
32275 mingw* )
32276 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32277 ;;
32278esac
32279
32280cat >>confdefs.h <<_ACEOF
32281#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32282_ACEOF
32283
32284
cristy3ed852e2009-09-05 21:47:34 +000032285
cristye52f12f2012-12-31 15:32:36 +000032286# Path to ImageMagick header files (arch part)
32287INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32288DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32289case "${build_os}" in
32290 mingw* )
32291 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32292 ;;
32293esac
32294
32295cat >>confdefs.h <<_ACEOF
32296#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32297_ACEOF
32298
32299
32300
cristy3ed852e2009-09-05 21:47:34 +000032301# Subdirectory under lib to place ImageMagick lib files
32302LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32303
32304cat >>confdefs.h <<_ACEOF
32305#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32306_ACEOF
32307
32308
32309# Path to ImageMagick bin directory
32310EXECUTABLE_PATH="${BIN_DIR}"
32311DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32312case "${build_os}" in
32313 mingw* )
32314 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32315 ;;
32316esac
32317
32318cat >>confdefs.h <<_ACEOF
32319#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32320_ACEOF
32321
32322
32323
32324# Path to ImageMagick lib
32325LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32326DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32327case "${build_os}" in
32328 mingw* )
32329 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32330 ;;
32331esac
32332
32333cat >>confdefs.h <<_ACEOF
32334#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32335_ACEOF
32336
32337
32338
cristy3ed852e2009-09-05 21:47:34 +000032339#
cristy8d0ff762013-03-10 20:33:28 +000032340# path to local binaries
32341if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32342 LIB_BIN_BASEDIRNAME="bin"
32343fi
32344
32345cat >>confdefs.h <<_ACEOF
32346#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32347_ACEOF
32348
32349
32350
32351if test "x$LIB_BIN_DIR" = "x"; then
32352 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32353fi
32354
32355
32356LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32357
32358LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32359
32360
32361#
cristy01ff9f32012-12-01 18:15:29 +000032362# path to modules lib
32363if test "x$MODULES_BASEDIRNAME" = "x"; then
32364 MODULES_BASEDIRNAME="modules"
32365fi
cristy3ed852e2009-09-05 21:47:34 +000032366
32367cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032368#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032369_ACEOF
32370
cristy01ff9f32012-12-01 18:15:29 +000032371
32372
32373if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032374 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32375else
cristy3ed852e2009-09-05 21:47:34 +000032376
32377cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032378#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032379_ACEOF
32380
cristycf4a3c22012-12-02 21:47:25 +000032381fi
cristy01ff9f32012-12-01 18:15:29 +000032382
32383
cristy371d4812012-12-01 19:48:10 +000032384MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032385
32386MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32387
32388
32389#
32390# path to coders lib
32391if test "x$CODER_DIRNAME" = "x"; then
32392 CODER_DIRNAME="coders"
32393fi
32394
32395cat >>confdefs.h <<_ACEOF
32396#define CODER_DIRNAME "$CODER_DIRNAME"
32397_ACEOF
32398
32399
32400
cristy371d4812012-12-01 19:48:10 +000032401CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032402CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032403
32404
32405#
32406# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032407#
32408# path to coders lib
32409if test "x$FILTER_DIRNAME" = "x"; then
32410 FILTER_DIRNAME="filters"
32411fi
cristy3ed852e2009-09-05 21:47:34 +000032412
32413cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032414#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032415_ACEOF
32416
cristy3ed852e2009-09-05 21:47:34 +000032417
cristy3ed852e2009-09-05 21:47:34 +000032418
cristy371d4812012-12-01 19:48:10 +000032419FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032420FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032421
32422
32423#
32424# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032425DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032426DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32427DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032428case "${build_os}" in
32429 mingw* )
32430 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32431 ;;
32432esac
32433
32434cat >>confdefs.h <<_ACEOF
32435#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32436_ACEOF
32437
32438
32439
cristy2a11bef2011-10-28 18:33:11 +000032440# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032441CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032442
32443cat >>confdefs.h <<_ACEOF
32444#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32445_ACEOF
32446
cristy7def36a2011-10-28 19:04:41 +000032447CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032448DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32449case "${build_os}" in
32450 mingw* )
32451 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32452 ;;
32453esac
32454
32455cat >>confdefs.h <<_ACEOF
32456#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32457_ACEOF
32458
32459
32460
cristy2a11bef2011-10-28 18:33:11 +000032461# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032462SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032463
32464cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032465#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032466_ACEOF
32467
cristy670aa3c2011-11-03 00:54:00 +000032468SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032469DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032470case "${build_os}" in
32471 mingw* )
cristy4f820712011-04-01 12:35:43 +000032472 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032473 ;;
32474esac
32475
32476cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032477#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032478_ACEOF
32479
32480
32481
cristy54378032012-12-04 15:52:20 +000032482#
32483# Subdirectory to place architecture-dependent configuration files.
32484if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32485 SHAREARCH_BASEDIRNAME="config"
32486fi
cristy670aa3c2011-11-03 00:54:00 +000032487
32488cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032489#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032490_ACEOF
32491
cristy54378032012-12-04 15:52:20 +000032492
32493
32494if test "x$SHAREARCH_DIRNAME" = "x"; then
32495 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32496else
cristy670aa3c2011-11-03 00:54:00 +000032497
32498cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032499#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032500_ACEOF
32501
cristy54378032012-12-04 15:52:20 +000032502fi
32503
32504
32505SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32506
32507SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032508
32509
cristy3ed852e2009-09-05 21:47:34 +000032510#
32511# program_transform_name is formed for use in a Makefile, so create a
32512# modified version for use in a shell script.
32513configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32514
32515# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32517$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032519$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32521$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032522AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032523BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032524BZIPDelegateDefault='bzip2'
32525BrowseDelegateDefault='xdg-open'
32526CGMDecodeDelegateDefault='ralcgm'
32527CatDelegateDefault='cat'
32528DNGDecodeDelegateDefault='ufraw-batch'
32529GVCDecodeDelegateDefault='dot'
32530DVIDecodeDelegateDefault='dvips'
32531EchoDelegateDefault='echo'
32532EditorDelegateDefault='xterm'
32533FIGDecodeDelegateDefault='fig2dev'
32534ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32535DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32536MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32537GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032538HPGLDecodeDelegateDefault='hp2xx'
32539HTMLDecodeDelegateDefault='html2ps'
32540ILBMDecodeDelegateDefault='ilbmtoppm'
32541ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032542JXRDecodeDelegateDefault='JxrDecApp'
32543JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032544LPDelegateDefault='lp'
32545LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032546LaunchDelegateDefault='gimp'
32547MANDelegateDefault='groff'
32548MPEGDecodeDelegateDefault='ffmpeg'
32549MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032550MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032551MVDelegateDefault='mv'
32552PCLDelegateDefault='pcl6'
32553PGPDecodeDelegateDefault='pgpv'
32554POVDelegateDefault='povray'
32555if test "$native_win32_build" = 'yes'; then
32556 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032557elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032558 PSDelegateDefault='gsc'
32559else
32560 PSDelegateDefault='gs'
32561fi
32562RLEEncodeDelegateDefault='rawtorle'
32563RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032564RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032565SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032566SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032567TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032568UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032569WebPDecodeDelegateDefault='dwebp'
32570WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032571WMFDecodeDelegateDefault='wmf2eps'
32572WWWDecodeDelegateDefault='curl'
32573XPSDelegateDefault='gxps'
32574ZipDelegateDefault='gzip'
32575
32576# Search for delegates
32577# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32578set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032581if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032582 $as_echo_n "(cached) " >&6
32583else
32584 case $AutotraceDecodeDelegate in
32585 [\\/]* | ?:[\\/]*)
32586 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32587 ;;
32588 *)
32589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32590for as_dir in $PATH
32591do
32592 IFS=$as_save_IFS
32593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032596 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598 break 2
32599 fi
32600done
cristy8b350f62009-11-15 23:12:43 +000032601 done
cristy3ed852e2009-09-05 21:47:34 +000032602IFS=$as_save_IFS
32603
32604 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32605 ;;
32606esac
32607fi
32608AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32609if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032611$as_echo "$AutotraceDecodeDelegate" >&6; }
32612else
cristy8b350f62009-11-15 23:12:43 +000032613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032614$as_echo "no" >&6; }
32615fi
32616
32617
cristy3ed852e2009-09-05 21:47:34 +000032618# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32619set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032622if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032623 $as_echo_n "(cached) " >&6
32624else
32625 case $BlenderDecodeDelegate in
32626 [\\/]* | ?:[\\/]*)
32627 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32628 ;;
32629 *)
32630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32631for as_dir in $PATH
32632do
32633 IFS=$as_save_IFS
32634 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032637 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639 break 2
32640 fi
32641done
cristy8b350f62009-11-15 23:12:43 +000032642 done
cristy3ed852e2009-09-05 21:47:34 +000032643IFS=$as_save_IFS
32644
32645 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32646 ;;
32647esac
32648fi
32649BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32650if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652$as_echo "$BlenderDecodeDelegate" >&6; }
32653else
cristy8b350f62009-11-15 23:12:43 +000032654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655$as_echo "no" >&6; }
32656fi
32657
32658
32659# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32660set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032663if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032664 $as_echo_n "(cached) " >&6
32665else
32666 case $BZIPDelegate in
32667 [\\/]* | ?:[\\/]*)
32668 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32669 ;;
32670 *)
32671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32672for as_dir in $PATH
32673do
32674 IFS=$as_save_IFS
32675 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032676 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032678 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680 break 2
32681 fi
32682done
cristy8b350f62009-11-15 23:12:43 +000032683 done
cristy3ed852e2009-09-05 21:47:34 +000032684IFS=$as_save_IFS
32685
32686 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32687 ;;
32688esac
32689fi
32690BZIPDelegate=$ac_cv_path_BZIPDelegate
32691if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693$as_echo "$BZIPDelegate" >&6; }
32694else
cristy8b350f62009-11-15 23:12:43 +000032695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696$as_echo "no" >&6; }
32697fi
32698
32699
cristyc59f0e72012-08-27 12:59:33 +000032700for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32701do
32702 # Extract the first word of "$ac_prog", so it can be a program name with args.
32703set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032706if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032707 $as_echo_n "(cached) " >&6
32708else
32709 case $BrowseDelegate in
32710 [\\/]* | ?:[\\/]*)
32711 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32712 ;;
32713 *)
32714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32715for as_dir in $PATH
32716do
32717 IFS=$as_save_IFS
32718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032721 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032723 break 2
32724 fi
32725done
cristy8b350f62009-11-15 23:12:43 +000032726 done
cristy3ed852e2009-09-05 21:47:34 +000032727IFS=$as_save_IFS
32728
cristy3ed852e2009-09-05 21:47:34 +000032729 ;;
32730esac
32731fi
32732BrowseDelegate=$ac_cv_path_BrowseDelegate
32733if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735$as_echo "$BrowseDelegate" >&6; }
32736else
cristy8b350f62009-11-15 23:12:43 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo "no" >&6; }
32739fi
32740
32741
cristyc59f0e72012-08-27 12:59:33 +000032742 test -n "$BrowseDelegate" && break
32743done
32744test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32745
cristy3ed852e2009-09-05 21:47:34 +000032746# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32747set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032750if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032751 $as_echo_n "(cached) " >&6
32752else
32753 case $CGMDecodeDelegate in
32754 [\\/]* | ?:[\\/]*)
32755 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32756 ;;
32757 *)
32758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32759for as_dir in $PATH
32760do
32761 IFS=$as_save_IFS
32762 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032765 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767 break 2
32768 fi
32769done
cristy8b350f62009-11-15 23:12:43 +000032770 done
cristy3ed852e2009-09-05 21:47:34 +000032771IFS=$as_save_IFS
32772
32773 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32774 ;;
32775esac
32776fi
32777CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32778if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032780$as_echo "$CGMDecodeDelegate" >&6; }
32781else
cristy8b350f62009-11-15 23:12:43 +000032782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032783$as_echo "no" >&6; }
32784fi
32785
32786
32787# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32788set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032791if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032792 $as_echo_n "(cached) " >&6
32793else
32794 case $CatDelegate in
32795 [\\/]* | ?:[\\/]*)
32796 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32797 ;;
32798 *)
32799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32800for as_dir in $PATH
32801do
32802 IFS=$as_save_IFS
32803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032806 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808 break 2
32809 fi
32810done
cristy8b350f62009-11-15 23:12:43 +000032811 done
cristy3ed852e2009-09-05 21:47:34 +000032812IFS=$as_save_IFS
32813
32814 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32815 ;;
32816esac
32817fi
32818CatDelegate=$ac_cv_path_CatDelegate
32819if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032821$as_echo "$CatDelegate" >&6; }
32822else
cristy8b350f62009-11-15 23:12:43 +000032823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032824$as_echo "no" >&6; }
32825fi
32826
32827
32828# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32829set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032831$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032832if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032833 $as_echo_n "(cached) " >&6
32834else
32835 case $DNGDecodeDelegate in
32836 [\\/]* | ?:[\\/]*)
32837 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32838 ;;
32839 *)
32840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32841for as_dir in $PATH
32842do
32843 IFS=$as_save_IFS
32844 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032845 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032847 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849 break 2
32850 fi
32851done
cristy8b350f62009-11-15 23:12:43 +000032852 done
cristy3ed852e2009-09-05 21:47:34 +000032853IFS=$as_save_IFS
32854
32855 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32856 ;;
32857esac
32858fi
32859DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32860if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032862$as_echo "$DNGDecodeDelegate" >&6; }
32863else
cristy8b350f62009-11-15 23:12:43 +000032864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032865$as_echo "no" >&6; }
32866fi
32867
32868
32869# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32870set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032873if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032874 $as_echo_n "(cached) " >&6
32875else
32876 case $GVCDecodeDelegate in
32877 [\\/]* | ?:[\\/]*)
32878 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32879 ;;
32880 *)
32881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32882for as_dir in $PATH
32883do
32884 IFS=$as_save_IFS
32885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032888 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890 break 2
32891 fi
32892done
cristy8b350f62009-11-15 23:12:43 +000032893 done
cristy3ed852e2009-09-05 21:47:34 +000032894IFS=$as_save_IFS
32895
32896 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32897 ;;
32898esac
32899fi
32900GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32901if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032903$as_echo "$GVCDecodeDelegate" >&6; }
32904else
cristy8b350f62009-11-15 23:12:43 +000032905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906$as_echo "no" >&6; }
32907fi
32908
32909
32910# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32911set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032914if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032915 $as_echo_n "(cached) " >&6
32916else
32917 case $DVIDecodeDelegate in
32918 [\\/]* | ?:[\\/]*)
32919 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32920 ;;
32921 *)
32922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32923for as_dir in $PATH
32924do
32925 IFS=$as_save_IFS
32926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032929 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931 break 2
32932 fi
32933done
cristy8b350f62009-11-15 23:12:43 +000032934 done
cristy3ed852e2009-09-05 21:47:34 +000032935IFS=$as_save_IFS
32936
32937 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32938 ;;
32939esac
32940fi
32941DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32942if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "$DVIDecodeDelegate" >&6; }
32945else
cristy8b350f62009-11-15 23:12:43 +000032946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947$as_echo "no" >&6; }
32948fi
32949
32950
32951# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32952set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032955if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032956 $as_echo_n "(cached) " >&6
32957else
32958 case $EchoDelegate in
32959 [\\/]* | ?:[\\/]*)
32960 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32961 ;;
32962 *)
32963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32964for as_dir in $PATH
32965do
32966 IFS=$as_save_IFS
32967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032970 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972 break 2
32973 fi
32974done
cristy8b350f62009-11-15 23:12:43 +000032975 done
cristy3ed852e2009-09-05 21:47:34 +000032976IFS=$as_save_IFS
32977
32978 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32979 ;;
32980esac
32981fi
32982EchoDelegate=$ac_cv_path_EchoDelegate
32983if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985$as_echo "$EchoDelegate" >&6; }
32986else
cristy8b350f62009-11-15 23:12:43 +000032987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032988$as_echo "no" >&6; }
32989fi
32990
32991
32992# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32993set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032996if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032997 $as_echo_n "(cached) " >&6
32998else
32999 case $EditorDelegate in
33000 [\\/]* | ?:[\\/]*)
33001 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33002 ;;
33003 *)
33004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33005for as_dir in $PATH
33006do
33007 IFS=$as_save_IFS
33008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033011 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033013 break 2
33014 fi
33015done
cristy8b350f62009-11-15 23:12:43 +000033016 done
cristy3ed852e2009-09-05 21:47:34 +000033017IFS=$as_save_IFS
33018
33019 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33020 ;;
33021esac
33022fi
33023EditorDelegate=$ac_cv_path_EditorDelegate
33024if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo "$EditorDelegate" >&6; }
33027else
cristy8b350f62009-11-15 23:12:43 +000033028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033029$as_echo "no" >&6; }
33030fi
33031
33032
33033# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33034set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033037if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033038 $as_echo_n "(cached) " >&6
33039else
33040 case $FIGDecodeDelegate in
33041 [\\/]* | ?:[\\/]*)
33042 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33043 ;;
33044 *)
33045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33046for as_dir in $PATH
33047do
33048 IFS=$as_save_IFS
33049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033052 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054 break 2
33055 fi
33056done
cristy8b350f62009-11-15 23:12:43 +000033057 done
cristy3ed852e2009-09-05 21:47:34 +000033058IFS=$as_save_IFS
33059
33060 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33061 ;;
33062esac
33063fi
33064FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33065if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067$as_echo "$FIGDecodeDelegate" >&6; }
33068else
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "no" >&6; }
33071fi
33072
33073
33074# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33075set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033078if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033079 $as_echo_n "(cached) " >&6
33080else
33081 case $ConvertDelegate in
33082 [\\/]* | ?:[\\/]*)
33083 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33084 ;;
33085 *)
33086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33087for as_dir in $PATH
33088do
33089 IFS=$as_save_IFS
33090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033093 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095 break 2
33096 fi
33097done
cristy8b350f62009-11-15 23:12:43 +000033098 done
cristy3ed852e2009-09-05 21:47:34 +000033099IFS=$as_save_IFS
33100
33101 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33102 ;;
33103esac
33104fi
33105ConvertDelegate=$ac_cv_path_ConvertDelegate
33106if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108$as_echo "$ConvertDelegate" >&6; }
33109else
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "no" >&6; }
33112fi
33113
33114
33115# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33116set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033119if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033120 $as_echo_n "(cached) " >&6
33121else
33122 case $DisplayDelegate in
33123 [\\/]* | ?:[\\/]*)
33124 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33125 ;;
33126 *)
33127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33128for as_dir in $PATH
33129do
33130 IFS=$as_save_IFS
33131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033134 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136 break 2
33137 fi
33138done
cristy8b350f62009-11-15 23:12:43 +000033139 done
cristy3ed852e2009-09-05 21:47:34 +000033140IFS=$as_save_IFS
33141
33142 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33143 ;;
33144esac
33145fi
33146DisplayDelegate=$ac_cv_path_DisplayDelegate
33147if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149$as_echo "$DisplayDelegate" >&6; }
33150else
cristy8b350f62009-11-15 23:12:43 +000033151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo "no" >&6; }
33153fi
33154
33155
33156# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33157set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033160if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033161 $as_echo_n "(cached) " >&6
33162else
33163 case $MogrifyDelegate in
33164 [\\/]* | ?:[\\/]*)
33165 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33166 ;;
33167 *)
33168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33169for as_dir in $PATH
33170do
33171 IFS=$as_save_IFS
33172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033175 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177 break 2
33178 fi
33179done
cristy8b350f62009-11-15 23:12:43 +000033180 done
cristy3ed852e2009-09-05 21:47:34 +000033181IFS=$as_save_IFS
33182
33183 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33184 ;;
33185esac
33186fi
33187MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33188if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190$as_echo "$MogrifyDelegate" >&6; }
33191else
cristy8b350f62009-11-15 23:12:43 +000033192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo "no" >&6; }
33194fi
33195
33196
33197# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33198set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033201if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033202 $as_echo_n "(cached) " >&6
33203else
33204 case $GnuplotDecodeDelegate in
33205 [\\/]* | ?:[\\/]*)
33206 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33207 ;;
33208 *)
33209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33210for as_dir in $PATH
33211do
33212 IFS=$as_save_IFS
33213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033216 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033218 break 2
33219 fi
33220done
cristy8b350f62009-11-15 23:12:43 +000033221 done
cristy3ed852e2009-09-05 21:47:34 +000033222IFS=$as_save_IFS
33223
33224 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33225 ;;
33226esac
33227fi
33228GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33229if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "$GnuplotDecodeDelegate" >&6; }
33232else
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "no" >&6; }
33235fi
33236
33237
cristy3ed852e2009-09-05 21:47:34 +000033238# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33239set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033242if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033243 $as_echo_n "(cached) " >&6
33244else
33245 case $HPGLDecodeDelegate in
33246 [\\/]* | ?:[\\/]*)
33247 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33248 ;;
33249 *)
33250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33251for as_dir in $PATH
33252do
33253 IFS=$as_save_IFS
33254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033257 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033259 break 2
33260 fi
33261done
cristy8b350f62009-11-15 23:12:43 +000033262 done
cristy3ed852e2009-09-05 21:47:34 +000033263IFS=$as_save_IFS
33264
33265 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33266 ;;
33267esac
33268fi
33269HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33270if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272$as_echo "$HPGLDecodeDelegate" >&6; }
33273else
cristy8b350f62009-11-15 23:12:43 +000033274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo "no" >&6; }
33276fi
33277
33278
33279# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33280set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033283if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033284 $as_echo_n "(cached) " >&6
33285else
33286 case $HTMLDecodeDelegate in
33287 [\\/]* | ?:[\\/]*)
33288 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33289 ;;
33290 *)
33291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33292for as_dir in $PATH
33293do
33294 IFS=$as_save_IFS
33295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033298 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033300 break 2
33301 fi
33302done
cristy8b350f62009-11-15 23:12:43 +000033303 done
cristy3ed852e2009-09-05 21:47:34 +000033304IFS=$as_save_IFS
33305
33306 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33307 ;;
33308esac
33309fi
33310HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33311if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313$as_echo "$HTMLDecodeDelegate" >&6; }
33314else
cristy8b350f62009-11-15 23:12:43 +000033315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo "no" >&6; }
33317fi
33318
33319
33320# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33321set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033324if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033325 $as_echo_n "(cached) " >&6
33326else
33327 case $ILBMDecodeDelegate in
33328 [\\/]* | ?:[\\/]*)
33329 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33330 ;;
33331 *)
33332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33333for as_dir in $PATH
33334do
33335 IFS=$as_save_IFS
33336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033339 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033341 break 2
33342 fi
33343done
cristy8b350f62009-11-15 23:12:43 +000033344 done
cristy3ed852e2009-09-05 21:47:34 +000033345IFS=$as_save_IFS
33346
33347 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33348 ;;
33349esac
33350fi
33351ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33352if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033354$as_echo "$ILBMDecodeDelegate" >&6; }
33355else
cristy8b350f62009-11-15 23:12:43 +000033356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo "no" >&6; }
33358fi
33359
33360
33361# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33362set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033365if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033366 $as_echo_n "(cached) " >&6
33367else
33368 case $ILBMEncodeDelegate in
33369 [\\/]* | ?:[\\/]*)
33370 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33371 ;;
33372 *)
33373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33374for as_dir in $PATH
33375do
33376 IFS=$as_save_IFS
33377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033380 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033382 break 2
33383 fi
33384done
cristy8b350f62009-11-15 23:12:43 +000033385 done
cristy3ed852e2009-09-05 21:47:34 +000033386IFS=$as_save_IFS
33387
33388 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33389 ;;
33390esac
33391fi
33392ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33393if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395$as_echo "$ILBMEncodeDelegate" >&6; }
33396else
cristy8b350f62009-11-15 23:12:43 +000033397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "no" >&6; }
33399fi
33400
33401
cristy71f53d52013-04-27 13:33:59 +000033402# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33403set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33405$as_echo_n "checking for $ac_word... " >&6; }
33406if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33407 $as_echo_n "(cached) " >&6
33408else
33409 case $JXRDecodeDelegate in
33410 [\\/]* | ?:[\\/]*)
33411 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33412 ;;
33413 *)
33414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33415for as_dir in $PATH
33416do
33417 IFS=$as_save_IFS
33418 test -z "$as_dir" && as_dir=.
33419 for ac_exec_ext in '' $ac_executable_extensions; do
33420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33421 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33423 break 2
33424 fi
33425done
33426 done
33427IFS=$as_save_IFS
33428
33429 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33430 ;;
33431esac
33432fi
33433JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33434if test -n "$JXRDecodeDelegate"; then
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33436$as_echo "$JXRDecodeDelegate" >&6; }
33437else
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33439$as_echo "no" >&6; }
33440fi
33441
33442
33443# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33444set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33446$as_echo_n "checking for $ac_word... " >&6; }
33447if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33448 $as_echo_n "(cached) " >&6
33449else
33450 case $JXREncodeDelegate in
33451 [\\/]* | ?:[\\/]*)
33452 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33453 ;;
33454 *)
33455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33456for as_dir in $PATH
33457do
33458 IFS=$as_save_IFS
33459 test -z "$as_dir" && as_dir=.
33460 for ac_exec_ext in '' $ac_executable_extensions; do
33461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33462 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33464 break 2
33465 fi
33466done
33467 done
33468IFS=$as_save_IFS
33469
33470 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33471 ;;
33472esac
33473fi
33474JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33475if test -n "$JXREncodeDelegate"; then
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33477$as_echo "$JXREncodeDelegate" >&6; }
33478else
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33480$as_echo "no" >&6; }
33481fi
33482
33483
cristy3ed852e2009-09-05 21:47:34 +000033484# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33485set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033488if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033489 $as_echo_n "(cached) " >&6
33490else
33491 case $LPDelegate in
33492 [\\/]* | ?:[\\/]*)
33493 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33494 ;;
33495 *)
33496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33497for as_dir in $PATH
33498do
33499 IFS=$as_save_IFS
33500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033503 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505 break 2
33506 fi
33507done
cristy8b350f62009-11-15 23:12:43 +000033508 done
cristy3ed852e2009-09-05 21:47:34 +000033509IFS=$as_save_IFS
33510
33511 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33512 ;;
33513esac
33514fi
33515LPDelegate=$ac_cv_path_LPDelegate
33516if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "$LPDelegate" >&6; }
33519else
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "no" >&6; }
33522fi
33523
33524
33525# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33526set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033529if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033530 $as_echo_n "(cached) " >&6
33531else
33532 case $LPRDelegate in
33533 [\\/]* | ?:[\\/]*)
33534 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33535 ;;
33536 *)
33537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33538for as_dir in $PATH
33539do
33540 IFS=$as_save_IFS
33541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033544 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033546 break 2
33547 fi
33548done
cristy8b350f62009-11-15 23:12:43 +000033549 done
cristy3ed852e2009-09-05 21:47:34 +000033550IFS=$as_save_IFS
33551
33552 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33553 ;;
33554esac
33555fi
33556LPRDelegate=$ac_cv_path_LPRDelegate
33557if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "$LPRDelegate" >&6; }
33560else
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "no" >&6; }
33563fi
33564
33565
cristy3ed852e2009-09-05 21:47:34 +000033566# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33567set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033570if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033571 $as_echo_n "(cached) " >&6
33572else
33573 case $LaunchDelegate in
33574 [\\/]* | ?:[\\/]*)
33575 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33576 ;;
33577 *)
33578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33579for as_dir in $PATH
33580do
33581 IFS=$as_save_IFS
33582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033585 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033587 break 2
33588 fi
33589done
cristy8b350f62009-11-15 23:12:43 +000033590 done
cristy3ed852e2009-09-05 21:47:34 +000033591IFS=$as_save_IFS
33592
33593 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33594 ;;
33595esac
33596fi
33597LaunchDelegate=$ac_cv_path_LaunchDelegate
33598if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "$LaunchDelegate" >&6; }
33601else
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "no" >&6; }
33604fi
33605
33606
33607# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33608set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033610$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033611if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033612 $as_echo_n "(cached) " >&6
33613else
33614 case $MANDelegate in
33615 [\\/]* | ?:[\\/]*)
33616 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33617 ;;
33618 *)
33619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33620for as_dir in $PATH
33621do
33622 IFS=$as_save_IFS
33623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033626 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033628 break 2
33629 fi
33630done
cristy8b350f62009-11-15 23:12:43 +000033631 done
cristy3ed852e2009-09-05 21:47:34 +000033632IFS=$as_save_IFS
33633
33634 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33635 ;;
33636esac
33637fi
33638MANDelegate=$ac_cv_path_MANDelegate
33639if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo "$MANDelegate" >&6; }
33642else
cristy8b350f62009-11-15 23:12:43 +000033643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo "no" >&6; }
33645fi
33646
33647
33648# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33649set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033652if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033653 $as_echo_n "(cached) " >&6
33654else
33655 case $MPEGDecodeDelegate in
33656 [\\/]* | ?:[\\/]*)
33657 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33658 ;;
33659 *)
33660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33661for as_dir in $PATH
33662do
33663 IFS=$as_save_IFS
33664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033667 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033669 break 2
33670 fi
33671done
cristy8b350f62009-11-15 23:12:43 +000033672 done
cristy3ed852e2009-09-05 21:47:34 +000033673IFS=$as_save_IFS
33674
33675 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33676 ;;
33677esac
33678fi
33679MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33680if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo "$MPEGDecodeDelegate" >&6; }
33683else
cristy8b350f62009-11-15 23:12:43 +000033684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo "no" >&6; }
33686fi
33687
33688
33689# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33690set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033693if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033694 $as_echo_n "(cached) " >&6
33695else
33696 case $MPEGEncodeDelegate in
33697 [\\/]* | ?:[\\/]*)
33698 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33699 ;;
33700 *)
33701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33702for as_dir in $PATH
33703do
33704 IFS=$as_save_IFS
33705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033708 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033710 break 2
33711 fi
33712done
cristy8b350f62009-11-15 23:12:43 +000033713 done
cristy3ed852e2009-09-05 21:47:34 +000033714IFS=$as_save_IFS
33715
33716 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33717 ;;
33718esac
33719fi
33720MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33721if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723$as_echo "$MPEGEncodeDelegate" >&6; }
33724else
cristy8b350f62009-11-15 23:12:43 +000033725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo "no" >&6; }
33727fi
33728
33729
cristy935c86e2010-06-05 23:50:07 +000033730# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33731set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033734if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033735 $as_echo_n "(cached) " >&6
33736else
33737 case $MrSIDDecodeDelegate in
33738 [\\/]* | ?:[\\/]*)
33739 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33740 ;;
33741 *)
33742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33743for as_dir in $PATH
33744do
33745 IFS=$as_save_IFS
33746 test -z "$as_dir" && as_dir=.
33747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033749 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33751 break 2
33752 fi
33753done
33754 done
33755IFS=$as_save_IFS
33756
33757 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33758 ;;
33759esac
33760fi
33761MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33762if test -n "$MrSIDDecodeDelegate"; then
33763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33764$as_echo "$MrSIDDecodeDelegate" >&6; }
33765else
33766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33767$as_echo "no" >&6; }
33768fi
33769
33770
cristy3ed852e2009-09-05 21:47:34 +000033771# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33772set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033775if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033776 $as_echo_n "(cached) " >&6
33777else
33778 case $MVDelegate in
33779 [\\/]* | ?:[\\/]*)
33780 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33781 ;;
33782 *)
33783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33784for as_dir in $PATH
33785do
33786 IFS=$as_save_IFS
33787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033790 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792 break 2
33793 fi
33794done
cristy8b350f62009-11-15 23:12:43 +000033795 done
cristy3ed852e2009-09-05 21:47:34 +000033796IFS=$as_save_IFS
33797
33798 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33799 ;;
33800esac
33801fi
33802MVDelegate=$ac_cv_path_MVDelegate
33803if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "$MVDelegate" >&6; }
33806else
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "no" >&6; }
33809fi
33810
33811
33812# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33813set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033816if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033817 $as_echo_n "(cached) " >&6
33818else
33819 case $PCLDelegate in
33820 [\\/]* | ?:[\\/]*)
33821 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33822 ;;
33823 *)
33824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33825for as_dir in $PATH
33826do
33827 IFS=$as_save_IFS
33828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033831 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833 break 2
33834 fi
33835done
cristy8b350f62009-11-15 23:12:43 +000033836 done
cristy3ed852e2009-09-05 21:47:34 +000033837IFS=$as_save_IFS
33838
33839 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33840 ;;
33841esac
33842fi
33843PCLDelegate=$ac_cv_path_PCLDelegate
33844if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846$as_echo "$PCLDelegate" >&6; }
33847else
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "no" >&6; }
33850fi
33851
33852
33853# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33854set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033857if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033858 $as_echo_n "(cached) " >&6
33859else
33860 case $PGPDecodeDelegate in
33861 [\\/]* | ?:[\\/]*)
33862 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33863 ;;
33864 *)
33865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33866for as_dir in $PATH
33867do
33868 IFS=$as_save_IFS
33869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033872 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033874 break 2
33875 fi
33876done
cristy8b350f62009-11-15 23:12:43 +000033877 done
cristy3ed852e2009-09-05 21:47:34 +000033878IFS=$as_save_IFS
33879
33880 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33881 ;;
33882esac
33883fi
33884PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33885if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "$PGPDecodeDelegate" >&6; }
33888else
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "no" >&6; }
33891fi
33892
33893
33894# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33895set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033898if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033899 $as_echo_n "(cached) " >&6
33900else
33901 case $POVDelegate in
33902 [\\/]* | ?:[\\/]*)
33903 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33904 ;;
33905 *)
33906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33907for as_dir in $PATH
33908do
33909 IFS=$as_save_IFS
33910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033913 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915 break 2
33916 fi
33917done
cristy8b350f62009-11-15 23:12:43 +000033918 done
cristy3ed852e2009-09-05 21:47:34 +000033919IFS=$as_save_IFS
33920
33921 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33922 ;;
33923esac
33924fi
33925POVDelegate=$ac_cv_path_POVDelegate
33926if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "$POVDelegate" >&6; }
33929else
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "no" >&6; }
33932fi
33933
33934
33935for ac_prog in gsx gsc "$PSDelegateDefault"
33936do
33937 # Extract the first word of "$ac_prog", so it can be a program name with args.
33938set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033941if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033942 $as_echo_n "(cached) " >&6
33943else
33944 case $PSDelegate in
33945 [\\/]* | ?:[\\/]*)
33946 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33947 ;;
33948 *)
33949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33950for as_dir in $PATH
33951do
33952 IFS=$as_save_IFS
33953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033954 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033956 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958 break 2
33959 fi
33960done
cristy8b350f62009-11-15 23:12:43 +000033961 done
cristy3ed852e2009-09-05 21:47:34 +000033962IFS=$as_save_IFS
33963
33964 ;;
33965esac
33966fi
33967PSDelegate=$ac_cv_path_PSDelegate
33968if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033970$as_echo "$PSDelegate" >&6; }
33971else
cristy8b350f62009-11-15 23:12:43 +000033972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033973$as_echo "no" >&6; }
33974fi
33975
33976
33977 test -n "$PSDelegate" && break
33978done
33979test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33980
33981# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33982set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033985if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033986 $as_echo_n "(cached) " >&6
33987else
33988 case $RLEEncodeDelegate in
33989 [\\/]* | ?:[\\/]*)
33990 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33991 ;;
33992 *)
33993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33994for as_dir in $PATH
33995do
33996 IFS=$as_save_IFS
33997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034000 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002 break 2
34003 fi
34004done
cristy8b350f62009-11-15 23:12:43 +000034005 done
cristy3ed852e2009-09-05 21:47:34 +000034006IFS=$as_save_IFS
34007
34008 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34009 ;;
34010esac
34011fi
34012RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34013if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034015$as_echo "$RLEEncodeDelegate" >&6; }
34016else
cristy8b350f62009-11-15 23:12:43 +000034017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034018$as_echo "no" >&6; }
34019fi
34020
34021
34022# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34023set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034025$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034026if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034027 $as_echo_n "(cached) " >&6
34028else
34029 case $RMDelegate in
34030 [\\/]* | ?:[\\/]*)
34031 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34032 ;;
34033 *)
34034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34035for as_dir in $PATH
34036do
34037 IFS=$as_save_IFS
34038 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034041 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043 break 2
34044 fi
34045done
cristy8b350f62009-11-15 23:12:43 +000034046 done
cristy3ed852e2009-09-05 21:47:34 +000034047IFS=$as_save_IFS
34048
34049 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34050 ;;
34051esac
34052fi
34053RMDelegate=$ac_cv_path_RMDelegate
34054if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034056$as_echo "$RMDelegate" >&6; }
34057else
cristy8b350f62009-11-15 23:12:43 +000034058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034059$as_echo "no" >&6; }
34060fi
34061
34062
cristy4689cf02010-02-17 21:15:45 +000034063# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34064set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34066$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034067if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034068 $as_echo_n "(cached) " >&6
34069else
34070 case $RSVGDecodeDelegate in
34071 [\\/]* | ?:[\\/]*)
34072 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34073 ;;
34074 *)
34075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34076for as_dir in $PATH
34077do
34078 IFS=$as_save_IFS
34079 test -z "$as_dir" && as_dir=.
34080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034082 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34084 break 2
34085 fi
34086done
34087 done
34088IFS=$as_save_IFS
34089
34090 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34091 ;;
34092esac
34093fi
34094RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34095if test -n "$RSVGDecodeDelegate"; then
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34097$as_echo "$RSVGDecodeDelegate" >&6; }
34098else
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34100$as_echo "no" >&6; }
34101fi
34102
34103
cristy3ed852e2009-09-05 21:47:34 +000034104# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34105set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034107$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034108if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034109 $as_echo_n "(cached) " >&6
34110else
34111 case $SCANDecodeDelegate in
34112 [\\/]* | ?:[\\/]*)
34113 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34114 ;;
34115 *)
34116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34117for as_dir in $PATH
34118do
34119 IFS=$as_save_IFS
34120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034123 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125 break 2
34126 fi
34127done
cristy8b350f62009-11-15 23:12:43 +000034128 done
cristy3ed852e2009-09-05 21:47:34 +000034129IFS=$as_save_IFS
34130
34131 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34132 ;;
34133esac
34134fi
34135SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34136if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034138$as_echo "$SCANDecodeDelegate" >&6; }
34139else
cristy8b350f62009-11-15 23:12:43 +000034140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034141$as_echo "no" >&6; }
34142fi
34143
34144
cristyec6934f2012-08-14 18:38:40 +000034145# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34146set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34148$as_echo_n "checking for $ac_word... " >&6; }
34149if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34150 $as_echo_n "(cached) " >&6
34151else
34152 case $SVGDecodeDelegate in
34153 [\\/]* | ?:[\\/]*)
34154 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34155 ;;
34156 *)
34157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34158for as_dir in $PATH
34159do
34160 IFS=$as_save_IFS
34161 test -z "$as_dir" && as_dir=.
34162 for ac_exec_ext in '' $ac_executable_extensions; do
34163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34164 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34166 break 2
34167 fi
34168done
34169 done
34170IFS=$as_save_IFS
34171
34172 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34173 ;;
34174esac
34175fi
34176SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34177if test -n "$SVGDecodeDelegate"; then
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34179$as_echo "$SVGDecodeDelegate" >&6; }
34180else
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34182$as_echo "no" >&6; }
34183fi
34184
34185
cristy3ed852e2009-09-05 21:47:34 +000034186# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34187set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034190if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034191 $as_echo_n "(cached) " >&6
34192else
34193 case $TXTDelegate in
34194 [\\/]* | ?:[\\/]*)
34195 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34196 ;;
34197 *)
34198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34199for as_dir in $PATH
34200do
34201 IFS=$as_save_IFS
34202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034205 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034207 break 2
34208 fi
34209done
cristy8b350f62009-11-15 23:12:43 +000034210 done
cristy3ed852e2009-09-05 21:47:34 +000034211IFS=$as_save_IFS
34212
34213 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34214 ;;
34215esac
34216fi
34217TXTDelegate=$ac_cv_path_TXTDelegate
34218if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220$as_echo "$TXTDelegate" >&6; }
34221else
cristy8b350f62009-11-15 23:12:43 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223$as_echo "no" >&6; }
34224fi
34225
34226
cristy5ac9ac82010-07-29 13:24:24 +000034227# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34228set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034231if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034232 $as_echo_n "(cached) " >&6
34233else
34234 case $UniconvertorDelegate in
34235 [\\/]* | ?:[\\/]*)
34236 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34237 ;;
34238 *)
34239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34240for as_dir in $PATH
34241do
34242 IFS=$as_save_IFS
34243 test -z "$as_dir" && as_dir=.
34244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034246 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34248 break 2
34249 fi
34250done
34251 done
34252IFS=$as_save_IFS
34253
34254 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34255 ;;
34256esac
34257fi
34258UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34259if test -n "$UniconvertorDelegate"; then
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34261$as_echo "$UniconvertorDelegate" >&6; }
34262else
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34264$as_echo "no" >&6; }
34265fi
34266
34267
cristy86e86092013-08-04 17:43:57 +000034268# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34269set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34271$as_echo_n "checking for $ac_word... " >&6; }
34272if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34273 $as_echo_n "(cached) " >&6
34274else
34275 case $WebPDecodeDelegate in
34276 [\\/]* | ?:[\\/]*)
34277 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34278 ;;
34279 *)
34280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34281for as_dir in $PATH
34282do
34283 IFS=$as_save_IFS
34284 test -z "$as_dir" && as_dir=.
34285 for ac_exec_ext in '' $ac_executable_extensions; do
34286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34287 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34289 break 2
34290 fi
34291done
34292 done
34293IFS=$as_save_IFS
34294
34295 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34296 ;;
34297esac
34298fi
34299WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34300if test -n "$WebPDecodeDelegate"; then
34301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34302$as_echo "$WebPDecodeDelegate" >&6; }
34303else
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34305$as_echo "no" >&6; }
34306fi
34307
34308
34309# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34310set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34312$as_echo_n "checking for $ac_word... " >&6; }
34313if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34314 $as_echo_n "(cached) " >&6
34315else
34316 case $WebPEncodeDelegate in
34317 [\\/]* | ?:[\\/]*)
34318 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34319 ;;
34320 *)
34321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34322for as_dir in $PATH
34323do
34324 IFS=$as_save_IFS
34325 test -z "$as_dir" && as_dir=.
34326 for ac_exec_ext in '' $ac_executable_extensions; do
34327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34328 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34330 break 2
34331 fi
34332done
34333 done
34334IFS=$as_save_IFS
34335
34336 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34337 ;;
34338esac
34339fi
34340WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34341if test -n "$WebPEncodeDelegate"; then
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34343$as_echo "$WebPEncodeDelegate" >&6; }
34344else
34345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34346$as_echo "no" >&6; }
34347fi
34348
34349
cristy3ed852e2009-09-05 21:47:34 +000034350# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34351set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034354if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034355 $as_echo_n "(cached) " >&6
34356else
34357 case $WMFDecodeDelegate in
34358 [\\/]* | ?:[\\/]*)
34359 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34360 ;;
34361 *)
34362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34363for as_dir in $PATH
34364do
34365 IFS=$as_save_IFS
34366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034369 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034371 break 2
34372 fi
34373done
cristy8b350f62009-11-15 23:12:43 +000034374 done
cristy3ed852e2009-09-05 21:47:34 +000034375IFS=$as_save_IFS
34376
34377 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34378 ;;
34379esac
34380fi
34381WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34382if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo "$WMFDecodeDelegate" >&6; }
34385else
cristy8b350f62009-11-15 23:12:43 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034387$as_echo "no" >&6; }
34388fi
34389
34390
34391# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34392set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034395if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034396 $as_echo_n "(cached) " >&6
34397else
34398 case $WWWDecodeDelegate in
34399 [\\/]* | ?:[\\/]*)
34400 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34401 ;;
34402 *)
34403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34404for as_dir in $PATH
34405do
34406 IFS=$as_save_IFS
34407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034410 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412 break 2
34413 fi
34414done
cristy8b350f62009-11-15 23:12:43 +000034415 done
cristy3ed852e2009-09-05 21:47:34 +000034416IFS=$as_save_IFS
34417
34418 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34419 ;;
34420esac
34421fi
34422WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34423if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "$WWWDecodeDelegate" >&6; }
34426else
cristy8b350f62009-11-15 23:12:43 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428$as_echo "no" >&6; }
34429fi
34430
34431
34432# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34433set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034436if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034437 $as_echo_n "(cached) " >&6
34438else
34439 case $XPSDelegate in
34440 [\\/]* | ?:[\\/]*)
34441 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34442 ;;
34443 *)
34444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34445for as_dir in $PATH
34446do
34447 IFS=$as_save_IFS
34448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034451 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453 break 2
34454 fi
34455done
cristy8b350f62009-11-15 23:12:43 +000034456 done
cristy3ed852e2009-09-05 21:47:34 +000034457IFS=$as_save_IFS
34458
34459 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34460 ;;
34461esac
34462fi
34463XPSDelegate=$ac_cv_path_XPSDelegate
34464if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034466$as_echo "$XPSDelegate" >&6; }
34467else
cristy8b350f62009-11-15 23:12:43 +000034468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034469$as_echo "no" >&6; }
34470fi
34471
34472
34473# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34474set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034477if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034478 $as_echo_n "(cached) " >&6
34479else
34480 case $ZipDelegate in
34481 [\\/]* | ?:[\\/]*)
34482 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34483 ;;
34484 *)
34485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34486for as_dir in $PATH
34487do
34488 IFS=$as_save_IFS
34489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034492 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494 break 2
34495 fi
34496done
cristy8b350f62009-11-15 23:12:43 +000034497 done
cristy3ed852e2009-09-05 21:47:34 +000034498IFS=$as_save_IFS
34499
34500 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34501 ;;
34502esac
34503fi
34504ZipDelegate=$ac_cv_path_ZipDelegate
34505if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo "$ZipDelegate" >&6; }
34508else
cristy8b350f62009-11-15 23:12:43 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034510$as_echo "no" >&6; }
34511fi
34512
34513
34514
34515# Prefer lpr to lp; lp needs options tacked on.
34516if test "$LPRDelegate" != no; then
34517 PrintDelegate="$LPRDelegate"
34518else
34519 PrintDelegate="$LPDelegate -c -s"
34520fi
34521
34522
34523# Installed ImageMagick utiltity paths
34524ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34525DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34526MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34527
34528# Set delegate booleans
34529have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34530have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34531have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34532have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34533have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034534have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034535have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34536have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034537have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34538have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34539
34540#
34541# Test for font directories
34542#
34543type_include_files=''
34544
cristy430a7312010-01-21 20:44:04 +000034545# Dejavu fonts.
34546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34547$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34548dejavu_font_dir=''
34549if test "${with_dejavu_font_dir}" != 'default'; then
34550 dejavu_font_dir="${with_dejavu_font_dir}/"
34551else
34552 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34553 if test -f "${font_dir}DejaVuSerif.ttf"; then
34554 dejavu_font_dir="${font_dir}"
34555 break 1
34556 fi
34557 done
34558fi
34559if test "${dejavu_font_dir}x" != 'x'; then
34560 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34562$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034563else
cristyad38abe2012-12-23 23:03:21 +000034564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34565$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034566fi
34567
34568
cristy3ed852e2009-09-05 21:47:34 +000034569# Windows
34570windows_font_dir=''
34571if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34572 windows_font_dir="${with_windows_font_dir}/"
34573fi
cristy430a7312010-01-21 20:44:04 +000034574if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034575 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34576 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34577 fi
34578 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34579 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34580 fi
34581 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34582 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34583 fi
34584fi
cristy430a7312010-01-21 20:44:04 +000034585if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034586 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34587fi
34588
34589
34590# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34593ghostscript_font_dir=''
34594if test "${with_gs_font_dir}" != 'default'; then
34595 ghostscript_font_dir="${with_gs_font_dir}/"
34596else
34597 if test "${native_win32_build}" = 'yes'; then
34598 # Native Windows Build
34599 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34600 if test -f "${font_dir}a010013l.pfb"; then
34601 ghostscript_font_dir="$font_dir"
34602 break 1
34603 fi
34604 done
34605 if test "${PSDelegate}" != 'gswin32c'; then
34606 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34607 fi
34608 else
34609 # Linux / Mac OS X / Unix Build
34610 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
34611 if test -f "${font_dir}a010013l.pfb"; then
34612 ghostscript_font_dir="${font_dir}"
34613 break 1
34614 fi
34615 done
34616 if test "${ghostscript_font_dir}x" = 'x'; then
34617 if test "$PSDelegate" != 'gs'; then
34618 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34619 fi
34620 fi
34621 fi
34622fi
34623if test "${ghostscript_font_dir}x" != 'x'; then
34624 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34626$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034627else
cristyad38abe2012-12-23 23:03:21 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34629$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034630fi
34631
34632case "${build_os}" in
34633 mingw* )
34634 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34635 ;;
34636esac
34637
34638
34639
34640#
34641# Handle case where user doesn't want frozen paths
34642#
34643if test "$with_frozenpaths" != 'yes'; then
34644 # Re-set delegate definitions to default (no paths)
34645 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034646 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34647 BZIPDelegate="$BZIPDelegateDefault"
34648 BrowseDelegate="$BrowseDelegateDefault"
34649 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34650 CatDelegate="$CatDelegateDefault"
34651 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034652 DisplayDelegate="$DisplayDelegateDefault"
34653 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034654 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34655 EchoDelegate="$EchoDelegateDefault"
34656 EditorDelegate="$EditorDelegateDefault"
34657 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34658 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034659 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034660 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34661 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34662 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34663 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034664 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34665 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034666 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034667 LaunchDelegate="$LaunchDelegateDefault"
34668 MANDelegate="$MANDelegateDefault"
34669 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34670 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034671 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034672 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34673 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034674 PCLDelegate="$PCLDelegateDefault"
34675 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34676 POVDelegate="$POVDelegateDefault"
34677 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034678 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34679 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034680 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034681 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034682 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034683 ShowImageDelegate="$ShowImageDelegateDefault"
34684 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034685 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000034686 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
34687 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034688 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34689 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34690 XPSDelegate="$XPSDelegateDefault"
34691 ZipDelegate="$ZipDelegateDefault"
34692fi
34693
34694# Delegate substitutions
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
cristy71f53d52013-04-27 13:33:59 +000034735
34736
cristy86e86092013-08-04 17:43:57 +000034737
34738
cristy3ed852e2009-09-05 21:47:34 +000034739#
34740# RPM support.
34741#
34742RPM=''
34743for ac_prog in gnutar gtar tar
34744do
34745 # Extract the first word of "$ac_prog", so it can be a program name with args.
34746set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034749if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034750 $as_echo_n "(cached) " >&6
34751else
34752 if test -n "$TAR"; then
34753 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34754else
34755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34756for as_dir in $PATH
34757do
34758 IFS=$as_save_IFS
34759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034762 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034764 break 2
34765 fi
34766done
cristy8b350f62009-11-15 23:12:43 +000034767 done
cristy3ed852e2009-09-05 21:47:34 +000034768IFS=$as_save_IFS
34769
34770fi
34771fi
34772TAR=$ac_cv_prog_TAR
34773if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034775$as_echo "$TAR" >&6; }
34776else
cristy8b350f62009-11-15 23:12:43 +000034777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034778$as_echo "no" >&6; }
34779fi
34780
34781
34782 test -n "$TAR" && break
34783done
34784
34785for ac_prog in perl
34786do
34787 # Extract the first word of "$ac_prog", so it can be a program name with args.
34788set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034791if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034792 $as_echo_n "(cached) " >&6
34793else
34794 if test -n "$PERL"; then
34795 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34796else
34797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34798for as_dir in $PATH
34799do
34800 IFS=$as_save_IFS
34801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034804 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034806 break 2
34807 fi
34808done
cristy8b350f62009-11-15 23:12:43 +000034809 done
cristy3ed852e2009-09-05 21:47:34 +000034810IFS=$as_save_IFS
34811
34812fi
34813fi
34814PERL=$ac_cv_prog_PERL
34815if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034817$as_echo "$PERL" >&6; }
34818else
cristy8b350f62009-11-15 23:12:43 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034820$as_echo "no" >&6; }
34821fi
34822
34823
34824 test -n "$PERL" && break
34825done
34826
34827for ac_prog in rpmbuild rpm
34828do
34829 # Extract the first word of "$ac_prog", so it can be a program name with args.
34830set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034833if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034834 $as_echo_n "(cached) " >&6
34835else
34836 if test -n "$RPM"; then
34837 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34838else
34839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34840for as_dir in $PATH
34841do
34842 IFS=$as_save_IFS
34843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034846 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034848 break 2
34849 fi
34850done
cristy8b350f62009-11-15 23:12:43 +000034851 done
cristy3ed852e2009-09-05 21:47:34 +000034852IFS=$as_save_IFS
34853
34854fi
34855fi
34856RPM=$ac_cv_prog_RPM
34857if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034859$as_echo "$RPM" >&6; }
34860else
cristy8b350f62009-11-15 23:12:43 +000034861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034862$as_echo "no" >&6; }
34863fi
34864
34865
34866 test -n "$RPM" && break
34867done
34868
34869
cristy73bd4a52010-10-05 11:24:23 +000034870ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34871
34872
34873AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34874
34875
34876AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34877
34878
34879AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34880
34881
34882 if test "x$RPM" != "x" ; then
34883 RPM_DELEGATE_TRUE=
34884 RPM_DELEGATE_FALSE='#'
34885else
34886 RPM_DELEGATE_TRUE='#'
34887 RPM_DELEGATE_FALSE=
34888fi
34889
cristy3ed852e2009-09-05 21:47:34 +000034890
34891#
34892# 7ZIP support (http://p7zip.sourceforge.net/)
34893#
34894P7ZIP=''
34895for ac_prog in 7za
34896do
34897 # Extract the first word of "$ac_prog", so it can be a program name with args.
34898set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034901if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034902 $as_echo_n "(cached) " >&6
34903else
34904 if test -n "$P7ZIP"; then
34905 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34906else
34907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34908for as_dir in $PATH
34909do
34910 IFS=$as_save_IFS
34911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034914 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916 break 2
34917 fi
34918done
cristy8b350f62009-11-15 23:12:43 +000034919 done
cristy3ed852e2009-09-05 21:47:34 +000034920IFS=$as_save_IFS
34921
34922fi
34923fi
34924P7ZIP=$ac_cv_prog_P7ZIP
34925if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034927$as_echo "$P7ZIP" >&6; }
34928else
cristy8b350f62009-11-15 23:12:43 +000034929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034930$as_echo "no" >&6; }
34931fi
34932
34933
34934 test -n "$P7ZIP" && break
34935done
34936
34937
cristy73bd4a52010-10-05 11:24:23 +000034938 if test "x$P7ZIP" != "x" ; then
34939 P7ZIP_DELEGATE_TRUE=
34940 P7ZIP_DELEGATE_FALSE='#'
34941else
34942 P7ZIP_DELEGATE_TRUE='#'
34943 P7ZIP_DELEGATE_FALSE=
34944fi
34945
cristy3ed852e2009-09-05 21:47:34 +000034946
34947#
34948# ZIP support (http://www.info-zip.org/Zip.html)
34949#
34950ZIP=''
34951for ac_prog in zip
34952do
34953 # Extract the first word of "$ac_prog", so it can be a program name with args.
34954set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034957if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034958 $as_echo_n "(cached) " >&6
34959else
34960 if test -n "$ZIP"; then
34961 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34962else
34963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34964for as_dir in $PATH
34965do
34966 IFS=$as_save_IFS
34967 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034970 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034972 break 2
34973 fi
34974done
cristy8b350f62009-11-15 23:12:43 +000034975 done
cristy3ed852e2009-09-05 21:47:34 +000034976IFS=$as_save_IFS
34977
34978fi
34979fi
34980ZIP=$ac_cv_prog_ZIP
34981if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034983$as_echo "$ZIP" >&6; }
34984else
cristy8b350f62009-11-15 23:12:43 +000034985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034986$as_echo "no" >&6; }
34987fi
34988
34989
34990 test -n "$ZIP" && break
34991done
34992
34993
cristy73bd4a52010-10-05 11:24:23 +000034994 if test "x$ZIP" != "x" ; then
34995 ZIP_DELEGATE_TRUE=
34996 ZIP_DELEGATE_FALSE='#'
34997else
34998 ZIP_DELEGATE_TRUE='#'
34999 ZIP_DELEGATE_FALSE=
35000fi
35001
cristy3ed852e2009-09-05 21:47:34 +000035002
35003#
35004# GhostPCL related configuration.
35005#
35006PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035007PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035008PCLMonoDevice=pbmraw
35009if test -z "$PCLVersion"; then
35010 PCLVersion='unknown'
35011fi
35012if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35014$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035016$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35018$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035019 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035021$as_echo_n "checking for pcl color device... " >&6; }
35022 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35023 :
35024 else
35025 PCLColorDevice=ppmraw
35026 fi
cristyad38abe2012-12-23 23:03:21 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35028$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035029
35030 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035032$as_echo_n "checking for pcl CMYK device... " >&6; }
35033 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35034 :
35035 else
35036 PCLCMYKDevice=$PCLColorDevice
35037 fi
cristyad38abe2012-12-23 23:03:21 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35039$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035040
35041 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo_n "checking for pcl mono device... " >&6; }
35044 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35045 :
35046 else
35047 PCLMonoDevice=$PCLColorDevice
35048 fi
cristyad38abe2012-12-23 23:03:21 +000035049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35050$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035051fi
35052
35053
35054
35055
35056
35057
35058#
35059# GhostXPS related configuration.
35060#
35061XPSColorDevice=ppmraw
35062XPSCMYKDevice=bmpsep8
35063XPSMonoDevice=pbmraw
35064if test -z "$XPSVersion"; then
35065 XPSVersion='unknown'
35066fi
35067if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35069$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035071$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35073$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035074 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035076$as_echo_n "checking for xps color device... " >&6; }
35077 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35078 :
35079 else
35080 XPSColorDevice=ppmraw
35081 fi
cristyad38abe2012-12-23 23:03:21 +000035082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35083$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035084
35085 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035087$as_echo_n "checking for xps CMYK device... " >&6; }
35088 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35089 :
35090 else
35091 XPSCMYKDevice=$XPSColorDevice
35092 fi
cristyad38abe2012-12-23 23:03:21 +000035093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35094$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035095
35096 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035098$as_echo_n "checking for xps mono device... " >&6; }
35099 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35100 :
35101 else
35102 XPSMonoDevice=$XPSColorDevice
35103 fi
cristyad38abe2012-12-23 23:03:21 +000035104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35105$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035106fi
35107
35108
35109
35110
35111
35112
35113#
35114# Ghostscript related configuration.
35115#
cristya97426c2011-02-04 01:41:27 +000035116GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035117GSColorDevice=pnmraw
35118GSCMYKDevice=pam
35119GSMonoDevice=pbmraw
35120GSPDFDevice=pdfwrite
35121GSPSDevice=pswrite
35122GSEPSDevice=epswrite
35123GSVersion='unknown'
35124if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35126$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35130$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035132$as_echo_n "checking for Ghostscript version... " >&6; }
35133 if GSVersion=`$PSDelegate --version`; then
35134 :
35135 else
35136 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35137 fi
cristyad38abe2012-12-23 23:03:21 +000035138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35139$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035140
35141 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035143$as_echo_n "checking for gs alpha device... " >&6; }
35144 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35145 :
35146 else
35147 GSAlphaDevice=pnmraw
35148 fi
cristyad38abe2012-12-23 23:03:21 +000035149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35150$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035151
35152 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035154$as_echo_n "checking for gs color device... " >&6; }
35155 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35156 :
35157 else
35158 GSColorDevice=pnmraw
35159 fi
cristyad38abe2012-12-23 23:03:21 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35161$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035162
35163 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035165$as_echo_n "checking for gs CMYK device... " >&6; }
35166 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35167 :
35168 else
35169 GSCMYKDevice=bmpsep8
35170 fi
cristyad38abe2012-12-23 23:03:21 +000035171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35172$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035173
35174 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035176$as_echo_n "checking for gs mono device... " >&6; }
35177 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35178 :
35179 else
35180 GSMonoDevice=$GSColorDevice
35181 fi
cristyad38abe2012-12-23 23:03:21 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35183$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035184
35185 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035187$as_echo_n "checking for gs PDF writing device... " >&6; }
35188 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35189 :
35190 else
35191 GSPDFDevice=nodevice
35192 fi
cristyad38abe2012-12-23 23:03:21 +000035193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35194$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035195
35196 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035198$as_echo_n "checking for gs PS writing device... " >&6; }
35199 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35200 :
35201 else
35202 GSPSDevice=nodevice
35203 fi
cristyad38abe2012-12-23 23:03:21 +000035204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35205$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035206
35207 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035209$as_echo_n "checking for gs EPS writing device... " >&6; }
35210 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35211 :
35212 else
35213 GSEPSDevice=nodevice
35214 fi
cristyad38abe2012-12-23 23:03:21 +000035215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35216$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035217fi
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228#
35229# PerlMagick-related configuration
35230#
35231
35232# Look for PERL if PerlMagick requested
35233# If name/path of desired PERL interpreter is specified, look for that one first
35234have_perl='no'
35235if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35237$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035239$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35241$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035242 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035245if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035246 $as_echo_n "(cached) " >&6
35247else
35248 ac_cv_path_PERL="$with_perl"
35249fi
cristy8b350f62009-11-15 23:12:43 +000035250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035251$as_echo "$ac_cv_path_PERL" >&6; };
35252 PERL=$ac_cv_path_PERL
35253 have_perl="$ac_cv_path_PERL"
35254 else
35255 for ac_prog in perl perl5
35256do
35257 # Extract the first word of "$ac_prog", so it can be a program name with args.
35258set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035261if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035262 $as_echo_n "(cached) " >&6
35263else
35264 case $PERL in
35265 [\\/]* | ?:[\\/]*)
35266 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35267 ;;
35268 *)
35269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35270for as_dir in $PATH
35271do
35272 IFS=$as_save_IFS
35273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035276 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035278 break 2
35279 fi
35280done
cristy8b350f62009-11-15 23:12:43 +000035281 done
cristy3ed852e2009-09-05 21:47:34 +000035282IFS=$as_save_IFS
35283
35284 ;;
35285esac
35286fi
35287PERL=$ac_cv_path_PERL
35288if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035290$as_echo "$PERL" >&6; }
35291else
cristy8b350f62009-11-15 23:12:43 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035293$as_echo "no" >&6; }
35294fi
35295
35296
35297 test -n "$PERL" && break
35298done
35299 if test "$ac_cv_path_PERL"; then
35300 have_perl="$ac_cv_path_PERL"
35301 fi
35302 fi
35303fi
35304
cristy949301e2010-01-06 01:38:40 +000035305if test "$with_perl" != 'yes' ; then
35306 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35307fi
35308
35309PERL_SUPPORTS_DESTDIR='no'
35310
cristy3ed852e2009-09-05 21:47:34 +000035311with_perl_static='no'
35312with_perl_dynamic='no'
35313if test "$have_perl" != 'no'; then
35314 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35315 with_perl_static='yes'
35316 fi
35317 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35318 with_perl_dynamic='yes'
35319 fi
35320 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035321
35322
35323
35324
35325 if test -n "$PERL"; then :
35326
35327 ax_perl_version="5.8.1"
35328
35329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35330$as_echo_n "checking for perl version... " >&6; }
35331
35332 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35333
35334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35335$as_echo "$perl_version" >&6; }
35336
35337 PERL_VERSION=$perl_version
35338
35339
35340
35341
35342
35343 # Used to indicate true or false condition
35344 ax_compare_version=false
35345
35346 # Convert the two version strings to be compared into a format that
35347 # allows a simple string comparison. The end result is that a version
35348 # string of the form 1.12.5-r617 will be converted to the form
35349 # 0001001200050617. In other words, each number is zero padded to four
35350 # digits, and non digits are removed.
35351
35352 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35353 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35354 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35355 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35356 -e 's/[^0-9]//g'`
35357
35358
35359 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35360 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35361 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35362 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35363 -e 's/[^0-9]//g'`
35364
35365
35366 ax_compare_version=`echo "x$ax_compare_version_A
35367x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35368
35369
35370
35371 if test "$ax_compare_version" = "true" ; then
35372
35373 :
35374 PERL_SUPPORTS_DESTDIR='yes'
35375
35376 else
35377 :
35378 PERL_SUPPORTS_DESTDIR='no'
35379
35380 fi
35381
35382
35383else
35384
35385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35386$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35387 PERL_SUPPORTS_DESTDIR='no'
35388
cristy3ed852e2009-09-05 21:47:34 +000035389fi
cristy73bd4a52010-10-05 11:24:23 +000035390
35391fi
35392 if test "$have_perl" != 'no'; then
35393 WITH_PERL_TRUE=
35394 WITH_PERL_FALSE='#'
35395else
35396 WITH_PERL_TRUE='#'
35397 WITH_PERL_FALSE=
35398fi
35399
35400 if test $with_perl_static = 'yes'; then
35401 WITH_PERL_STATIC_TRUE=
35402 WITH_PERL_STATIC_FALSE='#'
35403else
35404 WITH_PERL_STATIC_TRUE='#'
35405 WITH_PERL_STATIC_FALSE=
35406fi
35407
35408 if test $with_perl_dynamic = 'yes'; then
35409 WITH_PERL_DYNAMIC_TRUE=
35410 WITH_PERL_DYNAMIC_FALSE='#'
35411else
35412 WITH_PERL_DYNAMIC_TRUE='#'
35413 WITH_PERL_DYNAMIC_FALSE=
35414fi
35415
cristy3ed852e2009-09-05 21:47:34 +000035416
35417
35418# Determine path to pick up MagickCore library from for use with building PerlMagick
35419MAGICKCORE_PATH="${LIB_DIR}"
35420if test $with_perl_static = 'yes'; then
35421 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35422 libtool_objdir=$objdir
35423
35424 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035425 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035426fi
35427
35428
cristy2a3eb392012-12-17 13:39:20 +000035429# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035430MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035431if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035432 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035433fi
cristy2a3eb392012-12-17 13:39:20 +000035434if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035435 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035436fi
35437if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035438 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035439fi
35440if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035441 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035442fi
35443if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035444 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035445fi
cristyc0884e92013-08-10 17:14:59 +000035446if test "$have_fitz" = 'yes' ; then
35447 MAGICK_DELEGATES="$MAGICK_DELEGATES fitz"
35448fi
cristy2a3eb392012-12-17 13:39:20 +000035449if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035450 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035451fi
35452if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035453 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035454fi
35455if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035456 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035457fi
35458if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035459 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035460fi
35461if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035462 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035463fi
35464if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035465 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035466fi
35467if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035468 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035469fi
35470if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035471 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035472fi
35473if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035474 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035475fi
35476if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035477 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035478fi
35479if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035480 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035481fi
35482if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035483 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035484fi
35485if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035486 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035487fi
35488if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035489 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035490fi
35491if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035492 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035493fi
35494if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035495 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035496fi
35497have_ps='no'
35498if test "$have_dps" = 'yes' || \
35499 test "$have_gs" = 'yes' || \
35500 test "${native_win32_build}" = 'yes' ; then
35501 have_ps='yes'
35502fi
35503if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035504 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035505fi
35506if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035507 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035508fi
35509if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035510 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035511fi
35512if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035513 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035514fi
35515if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035516 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035517fi
35518if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035519 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035520fi
cristy3b640ed2013-07-29 00:27:59 +000035521if test "$have_webp" = 'yes' ; then
35522 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35523fi
cristy2a3eb392012-12-17 13:39:20 +000035524if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035525 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035526fi
35527if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035528 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035529fi
35530if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035531 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035532fi
35533if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035534 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035535fi
cristy2a3eb392012-12-17 13:39:20 +000035536# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035537MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035538MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035539
35540
cristyfa161182012-12-19 15:45:28 +000035541
cristy3ed852e2009-09-05 21:47:34 +000035542#
35543# Handle special compiler flags
35544#
35545
35546# Add '-p' if prof source profiling support enabled
35547if test "$enable_prof" = 'yes'; then
35548 CFLAGS="-p $CFLAGS"
35549 CXXFLAGS="-p $CXXFLAGS"
35550 LDFLAGS="-p $LDFLAGS"
35551fi
35552
35553# Add '-pg' if gprof source profiling support enabled
35554if test "$enable_gprof" = 'yes'; then
35555 CFLAGS="-pg $CFLAGS"
35556 CXXFLAGS="-pg $CXXFLAGS"
35557 LDFLAGS="-pg $LDFLAGS"
35558fi
35559
35560# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35561# This is a gcc-specific feature
35562if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035564$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035565if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035566 $as_echo_n "(cached) " >&6
35567else
35568 ac_check_lib_save_LIBS=$LIBS
35569LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035571/* end confdefs.h. */
35572
35573/* Override any GCC internal prototype to avoid an error.
35574 Use char because int might match the return type of a GCC
35575 builtin and then its argument prototype would still apply. */
35576#ifdef __cplusplus
35577extern "C"
35578#endif
35579char _gcov_init ();
35580int
35581main ()
35582{
35583return _gcov_init ();
35584 ;
35585 return 0;
35586}
35587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035589 ac_cv_lib_gcov__gcov_init=yes
35590else
cristy8b350f62009-11-15 23:12:43 +000035591 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035592fi
cristy8b350f62009-11-15 23:12:43 +000035593rm -f core conftest.err conftest.$ac_objext \
35594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035595LIBS=$ac_check_lib_save_LIBS
35596fi
cristy8b350f62009-11-15 23:12:43 +000035597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035598$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035599if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035600 cat >>confdefs.h <<_ACEOF
35601#define HAVE_LIBGCOV 1
35602_ACEOF
35603
35604 LIBS="-lgcov $LIBS"
35605
35606fi
35607
cristy8b350f62009-11-15 23:12:43 +000035608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035609$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035610if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035611 $as_echo_n "(cached) " >&6
35612else
35613 ac_check_lib_save_LIBS=$LIBS
35614LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035616/* end confdefs.h. */
35617
35618/* Override any GCC internal prototype to avoid an error.
35619 Use char because int might match the return type of a GCC
35620 builtin and then its argument prototype would still apply. */
35621#ifdef __cplusplus
35622extern "C"
35623#endif
35624char __gcov_init ();
35625int
35626main ()
35627{
35628return __gcov_init ();
35629 ;
35630 return 0;
35631}
35632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035634 ac_cv_lib_gcov___gcov_init=yes
35635else
cristy8b350f62009-11-15 23:12:43 +000035636 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035637fi
cristy8b350f62009-11-15 23:12:43 +000035638rm -f core conftest.err conftest.$ac_objext \
35639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035640LIBS=$ac_check_lib_save_LIBS
35641fi
cristy8b350f62009-11-15 23:12:43 +000035642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035643$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035644if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035645 cat >>confdefs.h <<_ACEOF
35646#define HAVE_LIBGCOV 1
35647_ACEOF
35648
35649 LIBS="-lgcov $LIBS"
35650
35651fi
35652
35653 case "$target_os" in
35654 darwin*)
35655 OSX_GCOV_LDFLAG="-Wl,-single_module"
35656 ;;
35657 *)
35658 OSX_GCOV_LDFLAG=""
35659 ;;
35660 esac
35661
35662 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35663 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35664 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35665fi
35666
35667#
35668# Build library dependency list for libMagickCore
35669#
35670
cristyc6722092012-10-14 00:19:31 +000035671if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035672 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 +000035673else
cristy3a75f062012-09-08 23:29:40 +000035674 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 +000035675fi
35676
35677
35678#
35679# Remove extraneous spaces from output variables (asthetic)
35680#
35681X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35682X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35683X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35684X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35685
35686CC=`echo $CC | sed -e 's/ */ /g'`
35687CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35688CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35689CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035690DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35691LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35692TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35693MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35694#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35695
35696# Pass only user-provided LIBS as "global" libraries
35697LIBS=$USER_LIBS
35698
35699#AC_SUBST(CPPFLAGS)
35700
35701#AC_SUBST(LDFLAGS)
35702#AC_SUBST(X_PRE_LIBS)
35703#AC_SUBST(X_LIBS)
35704#AC_SUBST(X_EXTRA_LIBS)
35705
35706MAGICK_CFLAGS=$CFLAGS
35707MAGICK_CXXFLAGS="$CXXFLAGS"
35708MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35709MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35710MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035711MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035712
35713
35714
35715
35716
35717
35718
35719
35720# Set configured scripts to executable.
35721ac_config_commands="$ac_config_commands default"
35722
cristy2bd4b6e2012-07-22 15:29:11 +000035723ac_config_commands="$ac_config_commands magick.sh.in"
35724
cristy3ed852e2009-09-05 21:47:34 +000035725ac_config_commands="$ac_config_commands MagickCore-config.in"
35726
cristy3ed852e2009-09-05 21:47:34 +000035727ac_config_commands="$ac_config_commands MagickWand-config.in"
35728
cristy3ed852e2009-09-05 21:47:34 +000035729ac_config_commands="$ac_config_commands Magick++-config.in"
35730
35731ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35732
35733
cristyad38abe2012-12-23 23:03:21 +000035734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35735$as_echo "-------------------------------------------------------------" >&6; }
35736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35737$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035738cat >confcache <<\_ACEOF
35739# This file is a shell script that caches the results of configure
35740# tests run on this system so they can be shared between configure
35741# scripts and configure runs, see configure's option --config-cache.
35742# It is not useful on other systems. If it contains results you don't
35743# want to keep, you may remove or edit it.
35744#
35745# config.status only pays attention to the cache file if you give it
35746# the --recheck option to rerun configure.
35747#
35748# `ac_cv_env_foo' variables (set or unset) will be overridden when
35749# loading this file, other *unset* `ac_cv_foo' will be assigned the
35750# following values.
35751
35752_ACEOF
35753
35754# The following way of writing the cache mishandles newlines in values,
35755# but we know of no workaround that is simple, portable, and efficient.
35756# So, we kill variables containing newlines.
35757# Ultrix sh set writes to stderr and can't be redirected directly,
35758# and sets the high bit in the cache file unless we assign to the vars.
35759(
35760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35761 eval ac_val=\$$ac_var
35762 case $ac_val in #(
35763 *${as_nl}*)
35764 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035765 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035766$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35767 esac
35768 case $ac_var in #(
35769 _ | IFS | as_nl) ;; #(
35770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035771 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035772 esac ;;
35773 esac
35774 done
35775
35776 (set) 2>&1 |
35777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35778 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035779 # `set' does not quote correctly, so add quotes: double-quote
35780 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035781 sed -n \
35782 "s/'/'\\\\''/g;
35783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35784 ;; #(
35785 *)
35786 # `set' quotes correctly as required by POSIX, so do not add quotes.
35787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35788 ;;
35789 esac |
35790 sort
35791) |
35792 sed '
35793 /^ac_cv_env_/b end
35794 t clear
35795 :clear
35796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35797 t end
35798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35799 :end' >>confcache
35800if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35801 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035802 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035803 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035804$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035805 if test ! -f "$cache_file" || test -h "$cache_file"; then
35806 cat confcache >"$cache_file"
35807 else
35808 case $cache_file in #(
35809 */* | ?:*)
35810 mv -f confcache "$cache_file"$$ &&
35811 mv -f "$cache_file"$$ "$cache_file" ;; #(
35812 *)
35813 mv -f confcache "$cache_file" ;;
35814 esac
35815 fi
35816 fi
cristy3ed852e2009-09-05 21:47:34 +000035817 else
cristy8b350f62009-11-15 23:12:43 +000035818 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035819$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35820 fi
35821fi
35822rm -f confcache
35823
35824test "x$prefix" = xNONE && prefix=$ac_default_prefix
35825# Let make expand exec_prefix.
35826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35827
35828DEFS=-DHAVE_CONFIG_H
35829
35830ac_libobjs=
35831ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035832U=
cristy3ed852e2009-09-05 21:47:34 +000035833for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35834 # 1. Remove the extension, and $U if already installed.
35835 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35836 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35837 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35838 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035839 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35840 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035841done
35842LIBOBJS=$ac_libobjs
35843
35844LTLIBOBJS=$ac_ltlibobjs
35845
35846
cristyc0890a62012-07-19 00:18:20 +000035847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35848$as_echo_n "checking that generated files are newer than configure... " >&6; }
35849 if test -n "$am_sleep_pid"; then
35850 # Hide warnings about reused PIDs.
35851 wait $am_sleep_pid 2>/dev/null
35852 fi
35853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35854$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035855 if test -n "$EXEEXT"; then
35856 am__EXEEXT_TRUE=
35857 am__EXEEXT_FALSE='#'
35858else
35859 am__EXEEXT_TRUE='#'
35860 am__EXEEXT_FALSE=
35861fi
cristy3ed852e2009-09-05 21:47:34 +000035862
cristy73bd4a52010-10-05 11:24:23 +000035863if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035864 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035865Usually this means the macro was only invoked conditionally." "$LINENO" 5
35866fi
35867if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035868 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
35871if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
35875if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
cristy9b86f202012-11-28 21:55:35 +000035879if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35880 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
cristy73bd4a52010-10-05 11:24:23 +000035883if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035884 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
35887if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035888 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035889Usually this means the macro was only invoked conditionally." "$LINENO" 5
35890fi
35891if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035892 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035893Usually this means the macro was only invoked conditionally." "$LINENO" 5
35894fi
35895if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035896 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035897Usually this means the macro was only invoked conditionally." "$LINENO" 5
35898fi
cristy73bd4a52010-10-05 11:24:23 +000035899if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035900 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035901Usually this means the macro was only invoked conditionally." "$LINENO" 5
35902fi
35903if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035904 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035905Usually this means the macro was only invoked conditionally." "$LINENO" 5
35906fi
cristy73bd4a52010-10-05 11:24:23 +000035907if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035908 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035909Usually this means the macro was only invoked conditionally." "$LINENO" 5
35910fi
cristy71d8c202012-03-20 17:05:01 +000035911if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35912 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35913Usually this means the macro was only invoked conditionally." "$LINENO" 5
35914fi
cristy73bd4a52010-10-05 11:24:23 +000035915
35916if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035917 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035918Usually this means the macro was only invoked conditionally." "$LINENO" 5
35919fi
35920if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
35924if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035925 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035926Usually this means the macro was only invoked conditionally." "$LINENO" 5
35927fi
35928if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035929 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035930Usually this means the macro was only invoked conditionally." "$LINENO" 5
35931fi
35932if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035933 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035934Usually this means the macro was only invoked conditionally." "$LINENO" 5
35935fi
35936if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035937 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035938Usually this means the macro was only invoked conditionally." "$LINENO" 5
35939fi
cristy5eef09f2012-10-16 12:08:28 +000035940if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35941 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
cristy73bd4a52010-10-05 11:24:23 +000035944if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035946Usually this means the macro was only invoked conditionally." "$LINENO" 5
35947fi
35948if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035949 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035950Usually this means the macro was only invoked conditionally." "$LINENO" 5
35951fi
35952if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035953 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035954Usually this means the macro was only invoked conditionally." "$LINENO" 5
35955fi
35956if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035957 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035958Usually this means the macro was only invoked conditionally." "$LINENO" 5
35959fi
35960if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035961 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035962Usually this means the macro was only invoked conditionally." "$LINENO" 5
35963fi
35964if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035965 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035966Usually this means the macro was only invoked conditionally." "$LINENO" 5
35967fi
35968if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035969 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035970Usually this means the macro was only invoked conditionally." "$LINENO" 5
35971fi
cristyc0884e92013-08-10 17:14:59 +000035972if test -z "${FITZ_DELEGATE_TRUE}" && test -z "${FITZ_DELEGATE_FALSE}"; then
35973 as_fn_error $? "conditional \"FITZ_DELEGATE\" was never defined.
35974Usually this means the macro was only invoked conditionally." "$LINENO" 5
35975fi
cristy73bd4a52010-10-05 11:24:23 +000035976if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035978Usually this means the macro was only invoked conditionally." "$LINENO" 5
35979fi
35980if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035982Usually this means the macro was only invoked conditionally." "$LINENO" 5
35983fi
35984if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035985 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035986Usually this means the macro was only invoked conditionally." "$LINENO" 5
35987fi
35988if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035989 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035990Usually this means the macro was only invoked conditionally." "$LINENO" 5
35991fi
35992if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035993 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035994Usually this means the macro was only invoked conditionally." "$LINENO" 5
35995fi
35996if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035997 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035998Usually this means the macro was only invoked conditionally." "$LINENO" 5
35999fi
36000if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036001 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036002Usually this means the macro was only invoked conditionally." "$LINENO" 5
36003fi
cristyfbb0ef02010-12-19 02:32:11 +000036004if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36005 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36006Usually this means the macro was only invoked conditionally." "$LINENO" 5
36007fi
cristy73bd4a52010-10-05 11:24:23 +000036008if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036009 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036010Usually this means the macro was only invoked conditionally." "$LINENO" 5
36011fi
cristy41cbe8a2011-10-27 01:35:18 +000036012if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36013 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36014Usually this means the macro was only invoked conditionally." "$LINENO" 5
36015fi
cristya054b762012-03-26 23:16:00 +000036016if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36017 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036018Usually this means the macro was only invoked conditionally." "$LINENO" 5
36019fi
cristy73bd4a52010-10-05 11:24:23 +000036020if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036021 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036022Usually this means the macro was only invoked conditionally." "$LINENO" 5
36023fi
36024if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036025 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036026Usually this means the macro was only invoked conditionally." "$LINENO" 5
36027fi
36028if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036029 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036030Usually this means the macro was only invoked conditionally." "$LINENO" 5
36031fi
36032if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036033 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036034Usually this means the macro was only invoked conditionally." "$LINENO" 5
36035fi
cristyb1860752011-03-14 00:27:46 +000036036if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36037 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36038Usually this means the macro was only invoked conditionally." "$LINENO" 5
36039fi
cristy73bd4a52010-10-05 11:24:23 +000036040if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036041 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036042Usually this means the macro was only invoked conditionally." "$LINENO" 5
36043fi
36044if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036045 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036046Usually this means the macro was only invoked conditionally." "$LINENO" 5
36047fi
36048if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036049 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036050Usually this means the macro was only invoked conditionally." "$LINENO" 5
36051fi
36052if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036053 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036054Usually this means the macro was only invoked conditionally." "$LINENO" 5
36055fi
36056if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036061 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
cristy3ed852e2009-09-05 21:47:34 +000036072
cristyda16f162011-02-19 23:52:17 +000036073: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036074ac_write_fail=0
36075ac_clean_files_save=$ac_clean_files
36076ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036077{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036078$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036079as_write_fail=0
36080cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036081#! $SHELL
36082# Generated by $as_me.
36083# Run this file to recreate the current configuration.
36084# Compiler output produced by configure, useful for debugging
36085# configure, is in config.log if it exists.
36086
36087debug=false
36088ac_cs_recheck=false
36089ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036090
cristy8b350f62009-11-15 23:12:43 +000036091SHELL=\${CONFIG_SHELL-$SHELL}
36092export SHELL
36093_ASEOF
36094cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36095## -------------------- ##
36096## M4sh Initialization. ##
36097## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036098
36099# Be more Bourne compatible
36100DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036101if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036102 emulate sh
36103 NULLCMD=:
36104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36105 # is contrary to our usage. Disable this feature.
36106 alias -g '${1+"$@"}'='"$@"'
36107 setopt NO_GLOB_SUBST
36108else
cristy8b350f62009-11-15 23:12:43 +000036109 case `(set -o) 2>/dev/null` in #(
36110 *posix*) :
36111 set -o posix ;; #(
36112 *) :
36113 ;;
cristy3ed852e2009-09-05 21:47:34 +000036114esac
cristy3ed852e2009-09-05 21:47:34 +000036115fi
36116
36117
cristy3ed852e2009-09-05 21:47:34 +000036118as_nl='
36119'
36120export as_nl
36121# Printing a long string crashes Solaris 7 /usr/bin/printf.
36122as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36123as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36124as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036125# Prefer a ksh shell builtin over an external printf program on Solaris,
36126# but without wasting forks for bash or zsh.
36127if test -z "$BASH_VERSION$ZSH_VERSION" \
36128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36129 as_echo='print -r --'
36130 as_echo_n='print -rn --'
36131elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036132 as_echo='printf %s\n'
36133 as_echo_n='printf %s'
36134else
36135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36137 as_echo_n='/usr/ucb/echo -n'
36138 else
36139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36140 as_echo_n_body='eval
36141 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036142 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036143 *"$as_nl"*)
36144 expr "X$arg" : "X\\(.*\\)$as_nl";
36145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36146 esac;
36147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36148 '
36149 export as_echo_n_body
36150 as_echo_n='sh -c $as_echo_n_body as_echo'
36151 fi
36152 export as_echo_body
36153 as_echo='sh -c $as_echo_body as_echo'
36154fi
36155
36156# The user is always right.
36157if test "${PATH_SEPARATOR+set}" != set; then
36158 PATH_SEPARATOR=:
36159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36161 PATH_SEPARATOR=';'
36162 }
36163fi
36164
cristy3ed852e2009-09-05 21:47:34 +000036165
36166# IFS
36167# We need space, tab and new line, in precisely that order. Quoting is
36168# there to prevent editors from complaining about space-tab.
36169# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36170# splitting by setting IFS to empty value.)
36171IFS=" "" $as_nl"
36172
36173# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036174as_myself=
cristy8b350f62009-11-15 23:12:43 +000036175case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036176 *[\\/]* ) as_myself=$0 ;;
36177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36178for as_dir in $PATH
36179do
36180 IFS=$as_save_IFS
36181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36183 done
cristy3ed852e2009-09-05 21:47:34 +000036184IFS=$as_save_IFS
36185
36186 ;;
36187esac
36188# We did not find ourselves, most probably we were run as `sh COMMAND'
36189# in which case we are not to be found in the path.
36190if test "x$as_myself" = x; then
36191 as_myself=$0
36192fi
36193if test ! -f "$as_myself"; then
36194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036195 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036196fi
36197
cristy8b350f62009-11-15 23:12:43 +000036198# Unset variables that we do not need and which cause bugs (e.g. in
36199# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36200# suppresses any "Segmentation fault" message there. '((' could
36201# trigger a bug in pdksh 5.2.14.
36202for as_var in BASH_ENV ENV MAIL MAILPATH
36203do eval test x\${$as_var+set} = xset \
36204 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036205done
36206PS1='$ '
36207PS2='> '
36208PS4='+ '
36209
36210# NLS nuisances.
36211LC_ALL=C
36212export LC_ALL
36213LANGUAGE=C
36214export LANGUAGE
36215
cristy8b350f62009-11-15 23:12:43 +000036216# CDPATH.
36217(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36218
36219
cristy98dddb52010-11-04 00:30:15 +000036220# as_fn_error STATUS ERROR [LINENO LOG_FD]
36221# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036222# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36223# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036224# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036225as_fn_error ()
36226{
cristy98dddb52010-11-04 00:30:15 +000036227 as_status=$1; test $as_status -eq 0 && as_status=1
36228 if test "$4"; then
36229 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036231 fi
cristy98dddb52010-11-04 00:30:15 +000036232 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036233 as_fn_exit $as_status
36234} # as_fn_error
36235
36236
36237# as_fn_set_status STATUS
36238# -----------------------
36239# Set $? to STATUS, without forking.
36240as_fn_set_status ()
36241{
36242 return $1
36243} # as_fn_set_status
36244
36245# as_fn_exit STATUS
36246# -----------------
36247# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36248as_fn_exit ()
36249{
36250 set +e
36251 as_fn_set_status $1
36252 exit $1
36253} # as_fn_exit
36254
36255# as_fn_unset VAR
36256# ---------------
36257# Portably unset VAR.
36258as_fn_unset ()
36259{
36260 { eval $1=; unset $1;}
36261}
36262as_unset=as_fn_unset
36263# as_fn_append VAR VALUE
36264# ----------------------
36265# Append the text in VALUE to the end of the definition contained in VAR. Take
36266# advantage of any shell optimizations that allow amortized linear growth over
36267# repeated appends, instead of the typical quadratic growth present in naive
36268# implementations.
36269if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36270 eval 'as_fn_append ()
36271 {
36272 eval $1+=\$2
36273 }'
36274else
36275 as_fn_append ()
36276 {
36277 eval $1=\$$1\$2
36278 }
36279fi # as_fn_append
36280
36281# as_fn_arith ARG...
36282# ------------------
36283# Perform arithmetic evaluation on the ARGs, and store the result in the
36284# global $as_val. Take advantage of shells that can avoid forks. The arguments
36285# must be portable across $(()) and expr.
36286if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36287 eval 'as_fn_arith ()
36288 {
36289 as_val=$(( $* ))
36290 }'
36291else
36292 as_fn_arith ()
36293 {
36294 as_val=`expr "$@" || test $? -eq 1`
36295 }
36296fi # as_fn_arith
36297
36298
cristy3ed852e2009-09-05 21:47:34 +000036299if expr a : '\(a\)' >/dev/null 2>&1 &&
36300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36301 as_expr=expr
36302else
36303 as_expr=false
36304fi
36305
36306if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36307 as_basename=basename
36308else
36309 as_basename=false
36310fi
36311
cristy8b350f62009-11-15 23:12:43 +000036312if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36313 as_dirname=dirname
36314else
36315 as_dirname=false
36316fi
cristy3ed852e2009-09-05 21:47:34 +000036317
cristy3ed852e2009-09-05 21:47:34 +000036318as_me=`$as_basename -- "$0" ||
36319$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36320 X"$0" : 'X\(//\)$' \| \
36321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36322$as_echo X/"$0" |
36323 sed '/^.*\/\([^/][^/]*\)\/*$/{
36324 s//\1/
36325 q
36326 }
36327 /^X\/\(\/\/\)$/{
36328 s//\1/
36329 q
36330 }
36331 /^X\/\(\/\).*/{
36332 s//\1/
36333 q
36334 }
36335 s/.*/./; q'`
36336
cristy8b350f62009-11-15 23:12:43 +000036337# Avoid depending upon Character Ranges.
36338as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36339as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36340as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36341as_cr_digits='0123456789'
36342as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036343
36344ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036345case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036346-n*)
cristy8b350f62009-11-15 23:12:43 +000036347 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036348 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036349 xy) ECHO_C='\c';;
36350 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36351 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036352 esac;;
36353*)
36354 ECHO_N='-n';;
36355esac
cristy3ed852e2009-09-05 21:47:34 +000036356
36357rm -f conf$$ conf$$.exe conf$$.file
36358if test -d conf$$.dir; then
36359 rm -f conf$$.dir/conf$$.file
36360else
36361 rm -f conf$$.dir
36362 mkdir conf$$.dir 2>/dev/null
36363fi
36364if (echo >conf$$.file) 2>/dev/null; then
36365 if ln -s conf$$.file conf$$ 2>/dev/null; then
36366 as_ln_s='ln -s'
36367 # ... but there are two gotchas:
36368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036370 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036372 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036373 elif ln conf$$.file conf$$ 2>/dev/null; then
36374 as_ln_s=ln
36375 else
cristy14fefe52012-05-21 00:59:18 +000036376 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036377 fi
36378else
cristy14fefe52012-05-21 00:59:18 +000036379 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036380fi
36381rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36382rmdir conf$$.dir 2>/dev/null
36383
cristy8b350f62009-11-15 23:12:43 +000036384
36385# as_fn_mkdir_p
36386# -------------
36387# Create "$as_dir" as a directory, including parents if necessary.
36388as_fn_mkdir_p ()
36389{
36390
36391 case $as_dir in #(
36392 -*) as_dir=./$as_dir;;
36393 esac
36394 test -d "$as_dir" || eval $as_mkdir_p || {
36395 as_dirs=
36396 while :; do
36397 case $as_dir in #(
36398 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36399 *) as_qdir=$as_dir;;
36400 esac
36401 as_dirs="'$as_qdir' $as_dirs"
36402 as_dir=`$as_dirname -- "$as_dir" ||
36403$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36404 X"$as_dir" : 'X\(//\)[^/]' \| \
36405 X"$as_dir" : 'X\(//\)$' \| \
36406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36407$as_echo X"$as_dir" |
36408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36409 s//\1/
36410 q
36411 }
36412 /^X\(\/\/\)[^/].*/{
36413 s//\1/
36414 q
36415 }
36416 /^X\(\/\/\)$/{
36417 s//\1/
36418 q
36419 }
36420 /^X\(\/\).*/{
36421 s//\1/
36422 q
36423 }
36424 s/.*/./; q'`
36425 test -d "$as_dir" && break
36426 done
36427 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036428 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036429
36430
36431} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036432if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036433 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036434else
36435 test -d ./-p && rmdir ./-p
36436 as_mkdir_p=false
36437fi
36438
cristy14fefe52012-05-21 00:59:18 +000036439
36440# as_fn_executable_p FILE
36441# -----------------------
36442# Test if FILE is an executable regular file.
36443as_fn_executable_p ()
36444{
36445 test -f "$1" && test -x "$1"
36446} # as_fn_executable_p
36447as_test_x='test -x'
36448as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036449
36450# Sed expression to map a string onto a valid CPP name.
36451as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36452
36453# Sed expression to map a string onto a valid variable name.
36454as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36455
36456
36457exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036458## ----------------------------------- ##
36459## Main body of $CONFIG_STATUS script. ##
36460## ----------------------------------- ##
36461_ASEOF
36462test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036463
cristy8b350f62009-11-15 23:12:43 +000036464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36465# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036466# report actual input values of CONFIG_FILES etc. instead of their
36467# values after options handling.
36468ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036469This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036470generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036471
36472 CONFIG_FILES = $CONFIG_FILES
36473 CONFIG_HEADERS = $CONFIG_HEADERS
36474 CONFIG_LINKS = $CONFIG_LINKS
36475 CONFIG_COMMANDS = $CONFIG_COMMANDS
36476 $ $0 $@
36477
36478on `(hostname || uname -n) 2>/dev/null | sed 1q`
36479"
36480
36481_ACEOF
36482
36483case $ac_config_files in *"
36484"*) set x $ac_config_files; shift; ac_config_files=$*;;
36485esac
36486
36487case $ac_config_headers in *"
36488"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36489esac
36490
36491
36492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36493# Files that config.status was made for.
36494config_files="$ac_config_files"
36495config_headers="$ac_config_headers"
36496config_commands="$ac_config_commands"
36497
36498_ACEOF
36499
36500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36501ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036502\`$as_me' instantiates files and other configuration actions
36503from templates according to the current configuration. Unless the files
36504and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036505
cristy8b350f62009-11-15 23:12:43 +000036506Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036507
36508 -h, --help print this help, then exit
36509 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036510 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036511 -q, --quiet, --silent
36512 do not print progress messages
36513 -d, --debug don't remove temporary files
36514 --recheck update $as_me by reconfiguring in the same conditions
36515 --file=FILE[:TEMPLATE]
36516 instantiate the configuration file FILE
36517 --header=FILE[:TEMPLATE]
36518 instantiate the configuration header FILE
36519
36520Configuration files:
36521$config_files
36522
36523Configuration headers:
36524$config_headers
36525
36526Configuration commands:
36527$config_commands
36528
cristy8b350f62009-11-15 23:12:43 +000036529Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036530
36531_ACEOF
36532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036533ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036534ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036535ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036536configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036537 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036538
cristy14fefe52012-05-21 00:59:18 +000036539Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036540This config.status script is free software; the Free Software Foundation
36541gives unlimited permission to copy, distribute and modify it."
36542
36543ac_pwd='$ac_pwd'
36544srcdir='$srcdir'
36545INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036546MKDIR_P='$MKDIR_P'
36547AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036548test -n "\$AWK" || AWK=awk
36549_ACEOF
36550
36551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36552# The default lists apply if the user does not specify any file.
36553ac_need_defaults=:
36554while test $# != 0
36555do
36556 case $1 in
cristyda16f162011-02-19 23:52:17 +000036557 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36560 ac_shift=:
36561 ;;
cristyda16f162011-02-19 23:52:17 +000036562 --*=)
36563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36564 ac_optarg=
36565 ac_shift=:
36566 ;;
cristy3ed852e2009-09-05 21:47:34 +000036567 *)
36568 ac_option=$1
36569 ac_optarg=$2
36570 ac_shift=shift
36571 ;;
36572 esac
36573
36574 case $ac_option in
36575 # Handling of the options.
36576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36577 ac_cs_recheck=: ;;
36578 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36579 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036580 --config | --confi | --conf | --con | --co | --c )
36581 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036582 --debug | --debu | --deb | --de | --d | -d )
36583 debug=: ;;
36584 --file | --fil | --fi | --f )
36585 $ac_shift
36586 case $ac_optarg in
36587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036588 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036589 esac
cristy8b350f62009-11-15 23:12:43 +000036590 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036591 ac_need_defaults=false;;
36592 --header | --heade | --head | --hea )
36593 $ac_shift
36594 case $ac_optarg in
36595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36596 esac
cristy8b350f62009-11-15 23:12:43 +000036597 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036598 ac_need_defaults=false;;
36599 --he | --h)
36600 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036601 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036602Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036603 --help | --hel | -h )
36604 $as_echo "$ac_cs_usage"; exit ;;
36605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36606 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36607 ac_cs_silent=: ;;
36608
36609 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036610 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036611Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036612
cristy8b350f62009-11-15 23:12:43 +000036613 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036614 ac_need_defaults=false ;;
36615
36616 esac
36617 shift
36618done
36619
36620ac_configure_extra_args=
36621
36622if $ac_cs_silent; then
36623 exec 6>/dev/null
36624 ac_configure_extra_args="$ac_configure_extra_args --silent"
36625fi
36626
36627_ACEOF
36628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36629if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036630 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036631 shift
36632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36633 CONFIG_SHELL='$SHELL'
36634 export CONFIG_SHELL
36635 exec "\$@"
36636fi
36637
36638_ACEOF
36639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36640exec 5>>config.log
36641{
36642 echo
36643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36644## Running $as_me. ##
36645_ASBOX
36646 $as_echo "$ac_log"
36647} >&5
36648
36649_ACEOF
36650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036651#
36652# INIT-COMMANDS
36653#
36654PACKAGE="$PACKAGE"
36655AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36656
36657
36658# The HP-UX ksh and POSIX shell print the target directory to stdout
36659# if CDPATH is set.
36660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36661
36662sed_quote_subst='$sed_quote_subst'
36663double_quote_subst='$double_quote_subst'
36664delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036665SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36666Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36667GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36668EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36669FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36670SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36671ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36672LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36673macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36674macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36675AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36676DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36677OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36678enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36679enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36680pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36681enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036682PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036683host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36684host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36685host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36686build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36687build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36688build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36689NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36690LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36691max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36692ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36693exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36694lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36695lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36696lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036697lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36698lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036699reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36700reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36701deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36702file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036703file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36704want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36705sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036706AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36707AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036708archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036709STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36710RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36711old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36712old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36713old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36714lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36715CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36716CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36717compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36718GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36719lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36720lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36721lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36722lt_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 +000036723nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36724lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036725objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36726MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36727lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036728lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036729lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036730lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36731lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36732need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036733MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036734DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36735NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36736LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36737OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36738OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36739libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36740shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36741extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36742archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36743enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36744export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36745whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36746compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36747old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36748old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36749archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36750archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36751module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36752module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36753with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36754allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36755no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36756hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036757hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36758hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36759hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36760hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36761hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36762hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36763inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36764link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036765always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36766export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36767exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36768include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36769prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036770postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036771file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36772variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36773need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36774need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36775version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36776runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36777shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36778shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36779libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36780library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36781soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36782install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36783postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36784postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36785finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36786finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36787hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36788sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36789sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36790hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36791enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36792enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36793enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36794old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36795striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36796compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36797predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36798postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36799predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36800postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36801compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36802LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36803reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36804reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36805old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36806compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36807GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36808lt_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 +000036809lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036810lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036811lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36812lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36813archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36814enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36815export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36816whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36817compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36818old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36819old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36820archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36821archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36822module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36823module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36824with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36825allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36826no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36827hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036828hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36829hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36830hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36831hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36832hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36833hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36834inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36835link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036836always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36837export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36838exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36839include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36840prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036841postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036842file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36843hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36844compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36845predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36846postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36847predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36848postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36849compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036850
36851LTCC='$LTCC'
36852LTCFLAGS='$LTCFLAGS'
36853compiler='$compiler_DEFAULT'
36854
cristy0c60a692010-11-04 01:09:47 +000036855# A function that is used when there is no print builtin or printf.
36856func_fallback_echo ()
36857{
36858 eval 'cat <<_LTECHO_EOF
36859\$1
36860_LTECHO_EOF'
36861}
36862
cristy73bd4a52010-10-05 11:24:23 +000036863# Quote evaled strings.
36864for var in SED \
36865GREP \
36866EGREP \
36867FGREP \
cristy0c60a692010-11-04 01:09:47 +000036868SHELL \
36869ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036870LD \
cristy0c60a692010-11-04 01:09:47 +000036871AS \
36872DLLTOOL \
36873OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036874PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036875NM \
36876LN_S \
36877lt_SP2NL \
36878lt_NL2SP \
36879reload_flag \
36880deplibs_check_method \
36881file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036882file_magic_glob \
36883want_nocaseglob \
36884sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036885AR \
36886AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036887archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036888STRIP \
36889RANLIB \
36890CC \
36891CFLAGS \
36892compiler \
36893lt_cv_sys_global_symbol_pipe \
36894lt_cv_sys_global_symbol_to_cdecl \
36895lt_cv_sys_global_symbol_to_c_name_address \
36896lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036897nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036898lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036899lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036900lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036901lt_prog_compiler_static \
36902lt_cv_prog_compiler_c_o \
36903need_locks \
cristyda16f162011-02-19 23:52:17 +000036904MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036905DSYMUTIL \
36906NMEDIT \
36907LIPO \
36908OTOOL \
36909OTOOL64 \
36910shrext_cmds \
36911export_dynamic_flag_spec \
36912whole_archive_flag_spec \
36913compiler_needs_object \
36914with_gnu_ld \
36915allow_undefined_flag \
36916no_undefined_flag \
36917hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036918hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036919exclude_expsyms \
36920include_expsyms \
36921file_list_spec \
36922variables_saved_for_relink \
36923libname_spec \
36924library_names_spec \
36925soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036926install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036927finish_eval \
36928old_striplib \
36929striplib \
36930compiler_lib_search_dirs \
36931predep_objects \
36932postdep_objects \
36933predeps \
36934postdeps \
36935compiler_lib_search_path \
36936LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036937reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036938compiler_CXX \
36939lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036940lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036941lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036942lt_prog_compiler_static_CXX \
36943lt_cv_prog_compiler_c_o_CXX \
36944export_dynamic_flag_spec_CXX \
36945whole_archive_flag_spec_CXX \
36946compiler_needs_object_CXX \
36947with_gnu_ld_CXX \
36948allow_undefined_flag_CXX \
36949no_undefined_flag_CXX \
36950hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036951hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036952exclude_expsyms_CXX \
36953include_expsyms_CXX \
36954file_list_spec_CXX \
36955compiler_lib_search_dirs_CXX \
36956predep_objects_CXX \
36957postdep_objects_CXX \
36958predeps_CXX \
36959postdeps_CXX \
36960compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036961 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036962 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036963 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036964 ;;
36965 *)
36966 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36967 ;;
36968 esac
36969done
36970
36971# Double-quote double-evaled strings.
36972for var in reload_cmds \
36973old_postinstall_cmds \
36974old_postuninstall_cmds \
36975old_archive_cmds \
36976extract_expsyms_cmds \
36977old_archive_from_new_cmds \
36978old_archive_from_expsyms_cmds \
36979archive_cmds \
36980archive_expsym_cmds \
36981module_cmds \
36982module_expsym_cmds \
36983export_symbols_cmds \
36984prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036985postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036986postinstall_cmds \
36987postuninstall_cmds \
36988finish_cmds \
36989sys_lib_search_path_spec \
36990sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036991reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036992old_archive_cmds_CXX \
36993old_archive_from_new_cmds_CXX \
36994old_archive_from_expsyms_cmds_CXX \
36995archive_cmds_CXX \
36996archive_expsym_cmds_CXX \
36997module_cmds_CXX \
36998module_expsym_cmds_CXX \
36999export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037000prelink_cmds_CXX \
37001postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037002 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037003 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037005 ;;
37006 *)
37007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37008 ;;
37009 esac
37010done
37011
cristy73bd4a52010-10-05 11:24:23 +000037012ac_aux_dir='$ac_aux_dir'
37013xsi_shell='$xsi_shell'
37014lt_shell_append='$lt_shell_append'
37015
37016# See if we are running on zsh, and set the options which allow our
37017# commands through without removal of \ escapes INIT.
37018if test -n "\${ZSH_VERSION+set}" ; then
37019 setopt NO_GLOB_SUBST
37020fi
37021
37022
37023 PACKAGE='$PACKAGE'
37024 VERSION='$VERSION'
37025 TIMESTAMP='$TIMESTAMP'
37026 RM='$RM'
37027 ofile='$ofile'
37028
37029
37030
37031
37032
37033
cristy3ed852e2009-09-05 21:47:34 +000037034_ACEOF
37035
37036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37037
37038# Handling of arguments.
37039for ac_config_target in $ac_config_targets
37040do
37041 case $ac_config_target in
37042 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037043 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037044 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037045 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37046 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37047 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37048 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37049 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037050 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037051 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037052 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37053 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37054 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37055 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37056 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037057 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037058 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037059 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37060 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37061 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37063 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037064 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037065 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037066 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037067 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037068 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37069 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37070 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37071 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037072 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37073 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37074 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37075 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37076 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37077 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37078 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37079 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37080 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37081 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37082 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37083 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037084 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37085 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037086 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37087 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037088 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037089 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037090 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037091 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037092 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37093 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37094
cristy98dddb52010-11-04 00:30:15 +000037095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037096 esac
37097done
37098
37099
37100# If the user did not use the arguments to specify the items to instantiate,
37101# then the envvar interface is used. Set only those that are not.
37102# We use the long form for the default assignment because of an extremely
37103# bizarre bug on SunOS 4.1.3.
37104if $ac_need_defaults; then
37105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37108fi
37109
37110# Have a temporary directory for convenience. Make it in the build tree
37111# simply because there is no reason against having it here, and in addition,
37112# creating and moving files from /tmp can sometimes cause problems.
37113# Hook for its removal unless debugging.
37114# Note that there is a small window in which the directory will not be cleaned:
37115# after its creation but before its name has been assigned to `$tmp'.
37116$debug ||
37117{
cristyda16f162011-02-19 23:52:17 +000037118 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037119 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037120 : "${ac_tmp:=$tmp}"
37121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037122' 0
cristy8b350f62009-11-15 23:12:43 +000037123 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037124}
37125# Create a (secure) tmp directory for tmp files.
37126
37127{
37128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037129 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037130} ||
37131{
37132 tmp=./conf$$-$RANDOM
37133 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037134} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037135ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037136
37137# Set up the scripts for CONFIG_FILES section.
37138# No need to generate them if there are no CONFIG_FILES.
37139# This happens for instance with `./config.status config.h'.
37140if test -n "$CONFIG_FILES"; then
37141
37142
cristy8b350f62009-11-15 23:12:43 +000037143ac_cr=`echo X | tr X '\015'`
37144# On cygwin, bash can eat \r inside `` if the user requested igncr.
37145# But we know of no other shell where ac_cr would be empty at this
37146# point, so we can use a bashism as a fallback.
37147if test "x$ac_cr" = x; then
37148 eval ac_cr=\$\'\\r\'
37149fi
cristy3ed852e2009-09-05 21:47:34 +000037150ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37151if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037152 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037153else
37154 ac_cs_awk_cr=$ac_cr
37155fi
37156
cristyda16f162011-02-19 23:52:17 +000037157echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037158_ACEOF
37159
37160
37161{
37162 echo "cat >conf$$subs.awk <<_ACEOF" &&
37163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37164 echo "_ACEOF"
37165} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37167ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037168ac_delim='%!_!# '
37169for ac_last_try in false false false false false :; do
37170 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037172
37173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37174 if test $ac_delim_n = $ac_delim_num; then
37175 break
37176 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037178 else
37179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37180 fi
37181done
37182rm -f conf$$subs.sh
37183
37184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037185cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037186_ACEOF
37187sed -n '
37188h
37189s/^/S["/; s/!.*/"]=/
37190p
37191g
37192s/^[^!]*!//
37193:repl
37194t repl
37195s/'"$ac_delim"'$//
37196t delim
37197:nl
37198h
cristycd4c5312009-11-22 01:19:08 +000037199s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037200t more1
37201s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37202p
37203n
37204b repl
37205:more1
37206s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37207p
37208g
37209s/.\{148\}//
37210t nl
37211:delim
37212h
cristycd4c5312009-11-22 01:19:08 +000037213s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037214t more2
37215s/["\\]/\\&/g; s/^/"/; s/$/"/
37216p
37217b
37218:more2
37219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37220p
37221g
37222s/.\{148\}//
37223t delim
37224' <conf$$subs.awk | sed '
37225/^[^""]/{
37226 N
37227 s/\n//
37228}
37229' >>$CONFIG_STATUS || ac_write_fail=1
37230rm -f conf$$subs.awk
37231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37232_ACAWK
cristyda16f162011-02-19 23:52:17 +000037233cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037234 for (key in S) S_is_set[key] = 1
37235 FS = ""
37236
37237}
37238{
37239 line = $ 0
37240 nfields = split(line, field, "@")
37241 substed = 0
37242 len = length(field[1])
37243 for (i = 2; i < nfields; i++) {
37244 key = field[i]
37245 keylen = length(key)
37246 if (S_is_set[key]) {
37247 value = S[key]
37248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37249 len += length(value) + length(field[++i])
37250 substed = 1
37251 } else
37252 len += 1 + keylen
37253 }
37254
37255 print line
37256}
37257
37258_ACAWK
37259_ACEOF
37260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37261if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37263else
37264 cat
cristyda16f162011-02-19 23:52:17 +000037265fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037266 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037267_ACEOF
37268
cristy98dddb52010-11-04 00:30:15 +000037269# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37270# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037271# trailing colons and then remove the whole line if VPATH becomes empty
37272# (actually we leave an empty line to preserve line numbers).
37273if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037274 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37275h
37276s///
37277s/^/:/
37278s/[ ]*$/:/
37279s/:\$(srcdir):/:/g
37280s/:\${srcdir}:/:/g
37281s/:@srcdir@:/:/g
37282s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037283s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037284x
37285s/\(=[ ]*\).*/\1/
37286G
37287s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037288s/^[^=]*=[ ]*$//
37289}'
37290fi
37291
37292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37293fi # test -n "$CONFIG_FILES"
37294
37295# Set up the scripts for CONFIG_HEADERS section.
37296# No need to generate them if there are no CONFIG_HEADERS.
37297# This happens for instance with `./config.status Makefile'.
37298if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037299cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037300BEGIN {
37301_ACEOF
37302
37303# Transform confdefs.h into an awk script `defines.awk', embedded as
37304# here-document in config.status, that substitutes the proper values into
37305# config.h.in to produce config.h.
37306
37307# Create a delimiter string that does not exist in confdefs.h, to ease
37308# handling of long lines.
37309ac_delim='%!_!# '
37310for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037311 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37312 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037313 break
37314 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037315 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037316 else
37317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37318 fi
37319done
37320
37321# For the awk script, D is an array of macro values keyed by name,
37322# likewise P contains macro parameters if any. Preserve backslash
37323# newline sequences.
37324
37325ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37326sed -n '
37327s/.\{148\}/&'"$ac_delim"'/g
37328t rset
37329:rset
37330s/^[ ]*#[ ]*define[ ][ ]*/ /
37331t def
37332d
37333:def
37334s/\\$//
37335t bsnl
37336s/["\\]/\\&/g
37337s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37338D["\1"]=" \3"/p
37339s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37340d
37341:bsnl
37342s/["\\]/\\&/g
37343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37344D["\1"]=" \3\\\\\\n"\\/p
37345t cont
37346s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37347t cont
37348d
37349:cont
37350n
37351s/.\{148\}/&'"$ac_delim"'/g
37352t clear
37353:clear
37354s/\\$//
37355t bsnlc
37356s/["\\]/\\&/g; s/^/"/; s/$/"/p
37357d
37358:bsnlc
37359s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37360b cont
37361' <confdefs.h | sed '
37362s/'"$ac_delim"'/"\\\
37363"/g' >>$CONFIG_STATUS || ac_write_fail=1
37364
37365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37366 for (key in D) D_is_set[key] = 1
37367 FS = ""
37368}
37369/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37370 line = \$ 0
37371 split(line, arg, " ")
37372 if (arg[1] == "#") {
37373 defundef = arg[2]
37374 mac1 = arg[3]
37375 } else {
37376 defundef = substr(arg[1], 2)
37377 mac1 = arg[2]
37378 }
37379 split(mac1, mac2, "(") #)
37380 macro = mac2[1]
37381 prefix = substr(line, 1, index(line, defundef) - 1)
37382 if (D_is_set[macro]) {
37383 # Preserve the white space surrounding the "#".
37384 print prefix "define", macro P[macro] D[macro]
37385 next
37386 } else {
37387 # Replace #undef with comments. This is necessary, for example,
37388 # in the case of _POSIX_SOURCE, which is predefined and required
37389 # on some systems where configure will not decide to define it.
37390 if (defundef == "undef") {
37391 print "/*", prefix defundef, macro, "*/"
37392 next
37393 }
37394 }
37395}
37396{ print }
37397_ACAWK
37398_ACEOF
37399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037400 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037401fi # test -n "$CONFIG_HEADERS"
37402
37403
37404eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37405shift
37406for ac_tag
37407do
37408 case $ac_tag in
37409 :[FHLC]) ac_mode=$ac_tag; continue;;
37410 esac
37411 case $ac_mode$ac_tag in
37412 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037413 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037414 :[FH]-) ac_tag=-:-;;
37415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37416 esac
37417 ac_save_IFS=$IFS
37418 IFS=:
37419 set x $ac_tag
37420 IFS=$ac_save_IFS
37421 shift
37422 ac_file=$1
37423 shift
37424
37425 case $ac_mode in
37426 :L) ac_source=$1;;
37427 :[FH])
37428 ac_file_inputs=
37429 for ac_f
37430 do
37431 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037432 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037433 *) # Look for the file first in the build tree, then in the source tree
37434 # (if the path is not absolute). The absolute path cannot be DOS-style,
37435 # because $ac_f cannot contain `:'.
37436 test -f "$ac_f" ||
37437 case $ac_f in
37438 [\\/$]*) false;;
37439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37440 esac ||
cristy98dddb52010-11-04 00:30:15 +000037441 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037442 esac
37443 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037444 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037445 done
37446
37447 # Let's still pretend it is `configure' which instantiates (i.e., don't
37448 # use $as_me), people would be surprised to read:
37449 # /* config.h. Generated by config.status. */
37450 configure_input='Generated from '`
37451 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37452 `' by configure.'
37453 if test x"$ac_file" != x-; then
37454 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037456$as_echo "$as_me: creating $ac_file" >&6;}
37457 fi
37458 # Neutralize special characters interpreted by sed in replacement strings.
37459 case $configure_input in #(
37460 *\&* | *\|* | *\\* )
37461 ac_sed_conf_input=`$as_echo "$configure_input" |
37462 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37463 *) ac_sed_conf_input=$configure_input;;
37464 esac
37465
37466 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037467 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037469 esac
37470 ;;
37471 esac
37472
37473 ac_dir=`$as_dirname -- "$ac_file" ||
37474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37475 X"$ac_file" : 'X\(//\)[^/]' \| \
37476 X"$ac_file" : 'X\(//\)$' \| \
37477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37478$as_echo X"$ac_file" |
37479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37480 s//\1/
37481 q
37482 }
37483 /^X\(\/\/\)[^/].*/{
37484 s//\1/
37485 q
37486 }
37487 /^X\(\/\/\)$/{
37488 s//\1/
37489 q
37490 }
37491 /^X\(\/\).*/{
37492 s//\1/
37493 q
37494 }
37495 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037496 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037497 ac_builddir=.
37498
37499case "$ac_dir" in
37500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37501*)
37502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37503 # A ".." for each directory in $ac_dir_suffix.
37504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37505 case $ac_top_builddir_sub in
37506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37508 esac ;;
37509esac
37510ac_abs_top_builddir=$ac_pwd
37511ac_abs_builddir=$ac_pwd$ac_dir_suffix
37512# for backward compatibility:
37513ac_top_builddir=$ac_top_build_prefix
37514
37515case $srcdir in
37516 .) # We are building in place.
37517 ac_srcdir=.
37518 ac_top_srcdir=$ac_top_builddir_sub
37519 ac_abs_top_srcdir=$ac_pwd ;;
37520 [\\/]* | ?:[\\/]* ) # Absolute name.
37521 ac_srcdir=$srcdir$ac_dir_suffix;
37522 ac_top_srcdir=$srcdir
37523 ac_abs_top_srcdir=$srcdir ;;
37524 *) # Relative name.
37525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37526 ac_top_srcdir=$ac_top_build_prefix$srcdir
37527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37528esac
37529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37530
37531
37532 case $ac_mode in
37533 :F)
37534 #
37535 # CONFIG_FILE
37536 #
37537
37538 case $INSTALL in
37539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37541 esac
cristy73bd4a52010-10-05 11:24:23 +000037542 ac_MKDIR_P=$MKDIR_P
37543 case $MKDIR_P in
37544 [\\/$]* | ?:[\\/]* ) ;;
37545 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37546 esac
cristy3ed852e2009-09-05 21:47:34 +000037547_ACEOF
37548
37549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37550# If the template does not know about datarootdir, expand it.
37551# FIXME: This hack should be removed a few years after 2.60.
37552ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037553ac_sed_dataroot='
37554/datarootdir/ {
37555 p
37556 q
37557}
37558/@datadir@/p
37559/@docdir@/p
37560/@infodir@/p
37561/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037562/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037563case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37564*datarootdir*) ac_datarootdir_seen=yes;;
37565*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037567$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37568_ACEOF
37569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37570 ac_datarootdir_hack='
37571 s&@datadir@&$datadir&g
37572 s&@docdir@&$docdir&g
37573 s&@infodir@&$infodir&g
37574 s&@localedir@&$localedir&g
37575 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037576 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037577esac
37578_ACEOF
37579
37580# Neutralize VPATH when `$srcdir' = `.'.
37581# Shell code in configure.ac might set extrasub.
37582# FIXME: do we really want to maintain this feature?
37583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37584ac_sed_extra="$ac_vpsub
37585$extrasub
37586_ACEOF
37587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37588:t
37589/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37590s|@configure_input@|$ac_sed_conf_input|;t t
37591s&@top_builddir@&$ac_top_builddir_sub&;t t
37592s&@top_build_prefix@&$ac_top_build_prefix&;t t
37593s&@srcdir@&$ac_srcdir&;t t
37594s&@abs_srcdir@&$ac_abs_srcdir&;t t
37595s&@top_srcdir@&$ac_top_srcdir&;t t
37596s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37597s&@builddir@&$ac_builddir&;t t
37598s&@abs_builddir@&$ac_abs_builddir&;t t
37599s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37600s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037601s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037602$ac_datarootdir_hack
37603"
cristyda16f162011-02-19 23:52:17 +000037604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37605 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037606
37607test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037608 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37609 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37610 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037612which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037614which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037615
cristyda16f162011-02-19 23:52:17 +000037616 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037617 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037618 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37619 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037620 esac \
cristy98dddb52010-11-04 00:30:15 +000037621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037622 ;;
37623 :H)
37624 #
37625 # CONFIG_HEADER
37626 #
37627 if test x"$ac_file" != x-; then
37628 {
37629 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37631 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037633 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037635$as_echo "$as_me: $ac_file is unchanged" >&6;}
37636 else
37637 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037638 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037640 fi
37641 else
37642 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037644 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037645 fi
cristy73bd4a52010-10-05 11:24:23 +000037646# Compute "$ac_file"'s index in $config_headers.
37647_am_arg="$ac_file"
37648_am_stamp_count=1
37649for _am_header in $config_headers :; do
37650 case $_am_header in
37651 $_am_arg | $_am_arg:* )
37652 break ;;
37653 * )
37654 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37655 esac
37656done
37657echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37658$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37659 X"$_am_arg" : 'X\(//\)[^/]' \| \
37660 X"$_am_arg" : 'X\(//\)$' \| \
37661 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37662$as_echo X"$_am_arg" |
37663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37664 s//\1/
37665 q
37666 }
37667 /^X\(\/\/\)[^/].*/{
37668 s//\1/
37669 q
37670 }
37671 /^X\(\/\/\)$/{
37672 s//\1/
37673 q
37674 }
37675 /^X\(\/\).*/{
37676 s//\1/
37677 q
37678 }
37679 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037680 ;;
37681
cristy8b350f62009-11-15 23:12:43 +000037682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037683$as_echo "$as_me: executing $ac_file commands" >&6;}
37684 ;;
37685 esac
37686
37687
37688 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037689 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037690ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37691ac_prefix_conf_PKG=`echo MagickCore`
37692ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37693ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37694ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37695if test ".$ac_prefix_conf_INP" = "."; then
37696 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37697 case "$ac_file" in
37698 *.h) ac_prefix_conf_INP=$ac_file ;;
37699 *)
37700 esac
37701 test ".$ac_prefix_conf_INP" != "." && break
37702 done
37703fi
37704if test ".$ac_prefix_conf_INP" = "."; then
37705 case "$ac_prefix_conf_OUT" in
37706 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37707 ;;
37708 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37709 ;;
37710 *) ac_prefix_conf_INP=config.h
37711 ;;
37712 esac
37713fi
37714if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037715 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037716else
37717 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37718 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37719 fi fi
37720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37721$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37722 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037723 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37724 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37725 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37726 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37727 $as_echo "#endif/" >> conftest.prefix
37728 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37729 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37730 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037731 # now executing _script on _DEF input to create _OUT output file
37732 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37733 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37734 echo ' ' >>$tmp/pconfig.h
37735 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37736
37737 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37738 echo ' ' >>$tmp/pconfig.h
37739 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37740 echo "#endif" >>$tmp/pconfig.h
37741 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37742 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37743$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37744 else
37745 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37746$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37747 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37748 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37749 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37750$as_echo X"$ac_prefix_conf_OUT" |
37751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37752 s//\1/
37753 q
37754 }
37755 /^X\(\/\/\)[^/].*/{
37756 s//\1/
37757 q
37758 }
37759 /^X\(\/\/\)$/{
37760 s//\1/
37761 q
37762 }
37763 /^X\(\/\).*/{
37764 s//\1/
37765 q
37766 }
37767 s/.*/./; q'`
37768 as_dir="$ac_dir"; as_fn_mkdir_p
37769 rm -f "$ac_prefix_conf_OUT"
37770 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37771 fi
37772 cp conftest.prefix _configs.sed
37773 else
cristy98dddb52010-11-04 00:30:15 +000037774 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 +000037775 fi
37776 rm -f conftest.*
37777fi
37778 ;;
37779 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037780 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037781 # are listed without --file. Let's play safe and only enable the eval
37782 # if we detect the quoting.
37783 case $CONFIG_FILES in
37784 *\'*) eval set x "$CONFIG_FILES" ;;
37785 *) set x $CONFIG_FILES ;;
37786 esac
37787 shift
37788 for mf
37789 do
37790 # Strip MF so we end up with the name of the file.
37791 mf=`echo "$mf" | sed -e 's/:.*$//'`
37792 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037793 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037794 # some people rename them; so instead we look at the file content.
37795 # Grep'ing the first line is not enough: some people post-process
37796 # each Makefile.in and add a new line on top of each file to say so.
37797 # Grep'ing the whole file is not good either: AIX grep has a line
37798 # limit of 2048, but all sed's we know have understand at least 4000.
37799 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37800 dirpart=`$as_dirname -- "$mf" ||
37801$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37802 X"$mf" : 'X\(//\)[^/]' \| \
37803 X"$mf" : 'X\(//\)$' \| \
37804 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37805$as_echo X"$mf" |
37806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37807 s//\1/
37808 q
37809 }
37810 /^X\(\/\/\)[^/].*/{
37811 s//\1/
37812 q
37813 }
37814 /^X\(\/\/\)$/{
37815 s//\1/
37816 q
37817 }
37818 /^X\(\/\).*/{
37819 s//\1/
37820 q
37821 }
37822 s/.*/./; q'`
37823 else
37824 continue
37825 fi
37826 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037827 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037828 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37829 test -z "$DEPDIR" && continue
37830 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037831 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037832 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037833 # Find all dependency output files, they are included files with
37834 # $(DEPDIR) in their names. We invoke sed twice because it is the
37835 # simplest approach to changing $(DEPDIR) to its actual value in the
37836 # expansion.
37837 for file in `sed -n "
37838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037840 # Make sure the directory exists.
37841 test -f "$dirpart/$file" && continue
37842 fdir=`$as_dirname -- "$file" ||
37843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37844 X"$file" : 'X\(//\)[^/]' \| \
37845 X"$file" : 'X\(//\)$' \| \
37846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37847$as_echo X"$file" |
37848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37849 s//\1/
37850 q
37851 }
37852 /^X\(\/\/\)[^/].*/{
37853 s//\1/
37854 q
37855 }
37856 /^X\(\/\/\)$/{
37857 s//\1/
37858 q
37859 }
37860 /^X\(\/\).*/{
37861 s//\1/
37862 q
37863 }
37864 s/.*/./; q'`
37865 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37866 # echo "creating $dirpart/$file"
37867 echo '# dummy' > "$dirpart/$file"
37868 done
37869 done
37870}
37871 ;;
37872 "libtool":C)
37873
37874 # See if we are running on zsh, and set the options which allow our
37875 # commands through without removal of \ escapes.
37876 if test -n "${ZSH_VERSION+set}" ; then
37877 setopt NO_GLOB_SUBST
37878 fi
37879
37880 cfgfile="${ofile}T"
37881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37882 $RM "$cfgfile"
37883
37884 cat <<_LT_EOF >> "$cfgfile"
37885#! $SHELL
37886
37887# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37888# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37890# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37891#
37892# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037893# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37894# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037895# Written by Gordon Matzigkeit, 1996
37896#
37897# This file is part of GNU Libtool.
37898#
37899# GNU Libtool is free software; you can redistribute it and/or
37900# modify it under the terms of the GNU General Public License as
37901# published by the Free Software Foundation; either version 2 of
37902# the License, or (at your option) any later version.
37903#
37904# As a special exception to the GNU General Public License,
37905# if you distribute this file as part of a program or library that
37906# is built using GNU Libtool, you may include this file under the
37907# same distribution terms that you use for the rest of that program.
37908#
37909# GNU Libtool is distributed in the hope that it will be useful,
37910# but WITHOUT ANY WARRANTY; without even the implied warranty of
37911# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37912# GNU General Public License for more details.
37913#
37914# You should have received a copy of the GNU General Public License
37915# along with GNU Libtool; see the file COPYING. If not, a copy
37916# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37917# obtained by writing to the Free Software Foundation, Inc.,
37918# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37919
37920
37921# The names of the tagged configurations supported by this script.
37922available_tags="CXX "
37923
37924# ### BEGIN LIBTOOL CONFIG
37925
37926# A sed program that does not truncate output.
37927SED=$lt_SED
37928
37929# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37930Xsed="\$SED -e 1s/^X//"
37931
37932# A grep program that handles long lines.
37933GREP=$lt_GREP
37934
37935# An ERE matcher.
37936EGREP=$lt_EGREP
37937
37938# A literal string matcher.
37939FGREP=$lt_FGREP
37940
cristy0c60a692010-11-04 01:09:47 +000037941# Shell to use when invoking shell scripts.
37942SHELL=$lt_SHELL
37943
37944# An echo program that protects backslashes.
37945ECHO=$lt_ECHO
37946
cristy73bd4a52010-10-05 11:24:23 +000037947# Which release of libtool.m4 was used?
37948macro_version=$macro_version
37949macro_revision=$macro_revision
37950
37951# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037952AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037953
37954# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037955DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037956
37957# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037958OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037959
37960# Whether or not to build shared libraries.
37961build_libtool_libs=$enable_shared
37962
37963# Whether or not to build static libraries.
37964build_old_libs=$enable_static
37965
37966# What type of objects to build.
37967pic_mode=$pic_mode
37968
37969# Whether or not to optimize for fast installation.
37970fast_install=$enable_fast_install
37971
cristy99bd5232011-12-07 14:38:20 +000037972# The PATH separator for the build system.
37973PATH_SEPARATOR=$lt_PATH_SEPARATOR
37974
cristy73bd4a52010-10-05 11:24:23 +000037975# The host system.
37976host_alias=$host_alias
37977host=$host
37978host_os=$host_os
37979
37980# The build system.
37981build_alias=$build_alias
37982build=$build
37983build_os=$build_os
37984
37985# A BSD- or MS-compatible name lister.
37986NM=$lt_NM
37987
37988# Whether we need soft or hard links.
37989LN_S=$lt_LN_S
37990
37991# What is the maximum length of a command?
37992max_cmd_len=$max_cmd_len
37993
37994# Object file suffix (normally "o").
37995objext=$ac_objext
37996
37997# Executable file suffix (normally "").
37998exeext=$exeext
37999
38000# whether the shell understands "unset".
38001lt_unset=$lt_unset
38002
38003# turn spaces into newlines.
38004SP2NL=$lt_lt_SP2NL
38005
38006# turn newlines into spaces.
38007NL2SP=$lt_lt_NL2SP
38008
cristyda16f162011-02-19 23:52:17 +000038009# convert \$build file names to \$host format.
38010to_host_file_cmd=$lt_cv_to_host_file_cmd
38011
38012# convert \$build files to toolchain format.
38013to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38014
cristy73bd4a52010-10-05 11:24:23 +000038015# Method to check whether dependent libraries are shared objects.
38016deplibs_check_method=$lt_deplibs_check_method
38017
cristyda16f162011-02-19 23:52:17 +000038018# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038019file_magic_cmd=$lt_file_magic_cmd
38020
cristyda16f162011-02-19 23:52:17 +000038021# How to find potential files when deplibs_check_method = "file_magic".
38022file_magic_glob=$lt_file_magic_glob
38023
38024# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38025want_nocaseglob=$lt_want_nocaseglob
38026
38027# Command to associate shared and link libraries.
38028sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38029
cristy73bd4a52010-10-05 11:24:23 +000038030# The archiver.
38031AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038032
38033# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038034AR_FLAGS=$lt_AR_FLAGS
38035
cristyda16f162011-02-19 23:52:17 +000038036# How to feed a file listing to the archiver.
38037archiver_list_spec=$lt_archiver_list_spec
38038
cristy73bd4a52010-10-05 11:24:23 +000038039# A symbol stripping program.
38040STRIP=$lt_STRIP
38041
38042# Commands used to install an old-style archive.
38043RANLIB=$lt_RANLIB
38044old_postinstall_cmds=$lt_old_postinstall_cmds
38045old_postuninstall_cmds=$lt_old_postuninstall_cmds
38046
cristy0c60a692010-11-04 01:09:47 +000038047# Whether to use a lock for old archive extraction.
38048lock_old_archive_extraction=$lock_old_archive_extraction
38049
cristy73bd4a52010-10-05 11:24:23 +000038050# A C compiler.
38051LTCC=$lt_CC
38052
38053# LTCC compiler flags.
38054LTCFLAGS=$lt_CFLAGS
38055
38056# Take the output of nm and produce a listing of raw symbols and C names.
38057global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38058
38059# Transform the output of nm in a proper C declaration.
38060global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38061
38062# Transform the output of nm in a C name address pair.
38063global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38064
38065# Transform the output of nm in a C name address pair when lib prefix is needed.
38066global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38067
cristyda16f162011-02-19 23:52:17 +000038068# Specify filename containing input files for \$NM.
38069nm_file_list_spec=$lt_nm_file_list_spec
38070
38071# The root where to search for dependent libraries,and in which our libraries should be installed.
38072lt_sysroot=$lt_sysroot
38073
cristy73bd4a52010-10-05 11:24:23 +000038074# The name of the directory that contains temporary libtool files.
38075objdir=$objdir
38076
cristy73bd4a52010-10-05 11:24:23 +000038077# Used to examine libraries when file_magic_cmd begins with "file".
38078MAGIC_CMD=$MAGIC_CMD
38079
38080# Must we lock files when doing compilation?
38081need_locks=$lt_need_locks
38082
cristyda16f162011-02-19 23:52:17 +000038083# Manifest tool.
38084MANIFEST_TOOL=$lt_MANIFEST_TOOL
38085
cristy73bd4a52010-10-05 11:24:23 +000038086# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38087DSYMUTIL=$lt_DSYMUTIL
38088
38089# Tool to change global to local symbols on Mac OS X.
38090NMEDIT=$lt_NMEDIT
38091
38092# Tool to manipulate fat objects and archives on Mac OS X.
38093LIPO=$lt_LIPO
38094
38095# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38096OTOOL=$lt_OTOOL
38097
38098# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38099OTOOL64=$lt_OTOOL64
38100
38101# Old archive suffix (normally "a").
38102libext=$libext
38103
38104# Shared library suffix (normally ".so").
38105shrext_cmds=$lt_shrext_cmds
38106
38107# The commands to extract the exported symbol list from a shared archive.
38108extract_expsyms_cmds=$lt_extract_expsyms_cmds
38109
38110# Variables whose values should be saved in libtool wrapper scripts and
38111# restored at link time.
38112variables_saved_for_relink=$lt_variables_saved_for_relink
38113
38114# Do we need the "lib" prefix for modules?
38115need_lib_prefix=$need_lib_prefix
38116
38117# Do we need a version for libraries?
38118need_version=$need_version
38119
38120# Library versioning type.
38121version_type=$version_type
38122
38123# Shared library runtime path variable.
38124runpath_var=$runpath_var
38125
38126# Shared library path variable.
38127shlibpath_var=$shlibpath_var
38128
38129# Is shlibpath searched before the hard-coded library search path?
38130shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38131
38132# Format of library name prefix.
38133libname_spec=$lt_libname_spec
38134
38135# List of archive names. First name is the real one, the rest are links.
38136# The last name is the one that the linker finds with -lNAME
38137library_names_spec=$lt_library_names_spec
38138
38139# The coded name of the library, if different from the real name.
38140soname_spec=$lt_soname_spec
38141
cristy0c60a692010-11-04 01:09:47 +000038142# Permission mode override for installation of shared libraries.
38143install_override_mode=$lt_install_override_mode
38144
cristy73bd4a52010-10-05 11:24:23 +000038145# Command to use after installation of a shared archive.
38146postinstall_cmds=$lt_postinstall_cmds
38147
38148# Command to use after uninstallation of a shared archive.
38149postuninstall_cmds=$lt_postuninstall_cmds
38150
38151# Commands used to finish a libtool library installation in a directory.
38152finish_cmds=$lt_finish_cmds
38153
38154# As "finish_cmds", except a single script fragment to be evaled but
38155# not shown.
38156finish_eval=$lt_finish_eval
38157
38158# Whether we should hardcode library paths into libraries.
38159hardcode_into_libs=$hardcode_into_libs
38160
38161# Compile-time system search path for libraries.
38162sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38163
38164# Run-time system search path for libraries.
38165sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38166
38167# Whether dlopen is supported.
38168dlopen_support=$enable_dlopen
38169
38170# Whether dlopen of programs is supported.
38171dlopen_self=$enable_dlopen_self
38172
38173# Whether dlopen of statically linked programs is supported.
38174dlopen_self_static=$enable_dlopen_self_static
38175
38176# Commands to strip libraries.
38177old_striplib=$lt_old_striplib
38178striplib=$lt_striplib
38179
38180
38181# The linker used to build libraries.
38182LD=$lt_LD
38183
cristy0c60a692010-11-04 01:09:47 +000038184# How to create reloadable object files.
38185reload_flag=$lt_reload_flag
38186reload_cmds=$lt_reload_cmds
38187
cristy73bd4a52010-10-05 11:24:23 +000038188# Commands used to build an old-style archive.
38189old_archive_cmds=$lt_old_archive_cmds
38190
38191# A language specific compiler.
38192CC=$lt_compiler
38193
38194# Is the compiler the GNU compiler?
38195with_gcc=$GCC
38196
38197# Compiler flag to turn off builtin functions.
38198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38199
cristy73bd4a52010-10-05 11:24:23 +000038200# Additional compiler flags for building library objects.
38201pic_flag=$lt_lt_prog_compiler_pic
38202
cristyda16f162011-02-19 23:52:17 +000038203# How to pass a linker flag through the compiler.
38204wl=$lt_lt_prog_compiler_wl
38205
cristy73bd4a52010-10-05 11:24:23 +000038206# Compiler flag to prevent dynamic linking.
38207link_static_flag=$lt_lt_prog_compiler_static
38208
38209# Does compiler simultaneously support -c and -o options?
38210compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38211
38212# Whether or not to add -lc for building shared libraries.
38213build_libtool_need_lc=$archive_cmds_need_lc
38214
38215# Whether or not to disallow shared libs when runtime libs are static.
38216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38217
38218# Compiler flag to allow reflexive dlopens.
38219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38220
38221# Compiler flag to generate shared objects directly from archives.
38222whole_archive_flag_spec=$lt_whole_archive_flag_spec
38223
38224# Whether the compiler copes with passing no objects directly.
38225compiler_needs_object=$lt_compiler_needs_object
38226
38227# Create an old-style archive from a shared archive.
38228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38229
38230# Create a temporary old-style archive to link instead of a shared archive.
38231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38232
38233# Commands used to build a shared archive.
38234archive_cmds=$lt_archive_cmds
38235archive_expsym_cmds=$lt_archive_expsym_cmds
38236
38237# Commands used to build a loadable module if different from building
38238# a shared archive.
38239module_cmds=$lt_module_cmds
38240module_expsym_cmds=$lt_module_expsym_cmds
38241
38242# Whether we are building with GNU ld or not.
38243with_gnu_ld=$lt_with_gnu_ld
38244
38245# Flag that allows shared libraries with undefined symbols to be built.
38246allow_undefined_flag=$lt_allow_undefined_flag
38247
38248# Flag that enforces no undefined symbols.
38249no_undefined_flag=$lt_no_undefined_flag
38250
38251# Flag to hardcode \$libdir into a binary during linking.
38252# This must work even if \$libdir does not exist
38253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38254
cristy73bd4a52010-10-05 11:24:23 +000038255# Whether we need a single "-rpath" flag with a separated argument.
38256hardcode_libdir_separator=$lt_hardcode_libdir_separator
38257
38258# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38259# DIR into the resulting binary.
38260hardcode_direct=$hardcode_direct
38261
38262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38263# DIR into the resulting binary and the resulting library dependency is
38264# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38265# library is relocated.
38266hardcode_direct_absolute=$hardcode_direct_absolute
38267
38268# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38269# into the resulting binary.
38270hardcode_minus_L=$hardcode_minus_L
38271
38272# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38273# into the resulting binary.
38274hardcode_shlibpath_var=$hardcode_shlibpath_var
38275
38276# Set to "yes" if building a shared library automatically hardcodes DIR
38277# into the library and all subsequent libraries and executables linked
38278# against it.
38279hardcode_automatic=$hardcode_automatic
38280
38281# Set to yes if linker adds runtime paths of dependent libraries
38282# to runtime path list.
38283inherit_rpath=$inherit_rpath
38284
38285# Whether libtool must link a program against all its dependency libraries.
38286link_all_deplibs=$link_all_deplibs
38287
cristy73bd4a52010-10-05 11:24:23 +000038288# Set to "yes" if exported symbols are required.
38289always_export_symbols=$always_export_symbols
38290
38291# The commands to list exported symbols.
38292export_symbols_cmds=$lt_export_symbols_cmds
38293
38294# Symbols that should not be listed in the preloaded symbols.
38295exclude_expsyms=$lt_exclude_expsyms
38296
38297# Symbols that must always be exported.
38298include_expsyms=$lt_include_expsyms
38299
38300# Commands necessary for linking programs (against libraries) with templates.
38301prelink_cmds=$lt_prelink_cmds
38302
cristyda16f162011-02-19 23:52:17 +000038303# Commands necessary for finishing linking programs.
38304postlink_cmds=$lt_postlink_cmds
38305
cristy73bd4a52010-10-05 11:24:23 +000038306# Specify filename containing input files.
38307file_list_spec=$lt_file_list_spec
38308
38309# How to hardcode a shared library path into an executable.
38310hardcode_action=$hardcode_action
38311
38312# The directories searched by this compiler when creating a shared library.
38313compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38314
38315# Dependencies to place before and after the objects being linked to
38316# create a shared library.
38317predep_objects=$lt_predep_objects
38318postdep_objects=$lt_postdep_objects
38319predeps=$lt_predeps
38320postdeps=$lt_postdeps
38321
38322# The library search path used internally by the compiler when linking
38323# a shared library.
38324compiler_lib_search_path=$lt_compiler_lib_search_path
38325
38326# ### END LIBTOOL CONFIG
38327
38328_LT_EOF
38329
38330 case $host_os in
38331 aix3*)
38332 cat <<\_LT_EOF >> "$cfgfile"
38333# AIX sometimes has problems with the GCC collect2 program. For some
38334# reason, if we set the COLLECT_NAMES environment variable, the problems
38335# vanish in a puff of smoke.
38336if test "X${COLLECT_NAMES+set}" != Xset; then
38337 COLLECT_NAMES=
38338 export COLLECT_NAMES
38339fi
38340_LT_EOF
38341 ;;
38342 esac
38343
38344
38345ltmain="$ac_aux_dir/ltmain.sh"
38346
38347
38348 # We use sed instead of cat because bash on DJGPP gets confused if
38349 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38350 # text mode, it properly converts lines to CR/LF. This bash problem
38351 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038352 sed '$q' "$ltmain" >> "$cfgfile" \
38353 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038354
cristyda16f162011-02-19 23:52:17 +000038355 if test x"$xsi_shell" = xyes; then
38356 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38357func_dirname ()\
38358{\
38359\ case ${1} in\
38360\ */*) func_dirname_result="${1%/*}${2}" ;;\
38361\ * ) func_dirname_result="${3}" ;;\
38362\ esac\
38363} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38364 && mv -f "$cfgfile.tmp" "$cfgfile" \
38365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38366test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038367
38368
cristyda16f162011-02-19 23:52:17 +000038369 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38370func_basename ()\
38371{\
38372\ func_basename_result="${1##*/}"\
38373} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38374 && mv -f "$cfgfile.tmp" "$cfgfile" \
38375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38376test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038377
38378
cristyda16f162011-02-19 23:52:17 +000038379 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38380func_dirname_and_basename ()\
38381{\
38382\ case ${1} in\
38383\ */*) func_dirname_result="${1%/*}${2}" ;;\
38384\ * ) func_dirname_result="${3}" ;;\
38385\ esac\
38386\ func_basename_result="${1##*/}"\
38387} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38388 && mv -f "$cfgfile.tmp" "$cfgfile" \
38389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38390test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038391
cristyda16f162011-02-19 23:52:17 +000038392
38393 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38394func_stripname ()\
38395{\
38396\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38397\ # positional parameters, so assign one to ordinary parameter first.\
38398\ func_stripname_result=${3}\
38399\ func_stripname_result=${func_stripname_result#"${1}"}\
38400\ func_stripname_result=${func_stripname_result%"${2}"}\
38401} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38402 && mv -f "$cfgfile.tmp" "$cfgfile" \
38403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38404test 0 -eq $? || _lt_function_replace_fail=:
38405
38406
38407 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38408func_split_long_opt ()\
38409{\
38410\ func_split_long_opt_name=${1%%=*}\
38411\ func_split_long_opt_arg=${1#*=}\
38412} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38413 && mv -f "$cfgfile.tmp" "$cfgfile" \
38414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38415test 0 -eq $? || _lt_function_replace_fail=:
38416
38417
38418 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38419func_split_short_opt ()\
38420{\
38421\ func_split_short_opt_arg=${1#??}\
38422\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38423} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38424 && mv -f "$cfgfile.tmp" "$cfgfile" \
38425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38426test 0 -eq $? || _lt_function_replace_fail=:
38427
38428
38429 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38430func_lo2o ()\
38431{\
38432\ case ${1} in\
38433\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38434\ *) func_lo2o_result=${1} ;;\
38435\ esac\
38436} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38437 && mv -f "$cfgfile.tmp" "$cfgfile" \
38438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38439test 0 -eq $? || _lt_function_replace_fail=:
38440
38441
38442 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38443func_xform ()\
38444{\
38445 func_xform_result=${1%.*}.lo\
38446} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38447 && mv -f "$cfgfile.tmp" "$cfgfile" \
38448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38449test 0 -eq $? || _lt_function_replace_fail=:
38450
38451
38452 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38453func_arith ()\
38454{\
38455 func_arith_result=$(( $* ))\
38456} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38457 && mv -f "$cfgfile.tmp" "$cfgfile" \
38458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38459test 0 -eq $? || _lt_function_replace_fail=:
38460
38461
38462 sed -e '/^func_len ()$/,/^} # func_len /c\
38463func_len ()\
38464{\
38465 func_len_result=${#1}\
38466} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38467 && mv -f "$cfgfile.tmp" "$cfgfile" \
38468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38469test 0 -eq $? || _lt_function_replace_fail=:
38470
38471fi
38472
38473if test x"$lt_shell_append" = xyes; then
38474 sed -e '/^func_append ()$/,/^} # func_append /c\
38475func_append ()\
38476{\
38477 eval "${1}+=\\${2}"\
38478} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38479 && mv -f "$cfgfile.tmp" "$cfgfile" \
38480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38481test 0 -eq $? || _lt_function_replace_fail=:
38482
38483
38484 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38485func_append_quoted ()\
38486{\
38487\ func_quote_for_eval "${2}"\
38488\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38489} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38490 && mv -f "$cfgfile.tmp" "$cfgfile" \
38491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38492test 0 -eq $? || _lt_function_replace_fail=:
38493
38494
38495 # Save a `func_append' function call where possible by direct use of '+='
38496 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38497 && mv -f "$cfgfile.tmp" "$cfgfile" \
38498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38499 test 0 -eq $? || _lt_function_replace_fail=:
38500else
38501 # Save a `func_append' function call even when '+=' is not available
38502 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38503 && mv -f "$cfgfile.tmp" "$cfgfile" \
38504 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38505 test 0 -eq $? || _lt_function_replace_fail=:
38506fi
38507
38508if test x"$_lt_function_replace_fail" = x":"; then
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38510$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38511fi
38512
38513
38514 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038515 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38516 chmod +x "$ofile"
38517
38518
38519 cat <<_LT_EOF >> "$ofile"
38520
38521# ### BEGIN LIBTOOL TAG CONFIG: CXX
38522
38523# The linker used to build libraries.
38524LD=$lt_LD_CXX
38525
cristy0c60a692010-11-04 01:09:47 +000038526# How to create reloadable object files.
38527reload_flag=$lt_reload_flag_CXX
38528reload_cmds=$lt_reload_cmds_CXX
38529
cristy73bd4a52010-10-05 11:24:23 +000038530# Commands used to build an old-style archive.
38531old_archive_cmds=$lt_old_archive_cmds_CXX
38532
38533# A language specific compiler.
38534CC=$lt_compiler_CXX
38535
38536# Is the compiler the GNU compiler?
38537with_gcc=$GCC_CXX
38538
38539# Compiler flag to turn off builtin functions.
38540no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38541
cristy73bd4a52010-10-05 11:24:23 +000038542# Additional compiler flags for building library objects.
38543pic_flag=$lt_lt_prog_compiler_pic_CXX
38544
cristyda16f162011-02-19 23:52:17 +000038545# How to pass a linker flag through the compiler.
38546wl=$lt_lt_prog_compiler_wl_CXX
38547
cristy73bd4a52010-10-05 11:24:23 +000038548# Compiler flag to prevent dynamic linking.
38549link_static_flag=$lt_lt_prog_compiler_static_CXX
38550
38551# Does compiler simultaneously support -c and -o options?
38552compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38553
38554# Whether or not to add -lc for building shared libraries.
38555build_libtool_need_lc=$archive_cmds_need_lc_CXX
38556
38557# Whether or not to disallow shared libs when runtime libs are static.
38558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38559
38560# Compiler flag to allow reflexive dlopens.
38561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38562
38563# Compiler flag to generate shared objects directly from archives.
38564whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38565
38566# Whether the compiler copes with passing no objects directly.
38567compiler_needs_object=$lt_compiler_needs_object_CXX
38568
38569# Create an old-style archive from a shared archive.
38570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38571
38572# Create a temporary old-style archive to link instead of a shared archive.
38573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38574
38575# Commands used to build a shared archive.
38576archive_cmds=$lt_archive_cmds_CXX
38577archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38578
38579# Commands used to build a loadable module if different from building
38580# a shared archive.
38581module_cmds=$lt_module_cmds_CXX
38582module_expsym_cmds=$lt_module_expsym_cmds_CXX
38583
38584# Whether we are building with GNU ld or not.
38585with_gnu_ld=$lt_with_gnu_ld_CXX
38586
38587# Flag that allows shared libraries with undefined symbols to be built.
38588allow_undefined_flag=$lt_allow_undefined_flag_CXX
38589
38590# Flag that enforces no undefined symbols.
38591no_undefined_flag=$lt_no_undefined_flag_CXX
38592
38593# Flag to hardcode \$libdir into a binary during linking.
38594# This must work even if \$libdir does not exist
38595hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38596
cristy73bd4a52010-10-05 11:24:23 +000038597# Whether we need a single "-rpath" flag with a separated argument.
38598hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38599
38600# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38601# DIR into the resulting binary.
38602hardcode_direct=$hardcode_direct_CXX
38603
38604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38605# DIR into the resulting binary and the resulting library dependency is
38606# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38607# library is relocated.
38608hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38609
38610# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38611# into the resulting binary.
38612hardcode_minus_L=$hardcode_minus_L_CXX
38613
38614# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38615# into the resulting binary.
38616hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38617
38618# Set to "yes" if building a shared library automatically hardcodes DIR
38619# into the library and all subsequent libraries and executables linked
38620# against it.
38621hardcode_automatic=$hardcode_automatic_CXX
38622
38623# Set to yes if linker adds runtime paths of dependent libraries
38624# to runtime path list.
38625inherit_rpath=$inherit_rpath_CXX
38626
38627# Whether libtool must link a program against all its dependency libraries.
38628link_all_deplibs=$link_all_deplibs_CXX
38629
cristy73bd4a52010-10-05 11:24:23 +000038630# Set to "yes" if exported symbols are required.
38631always_export_symbols=$always_export_symbols_CXX
38632
38633# The commands to list exported symbols.
38634export_symbols_cmds=$lt_export_symbols_cmds_CXX
38635
38636# Symbols that should not be listed in the preloaded symbols.
38637exclude_expsyms=$lt_exclude_expsyms_CXX
38638
38639# Symbols that must always be exported.
38640include_expsyms=$lt_include_expsyms_CXX
38641
38642# Commands necessary for linking programs (against libraries) with templates.
38643prelink_cmds=$lt_prelink_cmds_CXX
38644
cristyda16f162011-02-19 23:52:17 +000038645# Commands necessary for finishing linking programs.
38646postlink_cmds=$lt_postlink_cmds_CXX
38647
cristy73bd4a52010-10-05 11:24:23 +000038648# Specify filename containing input files.
38649file_list_spec=$lt_file_list_spec_CXX
38650
38651# How to hardcode a shared library path into an executable.
38652hardcode_action=$hardcode_action_CXX
38653
38654# The directories searched by this compiler when creating a shared library.
38655compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38656
38657# Dependencies to place before and after the objects being linked to
38658# create a shared library.
38659predep_objects=$lt_predep_objects_CXX
38660postdep_objects=$lt_postdep_objects_CXX
38661predeps=$lt_predeps_CXX
38662postdeps=$lt_postdeps_CXX
38663
38664# The library search path used internally by the compiler when linking
38665# a shared library.
38666compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38667
38668# ### END LIBTOOL TAG CONFIG: CXX
38669_LT_EOF
38670
38671 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038672 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038673 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038674 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038675 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38676 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38677
38678 esac
38679done # for ac_tag
38680
38681
cristy8b350f62009-11-15 23:12:43 +000038682as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038683_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038684ac_clean_files=$ac_clean_files_save
38685
38686test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038687 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038688
38689
38690# configure is writing to config.log, and then calls config.status.
38691# config.status does its own redirection, appending to config.log.
38692# Unfortunately, on DOS this fails, as config.log is still kept open
38693# by configure, so config.status won't be able to write to it; its
38694# output is simply discarded. So we exec the FD to /dev/null,
38695# effectively closing config.log, so it can be properly (re)opened and
38696# appended to by config.status. When coming back to configure, we
38697# need to make the FD available again.
38698if test "$no_create" != yes; then
38699 ac_cs_success=:
38700 ac_config_status_args=
38701 test "$silent" = yes &&
38702 ac_config_status_args="$ac_config_status_args --quiet"
38703 exec 5>/dev/null
38704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38705 exec 5>>config.log
38706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38707 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038708 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038709fi
38710if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038712$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38713fi
38714
38715
38716rm -f magick-version
38717
cristy430a7312010-01-21 20:44:04 +000038718result_dejavu_font_dir='none'
38719if test "${dejavu_font_dir}x" != 'x'; then
38720 result_dejavu_font_dir=$dejavu_font_dir
38721fi
38722
cristy3ed852e2009-09-05 21:47:34 +000038723result_ghostscript_font_dir='none'
38724if test "${ghostscript_font_dir}x" != 'x'; then
38725 result_ghostscript_font_dir=$ghostscript_font_dir
38726fi
38727
38728result_windows_font_dir='none'
38729if test "${windows_font_dir}x" != 'x'; then
38730 result_windows_font_dir=${windows_font_dir}
38731fi
38732
cristyad38abe2012-12-23 23:03:21 +000038733{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038734ImageMagick is configured as follows. Please verify that this configuration
38735matches your expectations.
38736
38737Host system type: $host
38738Build system type: $build
38739
38740 Option Value
38741-------------------------------------------------------------------------------
38742Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38743Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038744Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038745GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38746Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38747High Dynamic Range Imagery
38748 --enable-hdri=$enable_hdri $enable_hdri
38749
38750Delegate Configuration:
38751BZLIB --with-bzlib=$with_bzlib $have_bzlib
38752Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038753Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038754DJVU --with-djvu=$with_djvu $have_djvu
38755DPS --with-dps=$with_dps $have_dps
38756FFTW --with-fftw=$with_fftw $have_fftw
cristyc0884e92013-08-10 17:14:59 +000038757FITZ --with-fitz=$with_fitz $have_fitz
cristy3ed852e2009-09-05 21:47:34 +000038758FlashPIX --with-fpx=$with_fpx $have_fpx
38759FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38760FreeType --with-freetype=$with_freetype $have_freetype
38761GhostPCL None $PCLDelegate ($PCLVersion)
38762GhostXPS None $XPSDelegate ($XPSVersion)
38763Ghostscript None $PSDelegate ($GSVersion)
38764Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38765Ghostscript lib --with-gslib=$with_gslib $have_gslib
38766Graphviz --with-gvc=$with_gvc $have_gvc
38767JBIG --with-jbig=$with_jbig $have_jbig
38768JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38769JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038770LCMS v1 --with-lcms=$with_lcms $have_lcms
38771LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038772LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038773LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038774LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038775Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38776OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038777PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038778PERL --with-perl=$with_perl $have_perl
38779PNG --with-png=$with_png $have_png
38780RSVG --with-rsvg=$with_rsvg $have_rsvg
38781TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038782WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038783Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038784WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038785X11 --with-x=$with_x $have_x
38786XML --with-xml=$with_xml $have_xml
38787ZLIB --with-zlib=$with_zlib $have_zlib
38788
38789X11 Configuration:
38790 X_CFLAGS = $X_CFLAGS
38791 X_PRE_LIBS = $X_PRE_LIBS
38792 X_LIBS = $X_LIBS
38793 X_EXTRA_LIBS = $X_EXTRA_LIBS
38794
38795Options used to compile and link:
38796 PREFIX = $PREFIX_DIR
38797 EXEC-PREFIX = $EXEC_PREFIX_DIR
38798 VERSION = $PACKAGE_VERSION
38799 CC = $CC
38800 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038801 CPPFLAGS = $MAGICK_CPPFLAGS
38802 PCFLAGS = $MAGICK_PCFLAGS
38803 DEFS = $DEFS
38804 LDFLAGS = $LDFLAGS
38805 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38806 LIBS = $MAGICK_LIBS
38807 CXX = $CXX
38808 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038809 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038810 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038811" >&5
cristyad38abe2012-12-23 23:03:21 +000038812$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038813ImageMagick is configured as follows. Please verify that this configuration
38814matches your expectations.
38815
38816Host system type: $host
38817Build system type: $build
38818
38819 Option Value
38820-------------------------------------------------------------------------------
38821Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38822Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038823Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038824GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38825Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38826High Dynamic Range Imagery
38827 --enable-hdri=$enable_hdri $enable_hdri
38828
38829Delegate Configuration:
38830BZLIB --with-bzlib=$with_bzlib $have_bzlib
38831Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038832Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038833DJVU --with-djvu=$with_djvu $have_djvu
38834DPS --with-dps=$with_dps $have_dps
38835FFTW --with-fftw=$with_fftw $have_fftw
cristyc0884e92013-08-10 17:14:59 +000038836FITZ --with-fitz=$with_fitz $have_fitz
cristy3ed852e2009-09-05 21:47:34 +000038837FlashPIX --with-fpx=$with_fpx $have_fpx
38838FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38839FreeType --with-freetype=$with_freetype $have_freetype
38840GhostPCL None $PCLDelegate ($PCLVersion)
38841GhostXPS None $XPSDelegate ($XPSVersion)
38842Ghostscript None $PSDelegate ($GSVersion)
38843Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38844Ghostscript lib --with-gslib=$with_gslib $have_gslib
38845Graphviz --with-gvc=$with_gvc $have_gvc
38846JBIG --with-jbig=$with_jbig $have_jbig
38847JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38848JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038849LCMS v1 --with-lcms=$with_lcms $have_lcms
38850LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038851LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038852LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038853LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038854Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38855OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038856PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038857PERL --with-perl=$with_perl $have_perl
38858PNG --with-png=$with_png $have_png
38859RSVG --with-rsvg=$with_rsvg $have_rsvg
38860TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038861WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038862Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038863WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038864X11 --with-x=$with_x $have_x
38865XML --with-xml=$with_xml $have_xml
38866ZLIB --with-zlib=$with_zlib $have_zlib
38867
38868X11 Configuration:
38869 X_CFLAGS = $X_CFLAGS
38870 X_PRE_LIBS = $X_PRE_LIBS
38871 X_LIBS = $X_LIBS
38872 X_EXTRA_LIBS = $X_EXTRA_LIBS
38873
38874Options used to compile and link:
38875 PREFIX = $PREFIX_DIR
38876 EXEC-PREFIX = $EXEC_PREFIX_DIR
38877 VERSION = $PACKAGE_VERSION
38878 CC = $CC
38879 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038880 CPPFLAGS = $MAGICK_CPPFLAGS
38881 PCFLAGS = $MAGICK_PCFLAGS
38882 DEFS = $DEFS
38883 LDFLAGS = $LDFLAGS
38884 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38885 LIBS = $MAGICK_LIBS
38886 CXX = $CXX
38887 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038888 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038889 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038890" >&6; }