blob: 8c45b57dcc4dc7695a95277e540e7ad31c3ab14c [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
706SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000707RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708RMDelegate
709RLEEncodeDelegate
710PSDelegate
711POVDelegate
712PGPDecodeDelegate
713PCLDelegate
714MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000715MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716MPEGEncodeDelegate
717MPEGDecodeDelegate
718MANDelegate
719LaunchDelegate
720LZWEncodeDelegate
721LZWDecodeDelegate
722LPRDelegate
723LPDelegate
724ILBMEncodeDelegate
725ILBMDecodeDelegate
726HTMLDecodeDelegate
727HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000728GnuplotDecodeDelegate
729MogrifyDelegate
730DisplayDelegate
731ConvertDelegate
732FIGDecodeDelegate
733EditorDelegate
734EchoDelegate
735DVIDecodeDelegate
736GVCDecodeDelegate
737DNGDecodeDelegate
738CatDelegate
739CGMDecodeDelegate
740BrowseDelegate
741BZIPDelegate
742BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000743AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000744SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000745SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000746CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000747DOCUMENTATION_PATH
748FILTER_PATH
749CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000750LIBRARY_PATH
751EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817FREETYPE_DELEGATE_FALSE
818FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000819freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
841ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842ZLIB_DELEGATE_FALSE
843ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844XEXT_LIBS
845X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846X11_DELEGATE_FALSE
847X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848X_EXTRA_LIBS
849X_LIBS
850X_PRE_LIBS
851X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000852XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000853BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854BZLIB_DELEGATE_FALSE
855BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856CCMALLOCDelegate
857UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000858HasUMEM_FALSE
859HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000860THREAD_LIBS
861GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862WITH_MAGICK_PLUS_PLUS_FALSE
863WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000865MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000866POW_LIB
867LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000878INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879INT32_T
880UINT16_T
881INT16_T
882UINT8_T
883INT8_T
884LIBRARY_EXTRA_CPPFLAGS
885MODULE_EXTRA_CPPFLAGS
886LIBSTDCLDFLAGS
887PERL_MAKE_OPTIONS
888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
1155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001847 --enable-silent-rules less verbose build output (undo: `make V=1')
1848 --disable-silent-rules verbose build output (undo: `make V=0')
1849 --disable-dependency-tracking speeds up one-time build
1850 --enable-dependency-tracking do not reject slow dependency extractors
cristya3824692012-03-30 17:22:07 +00001851 --enable-bounds-checking
1852 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001853 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001854 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001855 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001856 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001858 --enable-shared[=PKGS] build shared libraries [default=yes]
1859 --enable-static[=PKGS] build static libraries [default=yes]
1860 --enable-fast-install[=PKGS]
1861 optimize for fast installation [default=yes]
1862 --disable-libtool-lock avoid locking (might break parallel builds)
1863 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-delegate-build look for delegate libraries in build directory
1865 --disable-deprecated exclude deprecated methods in MagickCore and
1866 MagickWand API's
1867 --disable-installed Formally install ImageMagick under PREFIX
1868 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001869 --enable-zero-configuration
1870 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001871 zero-configuration ImageMagick
1872 --enable-hdri accurately represent the wide range of intensity
1873 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001875 --enable-maintainer-mode enable make rules and dependencies not useful
1876 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001877 --enable-ccmalloc enable 'ccmalloc' memory debug support
1878 --enable-efence enable 'efence' memory debug support
1879 --enable-prof enable 'prof' profiling support
1880 --enable-gprof enable 'gprof' profiling support
1881 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001882 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001883 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001884
1885Optional Packages:
1886 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1887 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001888 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001889 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001890 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1891 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001892 --includearch-dir=DIR ARCH specific include directory
1893 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001894 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001895 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001896 both]
cristyda16f162011-02-19 23:52:17 +00001897 --with-sysroot=DIR Search for dependent libraries within DIR
1898 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001899 --with-included-ltdl use the GNU ltdl sources included here
1900 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1901 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001902 --with-modules enable building dynamically loadable modules
1903 --with-method-prefix=PREFIX
1904 prefix MagickCore API methods
1905 --with-quantum-depth=DEPTH
1906 number of bits in a pixel quantum (default 16)
1907 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1908 memory)
1909 --with-frozenpaths freeze delegate paths
1910 --without-magick-plus-plus
1911 disable build/install of Magick++
1912 --with-perl enable build/install of PerlMagick
1913 --with-perl-options=OPTIONS
1914 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001915 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001916 --with-umem enable umem memory allocation library support
1917 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1918 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001919 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-zlib disable ZLIB support
1921 --with-autotrace enable autotrace support
1922 --without-dps disable Display Postscript support
1923 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001924 --with-dejavu-font-dir=DIR
1925 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-fftw disable FFTW support
1927 --without-fpx disable FlashPIX support
1928 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001929 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-gslib enable Ghostscript library support
1931 --with-fontpath=DIR prepend to default font search path
1932 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001933 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001934 --without-jbig disable JBIG support
1935 --without-jpeg disable JPEG support
1936 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001937 --without-lcms disable lcms (v1.1X) support
1938 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001939 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001940 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001941 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001942 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-png disable PNG support
1944 --without-rsvg disable RSVG support
1945 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001946 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-windows-font-dir=DIR
1948 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001949 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-xml disable XML support
1951
1952Some influential environment variables:
1953 CC C compiler command
1954 CFLAGS C compiler flags
1955 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1956 nonstandard directory <lib dir>
1957 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001958 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001959 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001960 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001961 CXX C++ compiler command
1962 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001963 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001964 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001965 XMKMF Path to xmkmf, Makefile generator for X Window System
1966 AUTOTRACE_CFLAGS
1967 C compiler flags for AUTOTRACE, overriding pkg-config
1968 AUTOTRACE_LIBS
1969 linker flags for AUTOTRACE, overriding pkg-config
1970 FONTCONFIG_CFLAGS
1971 C compiler flags for FONTCONFIG, overriding pkg-config
1972 FONTCONFIG_LIBS
1973 linker flags for FONTCONFIG, overriding pkg-config
1974 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1975 GVC_LIBS linker flags for GVC, overriding pkg-config
1976 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1977 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001978 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1979 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001980 OPENEXR_CFLAGS
1981 C compiler flags for OPENEXR, overriding pkg-config
1982 OPENEXR_LIBS
1983 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001984 PANGO_CFLAGS
1985 C compiler flags for PANGO, overriding pkg-config
1986 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001987 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1988 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1989 CAIRO_SVG_CFLAGS
1990 C compiler flags for CAIRO_SVG, overriding pkg-config
1991 CAIRO_SVG_LIBS
1992 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001993
1994Use these variables to override the choices made by `configure' or to help
1995it to find libraries and programs with nonstandard names/locations.
1996
1997Report bugs to <http://www.imagemagick.org>.
1998_ACEOF
1999ac_status=$?
2000fi
2001
2002if test "$ac_init_help" = "recursive"; then
2003 # If there are subdirs, report their specific --help.
2004 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2005 test -d "$ac_dir" ||
2006 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2007 continue
2008 ac_builddir=.
2009
2010case "$ac_dir" in
2011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2012*)
2013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2014 # A ".." for each directory in $ac_dir_suffix.
2015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2016 case $ac_top_builddir_sub in
2017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2019 esac ;;
2020esac
2021ac_abs_top_builddir=$ac_pwd
2022ac_abs_builddir=$ac_pwd$ac_dir_suffix
2023# for backward compatibility:
2024ac_top_builddir=$ac_top_build_prefix
2025
2026case $srcdir in
2027 .) # We are building in place.
2028 ac_srcdir=.
2029 ac_top_srcdir=$ac_top_builddir_sub
2030 ac_abs_top_srcdir=$ac_pwd ;;
2031 [\\/]* | ?:[\\/]* ) # Absolute name.
2032 ac_srcdir=$srcdir$ac_dir_suffix;
2033 ac_top_srcdir=$srcdir
2034 ac_abs_top_srcdir=$srcdir ;;
2035 *) # Relative name.
2036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2037 ac_top_srcdir=$ac_top_build_prefix$srcdir
2038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2039esac
2040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2041
2042 cd "$ac_dir" || { ac_status=$?; continue; }
2043 # Check for guested configure.
2044 if test -f "$ac_srcdir/configure.gnu"; then
2045 echo &&
2046 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2047 elif test -f "$ac_srcdir/configure"; then
2048 echo &&
2049 $SHELL "$ac_srcdir/configure" --help=recursive
2050 else
2051 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2052 fi || ac_status=$?
2053 cd "$ac_pwd" || { ac_status=$?; break; }
2054 done
2055fi
2056
2057test -n "$ac_init_help" && exit $ac_status
2058if $ac_init_version; then
2059 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002060ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002061generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002062
cristy14fefe52012-05-21 00:59:18 +00002063Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002064This configure script is free software; the Free Software Foundation
2065gives unlimited permission to copy, distribute and modify it.
2066_ACEOF
2067 exit
2068fi
cristy8b350f62009-11-15 23:12:43 +00002069
2070## ------------------------ ##
2071## Autoconf initialization. ##
2072## ------------------------ ##
2073
2074# ac_fn_c_try_compile LINENO
2075# --------------------------
2076# Try to compile conftest.$ac_ext, and return whether this succeeded.
2077ac_fn_c_try_compile ()
2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 rm -f conftest.$ac_objext
2081 if { { ac_try="$ac_compile"
2082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
2086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087$as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_compile") 2>conftest.err
2089 ac_status=$?
2090 if test -s conftest.err; then
2091 grep -v '^ *+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2094 fi
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && {
2097 test -z "$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 } && test -s conftest.$ac_objext; then :
2100 ac_retval=0
2101else
2102 $as_echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_retval=1
2106fi
cristyda16f162011-02-19 23:52:17 +00002107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002108 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002109
2110} # ac_fn_c_try_compile
2111
cristy95646052009-11-28 23:05:30 +00002112# ac_fn_c_try_cpp LINENO
2113# ----------------------
2114# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115ac_fn_c_try_cpp ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124$as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002133 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138else
2139 $as_echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143fi
cristyda16f162011-02-19 23:52:17 +00002144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002145 as_fn_set_status $ac_retval
2146
2147} # ac_fn_c_try_cpp
2148
cristy8b350f62009-11-15 23:12:43 +00002149# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150# -------------------------------------------------------
2151# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152# the include files in INCLUDES and setting the cache variable VAR
2153# accordingly.
2154ac_fn_c_check_header_mongrel ()
2155{
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002157 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002160if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002161 $as_echo_n "(cached) " >&6
2162fi
2163eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166else
2167 # Is the header compilable?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169$as_echo_n "checking $2 usability... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172$4
2173#include <$2>
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_header_compiler=yes
2177else
2178 ac_header_compiler=no
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182$as_echo "$ac_header_compiler" >&6; }
2183
2184# Is the header present?
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186$as_echo_n "checking $2 presence... " >&6; }
2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_cpp "$LINENO"; then :
2192 ac_header_preproc=yes
2193else
2194 ac_header_preproc=no
2195fi
cristyda16f162011-02-19 23:52:17 +00002196rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198$as_echo "$ac_header_preproc" >&6; }
2199
2200# So? What about this header?
2201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2202 yes:no: )
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 ;;
2208 no:yes:* )
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2212$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2216$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002219( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002220## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002221## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002222 ) | sed "s/^/$as_me: WARNING: /" >&2
2223 ;;
2224esac
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002227if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002228 $as_echo_n "(cached) " >&6
2229else
2230 eval "$3=\$ac_header_compiler"
2231fi
2232eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235fi
cristyda16f162011-02-19 23:52:17 +00002236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002237
2238} # ac_fn_c_check_header_mongrel
2239
2240# ac_fn_c_try_run LINENO
2241# ----------------------
2242# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2243# that executables *can* be run.
2244ac_fn_c_try_run ()
2245{
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 if { { ac_try="$ac_link"
2248case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251esac
2252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253$as_echo "$ac_try_echo"; } >&5
2254 (eval "$ac_link") 2>&5
2255 ac_status=$?
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2258 { { case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
2262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2263$as_echo "$ac_try_echo"; } >&5
2264 (eval "$ac_try") 2>&5
2265 ac_status=$?
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; }; }; then :
2268 ac_retval=0
2269else
2270 $as_echo "$as_me: program exited with status $ac_status" >&5
2271 $as_echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_retval=$ac_status
2275fi
2276 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002278 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002279
2280} # ac_fn_c_try_run
2281
2282# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2283# -------------------------------------------------------
2284# Tests whether HEADER exists and can be compiled using the include files in
2285# INCLUDES, setting the cache variable VAR accordingly.
2286ac_fn_c_check_header_compile ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002291if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002292 $as_echo_n "(cached) " >&6
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$4
2297#include <$2>
2298_ACEOF
2299if ac_fn_c_try_compile "$LINENO"; then :
2300 eval "$3=yes"
2301else
2302 eval "$3=no"
2303fi
2304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306eval ac_res=\$$3
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002310
2311} # ac_fn_c_check_header_compile
2312
cristya0b81c32010-01-22 02:54:33 +00002313# ac_fn_cxx_try_compile LINENO
2314# ----------------------------
2315# Try to compile conftest.$ac_ext, and return whether this succeeded.
2316ac_fn_cxx_try_compile ()
2317{
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 rm -f conftest.$ac_objext
2320 if { { ac_try="$ac_compile"
2321case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324esac
2325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326$as_echo "$ac_try_echo"; } >&5
2327 (eval "$ac_compile") 2>conftest.err
2328 ac_status=$?
2329 if test -s conftest.err; then
2330 grep -v '^ *+' conftest.err >conftest.er1
2331 cat conftest.er1 >&5
2332 mv -f conftest.er1 conftest.err
2333 fi
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } && {
2336 test -z "$ac_cxx_werror_flag" ||
2337 test ! -s conftest.err
2338 } && test -s conftest.$ac_objext; then :
2339 ac_retval=0
2340else
2341 $as_echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=1
2345fi
cristyda16f162011-02-19 23:52:17 +00002346 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002347 as_fn_set_status $ac_retval
2348
2349} # ac_fn_cxx_try_compile
2350
cristy8b350f62009-11-15 23:12:43 +00002351# ac_fn_c_try_link LINENO
2352# -----------------------
2353# Try to link conftest.$ac_ext, and return whether this succeeded.
2354ac_fn_c_try_link ()
2355{
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { { ac_try="$ac_link"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364$as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2366 ac_status=$?
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2371 fi
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002378 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002379 }; then :
2380 ac_retval=0
2381else
2382 $as_echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386fi
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002393 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002394
2395} # ac_fn_c_try_link
2396
cristy73bd4a52010-10-05 11:24:23 +00002397# ac_fn_c_check_func LINENO FUNC VAR
2398# ----------------------------------
2399# Tests whether FUNC exists, setting the cache variable VAR accordingly
2400ac_fn_c_check_func ()
2401{
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2404$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002405if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002406 $as_echo_n "(cached) " >&6
2407else
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409/* end confdefs.h. */
2410/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2412#define $2 innocuous_$2
2413
2414/* System header to define __stub macros and hopefully few prototypes,
2415 which can conflict with char $2 (); below.
2416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2417 <limits.h> exists even on freestanding compilers. */
2418
2419#ifdef __STDC__
2420# include <limits.h>
2421#else
2422# include <assert.h>
2423#endif
2424
2425#undef $2
2426
2427/* Override any GCC internal prototype to avoid an error.
2428 Use char because int might match the return type of a GCC
2429 builtin and then its argument prototype would still apply. */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433char $2 ();
2434/* The GNU C library defines this for functions which it implements
2435 to always fail with ENOSYS. Some functions are actually named
2436 something starting with __ and the normal name is an alias. */
2437#if defined __stub_$2 || defined __stub___$2
2438choke me
2439#endif
2440
2441int
2442main ()
2443{
2444return $2 ();
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449if ac_fn_c_try_link "$LINENO"; then :
2450 eval "$3=yes"
2451else
2452 eval "$3=no"
2453fi
2454rm -f core conftest.err conftest.$ac_objext \
2455 conftest$ac_exeext conftest.$ac_ext
2456fi
2457eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002461
2462} # ac_fn_c_check_func
2463
2464# ac_fn_cxx_try_cpp LINENO
2465# ------------------------
2466# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2467ac_fn_cxx_try_cpp ()
2468{
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { { ac_try="$ac_cpp conftest.$ac_ext"
2471case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476$as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2478 ac_status=$?
2479 if test -s conftest.err; then
2480 grep -v '^ *+' conftest.err >conftest.er1
2481 cat conftest.er1 >&5
2482 mv -f conftest.er1 conftest.err
2483 fi
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002485 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002486 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2487 test ! -s conftest.err
2488 }; then :
2489 ac_retval=0
2490else
2491 $as_echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_retval=1
2495fi
cristyda16f162011-02-19 23:52:17 +00002496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002497 as_fn_set_status $ac_retval
2498
2499} # ac_fn_cxx_try_cpp
2500
2501# ac_fn_cxx_try_link LINENO
2502# -------------------------
2503# Try to link conftest.$ac_ext, and return whether this succeeded.
2504ac_fn_cxx_try_link ()
2505{
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { { ac_try="$ac_link"
2509case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512esac
2513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514$as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_link") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2521 fi
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } && {
2524 test -z "$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 } && test -s conftest$ac_exeext && {
2527 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002528 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002529 }; then :
2530 ac_retval=0
2531else
2532 $as_echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_retval=1
2536fi
2537 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2538 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2539 # interfere with the next link command; also delete a directory that is
2540 # left behind by Apple's compiler. We do this before executing the actions.
2541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002543 as_fn_set_status $ac_retval
2544
2545} # ac_fn_cxx_try_link
2546
cristy98dddb52010-11-04 00:30:15 +00002547# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2548# ---------------------------------------------
2549# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2550# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002551ac_fn_c_check_decl ()
2552{
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002554 as_decl_name=`echo $2|sed 's/ *(.*//'`
2555 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2557$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002558if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002559 $as_echo_n "(cached) " >&6
2560else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
cristy98dddb52010-11-04 00:30:15 +00002567#ifndef $as_decl_name
2568#ifdef __cplusplus
2569 (void) $as_decl_use;
2570#else
2571 (void) $as_decl_name;
2572#endif
cristy73bd4a52010-10-05 11:24:23 +00002573#endif
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$3=yes"
2581else
2582 eval "$3=no"
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585fi
2586eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002590
2591} # ac_fn_c_check_decl
2592
cristy8b350f62009-11-15 23:12:43 +00002593# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2594# -------------------------------------------
2595# Tests whether TYPE exists after having included INCLUDES, setting cache
2596# variable VAR accordingly.
2597ac_fn_c_check_type ()
2598{
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2601$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002602if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002603 $as_echo_n "(cached) " >&6
2604else
2605 eval "$3=no"
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */
2608$4
2609int
2610main ()
2611{
2612if (sizeof ($2))
2613 return 0;
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618if ac_fn_c_try_compile "$LINENO"; then :
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621$4
2622int
2623main ()
2624{
2625if (sizeof (($2)))
2626 return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632
2633else
2634 eval "$3=yes"
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002644
2645} # ac_fn_c_check_type
2646
cristy92703d82010-04-26 00:18:18 +00002647# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2648# ----------------------------------------------------
2649# Tries to find if the field MEMBER exists in type AGGR, after including
2650# INCLUDES, setting cache variable VAR accordingly.
2651ac_fn_c_check_member ()
2652{
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2655$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002656if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002657 $as_echo_n "(cached) " >&6
2658else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660/* end confdefs.h. */
2661$5
2662int
2663main ()
2664{
2665static $2 ac_aggr;
2666if (ac_aggr.$3)
2667return 0;
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672if ac_fn_c_try_compile "$LINENO"; then :
2673 eval "$4=yes"
2674else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */
2677$5
2678int
2679main ()
2680{
2681static $2 ac_aggr;
2682if (sizeof ac_aggr.$3)
2683return 0;
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$4=yes"
2690else
2691 eval "$4=no"
2692fi
2693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694fi
2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696fi
2697eval ac_res=\$$4
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2699$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002701
2702} # ac_fn_c_check_member
2703
cristy501c8042011-05-26 17:46:28 +00002704# ac_fn_c_find_intX_t LINENO BITS VAR
2705# -----------------------------------
2706# Finds a signed integer type with width BITS, setting cache variable VAR
2707# accordingly.
2708ac_fn_c_find_intX_t ()
2709{
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2712$as_echo_n "checking for int$2_t... " >&6; }
2713if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715else
2716 eval "$3=no"
2717 # Order is important - never check a type that is potentially smaller
2718 # than half of the expected target width.
2719 for ac_type in int$2_t 'int' 'long int' \
2720 'long long int' 'short int' 'signed char'; do
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722/* end confdefs.h. */
2723$ac_includes_default
2724 enum { N = $2 / 2 - 1 };
2725int
2726main ()
2727{
2728static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002729test_array [0] = 0;
2730return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736if ac_fn_c_try_compile "$LINENO"; then :
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$ac_includes_default
2740 enum { N = $2 / 2 - 1 };
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2745 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002746test_array [0] = 0;
2747return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753if ac_fn_c_try_compile "$LINENO"; then :
2754
2755else
2756 case $ac_type in #(
2757 int$2_t) :
2758 eval "$3=yes" ;; #(
2759 *) :
2760 eval "$3=\$ac_type" ;;
2761esac
2762fi
2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764fi
2765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 if eval test \"x\$"$3"\" = x"no"; then :
2767
2768else
2769 break
2770fi
2771 done
2772fi
2773eval ac_res=\$$3
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775$as_echo "$ac_res" >&6; }
2776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777
2778} # ac_fn_c_find_intX_t
2779
2780# ac_fn_c_find_uintX_t LINENO BITS VAR
2781# ------------------------------------
2782# Finds an unsigned integer type with width BITS, setting cache variable VAR
2783# accordingly.
2784ac_fn_c_find_uintX_t ()
2785{
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2788$as_echo_n "checking for uint$2_t... " >&6; }
2789if eval \${$3+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791else
2792 eval "$3=no"
2793 # Order is important - never check a type that is potentially smaller
2794 # than half of the expected target width.
2795 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2796 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798/* end confdefs.h. */
2799$ac_includes_default
2800int
2801main ()
2802{
2803static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002804test_array [0] = 0;
2805return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002806
2807 ;
2808 return 0;
2809}
2810_ACEOF
2811if ac_fn_c_try_compile "$LINENO"; then :
2812 case $ac_type in #(
2813 uint$2_t) :
2814 eval "$3=yes" ;; #(
2815 *) :
2816 eval "$3=\$ac_type" ;;
2817esac
2818fi
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 if eval test \"x\$"$3"\" = x"no"; then :
2821
2822else
2823 break
2824fi
2825 done
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2831
2832} # ac_fn_c_find_uintX_t
2833
cristy8b350f62009-11-15 23:12:43 +00002834# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2835# --------------------------------------------
2836# Tries to find the compile-time value of EXPR in a program that includes
2837# INCLUDES, setting VAR accordingly. Returns whether the value could be
2838# computed
2839ac_fn_c_compute_int ()
2840{
2841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2842 if test "$cross_compiling" = yes; then
2843 # Depending upon the size, compute the lo and hi bounds.
2844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002851test_array [0] = 0;
2852return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002853
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_lo=0 ac_mid=0
2860 while :; do
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862/* end confdefs.h. */
2863$4
2864int
2865main ()
2866{
2867static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002868test_array [0] = 0;
2869return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002870
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876 ac_hi=$ac_mid; break
2877else
2878 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2879 if test $ac_lo -le $ac_mid; then
2880 ac_lo= ac_hi=
2881 break
2882 fi
2883 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2884fi
2885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 done
2887else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002895test_array [0] = 0;
2896return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002897
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_hi=-1 ac_mid=-1
2904 while :; do
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$4
2908int
2909main ()
2910{
2911static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002912test_array [0] = 0;
2913return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919if ac_fn_c_try_compile "$LINENO"; then :
2920 ac_lo=$ac_mid; break
2921else
2922 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2923 if test $ac_mid -le $ac_hi; then
2924 ac_lo= ac_hi=
2925 break
2926 fi
2927 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 done
2931else
2932 ac_lo= ac_hi=
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935fi
2936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2937# Binary search between lo and hi bounds.
2938while test "x$ac_lo" != "x$ac_hi"; do
2939 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h. */
2942$4
2943int
2944main ()
2945{
2946static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002947test_array [0] = 0;
2948return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955 ac_hi=$ac_mid
2956else
2957 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960done
2961case $ac_lo in #((
2962?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2963'') ac_retval=1 ;;
2964esac
2965 else
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967/* end confdefs.h. */
2968$4
2969static long int longval () { return $2; }
2970static unsigned long int ulongval () { return $2; }
2971#include <stdio.h>
2972#include <stdlib.h>
2973int
2974main ()
2975{
2976
2977 FILE *f = fopen ("conftest.val", "w");
2978 if (! f)
2979 return 1;
2980 if (($2) < 0)
2981 {
2982 long int i = longval ();
2983 if (i != ($2))
2984 return 1;
2985 fprintf (f, "%ld", i);
2986 }
2987 else
2988 {
2989 unsigned long int i = ulongval ();
2990 if (i != ($2))
2991 return 1;
2992 fprintf (f, "%lu", i);
2993 }
2994 /* Do not output a trailing newline, as this causes \r\n confusion
2995 on some platforms. */
2996 return ferror (f) || fclose (f) != 0;
2997
2998 ;
2999 return 0;
3000}
3001_ACEOF
3002if ac_fn_c_try_run "$LINENO"; then :
3003 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3004else
3005 ac_retval=1
3006fi
3007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3008 conftest.$ac_objext conftest.beam conftest.$ac_ext
3009rm -f conftest.val
3010
3011 fi
cristyda16f162011-02-19 23:52:17 +00003012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003013 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003014
3015} # ac_fn_c_compute_int
3016
3017# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3018# ---------------------------------------------------------
3019# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3020# the include files in INCLUDES and setting the cache variable VAR
3021# accordingly.
3022ac_fn_cxx_check_header_mongrel ()
3023{
3024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003025 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3027$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003028if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003029 $as_echo_n "(cached) " >&6
3030fi
3031eval ac_res=\$$3
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3033$as_echo "$ac_res" >&6; }
3034else
3035 # Is the header compilable?
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3037$as_echo_n "checking $2 usability... " >&6; }
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040$4
3041#include <$2>
3042_ACEOF
3043if ac_fn_cxx_try_compile "$LINENO"; then :
3044 ac_header_compiler=yes
3045else
3046 ac_header_compiler=no
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3050$as_echo "$ac_header_compiler" >&6; }
3051
3052# Is the header present?
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3054$as_echo_n "checking $2 presence... " >&6; }
3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057#include <$2>
3058_ACEOF
3059if ac_fn_cxx_try_cpp "$LINENO"; then :
3060 ac_header_preproc=yes
3061else
3062 ac_header_preproc=no
3063fi
cristyda16f162011-02-19 23:52:17 +00003064rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3066$as_echo "$ac_header_preproc" >&6; }
3067
3068# So? What about this header?
3069case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3070 yes:no: )
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3072$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3074$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3075 ;;
3076 no:yes:* )
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3078$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3080$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3082$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3084$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3086$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003087( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003088## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003089## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003090 ) | sed "s/^/$as_me: WARNING: /" >&2
3091 ;;
3092esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3094$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003095if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003096 $as_echo_n "(cached) " >&6
3097else
3098 eval "$3=\$ac_header_compiler"
3099fi
3100eval ac_res=\$$3
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3102$as_echo "$ac_res" >&6; }
3103fi
cristyda16f162011-02-19 23:52:17 +00003104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003105
3106} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003107cat >config.log <<_ACEOF
3108This file contains any messages produced by compilers while
3109running configure, to aid debugging if configure makes a mistake.
3110
cristy29eb34e2011-10-16 00:46:08 +00003111It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003112generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003113
3114 $ $0 $@
3115
3116_ACEOF
3117exec 5>>config.log
3118{
3119cat <<_ASUNAME
3120## --------- ##
3121## Platform. ##
3122## --------- ##
3123
3124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3125uname -m = `(uname -m) 2>/dev/null || echo unknown`
3126uname -r = `(uname -r) 2>/dev/null || echo unknown`
3127uname -s = `(uname -s) 2>/dev/null || echo unknown`
3128uname -v = `(uname -v) 2>/dev/null || echo unknown`
3129
3130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3131/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3132
3133/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3134/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3136/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3137/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3138/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3139/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3140
3141_ASUNAME
3142
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003148 $as_echo "PATH: $as_dir"
3149 done
cristy3ed852e2009-09-05 21:47:34 +00003150IFS=$as_save_IFS
3151
3152} >&5
3153
3154cat >&5 <<_ACEOF
3155
3156
3157## ----------- ##
3158## Core tests. ##
3159## ----------- ##
3160
3161_ACEOF
3162
3163
3164# Keep a trace of the command line.
3165# Strip out --no-create and --no-recursion so they do not pile up.
3166# Strip out --silent because we don't want to record it for future runs.
3167# Also quote any args containing shell meta-characters.
3168# Make two passes to allow for proper duplicate-argument suppression.
3169ac_configure_args=
3170ac_configure_args0=
3171ac_configure_args1=
3172ac_must_keep_next=false
3173for ac_pass in 1 2
3174do
3175 for ac_arg
3176 do
3177 case $ac_arg in
3178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3180 | -silent | --silent | --silen | --sile | --sil)
3181 continue ;;
3182 *\'*)
3183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3184 esac
3185 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003187 2)
cristy8b350f62009-11-15 23:12:43 +00003188 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003189 if test $ac_must_keep_next = true; then
3190 ac_must_keep_next=false # Got value, back to normal.
3191 else
3192 case $ac_arg in
3193 *=* | --config-cache | -C | -disable-* | --disable-* \
3194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3196 | -with-* | --with-* | -without-* | --without-* | --x)
3197 case "$ac_configure_args0 " in
3198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3199 esac
3200 ;;
3201 -* ) ac_must_keep_next=true ;;
3202 esac
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003205 ;;
3206 esac
3207 done
3208done
cristy8b350f62009-11-15 23:12:43 +00003209{ ac_configure_args0=; unset ac_configure_args0;}
3210{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003211
3212# When interrupted or exit'd, cleanup temporary files, and complete
3213# config.log. We remove comments because anyway the quotes in there
3214# would cause problems or look ugly.
3215# WARNING: Use '\'' to represent an apostrophe within the trap.
3216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3217trap 'exit_status=$?
3218 # Save into config.log some information that might help in debugging.
3219 {
3220 echo
3221
cristy98dddb52010-11-04 00:30:15 +00003222 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003223## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003224## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003225 echo
3226 # The following way of writing the cache mishandles newlines in values,
3227(
3228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3229 eval ac_val=\$$ac_var
3230 case $ac_val in #(
3231 *${as_nl}*)
3232 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003233 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3235 esac
3236 case $ac_var in #(
3237 _ | IFS | as_nl) ;; #(
3238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003239 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003240 esac ;;
3241 esac
3242 done
3243 (set) 2>&1 |
3244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3245 *${as_nl}ac_space=\ *)
3246 sed -n \
3247 "s/'\''/'\''\\\\'\'''\''/g;
3248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3249 ;; #(
3250 *)
3251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3252 ;;
3253 esac |
3254 sort
3255)
3256 echo
3257
cristy98dddb52010-11-04 00:30:15 +00003258 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003259## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003260## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003261 echo
3262 for ac_var in $ac_subst_vars
3263 do
3264 eval ac_val=\$$ac_var
3265 case $ac_val in
3266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3267 esac
3268 $as_echo "$ac_var='\''$ac_val'\''"
3269 done | sort
3270 echo
3271
3272 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003273 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003274## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003275## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003276 echo
3277 for ac_var in $ac_subst_files
3278 do
3279 eval ac_val=\$$ac_var
3280 case $ac_val in
3281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3282 esac
3283 $as_echo "$ac_var='\''$ac_val'\''"
3284 done | sort
3285 echo
3286 fi
3287
3288 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003289 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003290## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003291## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003292 echo
3293 cat confdefs.h
3294 echo
3295 fi
3296 test "$ac_signal" != 0 &&
3297 $as_echo "$as_me: caught signal $ac_signal"
3298 $as_echo "$as_me: exit $exit_status"
3299 } >&5
3300 rm -f core *.core core.conftest.* &&
3301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3302 exit $exit_status
3303' 0
3304for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003306done
3307ac_signal=0
3308
3309# confdefs.h avoids OS command line length limits that DEFS can exceed.
3310rm -f -r conftest* confdefs.h
3311
cristy8b350f62009-11-15 23:12:43 +00003312$as_echo "/* confdefs.h */" > confdefs.h
3313
cristy3ed852e2009-09-05 21:47:34 +00003314# Predefined preprocessor variables.
3315
3316cat >>confdefs.h <<_ACEOF
3317#define PACKAGE_NAME "$PACKAGE_NAME"
3318_ACEOF
3319
cristy3ed852e2009-09-05 21:47:34 +00003320cat >>confdefs.h <<_ACEOF
3321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3322_ACEOF
3323
cristy3ed852e2009-09-05 21:47:34 +00003324cat >>confdefs.h <<_ACEOF
3325#define PACKAGE_VERSION "$PACKAGE_VERSION"
3326_ACEOF
3327
cristy3ed852e2009-09-05 21:47:34 +00003328cat >>confdefs.h <<_ACEOF
3329#define PACKAGE_STRING "$PACKAGE_STRING"
3330_ACEOF
3331
cristy3ed852e2009-09-05 21:47:34 +00003332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3334_ACEOF
3335
cristy8b350f62009-11-15 23:12:43 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_URL "$PACKAGE_URL"
3338_ACEOF
3339
cristy3ed852e2009-09-05 21:47:34 +00003340
3341# Let the site file select an alternate cache file if it wants to.
3342# Prefer an explicitly selected file to automatically selected ones.
3343ac_site_file1=NONE
3344ac_site_file2=NONE
3345if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003346 # We do not want a PATH search for config.site.
3347 case $CONFIG_SITE in #((
3348 -*) ac_site_file1=./$CONFIG_SITE;;
3349 */*) ac_site_file1=$CONFIG_SITE;;
3350 *) ac_site_file1=./$CONFIG_SITE;;
3351 esac
cristy3ed852e2009-09-05 21:47:34 +00003352elif test "x$prefix" != xNONE; then
3353 ac_site_file1=$prefix/share/config.site
3354 ac_site_file2=$prefix/etc/config.site
3355else
3356 ac_site_file1=$ac_default_prefix/share/config.site
3357 ac_site_file2=$ac_default_prefix/etc/config.site
3358fi
3359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3360do
3361 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003362 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3365 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003366 . "$ac_site_file" \
3367 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369as_fn_error $? "failed to load site script $ac_site_file
3370See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003371 fi
3372done
3373
3374if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003375 # Some versions of bash will fail to source /dev/null (special files
3376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003379$as_echo "$as_me: loading cache $cache_file" >&6;}
3380 case $cache_file in
3381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3382 *) . "./$cache_file";;
3383 esac
3384 fi
3385else
cristy8b350f62009-11-15 23:12:43 +00003386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003387$as_echo "$as_me: creating cache $cache_file" >&6;}
3388 >$cache_file
3389fi
3390
cristycd4c5312009-11-22 01:19:08 +00003391as_fn_append ac_header_list " stdlib.h"
3392as_fn_append ac_header_list " unistd.h"
3393as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003394# Check that the precious variables saved in the cache have kept the same
3395# value.
3396ac_cache_corrupted=false
3397for ac_var in $ac_precious_vars; do
3398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3399 eval ac_new_set=\$ac_env_${ac_var}_set
3400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3401 eval ac_new_val=\$ac_env_${ac_var}_value
3402 case $ac_old_set,$ac_new_set in
3403 set,)
cristy8b350f62009-11-15 23:12:43 +00003404 { $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 +00003405$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3406 ac_cache_corrupted=: ;;
3407 ,set)
cristy8b350f62009-11-15 23:12:43 +00003408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3410 ac_cache_corrupted=: ;;
3411 ,);;
3412 *)
3413 if test "x$ac_old_val" != "x$ac_new_val"; then
3414 # differences in whitespace do not lead to failure.
3415 ac_old_val_w=`echo x $ac_old_val`
3416 ac_new_val_w=`echo x $ac_new_val`
3417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3420 ac_cache_corrupted=:
3421 else
cristy8b350f62009-11-15 23:12:43 +00003422 { $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 +00003423$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3424 eval $ac_var=\$ac_old_val
3425 fi
cristy8b350f62009-11-15 23:12:43 +00003426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003427$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3430 fi;;
3431 esac
3432 # Pass precious variables to config.status.
3433 if test "$ac_new_set" = set; then
3434 case $ac_new_val in
3435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3436 *) ac_arg=$ac_var=$ac_new_val ;;
3437 esac
3438 case " $ac_configure_args " in
3439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003441 esac
3442 fi
3443done
3444if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003448$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003450fi
cristy8b350f62009-11-15 23:12:43 +00003451## -------------------- ##
3452## Main body of script. ##
3453## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003454
3455ac_ext=c
3456ac_cpp='$CPP $CPPFLAGS'
3457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460
3461
3462
3463ac_aux_dir=
3464for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003465 if test -f "$ac_dir/install-sh"; then
3466 ac_aux_dir=$ac_dir
3467 ac_install_sh="$ac_aux_dir/install-sh -c"
3468 break
3469 elif test -f "$ac_dir/install.sh"; then
3470 ac_aux_dir=$ac_dir
3471 ac_install_sh="$ac_aux_dir/install.sh -c"
3472 break
3473 elif test -f "$ac_dir/shtool"; then
3474 ac_aux_dir=$ac_dir
3475 ac_install_sh="$ac_aux_dir/shtool install -c"
3476 break
3477 fi
cristy3ed852e2009-09-05 21:47:34 +00003478done
3479if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003480 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003481fi
3482
3483# These three variables are undocumented and unsupported,
3484# and are intended to be withdrawn in a future Autoconf release.
3485# They can cause serious problems if a builder's source tree is in a directory
3486# whose full name contains unusual characters.
3487ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3488ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3489ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3490
3491
3492
3493
3494ac_config_headers="$ac_config_headers config/config.h"
3495
cristy24fc1fe2010-10-23 21:13:01 +00003496
cristy4c08aed2011-07-01 19:47:50 +00003497ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003498
cristy4c08aed2011-07-01 19:47:50 +00003499ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003500
3501
3502#
3503# Save initial user-tunable values
3504#
3505USER_LIBS=$LIBS
3506for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3507 eval isset=\${$var+set}
3508 if test "$isset" = 'set'; then
3509 eval val=$`echo $var`
3510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3511 fi
3512done
3513
3514
3515CONFIGURE_ARGS="$0 ${ac_configure_args}"
3516
3517
3518# Source file containing package/library versioning information.
3519. ${srcdir}/version.sh
3520
cristy15a88782010-01-31 23:24:49 +00003521echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003522# Make sure we can run config.sub.
3523$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003524 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003525
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003528if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003529 $as_echo_n "(cached) " >&6
3530else
3531 ac_build_alias=$build_alias
3532test "x$ac_build_alias" = x &&
3533 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3534test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003535 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003536ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538
3539fi
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo "$ac_cv_build" >&6; }
3542case $ac_cv_build in
3543*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003544*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003545esac
3546build=$ac_cv_build
3547ac_save_IFS=$IFS; IFS='-'
3548set x $ac_cv_build
3549shift
3550build_cpu=$1
3551build_vendor=$2
3552shift; shift
3553# Remember, the first character of IFS is used to create $*,
3554# except with old shells:
3555build_os=$*
3556IFS=$ac_save_IFS
3557case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3558
3559
cristy8b350f62009-11-15 23:12:43 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003562if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003563 $as_echo_n "(cached) " >&6
3564else
3565 if test "x$host_alias" = x; then
3566 ac_cv_host=$ac_cv_build
3567else
3568 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003570fi
3571
3572fi
cristy8b350f62009-11-15 23:12:43 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003574$as_echo "$ac_cv_host" >&6; }
3575case $ac_cv_host in
3576*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003577*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003578esac
3579host=$ac_cv_host
3580ac_save_IFS=$IFS; IFS='-'
3581set x $ac_cv_host
3582shift
3583host_cpu=$1
3584host_vendor=$2
3585shift; shift
3586# Remember, the first character of IFS is used to create $*,
3587# except with old shells:
3588host_os=$*
3589IFS=$ac_save_IFS
3590case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3591
3592
cristy8b350f62009-11-15 23:12:43 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003595if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003596 $as_echo_n "(cached) " >&6
3597else
3598 if test "x$target_alias" = x; then
3599 ac_cv_target=$ac_cv_host
3600else
3601 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003603fi
3604
3605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "$ac_cv_target" >&6; }
3608case $ac_cv_target in
3609*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003610*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003611esac
3612target=$ac_cv_target
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_target
3615shift
3616target_cpu=$1
3617target_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621target_os=$*
3622IFS=$ac_save_IFS
3623case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3624
3625
3626# The aliases save the names the user supplied, while $host etc.
3627# will get canonicalized.
3628test -n "$target_alias" &&
3629 test "$program_prefix$program_suffix$program_transform_name" = \
3630 NONENONEs,x,x, &&
3631 program_prefix=${target_alias}-
3632
cristy837d6dc2010-02-27 01:16:57 +00003633
3634
3635
cristy8be34142012-06-17 14:07:18 +00003636
cristy19615b82011-04-13 20:02:01 +00003637MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003638
3639
cristy19615b82011-04-13 20:02:01 +00003640MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003641
3642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy3ed852e2009-09-05 21:47:34 +00003646# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003647MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3648
3649MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3650
cristy1b70dc82012-07-01 23:15:05 +00003651MAGICK_SVN_REVISION=8543
cristyd694ca32011-03-27 21:42:54 +00003652
3653
cristy3ed852e2009-09-05 21:47:34 +00003654
3655
3656# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658$as_echo_n "checking whether build environment is sane... " >&6; }
3659# Just in case
3660sleep 1
3661echo timestamp > conftest.file
3662# Reject unsafe characters in $srcdir or the absolute working directory
3663# name. Accept space and tab only in the latter.
3664am_lf='
3665'
3666case `pwd` in
3667 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003668 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003669esac
3670case $srcdir in
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003672 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003673esac
cristy3ed852e2009-09-05 21:47:34 +00003674
cristy73bd4a52010-10-05 11:24:23 +00003675# Do `set' in a subshell so we don't clobber the current shell's
3676# arguments. Must try -L first in case configure is actually a
3677# symlink; some systems play weird games with the mod time of symlinks
3678# (eg FreeBSD returns the mod time of the symlink's containing
3679# directory).
3680if (
3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3682 if test "$*" = "X"; then
3683 # -L didn't work.
3684 set X `ls -t "$srcdir/configure" conftest.file`
3685 fi
3686 rm -f conftest.file
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
3689
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003695alias in your environment" "$LINENO" 5
3696 fi
3697
3698 test "$2" = conftest.file
3699 )
3700then
3701 # Ok.
3702 :
3703else
cristy98dddb52010-11-04 00:30:15 +00003704 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003705Check your system clock" "$LINENO" 5
3706fi
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708$as_echo "yes" >&6; }
3709
3710am__api_version='1.11'
3711
3712# Find a good install program. We prefer a C program (faster),
3713# so one script is as good as another. But avoid the broken or
3714# incompatible versions:
3715# SysV /etc/install, /usr/sbin/install
3716# SunOS /usr/etc/install
3717# IRIX /sbin/install
3718# AIX /bin/install
3719# AmigaOS /C/install, which installs bootblocks on floppy discs
3720# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3721# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3722# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3723# OS/2's system install, which has a completely different semantic
3724# ./install, which can be erroneously created by make from ./install.sh.
3725# Reject install programs that cannot install multiple files.
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3727$as_echo_n "checking for a BSD-compatible install... " >&6; }
3728if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003729if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003730 $as_echo_n "(cached) " >&6
3731else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 # Account for people who put trailing slashes in PATH elements.
3738case $as_dir/ in #((
3739 ./ | .// | /[cC]/* | \
3740 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3741 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3742 /usr/ucb/* ) ;;
3743 *)
3744 # OSF1 and SCO ODT 3.0 have their own names for install.
3745 # Don't use installbsd from OSF since it installs stuff as root
3746 # by default.
3747 for ac_prog in ginstall scoinst install; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003749 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003750 if test $ac_prog = install &&
3751 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3752 # AIX install. It has an incompatible calling convention.
3753 :
3754 elif test $ac_prog = install &&
3755 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3756 # program-specific install script used by HP pwplus--don't use.
3757 :
3758 else
3759 rm -rf conftest.one conftest.two conftest.dir
3760 echo one > conftest.one
3761 echo two > conftest.two
3762 mkdir conftest.dir
3763 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3764 test -s conftest.one && test -s conftest.two &&
3765 test -s conftest.dir/conftest.one &&
3766 test -s conftest.dir/conftest.two
3767 then
3768 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3769 break 3
3770 fi
3771 fi
3772 fi
3773 done
3774 done
3775 ;;
3776esac
3777
3778 done
3779IFS=$as_save_IFS
3780
3781rm -rf conftest.one conftest.two conftest.dir
3782
3783fi
3784 if test "${ac_cv_path_install+set}" = set; then
3785 INSTALL=$ac_cv_path_install
3786 else
3787 # As a last resort, use the slow shell script. Don't cache a
3788 # value for INSTALL within a source directory, because that will
3789 # break other packages using the cache if that directory is
3790 # removed, or if the value is a relative name.
3791 INSTALL=$ac_install_sh
3792 fi
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3795$as_echo "$INSTALL" >&6; }
3796
3797# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3798# It thinks the first close brace ends the variable substitution.
3799test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3800
3801test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3802
3803test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3804
3805test "$program_prefix" != NONE &&
3806 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3807# Use a double $ so make ignores it.
3808test "$program_suffix" != NONE &&
3809 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3810# Double any \ or $.
3811# By default was `s,x,x', remove it if useless.
3812ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3813program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3814
3815# expand $ac_aux_dir to an absolute path
3816am_aux_dir=`cd $ac_aux_dir && pwd`
3817
3818if test x"${MISSING+set}" != xset; then
3819 case $am_aux_dir in
3820 *\ * | *\ *)
3821 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3822 *)
3823 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3824 esac
3825fi
3826# Use eval to expand $SHELL
3827if eval "$MISSING --run true"; then
3828 am_missing_run="$MISSING --run "
3829else
3830 am_missing_run=
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3832$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3833fi
3834
3835if test x"${install_sh}" != xset; then
3836 case $am_aux_dir in
3837 *\ * | *\ *)
3838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3839 *)
3840 install_sh="\${SHELL} $am_aux_dir/install-sh"
3841 esac
3842fi
3843
3844# Installed binaries are usually stripped using `strip' when the user
3845# run `make install-strip'. However `strip' might not be the right
3846# tool to use in cross-compilation environments, therefore Automake
3847# will honor the `STRIP' environment variable to overrule this program.
3848if test "$cross_compiling" != no; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3851set dummy ${ac_tool_prefix}strip; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003854if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003855 $as_echo_n "(cached) " >&6
3856else
3857 if test -n "$STRIP"; then
3858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871done
3872 done
3873IFS=$as_save_IFS
3874
3875fi
3876fi
3877STRIP=$ac_cv_prog_STRIP
3878if test -n "$STRIP"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3880$as_echo "$STRIP" >&6; }
3881else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883$as_echo "no" >&6; }
3884fi
3885
3886
3887fi
3888if test -z "$ac_cv_prog_STRIP"; then
3889 ac_ct_STRIP=$STRIP
3890 # Extract the first word of "strip", so it can be a program name with args.
3891set dummy strip; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003894if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003895 $as_echo_n "(cached) " >&6
3896else
3897 if test -n "$ac_ct_STRIP"; then
3898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003907 ac_cv_prog_ac_ct_STRIP="strip"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911done
3912 done
3913IFS=$as_save_IFS
3914
3915fi
3916fi
3917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3918if test -n "$ac_ct_STRIP"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3920$as_echo "$ac_ct_STRIP" >&6; }
3921else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923$as_echo "no" >&6; }
3924fi
3925
3926 if test "x$ac_ct_STRIP" = x; then
3927 STRIP=":"
3928 else
3929 case $cross_compiling:$ac_tool_warned in
3930yes:)
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933ac_tool_warned=yes ;;
3934esac
3935 STRIP=$ac_ct_STRIP
3936 fi
3937else
3938 STRIP="$ac_cv_prog_STRIP"
3939fi
3940
3941fi
3942INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3943
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3945$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3946if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003947 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003948 $as_echo_n "(cached) " >&6
3949else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3952do
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_prog in mkdir gmkdir; do
3956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003957 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003958 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3959 'mkdir (GNU coreutils) '* | \
3960 'mkdir (coreutils) '* | \
3961 'mkdir (fileutils) '4.1*)
3962 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3963 break 3;;
3964 esac
3965 done
3966 done
3967 done
3968IFS=$as_save_IFS
3969
3970fi
3971
3972 test -d ./--version && rmdir ./--version
3973 if test "${ac_cv_path_mkdir+set}" = set; then
3974 MKDIR_P="$ac_cv_path_mkdir -p"
3975 else
3976 # As a last resort, use the slow shell script. Don't cache a
3977 # value for MKDIR_P within a source directory, because that will
3978 # break other packages using the cache if that directory is
3979 # removed, or if the value is a relative name.
3980 MKDIR_P="$ac_install_sh -d"
3981 fi
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3984$as_echo "$MKDIR_P" >&6; }
3985
3986mkdir_p="$MKDIR_P"
3987case $mkdir_p in
3988 [\\/$]* | ?:[\\/]*) ;;
3989 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3990esac
3991
3992for ac_prog in gawk mawk nawk awk
3993do
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995set dummy $ac_prog; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003998if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$AWK"; then
4002 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004011 ac_cv_prog_AWK="$ac_prog"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021AWK=$ac_cv_prog_AWK
4022if test -n "$AWK"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4024$as_echo "$AWK" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031 test -n "$AWK" && break
4032done
4033
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4035$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4036set x ${MAKE-make}
4037ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004038if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004039 $as_echo_n "(cached) " >&6
4040else
4041 cat >conftest.make <<\_ACEOF
4042SHELL = /bin/sh
4043all:
4044 @echo '@@@%%%=$(MAKE)=@@@%%%'
4045_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004046# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004047case `${MAKE-make} -f conftest.make 2>/dev/null` in
4048 *@@@%%%=?*=@@@%%%*)
4049 eval ac_cv_prog_make_${ac_make}_set=yes;;
4050 *)
4051 eval ac_cv_prog_make_${ac_make}_set=no;;
4052esac
4053rm -f conftest.make
4054fi
4055if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057$as_echo "yes" >&6; }
4058 SET_MAKE=
4059else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
4062 SET_MAKE="MAKE=${MAKE-make}"
4063fi
4064
4065rm -rf .tst 2>/dev/null
4066mkdir .tst 2>/dev/null
4067if test -d .tst; then
4068 am__leading_dot=.
4069else
4070 am__leading_dot=_
4071fi
4072rmdir .tst 2>/dev/null
4073
cristya448bd22011-10-14 12:38:13 +00004074# Check whether --enable-silent-rules was given.
4075if test "${enable_silent_rules+set}" = set; then :
4076 enableval=$enable_silent_rules;
4077fi
4078
4079case $enable_silent_rules in
4080yes) AM_DEFAULT_VERBOSITY=0;;
4081no) AM_DEFAULT_VERBOSITY=1;;
4082*) AM_DEFAULT_VERBOSITY=1;;
4083esac
cristyc3fb77b2012-02-06 01:49:41 +00004084am_make=${MAKE-make}
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4086$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4087if ${am_cv_make_support_nested_variables+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089else
4090 if $as_echo 'TRUE=$(BAR$(V))
4091BAR0=false
4092BAR1=true
4093V=1
4094am__doit:
4095 @$(TRUE)
4096.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4097 am_cv_make_support_nested_variables=yes
4098else
4099 am_cv_make_support_nested_variables=no
4100fi
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4103$as_echo "$am_cv_make_support_nested_variables" >&6; }
4104if test $am_cv_make_support_nested_variables = yes; then
4105 AM_V='$(V)'
4106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4107else
4108 AM_V=$AM_DEFAULT_VERBOSITY
4109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4110fi
cristya448bd22011-10-14 12:38:13 +00004111AM_BACKSLASH='\'
4112
cristy73bd4a52010-10-05 11:24:23 +00004113if test "`cd $srcdir && pwd`" != "`pwd`"; then
4114 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4115 # is not polluted with repeated "-I."
4116 am__isrc=' -I$(srcdir)'
4117 # test to see if srcdir already configured
4118 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004119 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004120 fi
4121fi
4122
4123# test whether we have cygpath
4124if test -z "$CYGPATH_W"; then
4125 if (cygpath --version) >/dev/null 2>/dev/null; then
4126 CYGPATH_W='cygpath -w'
4127 else
4128 CYGPATH_W=echo
4129 fi
4130fi
4131
4132
4133# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004134 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004135 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004136
4137
cristya448bd22011-10-14 12:38:13 +00004138cat >>confdefs.h <<_ACEOF
4139#define PACKAGE "$PACKAGE"
4140_ACEOF
4141
4142
4143cat >>confdefs.h <<_ACEOF
4144#define VERSION "$VERSION"
4145_ACEOF
4146
cristy73bd4a52010-10-05 11:24:23 +00004147# Some tools Automake needs.
4148
4149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4150
4151
4152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4153
4154
4155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4156
4157
4158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4159
4160
4161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4162
4163# We need awk for the "check" target. The system "awk" is bad on
4164# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004165# Always define AMTAR for backward compatibility. Yes, it's still used
4166# in the wild :-( We should find a proper way to deprecate it ...
4167AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004168
cristyc3fb77b2012-02-06 01:49:41 +00004169am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004170
4171
4172
4173
4174
cristy3ed852e2009-09-05 21:47:34 +00004175
4176# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004177# Check whether --enable-silent-rules was given.
4178if test "${enable_silent_rules+set}" = set; then :
4179 enableval=$enable_silent_rules;
4180fi
4181
4182case $enable_silent_rules in
4183yes) AM_DEFAULT_VERBOSITY=0;;
4184no) AM_DEFAULT_VERBOSITY=1;;
4185*) AM_DEFAULT_VERBOSITY=0;;
4186esac
cristyc3fb77b2012-02-06 01:49:41 +00004187am_make=${MAKE-make}
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4189$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4190if ${am_cv_make_support_nested_variables+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192else
4193 if $as_echo 'TRUE=$(BAR$(V))
4194BAR0=false
4195BAR1=true
4196V=1
4197am__doit:
4198 @$(TRUE)
4199.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4200 am_cv_make_support_nested_variables=yes
4201else
4202 am_cv_make_support_nested_variables=no
4203fi
4204fi
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4206$as_echo "$am_cv_make_support_nested_variables" >&6; }
4207if test $am_cv_make_support_nested_variables = yes; then
4208 AM_V='$(V)'
4209 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4210else
4211 AM_V=$AM_DEFAULT_VERBOSITY
4212 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4213fi
cristy73bd4a52010-10-05 11:24:23 +00004214AM_BACKSLASH='\'
4215
cristy3ed852e2009-09-05 21:47:34 +00004216
4217MAGICK_LIB_VERSION="0x"
4218if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4219 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4220fi
4221MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4222if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4223 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4224fi
4225MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4226if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4227 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4228fi
4229MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4230
4231
4232# Definition used to define MagickLibVersionText in version.h
4233MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4234
4235
4236# Definition used to define MagickLibVersionNumber in version.h
4237MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4238
4239
4240# Regenerate config.status if ChangeLog or version.sh is updated.
4241CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4242
4243
4244PERLMAINCC=$CC
4245
4246MAGICK_CFLAGS=''
4247MAGICK_CPPFLAGS=$CPPFLAGS_USER
4248MAGICK_PCFLAGS=$CPPFLAGS_USER
4249MAGICK_LDFLAGS=''
4250MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004251MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004252
4253#
4254# Evaluate shell variable equivalents to Makefile directory variables
4255#
4256if test "x$prefix" = xNONE; then
4257 prefix=$ac_default_prefix
4258fi
4259# Let make expand exec_prefix.
4260if test "x$exec_prefix" = xNONE; then
4261 exec_prefix='${prefix}'
4262fi
4263
4264#
4265eval "eval PREFIX_DIR=${prefix}"
4266
4267eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4268
4269eval "eval BIN_DIR=$bindir"
4270
4271eval "eval SBIN_DIR=$sbindir"
4272
4273eval "eval LIBEXEC_DIR=$libexecdir"
4274
4275eval "eval DATA_DIR=$datadir"
4276
cristy4e65ec22012-04-08 01:33:27 +00004277eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004278
cristy3ed852e2009-09-05 21:47:34 +00004279eval "eval SYSCONF_DIR=$sysconfdir"
4280
4281eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4282
4283eval "eval LOCALSTATE_DIR=$localstatedir"
4284
4285eval "eval LIB_DIR=$libdir"
4286
4287eval "eval INCLUDE_DIR=$includedir"
4288
4289eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4290
4291eval "eval INFO_DIR=$infodir"
4292
4293eval "eval MAN_DIR=$mandir"
4294
4295
4296# Get full paths to source and build directories
4297srcdirfull="`cd $srcdir && pwd`"
4298builddir="`pwd`"
4299
4300#
4301# Compute variables useful for running uninstalled software.
4302#
4303MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4304MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4305MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4306MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4307DIRSEP=':'
4308case "${build_os}" in
4309 mingw* )
4310 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4311 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4312 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4313 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4314 DIRSEP=';'
4315 ;;
4316esac
4317case "${host_os}" in
4318 mingw* )
4319 DIRSEP=';'
4320 ;;
4321esac
4322
4323
4324
4325
4326
4327
cristya0b81c32010-01-22 02:54:33 +00004328
4329#
4330# Enable OS features.
4331#
cristy73bd4a52010-10-05 11:24:23 +00004332DEPDIR="${am__leading_dot}deps"
4333
4334ac_config_commands="$ac_config_commands depfiles"
4335
4336
4337am_make=${MAKE-make}
4338cat > confinc << 'END'
4339am__doit:
4340 @echo this is the am__doit target
4341.PHONY: am__doit
4342END
4343# If we don't find an include directive, just comment out the code.
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4345$as_echo_n "checking for style of include used by $am_make... " >&6; }
4346am__include="#"
4347am__quote=
4348_am_result=none
4349# First try GNU make style include.
4350echo "include confinc" > confmf
4351# Ignore all kinds of additional output from `make'.
4352case `$am_make -s -f confmf 2> /dev/null` in #(
4353*the\ am__doit\ target*)
4354 am__include=include
4355 am__quote=
4356 _am_result=GNU
4357 ;;
4358esac
4359# Now try BSD make style include.
4360if test "$am__include" = "#"; then
4361 echo '.include "confinc"' > confmf
4362 case `$am_make -s -f confmf 2> /dev/null` in #(
4363 *the\ am__doit\ target*)
4364 am__include=.include
4365 am__quote="\""
4366 _am_result=BSD
4367 ;;
4368 esac
4369fi
4370
4371
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4373$as_echo "$_am_result" >&6; }
4374rm -f confinc confmf
4375
4376# Check whether --enable-dependency-tracking was given.
4377if test "${enable_dependency_tracking+set}" = set; then :
4378 enableval=$enable_dependency_tracking;
4379fi
4380
4381if test "x$enable_dependency_tracking" != xno; then
4382 am_depcomp="$ac_aux_dir/depcomp"
4383 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004384 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004385fi
4386 if test "x$enable_dependency_tracking" != xno; then
4387 AMDEP_TRUE=
4388 AMDEP_FALSE='#'
4389else
4390 AMDEP_TRUE='#'
4391 AMDEP_FALSE=
4392fi
4393
4394
cristy3ed852e2009-09-05 21:47:34 +00004395ac_ext=c
4396ac_cpp='$CPP $CPPFLAGS'
4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004405if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004406 $as_echo_n "(cached) " >&6
4407else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420 break 2
4421 fi
4422done
cristy8b350f62009-11-15 23:12:43 +00004423 done
cristy3ed852e2009-09-05 21:47:34 +00004424IFS=$as_save_IFS
4425
4426fi
4427fi
4428CC=$ac_cv_prog_CC
4429if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004431$as_echo "$CC" >&6; }
4432else
cristy8b350f62009-11-15 23:12:43 +00004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo "no" >&6; }
4435fi
4436
4437
4438fi
4439if test -z "$ac_cv_prog_CC"; then
4440 ac_ct_CC=$CC
4441 # Extract the first word of "gcc", so it can be a program name with args.
4442set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004445if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004446 $as_echo_n "(cached) " >&6
4447else
4448 if test -n "$ac_ct_CC"; then
4449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4450else
4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004458 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460 break 2
4461 fi
4462done
cristy8b350f62009-11-15 23:12:43 +00004463 done
cristy3ed852e2009-09-05 21:47:34 +00004464IFS=$as_save_IFS
4465
4466fi
4467fi
4468ac_ct_CC=$ac_cv_prog_ac_ct_CC
4469if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004471$as_echo "$ac_ct_CC" >&6; }
4472else
cristy8b350f62009-11-15 23:12:43 +00004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004474$as_echo "no" >&6; }
4475fi
4476
4477 if test "x$ac_ct_CC" = x; then
4478 CC=""
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
cristy8b350f62009-11-15 23:12:43 +00004482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484ac_tool_warned=yes ;;
4485esac
4486 CC=$ac_ct_CC
4487 fi
4488else
4489 CC="$ac_cv_prog_CC"
4490fi
4491
4492if test -z "$CC"; then
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4495set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004498if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004499 $as_echo_n "(cached) " >&6
4500else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004511 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004513 break 2
4514 fi
4515done
cristy8b350f62009-11-15 23:12:43 +00004516 done
cristy3ed852e2009-09-05 21:47:34 +00004517IFS=$as_save_IFS
4518
4519fi
4520fi
4521CC=$ac_cv_prog_CC
4522if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524$as_echo "$CC" >&6; }
4525else
cristy8b350f62009-11-15 23:12:43 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004527$as_echo "no" >&6; }
4528fi
4529
4530
4531 fi
4532fi
4533if test -z "$CC"; then
4534 # Extract the first word of "cc", so it can be a program name with args.
4535set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004538if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004539 $as_echo_n "(cached) " >&6
4540else
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC="$CC" # Let the user override the test.
4543else
4544 ac_prog_rejected=no
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553 ac_prog_rejected=yes
4554 continue
4555 fi
4556 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004558 break 2
4559 fi
4560done
cristy8b350f62009-11-15 23:12:43 +00004561 done
cristy3ed852e2009-09-05 21:47:34 +00004562IFS=$as_save_IFS
4563
4564if test $ac_prog_rejected = yes; then
4565 # We found a bogon in the path, so make sure we never use it.
4566 set dummy $ac_cv_prog_CC
4567 shift
4568 if test $# != 0; then
4569 # We chose a different compiler from the bogus one.
4570 # However, it has the same basename, so the bogon will be chosen
4571 # first if we set CC to just the basename; use the full file name.
4572 shift
4573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4574 fi
4575fi
4576fi
4577fi
4578CC=$ac_cv_prog_CC
4579if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004581$as_echo "$CC" >&6; }
4582else
cristy8b350f62009-11-15 23:12:43 +00004583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004584$as_echo "no" >&6; }
4585fi
4586
4587
4588fi
4589if test -z "$CC"; then
4590 if test -n "$ac_tool_prefix"; then
4591 for ac_prog in cl.exe
4592 do
4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004597if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612 break 2
4613 fi
4614done
cristy8b350f62009-11-15 23:12:43 +00004615 done
cristy3ed852e2009-09-05 21:47:34 +00004616IFS=$as_save_IFS
4617
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$CC" >&6; }
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626$as_echo "no" >&6; }
4627fi
4628
4629
4630 test -n "$CC" && break
4631 done
4632fi
4633if test -z "$CC"; then
4634 ac_ct_CC=$CC
4635 for ac_prog in cl.exe
4636do
4637 # Extract the first word of "$ac_prog", so it can be a program name with args.
4638set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004641if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004642 $as_echo_n "(cached) " >&6
4643else
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004654 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656 break 2
4657 fi
4658done
cristy8b350f62009-11-15 23:12:43 +00004659 done
cristy3ed852e2009-09-05 21:47:34 +00004660IFS=$as_save_IFS
4661
4662fi
4663fi
4664ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "$ac_ct_CC" >&6; }
4668else
cristy8b350f62009-11-15 23:12:43 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo "no" >&6; }
4671fi
4672
4673
4674 test -n "$ac_ct_CC" && break
4675done
4676
4677 if test "x$ac_ct_CC" = x; then
4678 CC=""
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681yes:)
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684ac_tool_warned=yes ;;
4685esac
4686 CC=$ac_ct_CC
4687 fi
4688fi
4689
4690fi
4691
4692
cristy8b350f62009-11-15 23:12:43 +00004693test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004695as_fn_error $? "no acceptable C compiler found in \$PATH
4696See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004697
4698# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004700set X $ac_compile
4701ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004702for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
cristy8b350f62009-11-15 23:12:43 +00004708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004711 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004712 if test -s conftest.err; then
4713 sed '10a\
4714... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004717 fi
cristycd4c5312009-11-22 01:19:08 +00004718 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721done
cristy3ed852e2009-09-05 21:47:34 +00004722
cristy8b350f62009-11-15 23:12:43 +00004723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004724/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004725
cristy3ed852e2009-09-05 21:47:34 +00004726int
4727main ()
4728{
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004735ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004736# Try to create an executable without -o first, disregard a.out.
4737# It will help us diagnose broken compilers, and finding out an intuition
4738# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4740$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004741ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4742
4743# The possible output files:
4744ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4745
4746ac_rmfiles=
4747for ac_file in $ac_files
4748do
4749 case $ac_file in
4750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4751 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4752 esac
4753done
4754rm -f $ac_rmfiles
4755
cristy8b350f62009-11-15 23:12:43 +00004756if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004757case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760esac
cristy8b350f62009-11-15 23:12:43 +00004761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4762$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004763 (eval "$ac_link_default") 2>&5
4764 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4768# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4769# in a Makefile. We should not override ac_cv_exeext if it was cached,
4770# so that the user can short-circuit this test for compilers unknown to
4771# Autoconf.
4772for ac_file in $ac_files ''
4773do
4774 test -f "$ac_file" || continue
4775 case $ac_file in
4776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4777 ;;
4778 [ab].out )
4779 # We found the default executable, but exeext='' is most
4780 # certainly right.
4781 break;;
4782 *.* )
cristy8b350f62009-11-15 23:12:43 +00004783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004784 then :; else
4785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4786 fi
4787 # We set ac_cv_exeext here because the later test for it is not
4788 # safe: cross compilers may not add the suffix if given an `-o'
4789 # argument, so we may need to know it at that point already.
4790 # Even if this section looks crufty: it has the advantage of
4791 # actually working.
4792 break;;
4793 * )
4794 break;;
4795 esac
4796done
4797test "$ac_cv_exeext" = no && ac_cv_exeext=
4798
4799else
4800 ac_file=''
4801fi
cristy8b350f62009-11-15 23:12:43 +00004802if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004806sed 's/^/| /' conftest.$ac_ext >&5
4807
cristy8b350f62009-11-15 23:12:43 +00004808{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004810as_fn_error 77 "C compiler cannot create executables
4811See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004812else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4814$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004815fi
cristycd4c5312009-11-22 01:19:08 +00004816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4817$as_echo_n "checking for C compiler default output file name... " >&6; }
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4819$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004820ac_exeext=$ac_cv_exeext
4821
cristycd4c5312009-11-22 01:19:08 +00004822rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004823ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004826if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004827case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830esac
cristy8b350f62009-11-15 23:12:43 +00004831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004833 (eval "$ac_link") 2>&5
4834 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4839# work properly (i.e., refer to `conftest.exe'), while it won't with
4840# `rm'.
4841for ac_file in conftest.exe conftest conftest.*; do
4842 test -f "$ac_file" || continue
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4846 break;;
4847 * ) break;;
4848 esac
4849done
4850else
cristy8b350f62009-11-15 23:12:43 +00004851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004853as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4854See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004855fi
cristycd4c5312009-11-22 01:19:08 +00004856rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004858$as_echo "$ac_cv_exeext" >&6; }
4859
4860rm -f conftest.$ac_ext
4861EXEEXT=$ac_cv_exeext
4862ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h. */
4865#include <stdio.h>
4866int
4867main ()
4868{
4869FILE *f = fopen ("conftest.out", "w");
4870 return ferror (f) || fclose (f) != 0;
4871
4872 ;
4873 return 0;
4874}
4875_ACEOF
4876ac_clean_files="$ac_clean_files conftest.out"
4877# Check that the compiler produces executables we can run. If not, either
4878# the compiler is broken, or we cross compile.
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4880$as_echo_n "checking whether we are cross compiling... " >&6; }
4881if test "$cross_compiling" != yes; then
4882 { { ac_try="$ac_link"
4883case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886esac
4887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888$as_echo "$ac_try_echo"; } >&5
4889 (eval "$ac_link") 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }
4893 if { ac_try='./conftest$ac_cv_exeext'
4894 { { case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897esac
4898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4899$as_echo "$ac_try_echo"; } >&5
4900 (eval "$ac_try") 2>&5
4901 ac_status=$?
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; }; }; then
4904 cross_compiling=no
4905 else
4906 if test "$cross_compiling" = maybe; then
4907 cross_compiling=yes
4908 else
4909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004911as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004912If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004913See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004914 fi
4915 fi
4916fi
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4918$as_echo "$cross_compiling" >&6; }
4919
4920rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4921ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004923$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004924if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004925 $as_echo_n "(cached) " >&6
4926else
cristy8b350f62009-11-15 23:12:43 +00004927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004928/* end confdefs.h. */
4929
4930int
4931main ()
4932{
4933
4934 ;
4935 return 0;
4936}
4937_ACEOF
4938rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004939if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
cristy8b350f62009-11-15 23:12:43 +00004944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004946 (eval "$ac_compile") 2>&5
4947 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004950 for ac_file in conftest.o conftest.obj conftest.*; do
4951 test -f "$ac_file" || continue;
4952 case $ac_file in
4953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4955 break;;
4956 esac
4957done
4958else
4959 $as_echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
cristy8b350f62009-11-15 23:12:43 +00004962{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004964as_fn_error $? "cannot compute suffix of object files: cannot compile
4965See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004966fi
cristy3ed852e2009-09-05 21:47:34 +00004967rm -f conftest.$ac_cv_objext conftest.$ac_ext
4968fi
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo "$ac_cv_objext" >&6; }
4971OBJEXT=$ac_cv_objext
4972ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004974$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004975if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004976 $as_echo_n "(cached) " >&6
4977else
cristy8b350f62009-11-15 23:12:43 +00004978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984#ifndef __GNUC__
4985 choke me
4986#endif
4987
4988 ;
4989 return 0;
4990}
4991_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004992if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004993 ac_compiler_gnu=yes
4994else
cristy8b350f62009-11-15 23:12:43 +00004995 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004996fi
cristy3ed852e2009-09-05 21:47:34 +00004997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998ac_cv_c_compiler_gnu=$ac_compiler_gnu
4999
5000fi
cristy8b350f62009-11-15 23:12:43 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005002$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5003if test $ac_compiler_gnu = yes; then
5004 GCC=yes
5005else
5006 GCC=
5007fi
5008ac_test_CFLAGS=${CFLAGS+set}
5009ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005011$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005012if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005013 $as_echo_n "(cached) " >&6
5014else
5015 ac_save_c_werror_flag=$ac_c_werror_flag
5016 ac_c_werror_flag=yes
5017 ac_cv_prog_cc_g=no
5018 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005020/* end confdefs.h. */
5021
5022int
5023main ()
5024{
5025
5026 ;
5027 return 0;
5028}
5029_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005030if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005031 ac_cv_prog_cc_g=yes
5032else
cristy8b350f62009-11-15 23:12:43 +00005033 CFLAGS=""
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005035/* end confdefs.h. */
5036
5037int
5038main ()
5039{
5040
5041 ;
5042 return 0;
5043}
5044_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005046
cristy8b350f62009-11-15 23:12:43 +00005047else
5048 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005049 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005051/* end confdefs.h. */
5052
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005061if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005062 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005063fi
cristy3ed852e2009-09-05 21:47:34 +00005064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065fi
cristy3ed852e2009-09-05 21:47:34 +00005066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067fi
cristy3ed852e2009-09-05 21:47:34 +00005068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 ac_c_werror_flag=$ac_save_c_werror_flag
5070fi
cristy8b350f62009-11-15 23:12:43 +00005071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005072$as_echo "$ac_cv_prog_cc_g" >&6; }
5073if test "$ac_test_CFLAGS" = set; then
5074 CFLAGS=$ac_save_CFLAGS
5075elif test $ac_cv_prog_cc_g = yes; then
5076 if test "$GCC" = yes; then
5077 CFLAGS="-g -O2"
5078 else
5079 CFLAGS="-g"
5080 fi
5081else
5082 if test "$GCC" = yes; then
5083 CFLAGS="-O2"
5084 else
5085 CFLAGS=
5086 fi
5087fi
cristy8b350f62009-11-15 23:12:43 +00005088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005089$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005090if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005091 $as_echo_n "(cached) " >&6
5092else
5093 ac_cv_prog_cc_c89=no
5094ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005096/* end confdefs.h. */
5097#include <stdarg.h>
5098#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005099struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5101struct buf { int x; };
5102FILE * (*rcsopen) (struct buf *, struct stat *, int);
5103static char *e (p, i)
5104 char **p;
5105 int i;
5106{
5107 return p[i];
5108}
5109static char *f (char * (*g) (char **, int), char **p, ...)
5110{
5111 char *s;
5112 va_list v;
5113 va_start (v,p);
5114 s = g (p, va_arg (v,int));
5115 va_end (v);
5116 return s;
5117}
5118
5119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5120 function prototypes and stuff, but not '\xHH' hex character constants.
5121 These don't provoke an error unfortunately, instead are silently treated
5122 as 'x'. The following induces an error, until -std is added to get
5123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5124 array size at least. It's necessary to write '\x00'==0 to get something
5125 that's true only with -std. */
5126int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5127
5128/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5129 inside strings and character constants. */
5130#define FOO(x) 'x'
5131int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5132
5133int test (int i, double x);
5134struct s1 {int (*f) (int a);};
5135struct s2 {int (*f) (double a);};
5136int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5137int argc;
5138char **argv;
5139int
5140main ()
5141{
5142return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5143 ;
5144 return 0;
5145}
5146_ACEOF
5147for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5149do
5150 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005151 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005152 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005153fi
cristy3ed852e2009-09-05 21:47:34 +00005154rm -f core conftest.err conftest.$ac_objext
5155 test "x$ac_cv_prog_cc_c89" != "xno" && break
5156done
5157rm -f conftest.$ac_ext
5158CC=$ac_save_CC
5159
5160fi
5161# AC_CACHE_VAL
5162case "x$ac_cv_prog_cc_c89" in
5163 x)
cristy8b350f62009-11-15 23:12:43 +00005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005165$as_echo "none needed" >&6; } ;;
5166 xno)
cristy8b350f62009-11-15 23:12:43 +00005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005168$as_echo "unsupported" >&6; } ;;
5169 *)
5170 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005172$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5173esac
cristy8b350f62009-11-15 23:12:43 +00005174if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005175
cristy8b350f62009-11-15 23:12:43 +00005176fi
cristy3ed852e2009-09-05 21:47:34 +00005177
5178ac_ext=c
5179ac_cpp='$CPP $CPPFLAGS'
5180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005183
cristy73bd4a52010-10-05 11:24:23 +00005184depcc="$CC" am_compiler_list=
5185
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5187$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005188if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005189 $as_echo_n "(cached) " >&6
5190else
5191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5192 # We make a subdir and do the tests there. Otherwise we can end up
5193 # making bogus files that we don't know about and never remove. For
5194 # instance it was reported that on HP-UX the gcc test will end up
5195 # making a dummy file named `D' -- because `-MD' means `put the output
5196 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005197 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005198 mkdir conftest.dir
5199 # Copy depcomp to subdir because otherwise we won't find it if we're
5200 # using a relative directory.
5201 cp "$am_depcomp" conftest.dir
5202 cd conftest.dir
5203 # We will build objects and dependencies in a subdirectory because
5204 # it helps to detect inapplicable dependency modes. For instance
5205 # both Tru64's cc and ICC support -MD to output dependencies as a
5206 # side effect of compilation, but ICC will put the dependencies in
5207 # the current directory while Tru64 will put them in the object
5208 # directory.
5209 mkdir sub
5210
5211 am_cv_CC_dependencies_compiler_type=none
5212 if test "$am_compiler_list" = ""; then
5213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5214 fi
5215 am__universal=false
5216 case " $depcc " in #(
5217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5218 esac
5219
5220 for depmode in $am_compiler_list; do
5221 # Setup a source with many dependencies, because some compilers
5222 # like to wrap large dependency lists on column 80 (with \), and
5223 # we should not choose a depcomp mode which is confused by this.
5224 #
5225 # We need to recreate these files for each test, as the compiler may
5226 # overwrite some of them when testing with obscure command lines.
5227 # This happens at least with the AIX C compiler.
5228 : > sub/conftest.c
5229 for i in 1 2 3 4 5 6; do
5230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5232 # Solaris 8's {/usr,}/bin/sh.
5233 touch sub/conftst$i.h
5234 done
5235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5236
5237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5238 # mode. It turns out that the SunPro C++ compiler does not properly
5239 # handle `-M -o', and we need to detect this. Also, some Intel
5240 # versions had trouble with output in subdirs
5241 am__obj=sub/conftest.${OBJEXT-o}
5242 am__minus_obj="-o $am__obj"
5243 case $depmode in
5244 gcc)
5245 # This depmode causes a compiler race in universal mode.
5246 test "$am__universal" = false || continue
5247 ;;
5248 nosideeffect)
5249 # after this tag, mechanisms are not by side-effect, so they'll
5250 # only be used when explicitly requested
5251 if test "x$enable_dependency_tracking" = xyes; then
5252 continue
5253 else
5254 break
5255 fi
5256 ;;
cristy7247bba2012-02-05 16:37:27 +00005257 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005258 # This compiler won't grok `-c -o', but also, the minuso test has
5259 # not run yet. These depmodes are late enough in the game, and
5260 # so weak that their functioning should not be impacted.
5261 am__obj=conftest.${OBJEXT-o}
5262 am__minus_obj=
5263 ;;
5264 none) break ;;
5265 esac
5266 if depmode=$depmode \
5267 source=sub/conftest.c object=$am__obj \
5268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5270 >/dev/null 2>conftest.err &&
5271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5275 # icc doesn't choke on unknown options, it will just issue warnings
5276 # or remarks (even with -Werror). So we grep stderr for any message
5277 # that says an option was ignored or not supported.
5278 # When given -MP, icc 7.0 and 7.1 complain thusly:
5279 # icc: Command line warning: ignoring option '-M'; no argument required
5280 # The diagnosis changed in icc 8.0:
5281 # icc: Command line remark: option '-MP' not supported
5282 if (grep 'ignoring option' conftest.err ||
5283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5284 am_cv_CC_dependencies_compiler_type=$depmode
5285 break
5286 fi
5287 fi
5288 done
5289
5290 cd ..
5291 rm -rf conftest.dir
5292else
5293 am_cv_CC_dependencies_compiler_type=none
5294fi
5295
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5298$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5299CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5300
5301 if
5302 test "x$enable_dependency_tracking" != xno \
5303 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5304 am__fastdepCC_TRUE=
5305 am__fastdepCC_FALSE='#'
5306else
5307 am__fastdepCC_TRUE='#'
5308 am__fastdepCC_FALSE=
5309fi
5310
5311
cristy3ed852e2009-09-05 21:47:34 +00005312
cristya0b81c32010-01-22 02:54:33 +00005313ac_ext=c
5314ac_cpp='$CPP $CPPFLAGS'
5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5319$as_echo_n "checking how to run the C preprocessor... " >&6; }
5320# On Suns, sometimes $CPP names a directory.
5321if test -n "$CPP" && test -d "$CPP"; then
5322 CPP=
5323fi
5324if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005325 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005326 $as_echo_n "(cached) " >&6
5327else
5328 # Double quotes because CPP needs to be expanded
5329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5330 do
5331 ac_preproc_ok=false
5332for ac_c_preproc_warn_flag in '' yes
5333do
5334 # Use a header file that comes with gcc, so configuring glibc
5335 # with a fresh cross-compiler works.
5336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5337 # <limits.h> exists even on freestanding compilers.
5338 # On the NeXT, cc -E runs the code through the compiler's parser,
5339 # not just through cpp. "Syntax error" is here to catch this case.
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342#ifdef __STDC__
5343# include <limits.h>
5344#else
5345# include <assert.h>
5346#endif
5347 Syntax error
5348_ACEOF
5349if ac_fn_c_try_cpp "$LINENO"; then :
5350
5351else
5352 # Broken: fails on valid input.
5353continue
5354fi
cristyda16f162011-02-19 23:52:17 +00005355rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005356
5357 # OK, works on sane cases. Now check whether nonexistent headers
5358 # can be detected and how.
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360/* end confdefs.h. */
5361#include <ac_nonexistent.h>
5362_ACEOF
5363if ac_fn_c_try_cpp "$LINENO"; then :
5364 # Broken: success on invalid input.
5365continue
5366else
5367 # Passes both tests.
5368ac_preproc_ok=:
5369break
5370fi
cristyda16f162011-02-19 23:52:17 +00005371rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005372
5373done
5374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005375rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005376if $ac_preproc_ok; then :
5377 break
5378fi
5379
5380 done
5381 ac_cv_prog_CPP=$CPP
5382
5383fi
5384 CPP=$ac_cv_prog_CPP
5385else
5386 ac_cv_prog_CPP=$CPP
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5389$as_echo "$CPP" >&6; }
5390ac_preproc_ok=false
5391for ac_c_preproc_warn_flag in '' yes
5392do
5393 # Use a header file that comes with gcc, so configuring glibc
5394 # with a fresh cross-compiler works.
5395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396 # <limits.h> exists even on freestanding compilers.
5397 # On the NeXT, cc -E runs the code through the compiler's parser,
5398 # not just through cpp. "Syntax error" is here to catch this case.
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h. */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
5406 Syntax error
5407_ACEOF
5408if ac_fn_c_try_cpp "$LINENO"; then :
5409
5410else
5411 # Broken: fails on valid input.
5412continue
5413fi
cristyda16f162011-02-19 23:52:17 +00005414rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005415
5416 # OK, works on sane cases. Now check whether nonexistent headers
5417 # can be detected and how.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h. */
5420#include <ac_nonexistent.h>
5421_ACEOF
5422if ac_fn_c_try_cpp "$LINENO"; then :
5423 # Broken: success on invalid input.
5424continue
5425else
5426 # Passes both tests.
5427ac_preproc_ok=:
5428break
5429fi
cristyda16f162011-02-19 23:52:17 +00005430rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005431
5432done
5433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005434rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005435if $ac_preproc_ok; then :
5436
5437else
5438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5441See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005442fi
5443
5444ac_ext=c
5445ac_cpp='$CPP $CPPFLAGS'
5446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5452$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005453if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005454 $as_echo_n "(cached) " >&6
5455else
5456 if test -z "$GREP"; then
5457 ac_path_GREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_prog in grep ggrep; do
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005467 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005468# Check for GNU ac_path_GREP and select it if it is found.
5469 # Check for GNU $ac_path_GREP
5470case `"$ac_path_GREP" --version 2>&1` in
5471*GNU*)
5472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5473*)
5474 ac_count=0
5475 $as_echo_n 0123456789 >"conftest.in"
5476 while :
5477 do
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo 'GREP' >> "conftest.nl"
5482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_GREP="$ac_path_GREP"
5488 ac_path_GREP_max=$ac_count
5489 fi
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
5492 done
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494esac
5495
5496 $ac_path_GREP_found && break 3
5497 done
5498 done
5499 done
5500IFS=$as_save_IFS
5501 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005503 fi
5504else
5505 ac_cv_path_GREP=$GREP
5506fi
5507
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5510$as_echo "$ac_cv_path_GREP" >&6; }
5511 GREP="$ac_cv_path_GREP"
5512
5513
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5515$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005516if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005517 $as_echo_n "(cached) " >&6
5518else
5519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5520 then ac_cv_path_EGREP="$GREP -E"
5521 else
5522 if test -z "$EGREP"; then
5523 ac_path_EGREP_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_prog in egrep; do
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005533 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005534# Check for GNU ac_path_EGREP and select it if it is found.
5535 # Check for GNU $ac_path_EGREP
5536case `"$ac_path_EGREP" --version 2>&1` in
5537*GNU*)
5538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5539*)
5540 ac_count=0
5541 $as_echo_n 0123456789 >"conftest.in"
5542 while :
5543 do
5544 cat "conftest.in" "conftest.in" >"conftest.tmp"
5545 mv "conftest.tmp" "conftest.in"
5546 cp "conftest.in" "conftest.nl"
5547 $as_echo 'EGREP' >> "conftest.nl"
5548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550 as_fn_arith $ac_count + 1 && ac_count=$as_val
5551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5552 # Best one so far, save it but keep looking for a better one
5553 ac_cv_path_EGREP="$ac_path_EGREP"
5554 ac_path_EGREP_max=$ac_count
5555 fi
5556 # 10*(2^10) chars as input seems more than enough
5557 test $ac_count -gt 10 && break
5558 done
5559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560esac
5561
5562 $ac_path_EGREP_found && break 3
5563 done
5564 done
5565 done
5566IFS=$as_save_IFS
5567 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005569 fi
5570else
5571 ac_cv_path_EGREP=$EGREP
5572fi
5573
5574 fi
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5577$as_echo "$ac_cv_path_EGREP" >&6; }
5578 EGREP="$ac_cv_path_EGREP"
5579
5580
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5582$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005583if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005584 $as_echo_n "(cached) " >&6
5585else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h. */
5588#include <stdlib.h>
5589#include <stdarg.h>
5590#include <string.h>
5591#include <float.h>
5592
5593int
5594main ()
5595{
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_header_stdc=yes
5603else
5604 ac_cv_header_stdc=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607
5608if test $ac_cv_header_stdc = yes; then
5609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612#include <string.h>
5613
5614_ACEOF
5615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616 $EGREP "memchr" >/dev/null 2>&1; then :
5617
5618else
5619 ac_cv_header_stdc=no
5620fi
5621rm -f conftest*
5622
5623fi
5624
5625if test $ac_cv_header_stdc = yes; then
5626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h. */
5629#include <stdlib.h>
5630
5631_ACEOF
5632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5633 $EGREP "free" >/dev/null 2>&1; then :
5634
5635else
5636 ac_cv_header_stdc=no
5637fi
5638rm -f conftest*
5639
5640fi
5641
5642if test $ac_cv_header_stdc = yes; then
5643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5644 if test "$cross_compiling" = yes; then :
5645 :
5646else
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h. */
5649#include <ctype.h>
5650#include <stdlib.h>
5651#if ((' ' & 0x0FF) == 0x020)
5652# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5653# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5654#else
5655# define ISLOWER(c) \
5656 (('a' <= (c) && (c) <= 'i') \
5657 || ('j' <= (c) && (c) <= 'r') \
5658 || ('s' <= (c) && (c) <= 'z'))
5659# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5660#endif
5661
5662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5663int
5664main ()
5665{
5666 int i;
5667 for (i = 0; i < 256; i++)
5668 if (XOR (islower (i), ISLOWER (i))
5669 || toupper (i) != TOUPPER (i))
5670 return 2;
5671 return 0;
5672}
5673_ACEOF
5674if ac_fn_c_try_run "$LINENO"; then :
5675
5676else
5677 ac_cv_header_stdc=no
5678fi
5679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5680 conftest.$ac_objext conftest.beam conftest.$ac_ext
5681fi
5682
5683fi
5684fi
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5686$as_echo "$ac_cv_header_stdc" >&6; }
5687if test $ac_cv_header_stdc = yes; then
5688
5689$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5690
5691fi
5692
5693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5695 inttypes.h stdint.h unistd.h
5696do :
5697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5699"
cristy98dddb52010-11-04 00:30:15 +00005700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005701 cat >>confdefs.h <<_ACEOF
5702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5703_ACEOF
5704
5705fi
5706
5707done
5708
5709
5710
5711 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 +00005712if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005713 MINIX=yes
5714else
5715 MINIX=
5716fi
5717
5718
5719 if test "$MINIX" = yes; then
5720
5721$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5722
5723
5724$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5725
5726
5727$as_echo "#define _MINIX 1" >>confdefs.h
5728
5729 fi
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5733$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005734if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739
cristy14fefe52012-05-21 00:59:18 +00005740# define __EXTENSIONS__ 1
5741 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005742int
5743main ()
5744{
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then :
5751 ac_cv_safe_to_define___extensions__=yes
5752else
5753 ac_cv_safe_to_define___extensions__=no
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5758$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5759 test $ac_cv_safe_to_define___extensions__ = yes &&
5760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5761
5762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5763
5764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5765
5766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5767
5768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5769
5770
5771
5772# Check for programs
5773ac_ext=c
5774ac_cpp='$CPP $CPPFLAGS'
5775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5780set dummy ${ac_tool_prefix}gcc; ac_word=$2
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005783if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005784 $as_echo_n "(cached) " >&6
5785else
5786 if test -n "$CC"; then
5787 ac_cv_prog_CC="$CC" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800done
5801 done
5802IFS=$as_save_IFS
5803
5804fi
5805fi
5806CC=$ac_cv_prog_CC
5807if test -n "$CC"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5809$as_echo "$CC" >&6; }
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816fi
5817if test -z "$ac_cv_prog_CC"; then
5818 ac_ct_CC=$CC
5819 # Extract the first word of "gcc", so it can be a program name with args.
5820set dummy gcc; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005823if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005824 $as_echo_n "(cached) " >&6
5825else
5826 if test -n "$ac_ct_CC"; then
5827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005836 ac_cv_prog_ac_ct_CC="gcc"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841 done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_CC=$ac_cv_prog_ac_ct_CC
5847if test -n "$ac_ct_CC"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5849$as_echo "$ac_ct_CC" >&6; }
5850else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855 if test "x$ac_ct_CC" = x; then
5856 CC=""
5857 else
5858 case $cross_compiling:$ac_tool_warned in
5859yes:)
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862ac_tool_warned=yes ;;
5863esac
5864 CC=$ac_ct_CC
5865 fi
5866else
5867 CC="$ac_cv_prog_CC"
5868fi
5869
5870if test -z "$CC"; then
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5873set dummy ${ac_tool_prefix}cc; ac_word=$2
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005876if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005877 $as_echo_n "(cached) " >&6
5878else
5879 if test -n "$CC"; then
5880 ac_cv_prog_CC="$CC" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005889 ac_cv_prog_CC="${ac_tool_prefix}cc"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893done
5894 done
5895IFS=$as_save_IFS
5896
5897fi
5898fi
5899CC=$ac_cv_prog_CC
5900if test -n "$CC"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5902$as_echo "$CC" >&6; }
5903else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906fi
5907
5908
5909 fi
5910fi
5911if test -z "$CC"; then
5912 # Extract the first word of "cc", so it can be a program name with args.
5913set dummy cc; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005916if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005917 $as_echo_n "(cached) " >&6
5918else
5919 if test -n "$CC"; then
5920 ac_cv_prog_CC="$CC" # Let the user override the test.
5921else
5922 ac_prog_rejected=no
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5931 ac_prog_rejected=yes
5932 continue
5933 fi
5934 ac_cv_prog_CC="cc"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939 done
5940IFS=$as_save_IFS
5941
5942if test $ac_prog_rejected = yes; then
5943 # We found a bogon in the path, so make sure we never use it.
5944 set dummy $ac_cv_prog_CC
5945 shift
5946 if test $# != 0; then
5947 # We chose a different compiler from the bogus one.
5948 # However, it has the same basename, so the bogon will be chosen
5949 # first if we set CC to just the basename; use the full file name.
5950 shift
5951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5952 fi
5953fi
5954fi
5955fi
5956CC=$ac_cv_prog_CC
5957if test -n "$CC"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5959$as_echo "$CC" >&6; }
5960else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965
5966fi
5967if test -z "$CC"; then
5968 if test -n "$ac_tool_prefix"; then
5969 for ac_prog in cl.exe
5970 do
5971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005975if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005976 $as_echo_n "(cached) " >&6
5977else
5978 if test -n "$CC"; then
5979 ac_cv_prog_CC="$CC" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993 done
5994IFS=$as_save_IFS
5995
5996fi
5997fi
5998CC=$ac_cv_prog_CC
5999if test -n "$CC"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6001$as_echo "$CC" >&6; }
6002else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004$as_echo "no" >&6; }
6005fi
6006
6007
6008 test -n "$CC" && break
6009 done
6010fi
6011if test -z "$CC"; then
6012 ac_ct_CC=$CC
6013 for ac_prog in cl.exe
6014do
6015 # Extract the first word of "$ac_prog", so it can be a program name with args.
6016set dummy $ac_prog; ac_word=$2
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006019if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006020 $as_echo_n "(cached) " >&6
6021else
6022 if test -n "$ac_ct_CC"; then
6023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006032 ac_cv_prog_ac_ct_CC="$ac_prog"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037 done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042ac_ct_CC=$ac_cv_prog_ac_ct_CC
6043if test -n "$ac_ct_CC"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6045$as_echo "$ac_ct_CC" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049fi
6050
6051
6052 test -n "$ac_ct_CC" && break
6053done
6054
6055 if test "x$ac_ct_CC" = x; then
6056 CC=""
6057 else
6058 case $cross_compiling:$ac_tool_warned in
6059yes:)
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064 CC=$ac_ct_CC
6065 fi
6066fi
6067
6068fi
6069
6070
6071test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006073as_fn_error $? "no acceptable C compiler found in \$PATH
6074See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006075
6076# Provide some information about the compiler.
6077$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6078set X $ac_compile
6079ac_compiler=$2
6080for ac_option in --version -v -V -qversion; do
6081 { { ac_try="$ac_compiler $ac_option >&5"
6082case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
6086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6087$as_echo "$ac_try_echo"; } >&5
6088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6089 ac_status=$?
6090 if test -s conftest.err; then
6091 sed '10a\
6092... rest of stderr output deleted ...
6093 10q' conftest.err >conftest.er1
6094 cat conftest.er1 >&5
6095 fi
6096 rm -f conftest.er1 conftest.err
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6098 test $ac_status = 0; }
6099done
6100
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6102$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006103if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006104 $as_echo_n "(cached) " >&6
6105else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h. */
6108
6109int
6110main ()
6111{
6112#ifndef __GNUC__
6113 choke me
6114#endif
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121 ac_compiler_gnu=yes
6122else
6123 ac_compiler_gnu=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126ac_cv_c_compiler_gnu=$ac_compiler_gnu
6127
6128fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6130$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6131if test $ac_compiler_gnu = yes; then
6132 GCC=yes
6133else
6134 GCC=
6135fi
6136ac_test_CFLAGS=${CFLAGS+set}
6137ac_save_CFLAGS=$CFLAGS
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6139$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006140if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006141 $as_echo_n "(cached) " >&6
6142else
6143 ac_save_c_werror_flag=$ac_c_werror_flag
6144 ac_c_werror_flag=yes
6145 ac_cv_prog_cc_g=no
6146 CFLAGS="-g"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h. */
6149
6150int
6151main ()
6152{
6153
6154 ;
6155 return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159 ac_cv_prog_cc_g=yes
6160else
6161 CFLAGS=""
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h. */
6164
6165int
6166main ()
6167{
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_compile "$LINENO"; then :
6174
6175else
6176 ac_c_werror_flag=$ac_save_c_werror_flag
6177 CFLAGS="-g"
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */
6180
6181int
6182main ()
6183{
6184
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190 ac_cv_prog_cc_g=yes
6191fi
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 ac_c_werror_flag=$ac_save_c_werror_flag
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6200$as_echo "$ac_cv_prog_cc_g" >&6; }
6201if test "$ac_test_CFLAGS" = set; then
6202 CFLAGS=$ac_save_CFLAGS
6203elif test $ac_cv_prog_cc_g = yes; then
6204 if test "$GCC" = yes; then
6205 CFLAGS="-g -O2"
6206 else
6207 CFLAGS="-g"
6208 fi
6209else
6210 if test "$GCC" = yes; then
6211 CFLAGS="-O2"
6212 else
6213 CFLAGS=
6214 fi
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6217$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006218if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006219 $as_echo_n "(cached) " >&6
6220else
6221 ac_cv_prog_cc_c89=no
6222ac_save_CC=$CC
6223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h. */
6225#include <stdarg.h>
6226#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006227struct stat;
cristya0b81c32010-01-22 02:54:33 +00006228/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6229struct buf { int x; };
6230FILE * (*rcsopen) (struct buf *, struct stat *, int);
6231static char *e (p, i)
6232 char **p;
6233 int i;
6234{
6235 return p[i];
6236}
6237static char *f (char * (*g) (char **, int), char **p, ...)
6238{
6239 char *s;
6240 va_list v;
6241 va_start (v,p);
6242 s = g (p, va_arg (v,int));
6243 va_end (v);
6244 return s;
6245}
6246
6247/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6248 function prototypes and stuff, but not '\xHH' hex character constants.
6249 These don't provoke an error unfortunately, instead are silently treated
6250 as 'x'. The following induces an error, until -std is added to get
6251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6252 array size at least. It's necessary to write '\x00'==0 to get something
6253 that's true only with -std. */
6254int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6255
6256/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6257 inside strings and character constants. */
6258#define FOO(x) 'x'
6259int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6260
6261int test (int i, double x);
6262struct s1 {int (*f) (int a);};
6263struct s2 {int (*f) (double a);};
6264int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6265int argc;
6266char **argv;
6267int
6268main ()
6269{
6270return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6277do
6278 CC="$ac_save_CC $ac_arg"
6279 if ac_fn_c_try_compile "$LINENO"; then :
6280 ac_cv_prog_cc_c89=$ac_arg
6281fi
6282rm -f core conftest.err conftest.$ac_objext
6283 test "x$ac_cv_prog_cc_c89" != "xno" && break
6284done
6285rm -f conftest.$ac_ext
6286CC=$ac_save_CC
6287
6288fi
6289# AC_CACHE_VAL
6290case "x$ac_cv_prog_cc_c89" in
6291 x)
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6293$as_echo "none needed" >&6; } ;;
6294 xno)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6296$as_echo "unsupported" >&6; } ;;
6297 *)
6298 CC="$CC $ac_cv_prog_cc_c89"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6300$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6301esac
6302if test "x$ac_cv_prog_cc_c89" != xno; then :
6303
6304fi
6305
6306ac_ext=c
6307ac_cpp='$CPP $CPPFLAGS'
6308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310ac_compiler_gnu=$ac_cv_c_compiler_gnu
6311
cristy73bd4a52010-10-05 11:24:23 +00006312depcc="$CC" am_compiler_list=
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6315$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006316if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006317 $as_echo_n "(cached) " >&6
6318else
6319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6320 # We make a subdir and do the tests there. Otherwise we can end up
6321 # making bogus files that we don't know about and never remove. For
6322 # instance it was reported that on HP-UX the gcc test will end up
6323 # making a dummy file named `D' -- because `-MD' means `put the output
6324 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006325 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006326 mkdir conftest.dir
6327 # Copy depcomp to subdir because otherwise we won't find it if we're
6328 # using a relative directory.
6329 cp "$am_depcomp" conftest.dir
6330 cd conftest.dir
6331 # We will build objects and dependencies in a subdirectory because
6332 # it helps to detect inapplicable dependency modes. For instance
6333 # both Tru64's cc and ICC support -MD to output dependencies as a
6334 # side effect of compilation, but ICC will put the dependencies in
6335 # the current directory while Tru64 will put them in the object
6336 # directory.
6337 mkdir sub
6338
6339 am_cv_CC_dependencies_compiler_type=none
6340 if test "$am_compiler_list" = ""; then
6341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6342 fi
6343 am__universal=false
6344 case " $depcc " in #(
6345 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6346 esac
6347
6348 for depmode in $am_compiler_list; do
6349 # Setup a source with many dependencies, because some compilers
6350 # like to wrap large dependency lists on column 80 (with \), and
6351 # we should not choose a depcomp mode which is confused by this.
6352 #
6353 # We need to recreate these files for each test, as the compiler may
6354 # overwrite some of them when testing with obscure command lines.
6355 # This happens at least with the AIX C compiler.
6356 : > sub/conftest.c
6357 for i in 1 2 3 4 5 6; do
6358 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6359 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6360 # Solaris 8's {/usr,}/bin/sh.
6361 touch sub/conftst$i.h
6362 done
6363 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6364
6365 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6366 # mode. It turns out that the SunPro C++ compiler does not properly
6367 # handle `-M -o', and we need to detect this. Also, some Intel
6368 # versions had trouble with output in subdirs
6369 am__obj=sub/conftest.${OBJEXT-o}
6370 am__minus_obj="-o $am__obj"
6371 case $depmode in
6372 gcc)
6373 # This depmode causes a compiler race in universal mode.
6374 test "$am__universal" = false || continue
6375 ;;
6376 nosideeffect)
6377 # after this tag, mechanisms are not by side-effect, so they'll
6378 # only be used when explicitly requested
6379 if test "x$enable_dependency_tracking" = xyes; then
6380 continue
6381 else
6382 break
6383 fi
6384 ;;
cristy7247bba2012-02-05 16:37:27 +00006385 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006386 # This compiler won't grok `-c -o', but also, the minuso test has
6387 # not run yet. These depmodes are late enough in the game, and
6388 # so weak that their functioning should not be impacted.
6389 am__obj=conftest.${OBJEXT-o}
6390 am__minus_obj=
6391 ;;
6392 none) break ;;
6393 esac
6394 if depmode=$depmode \
6395 source=sub/conftest.c object=$am__obj \
6396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6397 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6398 >/dev/null 2>conftest.err &&
6399 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6401 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6403 # icc doesn't choke on unknown options, it will just issue warnings
6404 # or remarks (even with -Werror). So we grep stderr for any message
6405 # that says an option was ignored or not supported.
6406 # When given -MP, icc 7.0 and 7.1 complain thusly:
6407 # icc: Command line warning: ignoring option '-M'; no argument required
6408 # The diagnosis changed in icc 8.0:
6409 # icc: Command line remark: option '-MP' not supported
6410 if (grep 'ignoring option' conftest.err ||
6411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6412 am_cv_CC_dependencies_compiler_type=$depmode
6413 break
6414 fi
6415 fi
6416 done
6417
6418 cd ..
6419 rm -rf conftest.dir
6420else
6421 am_cv_CC_dependencies_compiler_type=none
6422fi
6423
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6426$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6427CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6428
6429 if
6430 test "x$enable_dependency_tracking" != xno \
6431 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6432 am__fastdepCC_TRUE=
6433 am__fastdepCC_FALSE='#'
6434else
6435 am__fastdepCC_TRUE='#'
6436 am__fastdepCC_FALSE=
6437fi
6438
6439
cristy95646052009-11-28 23:05:30 +00006440ac_ext=cpp
6441ac_cpp='$CXXCPP $CPPFLAGS'
6442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6445if test -z "$CXX"; then
6446 if test -n "$CCC"; then
6447 CXX=$CCC
6448 else
6449 if test -n "$ac_tool_prefix"; then
6450 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6451 do
6452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006456if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006457 $as_echo_n "(cached) " >&6
6458else
6459 if test -n "$CXX"; then
6460 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006469 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474 done
6475IFS=$as_save_IFS
6476
6477fi
6478fi
6479CXX=$ac_cv_prog_CXX
6480if test -n "$CXX"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6482$as_echo "$CXX" >&6; }
6483else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485$as_echo "no" >&6; }
6486fi
6487
6488
6489 test -n "$CXX" && break
6490 done
6491fi
6492if test -z "$CXX"; then
6493 ac_ct_CXX=$CXX
6494 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6495do
6496 # Extract the first word of "$ac_prog", so it can be a program name with args.
6497set dummy $ac_prog; ac_word=$2
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006500if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006501 $as_echo_n "(cached) " >&6
6502else
6503 if test -n "$ac_ct_CXX"; then
6504 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006513 ac_cv_prog_ac_ct_CXX="$ac_prog"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518 done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6524if test -n "$ac_ct_CXX"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6526$as_echo "$ac_ct_CXX" >&6; }
6527else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529$as_echo "no" >&6; }
6530fi
6531
6532
6533 test -n "$ac_ct_CXX" && break
6534done
6535
6536 if test "x$ac_ct_CXX" = x; then
6537 CXX="g++"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540yes:)
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543ac_tool_warned=yes ;;
6544esac
6545 CXX=$ac_ct_CXX
6546 fi
6547fi
6548
6549 fi
6550fi
6551# Provide some information about the compiler.
6552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6553set X $ac_compile
6554ac_compiler=$2
6555for ac_option in --version -v -V -qversion; do
6556 { { ac_try="$ac_compiler $ac_option >&5"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
6561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6562$as_echo "$ac_try_echo"; } >&5
6563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6564 ac_status=$?
6565 if test -s conftest.err; then
6566 sed '10a\
6567... rest of stderr output deleted ...
6568 10q' conftest.err >conftest.er1
6569 cat conftest.er1 >&5
6570 fi
6571 rm -f conftest.er1 conftest.err
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574done
6575
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6577$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006578if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006579 $as_echo_n "(cached) " >&6
6580else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h. */
6583
6584int
6585main ()
6586{
6587#ifndef __GNUC__
6588 choke me
6589#endif
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595if ac_fn_cxx_try_compile "$LINENO"; then :
6596 ac_compiler_gnu=yes
6597else
6598 ac_compiler_gnu=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6602
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6605$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6606if test $ac_compiler_gnu = yes; then
6607 GXX=yes
6608else
6609 GXX=
6610fi
6611ac_test_CXXFLAGS=${CXXFLAGS+set}
6612ac_save_CXXFLAGS=$CXXFLAGS
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6614$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006615if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006616 $as_echo_n "(cached) " >&6
6617else
6618 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6619 ac_cxx_werror_flag=yes
6620 ac_cv_prog_cxx_g=no
6621 CXXFLAGS="-g"
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625int
6626main ()
6627{
6628
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633if ac_fn_cxx_try_compile "$LINENO"; then :
6634 ac_cv_prog_cxx_g=yes
6635else
6636 CXXFLAGS=""
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648if ac_fn_cxx_try_compile "$LINENO"; then :
6649
6650else
6651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6652 CXXFLAGS="-g"
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h. */
6655
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664if ac_fn_cxx_try_compile "$LINENO"; then :
6665 ac_cv_prog_cxx_g=yes
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6675$as_echo "$ac_cv_prog_cxx_g" >&6; }
6676if test "$ac_test_CXXFLAGS" = set; then
6677 CXXFLAGS=$ac_save_CXXFLAGS
6678elif test $ac_cv_prog_cxx_g = yes; then
6679 if test "$GXX" = yes; then
6680 CXXFLAGS="-g -O2"
6681 else
6682 CXXFLAGS="-g"
6683 fi
6684else
6685 if test "$GXX" = yes; then
6686 CXXFLAGS="-O2"
6687 else
6688 CXXFLAGS=
6689 fi
6690fi
6691ac_ext=c
6692ac_cpp='$CPP $CPPFLAGS'
6693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695ac_compiler_gnu=$ac_cv_c_compiler_gnu
6696
cristy73bd4a52010-10-05 11:24:23 +00006697depcc="$CXX" am_compiler_list=
6698
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6700$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006701if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006702 $as_echo_n "(cached) " >&6
6703else
6704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6705 # We make a subdir and do the tests there. Otherwise we can end up
6706 # making bogus files that we don't know about and never remove. For
6707 # instance it was reported that on HP-UX the gcc test will end up
6708 # making a dummy file named `D' -- because `-MD' means `put the output
6709 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006710 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006711 mkdir conftest.dir
6712 # Copy depcomp to subdir because otherwise we won't find it if we're
6713 # using a relative directory.
6714 cp "$am_depcomp" conftest.dir
6715 cd conftest.dir
6716 # We will build objects and dependencies in a subdirectory because
6717 # it helps to detect inapplicable dependency modes. For instance
6718 # both Tru64's cc and ICC support -MD to output dependencies as a
6719 # side effect of compilation, but ICC will put the dependencies in
6720 # the current directory while Tru64 will put them in the object
6721 # directory.
6722 mkdir sub
6723
6724 am_cv_CXX_dependencies_compiler_type=none
6725 if test "$am_compiler_list" = ""; then
6726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6727 fi
6728 am__universal=false
6729 case " $depcc " in #(
6730 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6731 esac
6732
6733 for depmode in $am_compiler_list; do
6734 # Setup a source with many dependencies, because some compilers
6735 # like to wrap large dependency lists on column 80 (with \), and
6736 # we should not choose a depcomp mode which is confused by this.
6737 #
6738 # We need to recreate these files for each test, as the compiler may
6739 # overwrite some of them when testing with obscure command lines.
6740 # This happens at least with the AIX C compiler.
6741 : > sub/conftest.c
6742 for i in 1 2 3 4 5 6; do
6743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6745 # Solaris 8's {/usr,}/bin/sh.
6746 touch sub/conftst$i.h
6747 done
6748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6749
6750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6751 # mode. It turns out that the SunPro C++ compiler does not properly
6752 # handle `-M -o', and we need to detect this. Also, some Intel
6753 # versions had trouble with output in subdirs
6754 am__obj=sub/conftest.${OBJEXT-o}
6755 am__minus_obj="-o $am__obj"
6756 case $depmode in
6757 gcc)
6758 # This depmode causes a compiler race in universal mode.
6759 test "$am__universal" = false || continue
6760 ;;
6761 nosideeffect)
6762 # after this tag, mechanisms are not by side-effect, so they'll
6763 # only be used when explicitly requested
6764 if test "x$enable_dependency_tracking" = xyes; then
6765 continue
6766 else
6767 break
6768 fi
6769 ;;
cristy7247bba2012-02-05 16:37:27 +00006770 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006771 # This compiler won't grok `-c -o', but also, the minuso test has
6772 # not run yet. These depmodes are late enough in the game, and
6773 # so weak that their functioning should not be impacted.
6774 am__obj=conftest.${OBJEXT-o}
6775 am__minus_obj=
6776 ;;
6777 none) break ;;
6778 esac
6779 if depmode=$depmode \
6780 source=sub/conftest.c object=$am__obj \
6781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6783 >/dev/null 2>conftest.err &&
6784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6788 # icc doesn't choke on unknown options, it will just issue warnings
6789 # or remarks (even with -Werror). So we grep stderr for any message
6790 # that says an option was ignored or not supported.
6791 # When given -MP, icc 7.0 and 7.1 complain thusly:
6792 # icc: Command line warning: ignoring option '-M'; no argument required
6793 # The diagnosis changed in icc 8.0:
6794 # icc: Command line remark: option '-MP' not supported
6795 if (grep 'ignoring option' conftest.err ||
6796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6797 am_cv_CXX_dependencies_compiler_type=$depmode
6798 break
6799 fi
6800 fi
6801 done
6802
6803 cd ..
6804 rm -rf conftest.dir
6805else
6806 am_cv_CXX_dependencies_compiler_type=none
6807fi
6808
6809fi
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6811$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6812CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6813
6814 if
6815 test "x$enable_dependency_tracking" != xno \
6816 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6817 am__fastdepCXX_TRUE=
6818 am__fastdepCXX_FALSE='#'
6819else
6820 am__fastdepCXX_TRUE='#'
6821 am__fastdepCXX_FALSE=
6822fi
6823
6824
cristy8b350f62009-11-15 23:12:43 +00006825 case $ac_cv_prog_cc_stdc in #(
6826 no) :
6827 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6828 *) :
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006830$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006831if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006832 $as_echo_n "(cached) " >&6
6833else
6834 ac_cv_prog_cc_c99=no
6835ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006837/* end confdefs.h. */
6838#include <stdarg.h>
6839#include <stdbool.h>
6840#include <stdlib.h>
6841#include <wchar.h>
6842#include <stdio.h>
6843
6844// Check varargs macros. These examples are taken from C99 6.10.3.5.
6845#define debug(...) fprintf (stderr, __VA_ARGS__)
6846#define showlist(...) puts (#__VA_ARGS__)
6847#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6848static void
6849test_varargs_macros (void)
6850{
6851 int x = 1234;
6852 int y = 5678;
6853 debug ("Flag");
6854 debug ("X = %d\n", x);
6855 showlist (The first, second, and third items.);
6856 report (x>y, "x is %d but y is %d", x, y);
6857}
6858
6859// Check long long types.
6860#define BIG64 18446744073709551615ull
6861#define BIG32 4294967295ul
6862#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6863#if !BIG_OK
6864 your preprocessor is broken;
6865#endif
6866#if BIG_OK
6867#else
6868 your preprocessor is broken;
6869#endif
6870static long long int bignum = -9223372036854775807LL;
6871static unsigned long long int ubignum = BIG64;
6872
6873struct incomplete_array
6874{
6875 int datasize;
6876 double data[];
6877};
6878
6879struct named_init {
6880 int number;
6881 const wchar_t *name;
6882 double average;
6883};
6884
6885typedef const char *ccp;
6886
6887static inline int
6888test_restrict (ccp restrict text)
6889{
6890 // See if C++-style comments work.
6891 // Iterate through items via the restricted pointer.
6892 // Also check for declarations in for loops.
6893 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6894 continue;
6895 return 0;
6896}
6897
6898// Check varargs and va_copy.
6899static void
6900test_varargs (const char *format, ...)
6901{
6902 va_list args;
6903 va_start (args, format);
6904 va_list args_copy;
6905 va_copy (args_copy, args);
6906
6907 const char *str;
6908 int number;
6909 float fnumber;
6910
6911 while (*format)
6912 {
6913 switch (*format++)
6914 {
6915 case 's': // string
6916 str = va_arg (args_copy, const char *);
6917 break;
6918 case 'd': // int
6919 number = va_arg (args_copy, int);
6920 break;
6921 case 'f': // float
6922 fnumber = va_arg (args_copy, double);
6923 break;
6924 default:
6925 break;
6926 }
6927 }
6928 va_end (args_copy);
6929 va_end (args);
6930}
6931
6932int
6933main ()
6934{
6935
6936 // Check bool.
6937 _Bool success = false;
6938
6939 // Check restrict.
6940 if (test_restrict ("String literal") == 0)
6941 success = true;
6942 char *restrict newvar = "Another string";
6943
6944 // Check varargs.
6945 test_varargs ("s, d' f .", "string", 65, 34.234);
6946 test_varargs_macros ();
6947
6948 // Check flexible array members.
6949 struct incomplete_array *ia =
6950 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6951 ia->datasize = 10;
6952 for (int i = 0; i < ia->datasize; ++i)
6953 ia->data[i] = i * 1.234;
6954
6955 // Check named initializers.
6956 struct named_init ni = {
6957 .number = 34,
6958 .name = L"Test wide string",
6959 .average = 543.34343,
6960 };
6961
6962 ni.number = 58;
6963
6964 int dynamic_array[ni.number];
6965 dynamic_array[ni.number - 1] = 543;
6966
6967 // work around unused variable warnings
6968 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6969 || dynamic_array[ni.number - 1] != 543);
6970
6971 ;
6972 return 0;
6973}
6974_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006975for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006976do
6977 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006978 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006979 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006980fi
cristy3ed852e2009-09-05 21:47:34 +00006981rm -f core conftest.err conftest.$ac_objext
6982 test "x$ac_cv_prog_cc_c99" != "xno" && break
6983done
6984rm -f conftest.$ac_ext
6985CC=$ac_save_CC
6986
6987fi
6988# AC_CACHE_VAL
6989case "x$ac_cv_prog_cc_c99" in
6990 x)
cristy8b350f62009-11-15 23:12:43 +00006991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006992$as_echo "none needed" >&6; } ;;
6993 xno)
cristy8b350f62009-11-15 23:12:43 +00006994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006995$as_echo "unsupported" >&6; } ;;
6996 *)
6997 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006999$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7000esac
cristy8b350f62009-11-15 23:12:43 +00007001if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007002 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7003else
cristy8b350f62009-11-15 23:12:43 +00007004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007006if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007007 $as_echo_n "(cached) " >&6
7008else
7009 ac_cv_prog_cc_c89=no
7010ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007012/* end confdefs.h. */
7013#include <stdarg.h>
7014#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007015struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7017struct buf { int x; };
7018FILE * (*rcsopen) (struct buf *, struct stat *, int);
7019static char *e (p, i)
7020 char **p;
7021 int i;
7022{
7023 return p[i];
7024}
7025static char *f (char * (*g) (char **, int), char **p, ...)
7026{
7027 char *s;
7028 va_list v;
7029 va_start (v,p);
7030 s = g (p, va_arg (v,int));
7031 va_end (v);
7032 return s;
7033}
7034
7035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7036 function prototypes and stuff, but not '\xHH' hex character constants.
7037 These don't provoke an error unfortunately, instead are silently treated
7038 as 'x'. The following induces an error, until -std is added to get
7039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7040 array size at least. It's necessary to write '\x00'==0 to get something
7041 that's true only with -std. */
7042int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7043
7044/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7045 inside strings and character constants. */
7046#define FOO(x) 'x'
7047int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7048
7049int test (int i, double x);
7050struct s1 {int (*f) (int a);};
7051struct s2 {int (*f) (double a);};
7052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7053int argc;
7054char **argv;
7055int
7056main ()
7057{
7058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7059 ;
7060 return 0;
7061}
7062_ACEOF
7063for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7065do
7066 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007067 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007068 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007069fi
cristy3ed852e2009-09-05 21:47:34 +00007070rm -f core conftest.err conftest.$ac_objext
7071 test "x$ac_cv_prog_cc_c89" != "xno" && break
7072done
7073rm -f conftest.$ac_ext
7074CC=$ac_save_CC
7075
7076fi
7077# AC_CACHE_VAL
7078case "x$ac_cv_prog_cc_c89" in
7079 x)
cristy8b350f62009-11-15 23:12:43 +00007080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007081$as_echo "none needed" >&6; } ;;
7082 xno)
cristy8b350f62009-11-15 23:12:43 +00007083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007084$as_echo "unsupported" >&6; } ;;
7085 *)
7086 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007088$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7089esac
cristy8b350f62009-11-15 23:12:43 +00007090if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007091 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7092else
7093 ac_cv_prog_cc_stdc=no
7094fi
7095
cristy3ed852e2009-09-05 21:47:34 +00007096fi
cristy3ed852e2009-09-05 21:47:34 +00007097 ;;
7098esac
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007101 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007102 $as_echo_n "(cached) " >&6
7103fi
7104
cristy8b350f62009-11-15 23:12:43 +00007105 case $ac_cv_prog_cc_stdc in #(
7106 no) :
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7108$as_echo "unsupported" >&6; } ;; #(
7109 '') :
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7111$as_echo "none needed" >&6; } ;; #(
7112 *) :
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007114$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7115esac
7116
cristy3ed852e2009-09-05 21:47:34 +00007117ac_ext=c
7118ac_cpp='$CPP $CPPFLAGS'
7119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo_n "checking how to run the C preprocessor... " >&6; }
7124# On Suns, sometimes $CPP names a directory.
7125if test -n "$CPP" && test -d "$CPP"; then
7126 CPP=
7127fi
7128if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007129 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007130 $as_echo_n "(cached) " >&6
7131else
7132 # Double quotes because CPP needs to be expanded
7133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7134 do
7135 ac_preproc_ok=false
7136for ac_c_preproc_warn_flag in '' yes
7137do
7138 # Use a header file that comes with gcc, so configuring glibc
7139 # with a fresh cross-compiler works.
7140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141 # <limits.h> exists even on freestanding compilers.
7142 # On the NeXT, cc -E runs the code through the compiler's parser,
7143 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007145/* end confdefs.h. */
7146#ifdef __STDC__
7147# include <limits.h>
7148#else
7149# include <assert.h>
7150#endif
7151 Syntax error
7152_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007153if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007154
cristy8b350f62009-11-15 23:12:43 +00007155else
cristy3ed852e2009-09-05 21:47:34 +00007156 # Broken: fails on valid input.
7157continue
7158fi
cristyda16f162011-02-19 23:52:17 +00007159rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007160
7161 # OK, works on sane cases. Now check whether nonexistent headers
7162 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007164/* end confdefs.h. */
7165#include <ac_nonexistent.h>
7166_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007167if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007168 # Broken: success on invalid input.
7169continue
7170else
cristy3ed852e2009-09-05 21:47:34 +00007171 # Passes both tests.
7172ac_preproc_ok=:
7173break
7174fi
cristyda16f162011-02-19 23:52:17 +00007175rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176
7177done
7178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007179rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007180if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007181 break
7182fi
7183
7184 done
7185 ac_cv_prog_CPP=$CPP
7186
7187fi
7188 CPP=$ac_cv_prog_CPP
7189else
7190 ac_cv_prog_CPP=$CPP
7191fi
cristy8b350f62009-11-15 23:12:43 +00007192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007193$as_echo "$CPP" >&6; }
7194ac_preproc_ok=false
7195for ac_c_preproc_warn_flag in '' yes
7196do
7197 # Use a header file that comes with gcc, so configuring glibc
7198 # with a fresh cross-compiler works.
7199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200 # <limits.h> exists even on freestanding compilers.
7201 # On the NeXT, cc -E runs the code through the compiler's parser,
7202 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007204/* end confdefs.h. */
7205#ifdef __STDC__
7206# include <limits.h>
7207#else
7208# include <assert.h>
7209#endif
7210 Syntax error
7211_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007212if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007213
cristy8b350f62009-11-15 23:12:43 +00007214else
cristy3ed852e2009-09-05 21:47:34 +00007215 # Broken: fails on valid input.
7216continue
7217fi
cristyda16f162011-02-19 23:52:17 +00007218rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007219
7220 # OK, works on sane cases. Now check whether nonexistent headers
7221 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007223/* end confdefs.h. */
7224#include <ac_nonexistent.h>
7225_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007226if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007227 # Broken: success on invalid input.
7228continue
7229else
cristy3ed852e2009-09-05 21:47:34 +00007230 # Passes both tests.
7231ac_preproc_ok=:
7232break
7233fi
cristyda16f162011-02-19 23:52:17 +00007234rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007235
7236done
7237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007238rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007239if $ac_preproc_ok; then :
7240
cristy3ed852e2009-09-05 21:47:34 +00007241else
cristy8b350f62009-11-15 23:12:43 +00007242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007244as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007246fi
7247
7248ac_ext=c
7249ac_cpp='$CPP $CPPFLAGS'
7250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
cristy73bd4a52010-10-05 11:24:23 +00007254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7255$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007256if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007257 $as_echo_n "(cached) " >&6
7258else
7259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7260 for ac_i in 1 2 3 4 5 6 7; do
7261 ac_script="$ac_script$as_nl$ac_script"
7262 done
7263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7264 { ac_script=; unset ac_script;}
7265 if test -z "$SED"; then
7266 ac_path_SED_found=false
7267 # Loop through the user's path and test for each of PROGNAME-LIST
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_prog in sed gsed; do
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007276 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007277# Check for GNU ac_path_SED and select it if it is found.
7278 # Check for GNU $ac_path_SED
7279case `"$ac_path_SED" --version 2>&1` in
7280*GNU*)
7281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7282*)
7283 ac_count=0
7284 $as_echo_n 0123456789 >"conftest.in"
7285 while :
7286 do
7287 cat "conftest.in" "conftest.in" >"conftest.tmp"
7288 mv "conftest.tmp" "conftest.in"
7289 cp "conftest.in" "conftest.nl"
7290 $as_echo '' >> "conftest.nl"
7291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7293 as_fn_arith $ac_count + 1 && ac_count=$as_val
7294 if test $ac_count -gt ${ac_path_SED_max-0}; then
7295 # Best one so far, save it but keep looking for a better one
7296 ac_cv_path_SED="$ac_path_SED"
7297 ac_path_SED_max=$ac_count
7298 fi
7299 # 10*(2^10) chars as input seems more than enough
7300 test $ac_count -gt 10 && break
7301 done
7302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7303esac
7304
7305 $ac_path_SED_found && break 3
7306 done
7307 done
7308 done
7309IFS=$as_save_IFS
7310 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007312 fi
7313else
7314 ac_cv_path_SED=$SED
7315fi
7316
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7319$as_echo "$ac_cv_path_SED" >&6; }
7320 SED="$ac_cv_path_SED"
7321 rm -f conftest.sed
7322
7323test -z "$SED" && SED=sed
7324Xsed="$SED -e 1s/^X//"
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7337$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007338if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007339 $as_echo_n "(cached) " >&6
7340else
7341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7342 then ac_cv_path_FGREP="$GREP -F"
7343 else
7344 if test -z "$FGREP"; then
7345 ac_path_FGREP_found=false
7346 # Loop through the user's path and test for each of PROGNAME-LIST
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_prog in fgrep; do
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007355 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007356# Check for GNU ac_path_FGREP and select it if it is found.
7357 # Check for GNU $ac_path_FGREP
7358case `"$ac_path_FGREP" --version 2>&1` in
7359*GNU*)
7360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7361*)
7362 ac_count=0
7363 $as_echo_n 0123456789 >"conftest.in"
7364 while :
7365 do
7366 cat "conftest.in" "conftest.in" >"conftest.tmp"
7367 mv "conftest.tmp" "conftest.in"
7368 cp "conftest.in" "conftest.nl"
7369 $as_echo 'FGREP' >> "conftest.nl"
7370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7372 as_fn_arith $ac_count + 1 && ac_count=$as_val
7373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7374 # Best one so far, save it but keep looking for a better one
7375 ac_cv_path_FGREP="$ac_path_FGREP"
7376 ac_path_FGREP_max=$ac_count
7377 fi
7378 # 10*(2^10) chars as input seems more than enough
7379 test $ac_count -gt 10 && break
7380 done
7381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7382esac
7383
7384 $ac_path_FGREP_found && break 3
7385 done
7386 done
7387 done
7388IFS=$as_save_IFS
7389 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007391 fi
7392else
7393 ac_cv_path_FGREP=$FGREP
7394fi
7395
7396 fi
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7399$as_echo "$ac_cv_path_FGREP" >&6; }
7400 FGREP="$ac_cv_path_FGREP"
7401
7402
7403test -z "$GREP" && GREP=grep
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
cristy0c60a692010-11-04 01:09:47 +00007421ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7422ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7423ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7426$as_echo_n "checking how to print strings... " >&6; }
7427# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007428if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007429 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7430 ECHO='print -r --'
7431elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7432 ECHO='printf %s\n'
7433else
7434 # Use this function as a fallback that always works.
7435 func_fallback_echo ()
7436 {
7437 eval 'cat <<_LTECHO_EOF
7438$1
7439_LTECHO_EOF'
7440 }
7441 ECHO='func_fallback_echo'
7442fi
7443
7444# func_echo_all arg...
7445# Invoke $ECHO with all args, space-separated.
7446func_echo_all ()
7447{
7448 $ECHO ""
7449}
7450
7451case "$ECHO" in
7452 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7453$as_echo "printf" >&6; } ;;
7454 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7455$as_echo "print -r" >&6; } ;;
7456 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7457$as_echo "cat" >&6; } ;;
7458esac
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
cristy73bd4a52010-10-05 11:24:23 +00007473
7474
7475# Check whether --with-gnu-ld was given.
7476if test "${with_gnu_ld+set}" = set; then :
7477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7478else
7479 with_gnu_ld=no
7480fi
7481
7482ac_prog=ld
7483if test "$GCC" = yes; then
7484 # Check if gcc -print-prog-name=ld gives a path.
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7486$as_echo_n "checking for ld used by $CC... " >&6; }
7487 case $host in
7488 *-*-mingw*)
7489 # gcc leaves a trailing carriage return which upsets mingw
7490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7491 *)
7492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7493 esac
7494 case $ac_prog in
7495 # Accept absolute paths.
7496 [\\/]* | ?:[\\/]*)
7497 re_direlt='/[^/][^/]*/\.\./'
7498 # Canonicalize the pathname of ld
7499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7502 done
7503 test -z "$LD" && LD="$ac_prog"
7504 ;;
7505 "")
7506 # If it fails, then pretend we aren't using GCC.
7507 ac_prog=ld
7508 ;;
7509 *)
7510 # If it is relative, then search for the first ld in PATH.
7511 with_gnu_ld=unknown
7512 ;;
7513 esac
7514elif test "$with_gnu_ld" = yes; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7516$as_echo_n "checking for GNU ld... " >&6; }
7517else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7519$as_echo_n "checking for non-GNU ld... " >&6; }
7520fi
cristyda16f162011-02-19 23:52:17 +00007521if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007522 $as_echo_n "(cached) " >&6
7523else
7524 if test -z "$LD"; then
7525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7526 for ac_dir in $PATH; do
7527 IFS="$lt_save_ifs"
7528 test -z "$ac_dir" && ac_dir=.
7529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7530 lt_cv_path_LD="$ac_dir/$ac_prog"
7531 # Check to see if the program is GNU ld. I'd rather use --version,
7532 # but apparently some variants of GNU ld only accept -v.
7533 # Break only if it was the GNU/non-GNU ld that we prefer.
7534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7535 *GNU* | *'with BFD'*)
7536 test "$with_gnu_ld" != no && break
7537 ;;
7538 *)
7539 test "$with_gnu_ld" != yes && break
7540 ;;
7541 esac
7542 fi
7543 done
7544 IFS="$lt_save_ifs"
7545else
7546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7547fi
7548fi
7549
7550LD="$lt_cv_path_LD"
7551if test -n "$LD"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7553$as_echo "$LD" >&6; }
7554else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
cristy98dddb52010-11-04 00:30:15 +00007558test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007561if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007562 $as_echo_n "(cached) " >&6
7563else
7564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7565case `$LD -v 2>&1 </dev/null` in
7566*GNU* | *'with BFD'*)
7567 lt_cv_prog_gnu_ld=yes
7568 ;;
7569*)
7570 lt_cv_prog_gnu_ld=no
7571 ;;
7572esac
7573fi
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7575$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7576with_gnu_ld=$lt_cv_prog_gnu_ld
7577
7578
7579
7580
7581
7582
7583
7584
7585
cristy3ed852e2009-09-05 21:47:34 +00007586
cristy837d6dc2010-02-27 01:16:57 +00007587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7588$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007589if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007590 $as_echo_n "(cached) " >&6
7591else
7592 ac_cv_prog_cc_c99=no
7593ac_save_CC=$CC
7594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h. */
7596#include <stdarg.h>
7597#include <stdbool.h>
7598#include <stdlib.h>
7599#include <wchar.h>
7600#include <stdio.h>
7601
7602// Check varargs macros. These examples are taken from C99 6.10.3.5.
7603#define debug(...) fprintf (stderr, __VA_ARGS__)
7604#define showlist(...) puts (#__VA_ARGS__)
7605#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7606static void
7607test_varargs_macros (void)
7608{
7609 int x = 1234;
7610 int y = 5678;
7611 debug ("Flag");
7612 debug ("X = %d\n", x);
7613 showlist (The first, second, and third items.);
7614 report (x>y, "x is %d but y is %d", x, y);
7615}
7616
7617// Check long long types.
7618#define BIG64 18446744073709551615ull
7619#define BIG32 4294967295ul
7620#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7621#if !BIG_OK
7622 your preprocessor is broken;
7623#endif
7624#if BIG_OK
7625#else
7626 your preprocessor is broken;
7627#endif
7628static long long int bignum = -9223372036854775807LL;
7629static unsigned long long int ubignum = BIG64;
7630
7631struct incomplete_array
7632{
7633 int datasize;
7634 double data[];
7635};
7636
7637struct named_init {
7638 int number;
7639 const wchar_t *name;
7640 double average;
7641};
7642
7643typedef const char *ccp;
7644
7645static inline int
7646test_restrict (ccp restrict text)
7647{
7648 // See if C++-style comments work.
7649 // Iterate through items via the restricted pointer.
7650 // Also check for declarations in for loops.
7651 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7652 continue;
7653 return 0;
7654}
7655
7656// Check varargs and va_copy.
7657static void
7658test_varargs (const char *format, ...)
7659{
7660 va_list args;
7661 va_start (args, format);
7662 va_list args_copy;
7663 va_copy (args_copy, args);
7664
7665 const char *str;
7666 int number;
7667 float fnumber;
7668
7669 while (*format)
7670 {
7671 switch (*format++)
7672 {
7673 case 's': // string
7674 str = va_arg (args_copy, const char *);
7675 break;
7676 case 'd': // int
7677 number = va_arg (args_copy, int);
7678 break;
7679 case 'f': // float
7680 fnumber = va_arg (args_copy, double);
7681 break;
7682 default:
7683 break;
7684 }
7685 }
7686 va_end (args_copy);
7687 va_end (args);
7688}
7689
7690int
7691main ()
7692{
7693
7694 // Check bool.
7695 _Bool success = false;
7696
7697 // Check restrict.
7698 if (test_restrict ("String literal") == 0)
7699 success = true;
7700 char *restrict newvar = "Another string";
7701
7702 // Check varargs.
7703 test_varargs ("s, d' f .", "string", 65, 34.234);
7704 test_varargs_macros ();
7705
7706 // Check flexible array members.
7707 struct incomplete_array *ia =
7708 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7709 ia->datasize = 10;
7710 for (int i = 0; i < ia->datasize; ++i)
7711 ia->data[i] = i * 1.234;
7712
7713 // Check named initializers.
7714 struct named_init ni = {
7715 .number = 34,
7716 .name = L"Test wide string",
7717 .average = 543.34343,
7718 };
7719
7720 ni.number = 58;
7721
7722 int dynamic_array[ni.number];
7723 dynamic_array[ni.number - 1] = 543;
7724
7725 // work around unused variable warnings
7726 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7727 || dynamic_array[ni.number - 1] != 543);
7728
7729 ;
7730 return 0;
7731}
7732_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007733for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007734do
7735 CC="$ac_save_CC $ac_arg"
7736 if ac_fn_c_try_compile "$LINENO"; then :
7737 ac_cv_prog_cc_c99=$ac_arg
7738fi
7739rm -f core conftest.err conftest.$ac_objext
7740 test "x$ac_cv_prog_cc_c99" != "xno" && break
7741done
7742rm -f conftest.$ac_ext
7743CC=$ac_save_CC
7744
7745fi
7746# AC_CACHE_VAL
7747case "x$ac_cv_prog_cc_c99" in
7748 x)
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7750$as_echo "none needed" >&6; } ;;
7751 xno)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7753$as_echo "unsupported" >&6; } ;;
7754 *)
7755 CC="$CC $ac_cv_prog_cc_c99"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7757$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7758esac
7759if test "x$ac_cv_prog_cc_c99" != xno; then :
7760
7761fi
7762
7763
cristy73bd4a52010-10-05 11:24:23 +00007764if test "x$CC" != xcc; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7766$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7767else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7769$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7770fi
7771set dummy $CC; ac_cc=`$as_echo "$2" |
7772 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007773if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007774 $as_echo_n "(cached) " >&6
7775else
cristy73bd4a52010-10-05 11:24:23 +00007776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */
7778
7779int
7780main ()
7781{
7782
7783 ;
7784 return 0;
7785}
7786_ACEOF
7787# Make sure it works both with $CC and with simple cc.
7788# We do the test twice because some compilers refuse to overwrite an
7789# existing .o file with -o, though they will create one.
7790ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7791rm -f conftest2.*
7792if { { case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
7796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7797$as_echo "$ac_try_echo"; } >&5
7798 (eval "$ac_try") 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; } &&
7802 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805esac
7806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7807$as_echo "$ac_try_echo"; } >&5
7808 (eval "$ac_try") 2>&5
7809 ac_status=$?
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; };
7812then
7813 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7814 if test "x$CC" != xcc; then
7815 # Test first that cc exists at all.
7816 if { ac_try='cc -c conftest.$ac_ext >&5'
7817 { { case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820esac
7821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7822$as_echo "$ac_try_echo"; } >&5
7823 (eval "$ac_try") 2>&5
7824 ac_status=$?
7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7826 test $ac_status = 0; }; }; then
7827 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7828 rm -f conftest2.*
7829 if { { case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
7833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7834$as_echo "$ac_try_echo"; } >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; } &&
7839 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
7843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7844$as_echo "$ac_try_echo"; } >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; };
7849 then
7850 # cc works too.
7851 :
7852 else
7853 # cc exists but doesn't like -o.
7854 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7855 fi
7856 fi
7857 fi
7858else
7859 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7860fi
7861rm -f core conftest*
7862
7863fi
7864if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7866$as_echo "yes" >&6; }
7867else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870
7871$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7872
7873fi
7874
7875# FIXME: we rely on the cache variable name because
7876# there is no other way.
7877set dummy $CC
7878am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7879eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7880if test "$am_t" != yes; then
7881 # Losing compiler, so override with the script.
7882 # FIXME: It is wrong to rewrite CC.
7883 # But if we don't then we get into trouble of one sort or another.
7884 # A longer-term fix would be to have automake use am__CC in this case,
7885 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7886 CC="$am_aux_dir/compile $CC"
7887fi
7888
7889
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7891$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007892if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007893 $as_echo_n "(cached) " >&6
7894else
7895 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007896 ac_ext=c
7897ac_cpp='$CPP $CPPFLAGS'
7898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902 ac_save_CFLAGS="$CFLAGS"
7903for 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" #
7904do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907
7908int
7909main ()
7910{
cristy24fc1fe2010-10-23 21:13:01 +00007911
cristy73bd4a52010-10-05 11:24:23 +00007912 ;
7913 return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_compile "$LINENO"; then :
7917 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920done
7921 CFLAGS="$ac_save_CFLAGS"
7922 ac_ext=c
7923ac_cpp='$CPP $CPPFLAGS'
7924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926ac_compiler_gnu=$ac_cv_c_compiler_gnu
7927
7928
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7931$as_echo "$ac_cv_cflags_warn_all" >&6; }
7932case ".$ac_cv_cflags_warn_all" in
7933 .ok|.ok,*) ;;
7934 .|.no|.no,*)
7935 ;;
7936 *)
7937 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7938 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7939 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7940 ac_status=$?
7941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; }
7943 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7944 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }
7948 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7949 fi
7950 ;;
nicolas6237c462010-10-05 06:11:49 +00007951esac
cristy3ed852e2009-09-05 21:47:34 +00007952
cristya0b81c32010-01-22 02:54:33 +00007953
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7955$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7956set x ${MAKE-make}
7957ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007958if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007959 $as_echo_n "(cached) " >&6
7960else
7961 cat >conftest.make <<\_ACEOF
7962SHELL = /bin/sh
7963all:
7964 @echo '@@@%%%=$(MAKE)=@@@%%%'
7965_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007966# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007967case `${MAKE-make} -f conftest.make 2>/dev/null` in
7968 *@@@%%%=?*=@@@%%%*)
7969 eval ac_cv_prog_make_${ac_make}_set=yes;;
7970 *)
7971 eval ac_cv_prog_make_${ac_make}_set=no;;
7972esac
7973rm -f conftest.make
7974fi
7975if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977$as_echo "yes" >&6; }
7978 SET_MAKE=
7979else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982 SET_MAKE="MAKE=${MAKE-make}"
7983fi
7984
cristy8b350f62009-11-15 23:12:43 +00007985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007986$as_echo_n "checking whether ln -s works... " >&6; }
7987LN_S=$as_ln_s
7988if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007990$as_echo "yes" >&6; }
7991else
cristy8b350f62009-11-15 23:12:43 +00007992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007993$as_echo "no, using $LN_S" >&6; }
7994fi
7995
cristy73bd4a52010-10-05 11:24:23 +00007996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7997$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7998
7999# Check whether --with-dmalloc was given.
8000if test "${with_dmalloc+set}" = set; then :
8001 withval=$with_dmalloc; if test "$withval" = yes; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8003$as_echo "yes" >&6; }
8004
8005$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8006
8007 LIBS="$LIBS -ldmalloc"
8008 LDFLAGS="$LDFLAGS -g"
8009else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
8013else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8021$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008022if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008023 $as_echo_n "(cached) " >&6
8024else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008028 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008029 static void
8030 foo(void) {
8031 exit(1);
8032 }
8033
8034int
8035main ()
8036{
8037
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042if ac_fn_c_try_compile "$LINENO"; then :
8043 ax_cv___attribute__=yes
8044else
8045 ax_cv___attribute__=no
8046
8047fi
8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049
8050fi
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8052$as_echo "$ax_cv___attribute__" >&6; }
8053 if test "$ax_cv___attribute__" = "yes"; then
8054
8055$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8056
8057 fi
8058
8059
8060
cristy37110d62012-03-01 18:38:20 +00008061
8062
8063# Check whether --with-gcc-arch was given.
8064if test "${with_gcc_arch+set}" = set; then :
8065 withval=$with_gcc_arch; ax_gcc_arch=$withval
8066else
cristya32d1812012-03-02 19:24:21 +00008067 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008068fi
8069
8070
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8072$as_echo_n "checking for gcc architecture flag... " >&6; }
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8074$as_echo "" >&6; }
8075if ${ax_cv_gcc_archflag+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077else
8078
8079ax_cv_gcc_archflag="unknown"
8080
8081if test "$GCC" = yes; then
8082
8083if test "x$ax_gcc_arch" = xyes; then
8084ax_gcc_arch=""
8085if test "$cross_compiling" = no; then
8086case $host_cpu in
8087 i[3456]86*|x86_64*) # use cpuid codes
8088
8089ac_ext=c
8090ac_cpp='$CPP $CPPFLAGS'
8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8096$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8097if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099else
8100 if test "$cross_compiling" = yes; then :
8101 ax_cv_gcc_x86_cpuid_0=unknown
8102else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h. */
8105#include <stdio.h>
8106int
8107main ()
8108{
8109
8110 int op = 0, eax, ebx, ecx, edx;
8111 FILE *f;
8112 __asm__("cpuid"
8113 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8114 : "a" (op));
8115 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8116 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8117 fclose(f);
8118 return 0;
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_run "$LINENO"; then :
8125 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8126else
8127 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8128fi
8129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8130 conftest.$ac_objext conftest.beam conftest.$ac_ext
8131fi
8132
8133fi
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8135$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8136ac_ext=c
8137ac_cpp='$CPP $CPPFLAGS'
8138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141
8142
8143
8144ac_ext=c
8145ac_cpp='$CPP $CPPFLAGS'
8146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148ac_compiler_gnu=$ac_cv_c_compiler_gnu
8149
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8151$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8152if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154else
8155 if test "$cross_compiling" = yes; then :
8156 ax_cv_gcc_x86_cpuid_1=unknown
8157else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h. */
8160#include <stdio.h>
8161int
8162main ()
8163{
8164
8165 int op = 1, eax, ebx, ecx, edx;
8166 FILE *f;
8167 __asm__("cpuid"
8168 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8169 : "a" (op));
8170 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8171 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8172 fclose(f);
8173 return 0;
8174
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_run "$LINENO"; then :
8180 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8181else
8182 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8183fi
8184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8185 conftest.$ac_objext conftest.beam conftest.$ac_ext
8186fi
8187
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8190$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8191ac_ext=c
8192ac_cpp='$CPP $CPPFLAGS'
8193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196
8197
8198 case $ax_cv_gcc_x86_cpuid_0 in
8199 *:756e6547:*:*) # Intel
8200 case $ax_cv_gcc_x86_cpuid_1 in
8201 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8202 *5??:*:*:*) ax_gcc_arch=pentium ;;
8203 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8204 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8205 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8206 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8207 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8208 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8209 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8210 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8211 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8212 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8213 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8214 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8215 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8216 case $host_cpu in
8217 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8218 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8219 esac ;;
8220 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8221 esac ;;
8222 *:68747541:*:*) # AMD
8223 case $ax_cv_gcc_x86_cpuid_1 in
8224 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8225 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8226 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8227 *60?:*:*:*) ax_gcc_arch=k7 ;;
8228 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8229 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8230 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8231 *6[68a]?:*:*:*)
8232
8233ac_ext=c
8234ac_cpp='$CPP $CPPFLAGS'
8235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8240$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8241if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243else
8244 if test "$cross_compiling" = yes; then :
8245 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8246else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248/* end confdefs.h. */
8249#include <stdio.h>
8250int
8251main ()
8252{
8253
8254 int op = 0x80000006, eax, ebx, ecx, edx;
8255 FILE *f;
8256 __asm__("cpuid"
8257 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8258 : "a" (op));
8259 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8260 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8261 fclose(f);
8262 return 0;
8263
8264 ;
8265 return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_run "$LINENO"; then :
8269 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8270else
8271 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8272fi
8273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8274 conftest.$ac_objext conftest.beam conftest.$ac_ext
8275fi
8276
8277fi
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8279$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8280ac_ext=c
8281ac_cpp='$CPP $CPPFLAGS'
8282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286 # L2 cache size
8287 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8288 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8289 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8290 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8291 esac ;;
8292 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8293 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8294 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8295 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8296 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8297 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8298 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8299 esac ;;
8300 *:746e6543:*:*) # IDT
8301 case $ax_cv_gcc_x86_cpuid_1 in
8302 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8303 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8304 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8305 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8306 esac ;;
8307 esac
8308 if test x"$ax_gcc_arch" = x; then # fallback
8309 case $host_cpu in
8310 i586*) ax_gcc_arch=pentium ;;
8311 i686*) ax_gcc_arch=pentiumpro ;;
8312 esac
8313 fi
8314 ;;
8315
8316 sparc*)
8317 # Extract the first word of "prtdiag", so it can be a program name with args.
8318set dummy prtdiag; ac_word=$2
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8320$as_echo_n "checking for $ac_word... " >&6; }
8321if ${ac_cv_path_PRTDIAG+:} false; then :
8322 $as_echo_n "(cached) " >&6
8323else
8324 case $PRTDIAG in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8331for as_dir in $as_dummy
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008337 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341done
8342 done
8343IFS=$as_save_IFS
8344
8345 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8346 ;;
8347esac
8348fi
8349PRTDIAG=$ac_cv_path_PRTDIAG
8350if test -n "$PRTDIAG"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8352$as_echo "$PRTDIAG" >&6; }
8353else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
8356fi
8357
8358
8359 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`
8360 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8361 case $cputype in
8362 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8363 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8364 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8365 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8366 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8367 *cypress*) ax_gcc_arch=cypress ;;
8368 esac ;;
8369
8370 alphaev5) ax_gcc_arch=ev5 ;;
8371 alphaev56) ax_gcc_arch=ev56 ;;
8372 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8373 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8374 alphaev6) ax_gcc_arch=ev6 ;;
8375 alphaev67) ax_gcc_arch=ev67 ;;
8376 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8377 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8378 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8379 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8380
8381 powerpc*)
8382 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`
8383 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8384 case $cputype in
8385 *750*) ax_gcc_arch="750 G3" ;;
8386 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8387 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8388 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8389 *970*) ax_gcc_arch="970 G5 power4";;
8390 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8391 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8392 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8393 *) ax_gcc_arch=$cputype ;;
8394 esac
8395 ax_gcc_arch="$ax_gcc_arch powerpc"
8396 ;;
8397esac
8398fi # not cross-compiling
8399fi # guess arch
8400
8401if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8402for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008403 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008404 flags="-mtune=$arch"
8405 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8406 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8407 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8408 else
8409 flags="-march=$arch -mcpu=$arch -m$arch"
8410 fi
8411 for flag in $flags; do
8412 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8414$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8415if eval \${$as_CACHEVAR+:} false; then :
8416 $as_echo_n "(cached) " >&6
8417else
8418
8419 ax_check_save_flags=$CFLAGS
8420 CFLAGS="$CFLAGS $flag"
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422/* end confdefs.h. */
8423
8424int
8425main ()
8426{
8427
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"; then :
8433 eval "$as_CACHEVAR=yes"
8434else
8435 eval "$as_CACHEVAR=no"
8436fi
8437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 CFLAGS=$ax_check_save_flags
8439fi
8440eval ac_res=\$$as_CACHEVAR
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8442$as_echo "$ac_res" >&6; }
8443if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8444 ax_cv_gcc_archflag=$flag; break
8445else
8446 :
8447fi
8448
8449 done
8450 test "x$ax_cv_gcc_archflag" = xunknown || break
8451done
8452fi
8453
8454fi # $GCC=yes
8455
8456fi
8457
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8459$as_echo_n "checking for gcc architecture flag... " >&6; }
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8461$as_echo "$ax_cv_gcc_archflag" >&6; }
8462if test "x$ax_cv_gcc_archflag" = xunknown; then
8463 :
8464else
8465 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8466fi
8467
8468
8469
cristy73bd4a52010-10-05 11:24:23 +00008470if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8471 if test -n "$ac_tool_prefix"; then
8472 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8473set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008476if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008477 $as_echo_n "(cached) " >&6
8478else
8479 case $PKG_CONFIG in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8482 ;;
8483 *)
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495done
8496 done
8497IFS=$as_save_IFS
8498
8499 ;;
8500esac
8501fi
8502PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8503if test -n "$PKG_CONFIG"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8505$as_echo "$PKG_CONFIG" >&6; }
8506else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508$as_echo "no" >&6; }
8509fi
8510
8511
8512fi
8513if test -z "$ac_cv_path_PKG_CONFIG"; then
8514 ac_pt_PKG_CONFIG=$PKG_CONFIG
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516set dummy pkg-config; ac_word=$2
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008519if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008520 $as_echo_n "(cached) " >&6
8521else
8522 case $ac_pt_PKG_CONFIG in
8523 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8525 ;;
8526 *)
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528for as_dir in $PATH
8529do
8530 IFS=$as_save_IFS
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008534 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 break 2
8537 fi
8538done
8539 done
8540IFS=$as_save_IFS
8541
8542 ;;
8543esac
8544fi
8545ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8546if test -n "$ac_pt_PKG_CONFIG"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8548$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8549else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551$as_echo "no" >&6; }
8552fi
8553
8554 if test "x$ac_pt_PKG_CONFIG" = x; then
8555 PKG_CONFIG=""
8556 else
8557 case $cross_compiling:$ac_tool_warned in
8558yes:)
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8561ac_tool_warned=yes ;;
8562esac
8563 PKG_CONFIG=$ac_pt_PKG_CONFIG
8564 fi
8565else
8566 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8567fi
8568
8569fi
8570if test -n "$PKG_CONFIG"; then
8571 _pkg_min_version=0.9.0
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8573$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8574 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8576$as_echo "yes" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
8580 PKG_CONFIG=""
8581 fi
8582
8583fi
cristy3ed852e2009-09-05 21:47:34 +00008584
8585#
cristy3ed852e2009-09-05 21:47:34 +00008586# Enable run-time checking.
8587#
8588# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008589if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008590 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8591else
8592 enable_bounds_checking='no'
8593fi
8594
8595
8596if test "$enable_bounds_checking" = yes; then
8597
cristy8b350f62009-11-15 23:12:43 +00008598$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008599
8600fi
8601
8602#
8603# Tests for Windows
8604#
8605
8606
cristy73bd4a52010-10-05 11:24:23 +00008607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8608$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008609if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008610 $as_echo_n "(cached) " >&6
8611else
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h. */
8614
8615int
8616main ()
8617{
8618#ifndef _MSC_VER
8619 choke me
8620#endif
8621
8622 ;
8623 return 0;
8624}
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"; then :
8627 ax_compiler_ms=yes
8628else
8629 ax_compiler_ms=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632ax_cv_c_compiler_ms=$ax_compiler_ms
8633
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8636$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008637
8638GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008639native_win32_build='no'
8640cygwin_build='no'
8641case "${host_os}" in
8642 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008643 cygwin_build='yes'
8644 GDI32_LIBS='-lgdi32'
8645 ;;
8646 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008647 native_win32_build='yes'
8648 GDI32_LIBS='-lgdi32'
8649 ;;
8650esac
8651if test "${GDI32_LIBS}x" != 'x'; then
8652
cristy8b350f62009-11-15 23:12:43 +00008653$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008654
8655fi
8656
cristy73bd4a52010-10-05 11:24:23 +00008657 if test "${GDI32_LIBS}x" != 'x' ; then
8658 WINGDI32_DELEGATE_TRUE=
8659 WINGDI32_DELEGATE_FALSE='#'
8660else
8661 WINGDI32_DELEGATE_TRUE='#'
8662 WINGDI32_DELEGATE_FALSE=
8663fi
8664
8665 if test "${native_win32_build}" = 'yes' ; then
8666 WIN32_NATIVE_BUILD_TRUE=
8667 WIN32_NATIVE_BUILD_FALSE='#'
8668else
8669 WIN32_NATIVE_BUILD_TRUE='#'
8670 WIN32_NATIVE_BUILD_FALSE=
8671fi
8672
8673 if test "${cygwin_build}" = 'yes' ; then
8674 CYGWIN_BUILD_TRUE=
8675 CYGWIN_BUILD_FALSE='#'
8676else
8677 CYGWIN_BUILD_TRUE='#'
8678 CYGWIN_BUILD_FALSE=
8679fi
8680
8681 if test "x${CC}" = 'xcl.exe' ; then
8682 USING_CL_TRUE=
8683 USING_CL_FALSE='#'
8684else
8685 USING_CL_TRUE='#'
8686 USING_CL_FALSE=
8687fi
8688
cristy3ed852e2009-09-05 21:47:34 +00008689
8690WinPathScript="${srcdirfull}/winpath.sh"
8691
8692
8693#
8694# Compiler flags tweaks
8695#
8696if test "${GCC}" != "yes"; then
8697 case "${host}" in
8698 *-*-hpux* )
8699 # aCC: HP ANSI C++ B3910B A.03.34
8700 CFLAGS="${CFLAGS} -Wp,-H30000"
8701 if test -n "${CXXFLAGS}"; then
8702 CXXFLAGS='-AA'
8703 else
8704 CXXFLAGS="${CXXFLAGS} -AA"
8705 fi
8706 ;;
8707 *-dec-osf5.* )
8708 # Compaq alphaev68-dec-osf5.1 compiler
8709 if test -n "${CXXFLAGS}"; then
8710 CXXFLAGS='-std strict_ansi -noimplicit_include'
8711 else
8712 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8713 fi
8714 esac
8715fi
8716
8717# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008719$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008720if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008721 $as_echo_n "(cached) " >&6
8722else
8723
8724im_cv_ld_lazyload='none'
8725case "${host}" in
8726 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8727 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8728 im_cv_ld_lazyload='-Wl,-zlazyload'
8729 fi
8730 ;;
8731esac
8732
8733fi
cristy8b350f62009-11-15 23:12:43 +00008734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008735$as_echo "$im_cv_ld_lazyload" >&6; }
8736if test "${im_cv_ld_lazyload}" != 'none' ; then
8737 if test -z "${LDFLAGS}" ; then
8738 LDFLAGS="${im_cv_ld_lazyload}"
8739 else
8740 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8741 fi
8742fi
8743
8744case "$host" in
8745*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008746 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008747if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008748 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8749else
8750 build_osxuniversal=no
8751fi
8752
8753
8754 if test "${build_osxuniversal}" != no ; then
8755 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008756 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008757Please re-run configure with these options:
8758 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008759 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008760 fi
8761 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8762 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8763 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8764 fi
8765 ;;
8766esac
8767
cristy0151ae12011-10-28 16:32:29 +00008768#
8769# ARCH specific include directory
8770#
8771
cristy670aa3c2011-11-03 00:54:00 +00008772# Check whether --with-includearch-dir was given.
8773if test "${with_includearch_dir+set}" = set; then :
8774 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008775else
cristy670aa3c2011-11-03 00:54:00 +00008776 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008777fi
8778
8779
cristy670aa3c2011-11-03 00:54:00 +00008780eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008781
cristy0151ae12011-10-28 16:32:29 +00008782
8783#
8784# ARCH specific configuration directory
8785#
8786
cristy670aa3c2011-11-03 00:54:00 +00008787# Check whether --with-sharearch-dir was given.
8788if test "${with_sharearch_dir+set}" = set; then :
8789 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008790else
cristy408ebcd2011-11-14 01:36:57 +00008791 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008792fi
8793
8794
cristy670aa3c2011-11-03 00:54:00 +00008795eval "eval SHAREARCH_DIR=$sharearch_dir"
8796SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008797
cristy0151ae12011-10-28 16:32:29 +00008798
8799#
cristy3ed852e2009-09-05 21:47:34 +00008800# Enable support for threads
8801
8802# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008803if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008804 withval=$with_threads; with_threads=$withval
8805else
8806 with_threads='yes'
8807fi
8808
8809
8810have_threads=no
8811if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008812
8813
cristy73bd4a52010-10-05 11:24:23 +00008814ac_ext=c
8815ac_cpp='$CPP $CPPFLAGS'
8816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8818ac_compiler_gnu=$ac_cv_c_compiler_gnu
8819
8820ax_pthread_ok=no
8821
8822# We used to check for pthread.h first, but this fails if pthread.h
8823# requires special compiler flags (e.g. on True64 or Sequent).
8824# It gets checked for in the link test anyway.
8825
8826# First of all, check if the user has set any of the PTHREAD_LIBS,
8827# etcetera environment variables, and if threads linking works using
8828# them:
8829if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8830 save_CFLAGS="$CFLAGS"
8831 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8832 save_LIBS="$LIBS"
8833 LIBS="$PTHREAD_LIBS $LIBS"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8835$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h. */
8838
8839/* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8842#ifdef __cplusplus
8843extern "C"
8844#endif
8845char pthread_join ();
8846int
8847main ()
8848{
8849return pthread_join ();
8850 ;
8851 return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855 ax_pthread_ok=yes
8856fi
8857rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8860$as_echo "$ax_pthread_ok" >&6; }
8861 if test x"$ax_pthread_ok" = xno; then
8862 PTHREAD_LIBS=""
8863 PTHREAD_CFLAGS=""
8864 fi
8865 LIBS="$save_LIBS"
8866 CFLAGS="$save_CFLAGS"
8867fi
8868
8869# We must check for the threads library under a number of different
8870# names; the ordering is very important because some systems
8871# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8872# libraries is broken (non-POSIX).
8873
8874# Create a list of thread flags to try. Items starting with a "-" are
8875# C compiler flags, and other items are library names, except for "none"
8876# which indicates that we try without any flags at all, and "pthread-config"
8877# which is a program returning the flags for the Pth emulation library.
8878
cristy18307f12011-12-30 01:20:16 +00008879ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008880
8881# The ordering *is* (sometimes) important. Some notes on the
8882# individual items follow:
8883
8884# pthreads: AIX (must check this before -lpthread)
8885# none: in case threads are in libc; should be tried before -Kthread and
8886# other compiler flags to prevent continual compiler warnings
8887# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8888# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8889# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8890# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8891# -pthreads: Solaris/gcc
8892# -mthreads: Mingw32/gcc, Lynx/gcc
8893# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8894# doesn't hurt to check since this sometimes defines pthreads too;
8895# also defines -D_REENTRANT)
8896# ... -mt is also the pthreads flag for HP/aCC
8897# pthread: Linux, etcetera
8898# --thread-safe: KAI C++
8899# pthread-config: use pthread-config program (for GNU Pth library)
8900
8901case "${host_cpu}-${host_os}" in
8902 *solaris*)
8903
8904 # On Solaris (at least, for some versions), libc contains stubbed
8905 # (non-functional) versions of the pthreads routines, so link-based
8906 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8907 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8908 # a function called by this macro, so we could check for that, but
8909 # who knows whether they'll stub that too in a future libc.) So,
8910 # we'll just look for -pthreads and -lpthread first:
8911
8912 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8913 ;;
8914
cristya316db12011-10-24 00:49:45 +00008915 *-darwin*)
8916 ax_pthread_flags="-pthread $ax_pthread_flags"
8917 ;;
cristy73bd4a52010-10-05 11:24:23 +00008918esac
8919
8920if test x"$ax_pthread_ok" = xno; then
8921for flag in $ax_pthread_flags; do
8922
8923 case $flag in
8924 none)
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8926$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8927 ;;
8928
8929 -*)
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8931$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8932 PTHREAD_CFLAGS="$flag"
8933 ;;
8934
cristya316db12011-10-24 00:49:45 +00008935 pthread-config)
8936 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008937set dummy pthread-config; ac_word=$2
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008940if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008941 $as_echo_n "(cached) " >&6
8942else
8943 if test -n "$ax_pthread_config"; then
8944 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8945else
8946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947for as_dir in $PATH
8948do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008953 ac_cv_prog_ax_pthread_config="yes"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955 break 2
8956 fi
8957done
8958 done
8959IFS=$as_save_IFS
8960
8961 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8962fi
8963fi
8964ax_pthread_config=$ac_cv_prog_ax_pthread_config
8965if test -n "$ax_pthread_config"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8967$as_echo "$ax_pthread_config" >&6; }
8968else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971fi
8972
8973
cristya316db12011-10-24 00:49:45 +00008974 if test x"$ax_pthread_config" = xno; then continue; fi
8975 PTHREAD_CFLAGS="`pthread-config --cflags`"
8976 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8977 ;;
cristy73bd4a52010-10-05 11:24:23 +00008978
8979 *)
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8981$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8982 PTHREAD_LIBS="-l$flag"
8983 ;;
8984 esac
8985
8986 save_LIBS="$LIBS"
8987 save_CFLAGS="$CFLAGS"
8988 LIBS="$PTHREAD_LIBS $LIBS"
8989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8990
8991 # Check for various functions. We must include pthread.h,
8992 # since some functions may be macros. (On the Sequent, we
8993 # need a special flag -Kthread to make this header compile.)
8994 # We check for pthread_join because it is in -lpthread on IRIX
8995 # while pthread_create is in libc. We check for pthread_attr_init
8996 # due to DEC craziness with -lpthreads. We check for
8997 # pthread_cleanup_push because it is one of the few pthread
8998 # functions on Solaris that doesn't have a non-functional libc stub.
8999 # We try pthread_create on general principles.
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h. */
9002#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009003 static void routine(void *a) { a = 0; }
9004 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009005int
9006main ()
9007{
9008pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009009 pthread_create(&th, 0, start_routine, 0);
9010 pthread_join(th, 0);
9011 pthread_attr_init(&attr);
9012 pthread_cleanup_push(routine, 0);
9013 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009014 ;
9015 return 0;
9016}
9017_ACEOF
9018if ac_fn_c_try_link "$LINENO"; then :
9019 ax_pthread_ok=yes
9020fi
9021rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023
9024 LIBS="$save_LIBS"
9025 CFLAGS="$save_CFLAGS"
9026
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9028$as_echo "$ax_pthread_ok" >&6; }
9029 if test "x$ax_pthread_ok" = xyes; then
9030 break;
9031 fi
9032
9033 PTHREAD_LIBS=""
9034 PTHREAD_CFLAGS=""
9035done
9036fi
9037
9038# Various other checks:
9039if test "x$ax_pthread_ok" = xyes; then
9040 save_LIBS="$LIBS"
9041 LIBS="$PTHREAD_LIBS $LIBS"
9042 save_CFLAGS="$CFLAGS"
9043 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9044
9045 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009047$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009048 attr_name=unknown
9049 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009051/* end confdefs.h. */
9052#include <pthread.h>
9053int
9054main ()
9055{
cristya316db12011-10-24 00:49:45 +00009056int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009057 ;
9058 return 0;
9059}
9060_ACEOF
9061if ac_fn_c_try_link "$LINENO"; then :
9062 attr_name=$attr; break
9063fi
9064rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009066 done
cristy73bd4a52010-10-05 11:24:23 +00009067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9068$as_echo "$attr_name" >&6; }
9069 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9070
9071cat >>confdefs.h <<_ACEOF
9072#define PTHREAD_CREATE_JOINABLE $attr_name
9073_ACEOF
9074
9075 fi
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9078$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9079 flag=no
9080 case "${host_cpu}-${host_os}" in
9081 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9082 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9083 esac
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9085$as_echo "${flag}" >&6; }
9086 if test "x$flag" != xno; then
9087 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9088 fi
9089
cristya316db12011-10-24 00:49:45 +00009090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9091$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9092if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094else
9095
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h. */
9098
9099 #include <pthread.h>
9100int
9101main ()
9102{
9103int i = PTHREAD_PRIO_INHERIT;
9104 ;
9105 return 0;
9106}
9107_ACEOF
9108if ac_fn_c_try_link "$LINENO"; then :
9109 ax_cv_PTHREAD_PRIO_INHERIT=yes
9110else
9111 ax_cv_PTHREAD_PRIO_INHERIT=no
9112fi
9113rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9115
9116fi
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9118$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9119 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9120
9121$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9122
9123fi
9124
cristy73bd4a52010-10-05 11:24:23 +00009125 LIBS="$save_LIBS"
9126 CFLAGS="$save_CFLAGS"
9127
9128 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009129 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009130 for ac_prog in xlc_r cc_r
9131do
9132 # Extract the first word of "$ac_prog", so it can be a program name with args.
9133set dummy $ac_prog; ac_word=$2
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009136if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009137 $as_echo_n "(cached) " >&6
9138else
9139 if test -n "$PTHREAD_CC"; then
9140 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9141else
9142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $PATH
9144do
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009149 ac_cv_prog_PTHREAD_CC="$ac_prog"
9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153done
9154 done
9155IFS=$as_save_IFS
9156
9157fi
9158fi
9159PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9160if test -n "$PTHREAD_CC"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9162$as_echo "$PTHREAD_CC" >&6; }
9163else
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165$as_echo "no" >&6; }
9166fi
9167
9168
9169 test -n "$PTHREAD_CC" && break
9170done
9171test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9172
9173 else
9174 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009175 fi
cristy73bd4a52010-10-05 11:24:23 +00009176else
9177 PTHREAD_CC="$CC"
9178fi
9179
9180
9181
9182
9183
9184# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9185if test x"$ax_pthread_ok" = xyes; then
9186
9187$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9188
9189 :
9190else
9191 ax_pthread_ok=no
9192
9193fi
9194ac_ext=c
9195ac_cpp='$CPP $CPPFLAGS'
9196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9198ac_compiler_gnu=$ac_cv_c_compiler_gnu
9199
9200
cristy7acf8fb2010-09-23 19:58:53 +00009201 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009202 have_threads=yes
9203 DEF_THREAD="$PTHREAD_CFLAGS"
9204 CFLAGS="$CFLAGS $DEF_THREAD"
9205 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9206 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009207 { $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 +00009208$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9209 CC="$PTHREAD_CC"
9210 fi
cristy55bf91c2010-09-24 00:29:41 +00009211
9212$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9213
cristy3ed852e2009-09-05 21:47:34 +00009214 fi
9215fi
9216
9217# Enable support for OpenMP
9218if test "$have_threads" != 'yes'; then
9219 ac_cv_prog_c_openmp=unsupported
9220fi
9221
9222 OPENMP_CFLAGS=
9223 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009224if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009225 enableval=$enable_openmp;
9226fi
9227
9228 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009230$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009231if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009232 $as_echo_n "(cached) " >&6
9233else
cristy8b350f62009-11-15 23:12:43 +00009234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009236
9237#ifndef _OPENMP
9238 choke me
9239#endif
9240#include <omp.h>
9241int main () { return omp_get_num_threads (); }
9242
9243_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009245 ac_cv_prog_c_openmp='none needed'
9246else
cristy8b350f62009-11-15 23:12:43 +00009247 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009248 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9249 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009250 ac_save_CFLAGS=$CFLAGS
9251 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009254
9255#ifndef _OPENMP
9256 choke me
9257#endif
9258#include <omp.h>
9259int main () { return omp_get_num_threads (); }
9260
9261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009263 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009264fi
cristy8b350f62009-11-15 23:12:43 +00009265rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009267 CFLAGS=$ac_save_CFLAGS
9268 if test "$ac_cv_prog_c_openmp" != unsupported; then
9269 break
9270 fi
9271 done
9272fi
cristy8b350f62009-11-15 23:12:43 +00009273rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009275fi
cristy8b350f62009-11-15 23:12:43 +00009276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009277$as_echo "$ac_cv_prog_c_openmp" >&6; }
9278 case $ac_cv_prog_c_openmp in #(
9279 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009280 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009281 *)
cristy8b350f62009-11-15 23:12:43 +00009282 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009283 esac
9284 fi
9285
9286
9287CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9288MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9289
cristy391f1ce2010-09-09 17:23:28 +00009290if test "$enable_openmp" != no; then
9291 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9292 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9293 fi
9294fi
cristy3ed852e2009-09-05 21:47:34 +00009295
cristy736173a2009-09-20 21:18:22 +00009296# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009297
9298
cristy73bd4a52010-10-05 11:24:23 +00009299ac_ext=c
9300ac_cpp='$CPP $CPPFLAGS'
9301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9303ac_compiler_gnu=$ac_cv_c_compiler_gnu
9304
9305ax_pthread_ok=no
9306
9307# We used to check for pthread.h first, but this fails if pthread.h
9308# requires special compiler flags (e.g. on True64 or Sequent).
9309# It gets checked for in the link test anyway.
9310
9311# First of all, check if the user has set any of the PTHREAD_LIBS,
9312# etcetera environment variables, and if threads linking works using
9313# them:
9314if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9315 save_CFLAGS="$CFLAGS"
9316 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9317 save_LIBS="$LIBS"
9318 LIBS="$PTHREAD_LIBS $LIBS"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9320$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h. */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char pthread_join ();
9331int
9332main ()
9333{
9334return pthread_join ();
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_link "$LINENO"; then :
9340 ax_pthread_ok=yes
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9345$as_echo "$ax_pthread_ok" >&6; }
9346 if test x"$ax_pthread_ok" = xno; then
9347 PTHREAD_LIBS=""
9348 PTHREAD_CFLAGS=""
9349 fi
9350 LIBS="$save_LIBS"
9351 CFLAGS="$save_CFLAGS"
9352fi
9353
9354# We must check for the threads library under a number of different
9355# names; the ordering is very important because some systems
9356# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9357# libraries is broken (non-POSIX).
9358
9359# Create a list of thread flags to try. Items starting with a "-" are
9360# C compiler flags, and other items are library names, except for "none"
9361# which indicates that we try without any flags at all, and "pthread-config"
9362# which is a program returning the flags for the Pth emulation library.
9363
cristy18307f12011-12-30 01:20:16 +00009364ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009365
9366# The ordering *is* (sometimes) important. Some notes on the
9367# individual items follow:
9368
9369# pthreads: AIX (must check this before -lpthread)
9370# none: in case threads are in libc; should be tried before -Kthread and
9371# other compiler flags to prevent continual compiler warnings
9372# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9373# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9374# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9375# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9376# -pthreads: Solaris/gcc
9377# -mthreads: Mingw32/gcc, Lynx/gcc
9378# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9379# doesn't hurt to check since this sometimes defines pthreads too;
9380# also defines -D_REENTRANT)
9381# ... -mt is also the pthreads flag for HP/aCC
9382# pthread: Linux, etcetera
9383# --thread-safe: KAI C++
9384# pthread-config: use pthread-config program (for GNU Pth library)
9385
9386case "${host_cpu}-${host_os}" in
9387 *solaris*)
9388
9389 # On Solaris (at least, for some versions), libc contains stubbed
9390 # (non-functional) versions of the pthreads routines, so link-based
9391 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9392 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9393 # a function called by this macro, so we could check for that, but
9394 # who knows whether they'll stub that too in a future libc.) So,
9395 # we'll just look for -pthreads and -lpthread first:
9396
9397 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9398 ;;
9399
cristya316db12011-10-24 00:49:45 +00009400 *-darwin*)
9401 ax_pthread_flags="-pthread $ax_pthread_flags"
9402 ;;
cristy73bd4a52010-10-05 11:24:23 +00009403esac
9404
9405if test x"$ax_pthread_ok" = xno; then
9406for flag in $ax_pthread_flags; do
9407
9408 case $flag in
9409 none)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9411$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9412 ;;
9413
9414 -*)
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9416$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9417 PTHREAD_CFLAGS="$flag"
9418 ;;
9419
cristya316db12011-10-24 00:49:45 +00009420 pthread-config)
9421 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009422set dummy pthread-config; ac_word=$2
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009425if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009426 $as_echo_n "(cached) " >&6
9427else
9428 if test -n "$ax_pthread_config"; then
9429 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9430else
9431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432for as_dir in $PATH
9433do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009438 ac_cv_prog_ax_pthread_config="yes"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9441 fi
9442done
9443 done
9444IFS=$as_save_IFS
9445
9446 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9447fi
9448fi
9449ax_pthread_config=$ac_cv_prog_ax_pthread_config
9450if test -n "$ax_pthread_config"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9452$as_echo "$ax_pthread_config" >&6; }
9453else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
9456fi
9457
9458
cristya316db12011-10-24 00:49:45 +00009459 if test x"$ax_pthread_config" = xno; then continue; fi
9460 PTHREAD_CFLAGS="`pthread-config --cflags`"
9461 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9462 ;;
cristy73bd4a52010-10-05 11:24:23 +00009463
9464 *)
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9466$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9467 PTHREAD_LIBS="-l$flag"
9468 ;;
9469 esac
9470
9471 save_LIBS="$LIBS"
9472 save_CFLAGS="$CFLAGS"
9473 LIBS="$PTHREAD_LIBS $LIBS"
9474 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9475
9476 # Check for various functions. We must include pthread.h,
9477 # since some functions may be macros. (On the Sequent, we
9478 # need a special flag -Kthread to make this header compile.)
9479 # We check for pthread_join because it is in -lpthread on IRIX
9480 # while pthread_create is in libc. We check for pthread_attr_init
9481 # due to DEC craziness with -lpthreads. We check for
9482 # pthread_cleanup_push because it is one of the few pthread
9483 # functions on Solaris that doesn't have a non-functional libc stub.
9484 # We try pthread_create on general principles.
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h. */
9487#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009488 static void routine(void *a) { a = 0; }
9489 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009490int
9491main ()
9492{
9493pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009494 pthread_create(&th, 0, start_routine, 0);
9495 pthread_join(th, 0);
9496 pthread_attr_init(&attr);
9497 pthread_cleanup_push(routine, 0);
9498 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009499 ;
9500 return 0;
9501}
9502_ACEOF
9503if ac_fn_c_try_link "$LINENO"; then :
9504 ax_pthread_ok=yes
9505fi
9506rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508
9509 LIBS="$save_LIBS"
9510 CFLAGS="$save_CFLAGS"
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9513$as_echo "$ax_pthread_ok" >&6; }
9514 if test "x$ax_pthread_ok" = xyes; then
9515 break;
9516 fi
9517
9518 PTHREAD_LIBS=""
9519 PTHREAD_CFLAGS=""
9520done
9521fi
9522
9523# Various other checks:
9524if test "x$ax_pthread_ok" = xyes; then
9525 save_LIBS="$LIBS"
9526 LIBS="$PTHREAD_LIBS $LIBS"
9527 save_CFLAGS="$CFLAGS"
9528 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9529
9530 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009532$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009533 attr_name=unknown
9534 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009536/* end confdefs.h. */
9537#include <pthread.h>
9538int
9539main ()
9540{
cristya316db12011-10-24 00:49:45 +00009541int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009542 ;
9543 return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547 attr_name=$attr; break
9548fi
9549rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009551 done
cristy73bd4a52010-10-05 11:24:23 +00009552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9553$as_echo "$attr_name" >&6; }
9554 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9555
9556cat >>confdefs.h <<_ACEOF
9557#define PTHREAD_CREATE_JOINABLE $attr_name
9558_ACEOF
9559
9560 fi
9561
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9563$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9564 flag=no
9565 case "${host_cpu}-${host_os}" in
9566 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9567 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9568 esac
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9570$as_echo "${flag}" >&6; }
9571 if test "x$flag" != xno; then
9572 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9573 fi
9574
cristya316db12011-10-24 00:49:45 +00009575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9576$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9577if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579else
9580
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h. */
9583
9584 #include <pthread.h>
9585int
9586main ()
9587{
9588int i = PTHREAD_PRIO_INHERIT;
9589 ;
9590 return 0;
9591}
9592_ACEOF
9593if ac_fn_c_try_link "$LINENO"; then :
9594 ax_cv_PTHREAD_PRIO_INHERIT=yes
9595else
9596 ax_cv_PTHREAD_PRIO_INHERIT=no
9597fi
9598rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext conftest.$ac_ext
9600
9601fi
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9603$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9604 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9605
9606$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9607
9608fi
9609
cristy73bd4a52010-10-05 11:24:23 +00009610 LIBS="$save_LIBS"
9611 CFLAGS="$save_CFLAGS"
9612
9613 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009614 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009615 for ac_prog in xlc_r cc_r
9616do
9617 # Extract the first word of "$ac_prog", so it can be a program name with args.
9618set dummy $ac_prog; ac_word=$2
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009621if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009622 $as_echo_n "(cached) " >&6
9623else
9624 if test -n "$PTHREAD_CC"; then
9625 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9626else
9627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628for as_dir in $PATH
9629do
9630 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009634 ac_cv_prog_PTHREAD_CC="$ac_prog"
9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2
9637 fi
9638done
9639 done
9640IFS=$as_save_IFS
9641
9642fi
9643fi
9644PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9645if test -n "$PTHREAD_CC"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9647$as_echo "$PTHREAD_CC" >&6; }
9648else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650$as_echo "no" >&6; }
9651fi
9652
9653
9654 test -n "$PTHREAD_CC" && break
9655done
9656test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9657
9658 else
9659 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009660 fi
cristy73bd4a52010-10-05 11:24:23 +00009661else
9662 PTHREAD_CC="$CC"
9663fi
9664
9665
9666
9667
9668
9669# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9670if test x"$ax_pthread_ok" = xyes; then
9671
9672$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9673
9674 :
9675else
9676 ax_pthread_ok=no
9677
9678fi
9679ac_ext=c
9680ac_cpp='$CPP $CPPFLAGS'
9681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9683ac_compiler_gnu=$ac_cv_c_compiler_gnu
9684
9685
9686
9687# Check whether --enable-opencl was given.
9688if test "${enable_opencl+set}" = set; then :
9689 enableval=$enable_opencl; disable_opencl=$enableval
9690else
9691 disable_opencl='yes'
9692fi
9693
9694
9695if test "$disable_opencl" = 'yes'; then
9696 ac_ext=c
9697ac_cpp='$CPP $CPPFLAGS'
9698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700ac_compiler_gnu=$ac_cv_c_compiler_gnu
9701
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9703$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009704if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009705 $as_echo_n "(cached) " >&6
9706else
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h. */
9709
9710int
9711main ()
9712{
9713#ifndef _MSC_VER
9714 choke me
9715#endif
9716
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721if ac_fn_c_try_compile "$LINENO"; then :
9722 ax_compiler_ms=yes
9723else
9724 ax_compiler_ms=no
9725fi
9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727ax_cv_c_compiler_ms=$ax_compiler_ms
9728
9729fi
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9731$as_echo "$ax_cv_c_compiler_ms" >&6; }
9732 if test X$ax_compiler_ms = Xno; then :
9733 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9734fi
9735
9736 ax_save_CPPFLAGS=$CPPFLAGS
9737 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9738 for ac_header in CL/cl.h OpenCL/cl.h
9739do :
9740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9741ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009743 cat >>confdefs.h <<_ACEOF
9744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9745_ACEOF
9746
9747fi
9748
9749done
9750
9751 CPPFLAGS=$ax_save_CPPFLAGS
9752
9753 for ac_header in windows.h
9754do :
9755 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009756if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009757 cat >>confdefs.h <<_ACEOF
9758#define HAVE_WINDOWS_H 1
9759_ACEOF
9760
9761fi
9762
9763done
9764
9765
9766
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9769$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009770if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009771 $as_echo_n "(cached) " >&6
9772else
9773 ax_cv_check_cl_libcl=no
9774 case $host_cpu in
9775 x86_64) ax_check_cl_libdir=lib64 ;;
9776 *) ax_check_cl_libdir=lib ;;
9777 esac
9778 ax_save_CPPFLAGS=$CPPFLAGS
9779 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9780 ax_save_LIBS=$LIBS
9781 LIBS=""
9782 ax_check_libs="-lOpenCL -lCL -lclparser"
9783 for ax_lib in $ax_check_libs; do
9784 if test X$ax_compiler_ms = Xyes; then :
9785 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9786else
9787 ax_try_lib=$ax_lib
9788fi
9789 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h. */
9792
9793 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9794 # include <windows.h>
9795 # endif
9796 # ifdef HAVE_CL_CL_H
9797 # include <CL/cl.h>
9798 # elif defined(HAVE_OPENCL_CL_H)
9799 # include <OpenCL/cl.h>
9800 # else
9801 # error no CL.h
9802 # endif
9803int
9804main ()
9805{
9806clCreateContextFromType(0,0,0,0,0)
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811if ac_fn_c_try_link "$LINENO"; then :
9812 ax_cv_check_cl_libcl=$ax_try_lib; break
9813else
9814 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"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h. */
9817
9818 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9819 # include <windows.h>
9820 # endif
9821 # ifdef HAVE_CL_CL_H
9822 # include <CL/cl.h>
9823 # elif defined(HAVE_OPENCL_CL_H)
9824 # include <OpenCL/cl.h>
9825 # else
9826 # error no CL.h
9827 # endif
9828int
9829main ()
9830{
9831clCreateContextFromType(0,0,0,0,0)
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836if ac_fn_c_try_link "$LINENO"; then :
9837 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9838else
cristy78c5a0c2010-12-04 20:00:59 +00009839 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 +00009840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h. */
9842
9843 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9844 # include <windows.h>
9845 # endif
9846 # ifdef HAVE_CL_CL_H
9847 # include <CL/cl.h>
9848 # elif defined(HAVE_OPENCL_CL_H)
9849 # include <OpenCL/cl.h>
9850 # else
9851 # error no CL.h
9852 # endif
9853int
9854main ()
9855{
9856clCreateContextFromType(0,0,0,0,0)
9857 ;
9858 return 0;
9859}
9860_ACEOF
9861if ac_fn_c_try_link "$LINENO"; then :
9862 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9863fi
9864rm -f core conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866fi
9867rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 done
9873
cristyc3f8b8e2011-12-22 14:55:16 +00009874 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009875 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h. */
9878
9879 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9880 # include <windows.h>
9881 # endif
9882 # ifdef HAVE_CL_CL_H
9883 # include <CL/cl.h>
9884 # elif defined(HAVE_OPENCL_CL_H)
9885 # include <OpenCL/cl.h>
9886 # else
9887 # error no CL.h
9888 # endif
9889int
9890main ()
9891{
9892clCreateContextFromType(0,0,0,0,0)
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897if ac_fn_c_try_link "$LINENO"; then :
9898 ax_cv_check_cl_libcl=$LIBS
9899fi
9900rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902fi
9903
9904 LIBS=$ax_save_LIBS
9905 CPPFLAGS=$ax_save_CPPFLAGS
9906fi
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9908$as_echo "$ax_cv_check_cl_libcl" >&6; }
9909
9910 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9911 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9912else
9913 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9914$as_echo "#define _OPENCL 1" >>confdefs.h
9915
9916fi
9917 ac_ext=c
9918ac_cpp='$CPP $CPPFLAGS'
9919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9921ac_compiler_gnu=$ac_cv_c_compiler_gnu
9922
9923fi
9924
9925
9926
9927
cristyc7083c12009-10-14 03:16:55 +00009928CFLAGS="$CL_CFLAGS $CFLAGS"
9929LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009930
cristy391f1ce2010-09-09 17:23:28 +00009931if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009932 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009933 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9934 fi
cristyfd9dcd42010-08-08 18:07:02 +00009935fi
cristy2e8b51d2009-10-17 18:26:15 +00009936
cristy3ed852e2009-09-05 21:47:34 +00009937########
9938#
9939# Check for large file support
9940#
9941########
9942# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009943if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009944 enableval=$enable_largefile;
9945fi
9946
9947if test "$enable_largefile" != no; then
9948
cristy8b350f62009-11-15 23:12:43 +00009949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009950$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009951if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009952 $as_echo_n "(cached) " >&6
9953else
9954 ac_cv_sys_largefile_CC=no
9955 if test "$GCC" != yes; then
9956 ac_save_CC=$CC
9957 while :; do
9958 # IRIX 6.2 and later do not support large files by default,
9959 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009961/* end confdefs.h. */
9962#include <sys/types.h>
9963 /* Check that off_t can represent 2**63 - 1 correctly.
9964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9965 since some C++ compilers masquerading as C compilers
9966 incorrectly reject 9223372036854775807. */
9967#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9969 && LARGE_OFF_T % 2147483647 == 1)
9970 ? 1 : -1];
9971int
9972main ()
9973{
9974
9975 ;
9976 return 0;
9977}
9978_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009979 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009980 break
cristy3ed852e2009-09-05 21:47:34 +00009981fi
cristy3ed852e2009-09-05 21:47:34 +00009982rm -f core conftest.err conftest.$ac_objext
9983 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009984 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009985 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009986fi
cristy3ed852e2009-09-05 21:47:34 +00009987rm -f core conftest.err conftest.$ac_objext
9988 break
9989 done
9990 CC=$ac_save_CC
9991 rm -f conftest.$ac_ext
9992 fi
9993fi
cristy8b350f62009-11-15 23:12:43 +00009994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009995$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9996 if test "$ac_cv_sys_largefile_CC" != no; then
9997 CC=$CC$ac_cv_sys_largefile_CC
9998 fi
9999
cristy8b350f62009-11-15 23:12:43 +000010000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010001$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010002if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010003 $as_echo_n "(cached) " >&6
10004else
10005 while :; do
cristy8b350f62009-11-15 23:12:43 +000010006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010007/* end confdefs.h. */
10008#include <sys/types.h>
10009 /* Check that off_t can represent 2**63 - 1 correctly.
10010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10011 since some C++ compilers masquerading as C compilers
10012 incorrectly reject 9223372036854775807. */
10013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10015 && LARGE_OFF_T % 2147483647 == 1)
10016 ? 1 : -1];
10017int
10018main ()
10019{
10020
10021 ;
10022 return 0;
10023}
10024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010026 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010027fi
cristy3ed852e2009-09-05 21:47:34 +000010028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010030/* end confdefs.h. */
10031#define _FILE_OFFSET_BITS 64
10032#include <sys/types.h>
10033 /* Check that off_t can represent 2**63 - 1 correctly.
10034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10035 since some C++ compilers masquerading as C compilers
10036 incorrectly reject 9223372036854775807. */
10037#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10039 && LARGE_OFF_T % 2147483647 == 1)
10040 ? 1 : -1];
10041int
10042main ()
10043{
10044
10045 ;
10046 return 0;
10047}
10048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010050 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010051fi
cristy3ed852e2009-09-05 21:47:34 +000010052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 ac_cv_sys_file_offset_bits=unknown
10054 break
10055done
10056fi
cristy8b350f62009-11-15 23:12:43 +000010057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010058$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10059case $ac_cv_sys_file_offset_bits in #(
10060 no | unknown) ;;
10061 *)
10062cat >>confdefs.h <<_ACEOF
10063#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10064_ACEOF
10065;;
10066esac
10067rm -rf conftest*
10068 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010070$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010071if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010072 $as_echo_n "(cached) " >&6
10073else
10074 while :; do
cristy8b350f62009-11-15 23:12:43 +000010075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010076/* end confdefs.h. */
10077#include <sys/types.h>
10078 /* Check that off_t can represent 2**63 - 1 correctly.
10079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10080 since some C++ compilers masquerading as C compilers
10081 incorrectly reject 9223372036854775807. */
10082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10084 && LARGE_OFF_T % 2147483647 == 1)
10085 ? 1 : -1];
10086int
10087main ()
10088{
10089
10090 ;
10091 return 0;
10092}
10093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010094if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010095 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010096fi
cristy3ed852e2009-09-05 21:47:34 +000010097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010099/* end confdefs.h. */
10100#define _LARGE_FILES 1
10101#include <sys/types.h>
10102 /* Check that off_t can represent 2**63 - 1 correctly.
10103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10104 since some C++ compilers masquerading as C compilers
10105 incorrectly reject 9223372036854775807. */
10106#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10108 && LARGE_OFF_T % 2147483647 == 1)
10109 ? 1 : -1];
10110int
10111main ()
10112{
10113
10114 ;
10115 return 0;
10116}
10117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010118if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010119 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010120fi
cristy3ed852e2009-09-05 21:47:34 +000010121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 ac_cv_sys_large_files=unknown
10123 break
10124done
10125fi
cristy8b350f62009-11-15 23:12:43 +000010126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010127$as_echo "$ac_cv_sys_large_files" >&6; }
10128case $ac_cv_sys_large_files in #(
10129 no | unknown) ;;
10130 *)
10131cat >>confdefs.h <<_ACEOF
10132#define _LARGE_FILES $ac_cv_sys_large_files
10133_ACEOF
10134;;
10135esac
10136rm -rf conftest*
10137 fi
cristy14fefe52012-05-21 00:59:18 +000010138
10139
cristy3ed852e2009-09-05 21:47:34 +000010140fi
10141
cristy8b350f62009-11-15 23:12:43 +000010142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010143$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010144if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010145 $as_echo_n "(cached) " >&6
10146else
10147 while :; do
cristy8b350f62009-11-15 23:12:43 +000010148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010149/* end confdefs.h. */
10150#include <sys/types.h> /* for off_t */
10151 #include <stdio.h>
10152int
10153main ()
10154{
10155int (*fp) (FILE *, off_t, int) = fseeko;
10156 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10157 ;
10158 return 0;
10159}
10160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010162 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010163fi
cristy8b350f62009-11-15 23:12:43 +000010164rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010167/* end confdefs.h. */
10168#define _LARGEFILE_SOURCE 1
10169#include <sys/types.h> /* for off_t */
10170 #include <stdio.h>
10171int
10172main ()
10173{
10174int (*fp) (FILE *, off_t, int) = fseeko;
10175 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10176 ;
10177 return 0;
10178}
10179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010181 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010182fi
cristy8b350f62009-11-15 23:12:43 +000010183rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010185 ac_cv_sys_largefile_source=unknown
10186 break
10187done
10188fi
cristy8b350f62009-11-15 23:12:43 +000010189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010190$as_echo "$ac_cv_sys_largefile_source" >&6; }
10191case $ac_cv_sys_largefile_source in #(
10192 no | unknown) ;;
10193 *)
10194cat >>confdefs.h <<_ACEOF
10195#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10196_ACEOF
10197;;
10198esac
10199rm -rf conftest*
10200
10201# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10202# in glibc 2.1.3, but that breaks too many other things.
10203# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10204if test $ac_cv_sys_largefile_source != unknown; then
10205
cristy8b350f62009-11-15 23:12:43 +000010206$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010207
10208fi
10209
10210LFS_CPPFLAGS=''
10211if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010212 case $ac_cv_sys_file_offset_bits in
10213 no)
10214 # nothing to do here as the host supports LFS fine
10215 ;;
10216 unknown)
cristy8b350f62009-11-15 23:12:43 +000010217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010218$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010219 if test "$cross_compiling" = yes; then :
10220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010222as_fn_error $? "cannot run test program while cross compiling
10223See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010224else
cristy8b350f62009-11-15 23:12:43 +000010225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010227#include <unistd.h>
10228 main () {
10229 exit(!(sizeof(off_t) == 8));
10230 }
cristyda16f162011-02-19 23:52:17 +000010231int
10232main ()
10233{
10234
10235 ;
10236 return 0;
10237}
cristy3ed852e2009-09-05 21:47:34 +000010238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010239if ac_fn_c_try_run "$LINENO"; then :
10240 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010241
cristy09b53e12011-10-14 12:47:22 +000010242 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10243$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010244else
cristy09b53e12011-10-14 12:47:22 +000010245 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10246$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010247fi
cristy8b350f62009-11-15 23:12:43 +000010248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10249 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010250fi
10251
cristyc1e0cc12011-09-21 16:41:16 +000010252 ;;
10253 *)
10254 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10255 ;;
10256 esac
cristy3ed852e2009-09-05 21:47:34 +000010257 if test "$ac_cv_sys_large_files" != 'no'; then
10258 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10259 fi
10260 if test "$ac_cv_sys_largefile_source" != 'no'; then
10261 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10262 fi
10263fi
10264
10265
cristy3ed852e2009-09-05 21:47:34 +000010266# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010267enable_dlopen=yes
10268
10269
10270
10271case `pwd` in
10272 *\ * | *\ *)
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10274$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10275esac
10276
10277
10278
cristy99bd5232011-12-07 14:38:20 +000010279macro_version='2.4.2'
10280macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294ltmain="$ac_aux_dir/ltmain.sh"
10295
cristy0c60a692010-11-04 01:09:47 +000010296# Backslashify metacharacters that are still active within
10297# double-quoted strings.
10298sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10299
10300# Same as above, but do not quote variable references.
10301double_quote_subst='s/\(["`\\]\)/\\\1/g'
10302
10303# Sed substitution to delay expansion of an escaped shell variable in a
10304# double_quote_subst'ed string.
10305delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10306
10307# Sed substitution to delay expansion of an escaped single quote.
10308delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10309
10310# Sed substitution to avoid accidental globbing in evaled expressions
10311no_glob_subst='s/\*/\\\*/g'
10312
cristy73bd4a52010-10-05 11:24:23 +000010313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10314$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010315if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010316 $as_echo_n "(cached) " >&6
10317else
10318 if test -n "$NM"; then
10319 # Let the user override the test.
10320 lt_cv_path_NM="$NM"
10321else
10322 lt_nm_to_check="${ac_tool_prefix}nm"
10323 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10324 lt_nm_to_check="$lt_nm_to_check nm"
10325 fi
10326 for lt_tmp_nm in $lt_nm_to_check; do
10327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10328 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10329 IFS="$lt_save_ifs"
10330 test -z "$ac_dir" && ac_dir=.
10331 tmp_nm="$ac_dir/$lt_tmp_nm"
10332 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10333 # Check to see if the nm accepts a BSD-compat flag.
10334 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10335 # nm: unknown option "B" ignored
10336 # Tru64's nm complains that /dev/null is an invalid object file
10337 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10338 */dev/null* | *'Invalid file or object type'*)
10339 lt_cv_path_NM="$tmp_nm -B"
10340 break
10341 ;;
10342 *)
10343 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10344 */dev/null*)
10345 lt_cv_path_NM="$tmp_nm -p"
10346 break
10347 ;;
10348 *)
10349 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10350 continue # so that we can try to find one that supports BSD flags
10351 ;;
10352 esac
10353 ;;
10354 esac
10355 fi
10356 done
10357 IFS="$lt_save_ifs"
10358 done
10359 : ${lt_cv_path_NM=no}
10360fi
10361fi
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10363$as_echo "$lt_cv_path_NM" >&6; }
10364if test "$lt_cv_path_NM" != "no"; then
10365 NM="$lt_cv_path_NM"
10366else
10367 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010368 if test -n "$DUMPBIN"; then :
10369 # Let the user override the test.
10370 else
10371 if test -n "$ac_tool_prefix"; then
10372 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010373 do
10374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010378if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010379 $as_echo_n "(cached) " >&6
10380else
10381 if test -n "$DUMPBIN"; then
10382 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10383else
10384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385for as_dir in $PATH
10386do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010391 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10394 fi
10395done
10396 done
10397IFS=$as_save_IFS
10398
10399fi
10400fi
10401DUMPBIN=$ac_cv_prog_DUMPBIN
10402if test -n "$DUMPBIN"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10404$as_echo "$DUMPBIN" >&6; }
10405else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407$as_echo "no" >&6; }
10408fi
10409
10410
10411 test -n "$DUMPBIN" && break
10412 done
10413fi
10414if test -z "$DUMPBIN"; then
10415 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010416 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010417do
10418 # Extract the first word of "$ac_prog", so it can be a program name with args.
10419set dummy $ac_prog; ac_word=$2
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010422if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010423 $as_echo_n "(cached) " >&6
10424else
10425 if test -n "$ac_ct_DUMPBIN"; then
10426 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10427else
10428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429for as_dir in $PATH
10430do
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010435 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439done
10440 done
10441IFS=$as_save_IFS
10442
10443fi
10444fi
10445ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10446if test -n "$ac_ct_DUMPBIN"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10448$as_echo "$ac_ct_DUMPBIN" >&6; }
10449else
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451$as_echo "no" >&6; }
10452fi
10453
10454
10455 test -n "$ac_ct_DUMPBIN" && break
10456done
10457
10458 if test "x$ac_ct_DUMPBIN" = x; then
10459 DUMPBIN=":"
10460 else
10461 case $cross_compiling:$ac_tool_warned in
10462yes:)
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10465ac_tool_warned=yes ;;
10466esac
10467 DUMPBIN=$ac_ct_DUMPBIN
10468 fi
10469fi
10470
cristy0c60a692010-11-04 01:09:47 +000010471 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10472 *COFF*)
10473 DUMPBIN="$DUMPBIN -symbols"
10474 ;;
10475 *)
10476 DUMPBIN=:
10477 ;;
10478 esac
10479 fi
cristy73bd4a52010-10-05 11:24:23 +000010480
10481 if test "$DUMPBIN" != ":"; then
10482 NM="$DUMPBIN"
10483 fi
10484fi
10485test -z "$NM" && NM=nm
10486
10487
10488
10489
10490
10491
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10493$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010494if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010495 $as_echo_n "(cached) " >&6
10496else
10497 lt_cv_nm_interface="BSD nm"
10498 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010499 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010500 (eval "$ac_compile" 2>conftest.err)
10501 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010502 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010503 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10504 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010505 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010506 cat conftest.out >&5
10507 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10508 lt_cv_nm_interface="MS dumpbin"
10509 fi
10510 rm -f conftest*
10511fi
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10513$as_echo "$lt_cv_nm_interface" >&6; }
10514
10515# find the maximum length of command line arguments
10516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10517$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010518if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010519 $as_echo_n "(cached) " >&6
10520else
10521 i=0
10522 teststring="ABCD"
10523
10524 case $build_os in
10525 msdosdjgpp*)
10526 # On DJGPP, this test can blow up pretty badly due to problems in libc
10527 # (any single argument exceeding 2000 bytes causes a buffer overrun
10528 # during glob expansion). Even if it were fixed, the result of this
10529 # check would be larger than it should be.
10530 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10531 ;;
10532
10533 gnu*)
10534 # Under GNU Hurd, this test is not required because there is
10535 # no limit to the length of command line arguments.
10536 # Libtool will interpret -1 as no limit whatsoever
10537 lt_cv_sys_max_cmd_len=-1;
10538 ;;
10539
10540 cygwin* | mingw* | cegcc*)
10541 # On Win9x/ME, this test blows up -- it succeeds, but takes
10542 # about 5 minutes as the teststring grows exponentially.
10543 # Worse, since 9x/ME are not pre-emptively multitasking,
10544 # you end up with a "frozen" computer, even though with patience
10545 # the test eventually succeeds (with a max line length of 256k).
10546 # Instead, let's just punt: use the minimum linelength reported by
10547 # all of the supported platforms: 8192 (on NT/2K/XP).
10548 lt_cv_sys_max_cmd_len=8192;
10549 ;;
10550
cristy0c60a692010-11-04 01:09:47 +000010551 mint*)
10552 # On MiNT this can take a long time and run out of memory.
10553 lt_cv_sys_max_cmd_len=8192;
10554 ;;
10555
cristy73bd4a52010-10-05 11:24:23 +000010556 amigaos*)
10557 # On AmigaOS with pdksh, this test takes hours, literally.
10558 # So we just punt and use a minimum line length of 8192.
10559 lt_cv_sys_max_cmd_len=8192;
10560 ;;
10561
10562 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10563 # This has been around since 386BSD, at least. Likely further.
10564 if test -x /sbin/sysctl; then
10565 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10566 elif test -x /usr/sbin/sysctl; then
10567 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10568 else
10569 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10570 fi
10571 # And add a safety zone
10572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10574 ;;
10575
10576 interix*)
10577 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10578 lt_cv_sys_max_cmd_len=196608
10579 ;;
10580
cristy99bd5232011-12-07 14:38:20 +000010581 os2*)
10582 # The test takes a long time on OS/2.
10583 lt_cv_sys_max_cmd_len=8192
10584 ;;
10585
cristy73bd4a52010-10-05 11:24:23 +000010586 osf*)
10587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10589 # nice to cause kernel panics so lets avoid the loop below.
10590 # First set a reasonable default.
10591 lt_cv_sys_max_cmd_len=16384
10592 #
10593 if test -x /sbin/sysconfig; then
10594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10595 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10596 esac
10597 fi
10598 ;;
10599 sco3.2v5*)
10600 lt_cv_sys_max_cmd_len=102400
10601 ;;
10602 sysv5* | sco5v6* | sysv4.2uw2*)
10603 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10604 if test -n "$kargmax"; then
10605 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10606 else
10607 lt_cv_sys_max_cmd_len=32768
10608 fi
10609 ;;
10610 *)
10611 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10612 if test -n "$lt_cv_sys_max_cmd_len"; then
10613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10615 else
10616 # Make teststring a little bigger before we do anything with it.
10617 # a 1K string should be a reasonable start.
10618 for i in 1 2 3 4 5 6 7 8 ; do
10619 teststring=$teststring$teststring
10620 done
10621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10622 # If test is not a shell built-in, we'll probably end up computing a
10623 # maximum length that is only half of the actual maximum length, but
10624 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010625 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010626 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010627 test $i != 17 # 1/2 MB should be enough
10628 do
10629 i=`expr $i + 1`
10630 teststring=$teststring$teststring
10631 done
10632 # Only check the string length outside the loop.
10633 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10634 teststring=
10635 # Add a significant safety factor because C++ compilers can tack on
10636 # massive amounts of additional arguments before passing them to the
10637 # linker. It appears as though 1/2 is a usable value.
10638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10639 fi
10640 ;;
10641 esac
10642
10643fi
10644
10645if test -n $lt_cv_sys_max_cmd_len ; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10647$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10648else
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10650$as_echo "none" >&6; }
10651fi
10652max_cmd_len=$lt_cv_sys_max_cmd_len
10653
10654
10655
10656
10657
10658
10659: ${CP="cp -f"}
10660: ${MV="mv -f"}
10661: ${RM="rm -f"}
10662
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10664$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10665# Try some XSI features
10666xsi_shell=no
10667( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010668 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10669 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010670 && eval 'test $(( 1 + 1 )) -eq 2 \
10671 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10672 && xsi_shell=yes
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10674$as_echo "$xsi_shell" >&6; }
10675
10676
10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10678$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10679lt_shell_append=no
10680( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10681 >/dev/null 2>&1 \
10682 && lt_shell_append=yes
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10684$as_echo "$lt_shell_append" >&6; }
10685
10686
10687if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10688 lt_unset=unset
10689else
10690 lt_unset=false
10691fi
10692
10693
10694
10695
10696
10697# test EBCDIC or ASCII
10698case `echo X|tr X '\101'` in
10699 A) # ASCII based system
10700 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10701 lt_SP2NL='tr \040 \012'
10702 lt_NL2SP='tr \015\012 \040\040'
10703 ;;
10704 *) # EBCDIC based system
10705 lt_SP2NL='tr \100 \n'
10706 lt_NL2SP='tr \r\n \100\100'
10707 ;;
10708esac
10709
10710
10711
10712
10713
10714
10715
10716
10717
cristyda16f162011-02-19 23:52:17 +000010718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10719$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10720if ${lt_cv_to_host_file_cmd+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722else
10723 case $host in
10724 *-*-mingw* )
10725 case $build in
10726 *-*-mingw* ) # actually msys
10727 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10728 ;;
10729 *-*-cygwin* )
10730 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10731 ;;
10732 * ) # otherwise, assume *nix
10733 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10734 ;;
10735 esac
10736 ;;
10737 *-*-cygwin* )
10738 case $build in
10739 *-*-mingw* ) # actually msys
10740 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10741 ;;
10742 *-*-cygwin* )
10743 lt_cv_to_host_file_cmd=func_convert_file_noop
10744 ;;
10745 * ) # otherwise, assume *nix
10746 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10747 ;;
10748 esac
10749 ;;
10750 * ) # unhandled hosts (and "normal" native builds)
10751 lt_cv_to_host_file_cmd=func_convert_file_noop
10752 ;;
10753esac
10754
10755fi
10756
10757to_host_file_cmd=$lt_cv_to_host_file_cmd
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10759$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10760
10761
10762
10763
10764
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10766$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10767if ${lt_cv_to_tool_file_cmd+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769else
10770 #assume ordinary cross tools, or native build.
10771lt_cv_to_tool_file_cmd=func_convert_file_noop
10772case $host in
10773 *-*-mingw* )
10774 case $build in
10775 *-*-mingw* ) # actually msys
10776 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10777 ;;
10778 esac
10779 ;;
10780esac
10781
10782fi
10783
10784to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10786$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10787
10788
10789
10790
10791
cristy73bd4a52010-10-05 11:24:23 +000010792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10793$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010794if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010795 $as_echo_n "(cached) " >&6
10796else
10797 lt_cv_ld_reload_flag='-r'
10798fi
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10800$as_echo "$lt_cv_ld_reload_flag" >&6; }
10801reload_flag=$lt_cv_ld_reload_flag
10802case $reload_flag in
10803"" | " "*) ;;
10804*) reload_flag=" $reload_flag" ;;
10805esac
10806reload_cmds='$LD$reload_flag -o $output$reload_objs'
10807case $host_os in
cristyda16f162011-02-19 23:52:17 +000010808 cygwin* | mingw* | pw32* | cegcc*)
10809 if test "$GCC" != yes; then
10810 reload_cmds=false
10811 fi
10812 ;;
cristy73bd4a52010-10-05 11:24:23 +000010813 darwin*)
10814 if test "$GCC" = yes; then
10815 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10816 else
10817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10818 fi
10819 ;;
10820esac
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830if test -n "$ac_tool_prefix"; then
10831 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10832set dummy ${ac_tool_prefix}objdump; ac_word=$2
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010835if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010836 $as_echo_n "(cached) " >&6
10837else
10838 if test -n "$OBJDUMP"; then
10839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10840else
10841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842for as_dir in $PATH
10843do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010848 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10850 break 2
10851 fi
10852done
10853 done
10854IFS=$as_save_IFS
10855
10856fi
10857fi
10858OBJDUMP=$ac_cv_prog_OBJDUMP
10859if test -n "$OBJDUMP"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10861$as_echo "$OBJDUMP" >&6; }
10862else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
10865fi
10866
10867
10868fi
10869if test -z "$ac_cv_prog_OBJDUMP"; then
10870 ac_ct_OBJDUMP=$OBJDUMP
10871 # Extract the first word of "objdump", so it can be a program name with args.
10872set dummy objdump; ac_word=$2
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010875if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010876 $as_echo_n "(cached) " >&6
10877else
10878 if test -n "$ac_ct_OBJDUMP"; then
10879 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10880else
10881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010888 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893 done
10894IFS=$as_save_IFS
10895
10896fi
10897fi
10898ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10899if test -n "$ac_ct_OBJDUMP"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10901$as_echo "$ac_ct_OBJDUMP" >&6; }
10902else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904$as_echo "no" >&6; }
10905fi
10906
10907 if test "x$ac_ct_OBJDUMP" = x; then
10908 OBJDUMP="false"
10909 else
10910 case $cross_compiling:$ac_tool_warned in
10911yes:)
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10914ac_tool_warned=yes ;;
10915esac
10916 OBJDUMP=$ac_ct_OBJDUMP
10917 fi
10918else
10919 OBJDUMP="$ac_cv_prog_OBJDUMP"
10920fi
10921
10922test -z "$OBJDUMP" && OBJDUMP=objdump
10923
10924
10925
10926
10927
10928
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10930$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010931if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010932 $as_echo_n "(cached) " >&6
10933else
10934 lt_cv_file_magic_cmd='$MAGIC_CMD'
10935lt_cv_file_magic_test_file=
10936lt_cv_deplibs_check_method='unknown'
10937# Need to set the preceding variable on all platforms that support
10938# interlibrary dependencies.
10939# 'none' -- dependencies not supported.
10940# `unknown' -- same as none, but documents that we really don't know.
10941# 'pass_all' -- all dependencies passed with no checks.
10942# 'test_compile' -- check by making test program.
10943# 'file_magic [[regex]]' -- check by looking for files in library path
10944# which responds to the $file_magic_cmd with a given extended regex.
10945# If you have `file' or equivalent on your system and you're not sure
10946# whether `pass_all' will *always* work, you probably want this one.
10947
10948case $host_os in
10949aix[4-9]*)
10950 lt_cv_deplibs_check_method=pass_all
10951 ;;
10952
10953beos*)
10954 lt_cv_deplibs_check_method=pass_all
10955 ;;
10956
10957bsdi[45]*)
10958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10959 lt_cv_file_magic_cmd='/usr/bin/file -L'
10960 lt_cv_file_magic_test_file=/shlib/libc.so
10961 ;;
10962
10963cygwin*)
10964 # func_win32_libid is a shell function defined in ltmain.sh
10965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10966 lt_cv_file_magic_cmd='func_win32_libid'
10967 ;;
10968
10969mingw* | pw32*)
10970 # Base MSYS/MinGW do not provide the 'file' command needed by
10971 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10972 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010973 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10974 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10976 lt_cv_file_magic_cmd='func_win32_libid'
10977 else
cristy0c60a692010-11-04 01:09:47 +000010978 # Keep this pattern in sync with the one in func_win32_libid.
10979 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 +000010980 lt_cv_file_magic_cmd='$OBJDUMP -f'
10981 fi
10982 ;;
10983
cristy0c60a692010-11-04 01:09:47 +000010984cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010985 # use the weaker test based on 'objdump'. See mingw*.
10986 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10987 lt_cv_file_magic_cmd='$OBJDUMP -f'
10988 ;;
10989
10990darwin* | rhapsody*)
10991 lt_cv_deplibs_check_method=pass_all
10992 ;;
10993
10994freebsd* | dragonfly*)
10995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10996 case $host_cpu in
10997 i*86 )
10998 # Not sure whether the presence of OpenBSD here was a mistake.
10999 # Let's accept both of them until this is cleared up.
11000 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11001 lt_cv_file_magic_cmd=/usr/bin/file
11002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11003 ;;
11004 esac
11005 else
11006 lt_cv_deplibs_check_method=pass_all
11007 fi
11008 ;;
11009
11010gnu*)
11011 lt_cv_deplibs_check_method=pass_all
11012 ;;
11013
cristy0c60a692010-11-04 01:09:47 +000011014haiku*)
11015 lt_cv_deplibs_check_method=pass_all
11016 ;;
11017
cristy73bd4a52010-10-05 11:24:23 +000011018hpux10.20* | hpux11*)
11019 lt_cv_file_magic_cmd=/usr/bin/file
11020 case $host_cpu in
11021 ia64*)
11022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11023 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11024 ;;
11025 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011026 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 +000011027 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11028 ;;
11029 *)
cristy0c60a692010-11-04 01:09:47 +000011030 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 +000011031 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11032 ;;
11033 esac
11034 ;;
11035
11036interix[3-9]*)
11037 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11039 ;;
11040
11041irix5* | irix6* | nonstopux*)
11042 case $LD in
11043 *-32|*"-32 ") libmagic=32-bit;;
11044 *-n32|*"-n32 ") libmagic=N32;;
11045 *-64|*"-64 ") libmagic=64-bit;;
11046 *) libmagic=never-match;;
11047 esac
11048 lt_cv_deplibs_check_method=pass_all
11049 ;;
11050
cristy99bd5232011-12-07 14:38:20 +000011051# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011052linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011053 lt_cv_deplibs_check_method=pass_all
11054 ;;
11055
11056netbsd*)
11057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11059 else
11060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11061 fi
11062 ;;
11063
11064newos6*)
11065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11066 lt_cv_file_magic_cmd=/usr/bin/file
11067 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11068 ;;
11069
11070*nto* | *qnx*)
11071 lt_cv_deplibs_check_method=pass_all
11072 ;;
11073
11074openbsd*)
11075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11077 else
11078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11079 fi
11080 ;;
11081
11082osf3* | osf4* | osf5*)
11083 lt_cv_deplibs_check_method=pass_all
11084 ;;
11085
11086rdos*)
11087 lt_cv_deplibs_check_method=pass_all
11088 ;;
11089
11090solaris*)
11091 lt_cv_deplibs_check_method=pass_all
11092 ;;
11093
11094sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11095 lt_cv_deplibs_check_method=pass_all
11096 ;;
11097
11098sysv4 | sysv4.3*)
11099 case $host_vendor in
11100 motorola)
11101 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]'
11102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11103 ;;
11104 ncr)
11105 lt_cv_deplibs_check_method=pass_all
11106 ;;
11107 sequent)
11108 lt_cv_file_magic_cmd='/bin/file'
11109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11110 ;;
11111 sni)
11112 lt_cv_file_magic_cmd='/bin/file'
11113 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11114 lt_cv_file_magic_test_file=/lib/libc.so
11115 ;;
11116 siemens)
11117 lt_cv_deplibs_check_method=pass_all
11118 ;;
11119 pc)
11120 lt_cv_deplibs_check_method=pass_all
11121 ;;
11122 esac
11123 ;;
11124
11125tpf*)
11126 lt_cv_deplibs_check_method=pass_all
11127 ;;
11128esac
11129
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11132$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011133
11134file_magic_glob=
11135want_nocaseglob=no
11136if test "$build" = "$host"; then
11137 case $host_os in
11138 mingw* | pw32*)
11139 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11140 want_nocaseglob=yes
11141 else
11142 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11143 fi
11144 ;;
11145 esac
11146fi
11147
cristy73bd4a52010-10-05 11:24:23 +000011148file_magic_cmd=$lt_cv_file_magic_cmd
11149deplibs_check_method=$lt_cv_deplibs_check_method
11150test -z "$deplibs_check_method" && deplibs_check_method=unknown
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
cristyda16f162011-02-19 23:52:17 +000011163
11164
11165
11166
11167
11168
11169
11170
11171
11172
cristy73bd4a52010-10-05 11:24:23 +000011173if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011174 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11175set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011178if ${ac_cv_prog_DLLTOOL+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180else
11181 if test -n "$DLLTOOL"; then
11182 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11183else
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011191 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11194 fi
11195done
11196 done
11197IFS=$as_save_IFS
11198
11199fi
11200fi
11201DLLTOOL=$ac_cv_prog_DLLTOOL
11202if test -n "$DLLTOOL"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11204$as_echo "$DLLTOOL" >&6; }
11205else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
11208fi
11209
11210
11211fi
11212if test -z "$ac_cv_prog_DLLTOOL"; then
11213 ac_ct_DLLTOOL=$DLLTOOL
11214 # Extract the first word of "dlltool", so it can be a program name with args.
11215set dummy dlltool; ac_word=$2
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217$as_echo_n "checking for $ac_word... " >&6; }
11218if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220else
11221 if test -n "$ac_ct_DLLTOOL"; then
11222 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11223else
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011231 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235done
11236 done
11237IFS=$as_save_IFS
11238
11239fi
11240fi
11241ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11242if test -n "$ac_ct_DLLTOOL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11244$as_echo "$ac_ct_DLLTOOL" >&6; }
11245else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
11248fi
11249
11250 if test "x$ac_ct_DLLTOOL" = x; then
11251 DLLTOOL="false"
11252 else
11253 case $cross_compiling:$ac_tool_warned in
11254yes:)
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11257ac_tool_warned=yes ;;
11258esac
11259 DLLTOOL=$ac_ct_DLLTOOL
11260 fi
11261else
11262 DLLTOOL="$ac_cv_prog_DLLTOOL"
11263fi
11264
11265test -z "$DLLTOOL" && DLLTOOL=dlltool
11266
11267
11268
11269
11270
11271
11272
11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11274$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11275if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277else
11278 lt_cv_sharedlib_from_linklib_cmd='unknown'
11279
11280case $host_os in
11281cygwin* | mingw* | pw32* | cegcc*)
11282 # two different shell functions defined in ltmain.sh
11283 # decide which to use based on capabilities of $DLLTOOL
11284 case `$DLLTOOL --help 2>&1` in
11285 *--identify-strict*)
11286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11287 ;;
11288 *)
11289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11290 ;;
11291 esac
11292 ;;
11293*)
11294 # fallback: assume linklib IS sharedlib
11295 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11296 ;;
11297esac
11298
11299fi
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11301$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11302sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11303test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11304
11305
11306
11307
11308
11309
11310
11311if test -n "$ac_tool_prefix"; then
11312 for ac_prog in ar
11313 do
11314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011319 $as_echo_n "(cached) " >&6
11320else
11321 if test -n "$AR"; then
11322 ac_cv_prog_AR="$AR" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336 done
11337IFS=$as_save_IFS
11338
11339fi
11340fi
11341AR=$ac_cv_prog_AR
11342if test -n "$AR"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11344$as_echo "$AR" >&6; }
11345else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348fi
11349
11350
cristyda16f162011-02-19 23:52:17 +000011351 test -n "$AR" && break
11352 done
cristy73bd4a52010-10-05 11:24:23 +000011353fi
cristyda16f162011-02-19 23:52:17 +000011354if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011355 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011356 for ac_prog in ar
11357do
11358 # Extract the first word of "$ac_prog", so it can be a program name with args.
11359set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011362if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011363 $as_echo_n "(cached) " >&6
11364else
11365 if test -n "$ac_ct_AR"; then
11366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11367else
11368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011375 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379done
11380 done
11381IFS=$as_save_IFS
11382
11383fi
11384fi
11385ac_ct_AR=$ac_cv_prog_ac_ct_AR
11386if test -n "$ac_ct_AR"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11388$as_echo "$ac_ct_AR" >&6; }
11389else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
11392fi
11393
cristyda16f162011-02-19 23:52:17 +000011394
11395 test -n "$ac_ct_AR" && break
11396done
11397
cristy73bd4a52010-10-05 11:24:23 +000011398 if test "x$ac_ct_AR" = x; then
11399 AR="false"
11400 else
11401 case $cross_compiling:$ac_tool_warned in
11402yes:)
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11405ac_tool_warned=yes ;;
11406esac
11407 AR=$ac_ct_AR
11408 fi
cristy73bd4a52010-10-05 11:24:23 +000011409fi
11410
cristyda16f162011-02-19 23:52:17 +000011411: ${AR=ar}
11412: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
cristyda16f162011-02-19 23:52:17 +000011424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11425$as_echo_n "checking for archiver @FILE support... " >&6; }
11426if ${lt_cv_ar_at_file+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428else
11429 lt_cv_ar_at_file=no
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h. */
11432
11433int
11434main ()
11435{
11436
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_compile "$LINENO"; then :
11442 echo conftest.$ac_objext > conftest.lst
11443 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11445 (eval $lt_ar_try) 2>&5
11446 ac_status=$?
11447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; }
11449 if test "$ac_status" -eq 0; then
11450 # Ensure the archiver fails upon bogus file names.
11451 rm -f conftest.$ac_objext libconftest.a
11452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11453 (eval $lt_ar_try) 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11456 test $ac_status = 0; }
11457 if test "$ac_status" -ne 0; then
11458 lt_cv_ar_at_file=@
11459 fi
11460 fi
11461 rm -f conftest.* libconftest.a
11462
11463fi
11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465
11466fi
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11468$as_echo "$lt_cv_ar_at_file" >&6; }
11469
11470if test "x$lt_cv_ar_at_file" = xno; then
11471 archiver_list_spec=
11472else
11473 archiver_list_spec=$lt_cv_ar_at_file
11474fi
11475
11476
11477
11478
11479
11480
11481
cristy73bd4a52010-10-05 11:24:23 +000011482if test -n "$ac_tool_prefix"; then
11483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11484set dummy ${ac_tool_prefix}strip; ac_word=$2
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011487if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011488 $as_echo_n "(cached) " >&6
11489else
11490 if test -n "$STRIP"; then
11491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11492else
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504done
11505 done
11506IFS=$as_save_IFS
11507
11508fi
11509fi
11510STRIP=$ac_cv_prog_STRIP
11511if test -n "$STRIP"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11513$as_echo "$STRIP" >&6; }
11514else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516$as_echo "no" >&6; }
11517fi
11518
11519
11520fi
11521if test -z "$ac_cv_prog_STRIP"; then
11522 ac_ct_STRIP=$STRIP
11523 # Extract the first word of "strip", so it can be a program name with args.
11524set dummy strip; ac_word=$2
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011527if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011528 $as_echo_n "(cached) " >&6
11529else
11530 if test -n "$ac_ct_STRIP"; then
11531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11532else
11533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011540 ac_cv_prog_ac_ct_STRIP="strip"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544done
11545 done
11546IFS=$as_save_IFS
11547
11548fi
11549fi
11550ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11551if test -n "$ac_ct_STRIP"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11553$as_echo "$ac_ct_STRIP" >&6; }
11554else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556$as_echo "no" >&6; }
11557fi
11558
11559 if test "x$ac_ct_STRIP" = x; then
11560 STRIP=":"
11561 else
11562 case $cross_compiling:$ac_tool_warned in
11563yes:)
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11566ac_tool_warned=yes ;;
11567esac
11568 STRIP=$ac_ct_STRIP
11569 fi
11570else
11571 STRIP="$ac_cv_prog_STRIP"
11572fi
11573
11574test -z "$STRIP" && STRIP=:
11575
11576
11577
11578
11579
11580
11581if test -n "$ac_tool_prefix"; then
11582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11583set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011586if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011587 $as_echo_n "(cached) " >&6
11588else
11589 if test -n "$RANLIB"; then
11590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11591else
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
11597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11601 break 2
11602 fi
11603done
11604 done
11605IFS=$as_save_IFS
11606
11607fi
11608fi
11609RANLIB=$ac_cv_prog_RANLIB
11610if test -n "$RANLIB"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11612$as_echo "$RANLIB" >&6; }
11613else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
11616fi
11617
11618
11619fi
11620if test -z "$ac_cv_prog_RANLIB"; then
11621 ac_ct_RANLIB=$RANLIB
11622 # Extract the first word of "ranlib", so it can be a program name with args.
11623set dummy ranlib; ac_word=$2
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011626if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011627 $as_echo_n "(cached) " >&6
11628else
11629 if test -n "$ac_ct_RANLIB"; then
11630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11631else
11632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011639 ac_cv_prog_ac_ct_RANLIB="ranlib"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11642 fi
11643done
11644 done
11645IFS=$as_save_IFS
11646
11647fi
11648fi
11649ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11650if test -n "$ac_ct_RANLIB"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11652$as_echo "$ac_ct_RANLIB" >&6; }
11653else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
11656fi
11657
11658 if test "x$ac_ct_RANLIB" = x; then
11659 RANLIB=":"
11660 else
11661 case $cross_compiling:$ac_tool_warned in
11662yes:)
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11665ac_tool_warned=yes ;;
11666esac
11667 RANLIB=$ac_ct_RANLIB
11668 fi
11669else
11670 RANLIB="$ac_cv_prog_RANLIB"
11671fi
11672
11673test -z "$RANLIB" && RANLIB=:
11674
11675
11676
11677
11678
11679
11680# Determine commands to create old-style static archives.
11681old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11682old_postinstall_cmds='chmod 644 $oldlib'
11683old_postuninstall_cmds=
11684
11685if test -n "$RANLIB"; then
11686 case $host_os in
11687 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011689 ;;
11690 *)
cristy99bd5232011-12-07 14:38:20 +000011691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011692 ;;
11693 esac
cristy99bd5232011-12-07 14:38:20 +000011694 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011695fi
11696
cristy0c60a692010-11-04 01:09:47 +000011697case $host_os in
11698 darwin*)
11699 lock_old_archive_extraction=yes ;;
11700 *)
11701 lock_old_archive_extraction=no ;;
11702esac
11703
11704
11705
11706
11707
11708
cristy73bd4a52010-10-05 11:24:23 +000011709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742# If no C compiler was specified, use CC.
11743LTCC=${LTCC-"$CC"}
11744
11745# If no C compiler flags were specified, use CFLAGS.
11746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11747
11748# Allow CC to be a program name with arguments.
11749compiler=$CC
11750
11751
11752# Check for command to grab the raw symbol name followed by C symbol from nm.
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11754$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011755if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011756 $as_echo_n "(cached) " >&6
11757else
11758
11759# These are sane defaults that work on at least a few old systems.
11760# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11761
11762# Character class describing NM global symbol codes.
11763symcode='[BCDEGRST]'
11764
11765# Regexp to match symbols that can be accessed directly from C.
11766sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11767
11768# Define system-specific variables.
11769case $host_os in
11770aix*)
11771 symcode='[BCDT]'
11772 ;;
11773cygwin* | mingw* | pw32* | cegcc*)
11774 symcode='[ABCDGISTW]'
11775 ;;
11776hpux*)
11777 if test "$host_cpu" = ia64; then
11778 symcode='[ABCDEGRST]'
11779 fi
11780 ;;
11781irix* | nonstopux*)
11782 symcode='[BCDEGRST]'
11783 ;;
11784osf*)
11785 symcode='[BCDEGQRST]'
11786 ;;
11787solaris*)
11788 symcode='[BDRT]'
11789 ;;
11790sco3.2v5*)
11791 symcode='[DT]'
11792 ;;
11793sysv4.2uw2*)
11794 symcode='[DT]'
11795 ;;
11796sysv5* | sco5v6* | unixware* | OpenUNIX*)
11797 symcode='[ABDT]'
11798 ;;
11799sysv4)
11800 symcode='[DFNSTU]'
11801 ;;
11802esac
11803
11804# If we're using GNU nm, then use its standard symbol codes.
11805case `$NM -V 2>&1` in
11806*GNU* | *'with BFD'*)
11807 symcode='[ABCDGIRSTW]' ;;
11808esac
11809
11810# Transform an extracted symbol line into a proper C declaration.
11811# Some systems (esp. on ia64) link data and code symbols differently,
11812# so use this general approach.
11813lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11814
11815# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011816lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11817lt_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 +000011818
11819# Handle CRLF in mingw tool chain
11820opt_cr=
11821case $build_os in
11822mingw*)
11823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11824 ;;
11825esac
11826
11827# Try without a prefix underscore, then with it.
11828for ac_symprfx in "" "_"; do
11829
11830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11831 symxfrm="\\1 $ac_symprfx\\2 \\2"
11832
11833 # Write the raw and C identifiers.
11834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11835 # Fake it for dumpbin and say T for any non-static function
11836 # and D for any global variable.
11837 # Also find C++ and __fastcall symbols from MSVC++,
11838 # which start with @ or ?.
11839 lt_cv_sys_global_symbol_pipe="$AWK '"\
11840" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011841" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011842" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11843" \$ 0!~/External *\|/{next};"\
11844" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11845" {if(hide[section]) next};"\
11846" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11847" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11848" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11849" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11850" ' prfx=^$ac_symprfx"
11851 else
11852 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11853 fi
cristyda16f162011-02-19 23:52:17 +000011854 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011855
11856 # Check to see that the pipe works correctly.
11857 pipe_works=no
11858
11859 rm -f conftest*
11860 cat > conftest.$ac_ext <<_LT_EOF
11861#ifdef __cplusplus
11862extern "C" {
11863#endif
11864char nm_test_var;
11865void nm_test_func(void);
11866void nm_test_func(void){}
11867#ifdef __cplusplus
11868}
11869#endif
11870int main(){nm_test_var='a';nm_test_func();return(0);}
11871_LT_EOF
11872
11873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877 test $ac_status = 0; }; then
11878 # Now try to grab the symbols.
11879 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011882 ac_status=$?
11883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11884 test $ac_status = 0; } && test -s "$nlist"; then
11885 # Try sorting and uniquifying the output.
11886 if sort "$nlist" | uniq > "$nlist"T; then
11887 mv -f "$nlist"T "$nlist"
11888 else
11889 rm -f "$nlist"T
11890 fi
11891
11892 # Make sure that we snagged all the symbols we need.
11893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11895 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011896/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11897#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11898/* DATA imports from DLLs on WIN32 con't be const, because runtime
11899 relocations are performed -- see ld's documentation on pseudo-relocs. */
11900# define LT_DLSYM_CONST
11901#elif defined(__osf__)
11902/* This system does not cope well with relocations in const data. */
11903# define LT_DLSYM_CONST
11904#else
11905# define LT_DLSYM_CONST const
11906#endif
11907
cristy73bd4a52010-10-05 11:24:23 +000011908#ifdef __cplusplus
11909extern "C" {
11910#endif
11911
11912_LT_EOF
11913 # Now generate the symbol file.
11914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11915
11916 cat <<_LT_EOF >> conftest.$ac_ext
11917
11918/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011919LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011920 const char *name;
11921 void *address;
11922}
11923lt__PROGRAM__LTX_preloaded_symbols[] =
11924{
11925 { "@PROGRAM@", (void *) 0 },
11926_LT_EOF
11927 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11928 cat <<\_LT_EOF >> conftest.$ac_ext
11929 {0, (void *) 0}
11930};
11931
11932/* This works around a problem in FreeBSD linker */
11933#ifdef FREEBSD_WORKAROUND
11934static const void *lt_preloaded_setup() {
11935 return lt__PROGRAM__LTX_preloaded_symbols;
11936}
11937#endif
11938
11939#ifdef __cplusplus
11940}
11941#endif
11942_LT_EOF
11943 # Now try linking the two files.
11944 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011945 lt_globsym_save_LIBS=$LIBS
11946 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011947 LIBS="conftstm.$ac_objext"
11948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11950 (eval $ac_link) 2>&5
11951 ac_status=$?
11952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11954 pipe_works=yes
11955 fi
cristyda16f162011-02-19 23:52:17 +000011956 LIBS=$lt_globsym_save_LIBS
11957 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011958 else
11959 echo "cannot find nm_test_func in $nlist" >&5
11960 fi
11961 else
11962 echo "cannot find nm_test_var in $nlist" >&5
11963 fi
11964 else
11965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11966 fi
11967 else
11968 echo "$progname: failed program was:" >&5
11969 cat conftest.$ac_ext >&5
11970 fi
11971 rm -rf conftest* conftst*
11972
11973 # Do not use the global_symbol_pipe unless it works.
11974 if test "$pipe_works" = yes; then
11975 break
11976 else
11977 lt_cv_sys_global_symbol_pipe=
11978 fi
11979done
11980
11981fi
11982
11983if test -z "$lt_cv_sys_global_symbol_pipe"; then
11984 lt_cv_sys_global_symbol_to_cdecl=
11985fi
11986if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11988$as_echo "failed" >&6; }
11989else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11991$as_echo "ok" >&6; }
11992fi
11993
cristyda16f162011-02-19 23:52:17 +000011994# Response file support.
11995if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11996 nm_file_list_spec='@'
11997elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11998 nm_file_list_spec='@'
11999fi
cristy73bd4a52010-10-05 11:24:23 +000012000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
cristyda16f162011-02-19 23:52:17 +000012021
12022
12023
12024
12025
12026
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12028$as_echo_n "checking for sysroot... " >&6; }
12029
12030# Check whether --with-sysroot was given.
12031if test "${with_sysroot+set}" = set; then :
12032 withval=$with_sysroot;
12033else
12034 with_sysroot=no
12035fi
12036
12037
12038lt_sysroot=
12039case ${with_sysroot} in #(
12040 yes)
12041 if test "$GCC" = yes; then
12042 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12043 fi
12044 ;; #(
12045 /*)
12046 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12047 ;; #(
12048 no|'')
12049 ;; #(
12050 *)
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12052$as_echo "${with_sysroot}" >&6; }
12053 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12054 ;;
12055esac
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12058$as_echo "${lt_sysroot:-no}" >&6; }
12059
12060
12061
12062
12063
cristy73bd4a52010-10-05 11:24:23 +000012064# Check whether --enable-libtool-lock was given.
12065if test "${enable_libtool_lock+set}" = set; then :
12066 enableval=$enable_libtool_lock;
12067fi
12068
12069test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12070
12071# Some flags need to be propagated to the compiler or linker for good
12072# libtool support.
12073case $host in
12074ia64-*-hpux*)
12075 # Find out which ABI we are using.
12076 echo 'int i;' > conftest.$ac_ext
12077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12078 (eval $ac_compile) 2>&5
12079 ac_status=$?
12080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081 test $ac_status = 0; }; then
12082 case `/usr/bin/file conftest.$ac_objext` in
12083 *ELF-32*)
12084 HPUX_IA64_MODE="32"
12085 ;;
12086 *ELF-64*)
12087 HPUX_IA64_MODE="64"
12088 ;;
12089 esac
12090 fi
12091 rm -rf conftest*
12092 ;;
12093*-*-irix6*)
12094 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012095 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12097 (eval $ac_compile) 2>&5
12098 ac_status=$?
12099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12100 test $ac_status = 0; }; then
12101 if test "$lt_cv_prog_gnu_ld" = yes; then
12102 case `/usr/bin/file conftest.$ac_objext` in
12103 *32-bit*)
12104 LD="${LD-ld} -melf32bsmip"
12105 ;;
12106 *N32*)
12107 LD="${LD-ld} -melf32bmipn32"
12108 ;;
12109 *64-bit*)
12110 LD="${LD-ld} -melf64bmip"
12111 ;;
12112 esac
12113 else
12114 case `/usr/bin/file conftest.$ac_objext` in
12115 *32-bit*)
12116 LD="${LD-ld} -32"
12117 ;;
12118 *N32*)
12119 LD="${LD-ld} -n32"
12120 ;;
12121 *64-bit*)
12122 LD="${LD-ld} -64"
12123 ;;
12124 esac
12125 fi
12126 fi
12127 rm -rf conftest*
12128 ;;
12129
12130x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12131s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12132 # Find out which ABI we are using.
12133 echo 'int i;' > conftest.$ac_ext
12134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12135 (eval $ac_compile) 2>&5
12136 ac_status=$?
12137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138 test $ac_status = 0; }; then
12139 case `/usr/bin/file conftest.o` in
12140 *32-bit*)
12141 case $host in
12142 x86_64-*kfreebsd*-gnu)
12143 LD="${LD-ld} -m elf_i386_fbsd"
12144 ;;
12145 x86_64-*linux*)
12146 LD="${LD-ld} -m elf_i386"
12147 ;;
12148 ppc64-*linux*|powerpc64-*linux*)
12149 LD="${LD-ld} -m elf32ppclinux"
12150 ;;
12151 s390x-*linux*)
12152 LD="${LD-ld} -m elf_s390"
12153 ;;
12154 sparc64-*linux*)
12155 LD="${LD-ld} -m elf32_sparc"
12156 ;;
12157 esac
12158 ;;
12159 *64-bit*)
12160 case $host in
12161 x86_64-*kfreebsd*-gnu)
12162 LD="${LD-ld} -m elf_x86_64_fbsd"
12163 ;;
12164 x86_64-*linux*)
12165 LD="${LD-ld} -m elf_x86_64"
12166 ;;
12167 ppc*-*linux*|powerpc*-*linux*)
12168 LD="${LD-ld} -m elf64ppc"
12169 ;;
12170 s390*-*linux*|s390*-*tpf*)
12171 LD="${LD-ld} -m elf64_s390"
12172 ;;
12173 sparc*-*linux*)
12174 LD="${LD-ld} -m elf64_sparc"
12175 ;;
12176 esac
12177 ;;
12178 esac
12179 fi
12180 rm -rf conftest*
12181 ;;
12182
12183*-*-sco3.2v5*)
12184 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12185 SAVE_CFLAGS="$CFLAGS"
12186 CFLAGS="$CFLAGS -belf"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12188$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012189if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012190 $as_echo_n "(cached) " >&6
12191else
12192 ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199/* end confdefs.h. */
12200
12201int
12202main ()
12203{
12204
12205 ;
12206 return 0;
12207}
12208_ACEOF
12209if ac_fn_c_try_link "$LINENO"; then :
12210 lt_cv_cc_needs_belf=yes
12211else
12212 lt_cv_cc_needs_belf=no
12213fi
12214rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12216 ac_ext=c
12217ac_cpp='$CPP $CPPFLAGS'
12218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221
12222fi
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12224$as_echo "$lt_cv_cc_needs_belf" >&6; }
12225 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12226 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12227 CFLAGS="$SAVE_CFLAGS"
12228 fi
12229 ;;
cristy99bd5232011-12-07 14:38:20 +000012230*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012231 # Find out which ABI we are using.
12232 echo 'int i;' > conftest.$ac_ext
12233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12234 (eval $ac_compile) 2>&5
12235 ac_status=$?
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; }; then
12238 case `/usr/bin/file conftest.o` in
12239 *64-bit*)
12240 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012241 yes*)
12242 case $host in
12243 i?86-*-solaris*)
12244 LD="${LD-ld} -m elf_x86_64"
12245 ;;
12246 sparc*-*-solaris*)
12247 LD="${LD-ld} -m elf64_sparc"
12248 ;;
12249 esac
12250 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12251 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12252 LD="${LD-ld}_sol2"
12253 fi
12254 ;;
cristy73bd4a52010-10-05 11:24:23 +000012255 *)
12256 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12257 LD="${LD-ld} -64"
12258 fi
12259 ;;
12260 esac
12261 ;;
12262 esac
12263 fi
12264 rm -rf conftest*
12265 ;;
12266esac
12267
12268need_locks="$enable_libtool_lock"
12269
cristyda16f162011-02-19 23:52:17 +000012270if test -n "$ac_tool_prefix"; then
12271 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12272set dummy ${ac_tool_prefix}mt; ac_word=$2
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
12275if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277else
12278 if test -n "$MANIFEST_TOOL"; then
12279 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12280else
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012288 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12291 fi
12292done
12293 done
12294IFS=$as_save_IFS
12295
12296fi
12297fi
12298MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12299if test -n "$MANIFEST_TOOL"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12301$as_echo "$MANIFEST_TOOL" >&6; }
12302else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
12305fi
12306
12307
12308fi
12309if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12310 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12311 # Extract the first word of "mt", so it can be a program name with args.
12312set dummy mt; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317else
12318 if test -n "$ac_ct_MANIFEST_TOOL"; then
12319 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012328 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12339if test -n "$ac_ct_MANIFEST_TOOL"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12341$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12342else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12348 MANIFEST_TOOL=":"
12349 else
12350 case $cross_compiling:$ac_tool_warned in
12351yes:)
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12354ac_tool_warned=yes ;;
12355esac
12356 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12357 fi
12358else
12359 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12360fi
12361
12362test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12364$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12365if ${lt_cv_path_mainfest_tool+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 lt_cv_path_mainfest_tool=no
12369 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12370 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12371 cat conftest.err >&5
12372 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12373 lt_cv_path_mainfest_tool=yes
12374 fi
12375 rm -f conftest*
12376fi
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12378$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12379if test "x$lt_cv_path_mainfest_tool" != xyes; then
12380 MANIFEST_TOOL=:
12381fi
12382
12383
12384
12385
12386
cristy73bd4a52010-10-05 11:24:23 +000012387
12388 case $host_os in
12389 rhapsody* | darwin*)
12390 if test -n "$ac_tool_prefix"; then
12391 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12392set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012395if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012396 $as_echo_n "(cached) " >&6
12397else
12398 if test -n "$DSYMUTIL"; then
12399 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12400else
12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402for as_dir in $PATH
12403do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012408 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12411 fi
12412done
12413 done
12414IFS=$as_save_IFS
12415
12416fi
12417fi
12418DSYMUTIL=$ac_cv_prog_DSYMUTIL
12419if test -n "$DSYMUTIL"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12421$as_echo "$DSYMUTIL" >&6; }
12422else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424$as_echo "no" >&6; }
12425fi
12426
12427
12428fi
12429if test -z "$ac_cv_prog_DSYMUTIL"; then
12430 ac_ct_DSYMUTIL=$DSYMUTIL
12431 # Extract the first word of "dsymutil", so it can be a program name with args.
12432set dummy dsymutil; ac_word=$2
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012435if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012436 $as_echo_n "(cached) " >&6
12437else
12438 if test -n "$ac_ct_DSYMUTIL"; then
12439 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12440else
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012448 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12451 fi
12452done
12453 done
12454IFS=$as_save_IFS
12455
12456fi
12457fi
12458ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12459if test -n "$ac_ct_DSYMUTIL"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12461$as_echo "$ac_ct_DSYMUTIL" >&6; }
12462else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
12465fi
12466
12467 if test "x$ac_ct_DSYMUTIL" = x; then
12468 DSYMUTIL=":"
12469 else
12470 case $cross_compiling:$ac_tool_warned in
12471yes:)
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12474ac_tool_warned=yes ;;
12475esac
12476 DSYMUTIL=$ac_ct_DSYMUTIL
12477 fi
12478else
12479 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12480fi
12481
12482 if test -n "$ac_tool_prefix"; then
12483 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12484set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012487if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012488 $as_echo_n "(cached) " >&6
12489else
12490 if test -n "$NMEDIT"; then
12491 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12492else
12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494for as_dir in $PATH
12495do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012500 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504done
12505 done
12506IFS=$as_save_IFS
12507
12508fi
12509fi
12510NMEDIT=$ac_cv_prog_NMEDIT
12511if test -n "$NMEDIT"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12513$as_echo "$NMEDIT" >&6; }
12514else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
12517fi
12518
12519
12520fi
12521if test -z "$ac_cv_prog_NMEDIT"; then
12522 ac_ct_NMEDIT=$NMEDIT
12523 # Extract the first word of "nmedit", so it can be a program name with args.
12524set dummy nmedit; ac_word=$2
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012527if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012528 $as_echo_n "(cached) " >&6
12529else
12530 if test -n "$ac_ct_NMEDIT"; then
12531 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12532else
12533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $PATH
12535do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012540 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12543 fi
12544done
12545 done
12546IFS=$as_save_IFS
12547
12548fi
12549fi
12550ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12551if test -n "$ac_ct_NMEDIT"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12553$as_echo "$ac_ct_NMEDIT" >&6; }
12554else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
12557fi
12558
12559 if test "x$ac_ct_NMEDIT" = x; then
12560 NMEDIT=":"
12561 else
12562 case $cross_compiling:$ac_tool_warned in
12563yes:)
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12566ac_tool_warned=yes ;;
12567esac
12568 NMEDIT=$ac_ct_NMEDIT
12569 fi
12570else
12571 NMEDIT="$ac_cv_prog_NMEDIT"
12572fi
12573
12574 if test -n "$ac_tool_prefix"; then
12575 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12576set dummy ${ac_tool_prefix}lipo; ac_word=$2
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012579if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012580 $as_echo_n "(cached) " >&6
12581else
12582 if test -n "$LIPO"; then
12583 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12584else
12585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586for as_dir in $PATH
12587do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012592 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596done
12597 done
12598IFS=$as_save_IFS
12599
12600fi
12601fi
12602LIPO=$ac_cv_prog_LIPO
12603if test -n "$LIPO"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12605$as_echo "$LIPO" >&6; }
12606else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
12609fi
12610
12611
12612fi
12613if test -z "$ac_cv_prog_LIPO"; then
12614 ac_ct_LIPO=$LIPO
12615 # Extract the first word of "lipo", so it can be a program name with args.
12616set dummy lipo; ac_word=$2
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012619if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012620 $as_echo_n "(cached) " >&6
12621else
12622 if test -n "$ac_ct_LIPO"; then
12623 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12624else
12625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $PATH
12627do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012632 ac_cv_prog_ac_ct_LIPO="lipo"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636done
12637 done
12638IFS=$as_save_IFS
12639
12640fi
12641fi
12642ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12643if test -n "$ac_ct_LIPO"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12645$as_echo "$ac_ct_LIPO" >&6; }
12646else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649fi
12650
12651 if test "x$ac_ct_LIPO" = x; then
12652 LIPO=":"
12653 else
12654 case $cross_compiling:$ac_tool_warned in
12655yes:)
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658ac_tool_warned=yes ;;
12659esac
12660 LIPO=$ac_ct_LIPO
12661 fi
12662else
12663 LIPO="$ac_cv_prog_LIPO"
12664fi
12665
12666 if test -n "$ac_tool_prefix"; then
12667 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12668set dummy ${ac_tool_prefix}otool; ac_word=$2
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012671if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012672 $as_echo_n "(cached) " >&6
12673else
12674 if test -n "$OTOOL"; then
12675 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12676else
12677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678for as_dir in $PATH
12679do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012684 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 break 2
12687 fi
12688done
12689 done
12690IFS=$as_save_IFS
12691
12692fi
12693fi
12694OTOOL=$ac_cv_prog_OTOOL
12695if test -n "$OTOOL"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12697$as_echo "$OTOOL" >&6; }
12698else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
12701fi
12702
12703
12704fi
12705if test -z "$ac_cv_prog_OTOOL"; then
12706 ac_ct_OTOOL=$OTOOL
12707 # Extract the first word of "otool", so it can be a program name with args.
12708set dummy otool; ac_word=$2
12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12710$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012711if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012712 $as_echo_n "(cached) " >&6
12713else
12714 if test -n "$ac_ct_OTOOL"; then
12715 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12716else
12717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718for as_dir in $PATH
12719do
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012724 ac_cv_prog_ac_ct_OTOOL="otool"
12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726 break 2
12727 fi
12728done
12729 done
12730IFS=$as_save_IFS
12731
12732fi
12733fi
12734ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12735if test -n "$ac_ct_OTOOL"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12737$as_echo "$ac_ct_OTOOL" >&6; }
12738else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740$as_echo "no" >&6; }
12741fi
12742
12743 if test "x$ac_ct_OTOOL" = x; then
12744 OTOOL=":"
12745 else
12746 case $cross_compiling:$ac_tool_warned in
12747yes:)
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12750ac_tool_warned=yes ;;
12751esac
12752 OTOOL=$ac_ct_OTOOL
12753 fi
12754else
12755 OTOOL="$ac_cv_prog_OTOOL"
12756fi
12757
12758 if test -n "$ac_tool_prefix"; then
12759 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12760set dummy ${ac_tool_prefix}otool64; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012763if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012764 $as_echo_n "(cached) " >&6
12765else
12766 if test -n "$OTOOL64"; then
12767 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12768else
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012776 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12779 fi
12780done
12781 done
12782IFS=$as_save_IFS
12783
12784fi
12785fi
12786OTOOL64=$ac_cv_prog_OTOOL64
12787if test -n "$OTOOL64"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12789$as_echo "$OTOOL64" >&6; }
12790else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
12793fi
12794
12795
12796fi
12797if test -z "$ac_cv_prog_OTOOL64"; then
12798 ac_ct_OTOOL64=$OTOOL64
12799 # Extract the first word of "otool64", so it can be a program name with args.
12800set dummy otool64; ac_word=$2
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012803if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012804 $as_echo_n "(cached) " >&6
12805else
12806 if test -n "$ac_ct_OTOOL64"; then
12807 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012816 ac_cv_prog_ac_ct_OTOOL64="otool64"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820done
12821 done
12822IFS=$as_save_IFS
12823
12824fi
12825fi
12826ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12827if test -n "$ac_ct_OTOOL64"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12829$as_echo "$ac_ct_OTOOL64" >&6; }
12830else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835 if test "x$ac_ct_OTOOL64" = x; then
12836 OTOOL64=":"
12837 else
12838 case $cross_compiling:$ac_tool_warned in
12839yes:)
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12842ac_tool_warned=yes ;;
12843esac
12844 OTOOL64=$ac_ct_OTOOL64
12845 fi
12846else
12847 OTOOL64="$ac_cv_prog_OTOOL64"
12848fi
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12877$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012878if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012879 $as_echo_n "(cached) " >&6
12880else
12881 lt_cv_apple_cc_single_mod=no
12882 if test -z "${LT_MULTI_MODULE}"; then
12883 # By default we will add the -single_module flag. You can override
12884 # by either setting the environment variable LT_MULTI_MODULE
12885 # non-empty at configure time, or by adding -multi_module to the
12886 # link flags.
12887 rm -rf libconftest.dylib*
12888 echo "int foo(void){return 1;}" > conftest.c
12889 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12890-dynamiclib -Wl,-single_module conftest.c" >&5
12891 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12892 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12893 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012894 # If there is a non-empty error log, and "single_module"
12895 # appears in it, assume the flag caused a linker warning
12896 if test -s conftest.err && $GREP single_module conftest.err; then
12897 cat conftest.err >&5
12898 # Otherwise, if the output was created with a 0 exit code from
12899 # the compiler, it worked.
12900 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012901 lt_cv_apple_cc_single_mod=yes
12902 else
12903 cat conftest.err >&5
12904 fi
12905 rm -rf libconftest.dylib*
12906 rm -f conftest.*
12907 fi
12908fi
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12910$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012911
cristy73bd4a52010-10-05 11:24:23 +000012912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12913$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012914if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012915 $as_echo_n "(cached) " >&6
12916else
12917 lt_cv_ld_exported_symbols_list=no
12918 save_LDFLAGS=$LDFLAGS
12919 echo "_main" > conftest.sym
12920 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922/* end confdefs.h. */
12923
12924int
12925main ()
12926{
12927
12928 ;
12929 return 0;
12930}
12931_ACEOF
12932if ac_fn_c_try_link "$LINENO"; then :
12933 lt_cv_ld_exported_symbols_list=yes
12934else
12935 lt_cv_ld_exported_symbols_list=no
12936fi
12937rm -f core conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LDFLAGS="$save_LDFLAGS"
12940
12941fi
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12943$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012944
cristy0c60a692010-11-04 01:09:47 +000012945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12946$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012947if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012948 $as_echo_n "(cached) " >&6
12949else
12950 lt_cv_ld_force_load=no
12951 cat > conftest.c << _LT_EOF
12952int forced_loaded() { return 2;}
12953_LT_EOF
12954 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12955 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12956 echo "$AR cru libconftest.a conftest.o" >&5
12957 $AR cru libconftest.a conftest.o 2>&5
12958 echo "$RANLIB libconftest.a" >&5
12959 $RANLIB libconftest.a 2>&5
12960 cat > conftest.c << _LT_EOF
12961int main() { return 0;}
12962_LT_EOF
12963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12965 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012966 if test -s conftest.err && $GREP force_load conftest.err; then
12967 cat conftest.err >&5
12968 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012969 lt_cv_ld_force_load=yes
12970 else
12971 cat conftest.err >&5
12972 fi
12973 rm -f conftest.err libconftest.a conftest conftest.c
12974 rm -rf conftest.dSYM
12975
12976fi
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12978$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012979 case $host_os in
12980 rhapsody* | darwin1.[012])
12981 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12982 darwin1.*)
12983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12984 darwin*) # darwin 5.x on
12985 # if running on 10.5 or later, the deployment target defaults
12986 # to the OS version, if on x86, and 10.4, the deployment
12987 # target defaults to 10.4. Don't you love it?
12988 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12989 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12991 10.[012]*)
12992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12993 10.*)
12994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12995 esac
12996 ;;
12997 esac
12998 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12999 _lt_dar_single_mod='$single_module'
13000 fi
13001 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13002 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13003 else
13004 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13005 fi
cristy0c60a692010-11-04 01:09:47 +000013006 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013007 _lt_dsymutil='~$DSYMUTIL $lib || :'
13008 else
13009 _lt_dsymutil=
13010 fi
13011 ;;
13012 esac
13013
13014for ac_header in dlfcn.h
13015do :
13016 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13017"
cristyda16f162011-02-19 23:52:17 +000013018if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013019 cat >>confdefs.h <<_ACEOF
13020#define HAVE_DLFCN_H 1
13021_ACEOF
13022
13023fi
13024
13025done
13026
13027
13028
cristy73bd4a52010-10-05 11:24:23 +000013029
cristyda16f162011-02-19 23:52:17 +000013030func_stripname_cnf ()
13031{
13032 case ${2} in
13033 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13034 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13035 esac
13036} # func_stripname_cnf
13037
13038
13039
cristy73bd4a52010-10-05 11:24:23 +000013040
13041
13042# Set options
13043enable_win32_dll=yes
13044
13045case $host in
cristy0c60a692010-11-04 01:09:47 +000013046*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013047 if test -n "$ac_tool_prefix"; then
13048 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13049set dummy ${ac_tool_prefix}as; ac_word=$2
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013052if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013053 $as_echo_n "(cached) " >&6
13054else
13055 if test -n "$AS"; then
13056 ac_cv_prog_AS="$AS" # Let the user override the test.
13057else
13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013065 ac_cv_prog_AS="${ac_tool_prefix}as"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069done
13070 done
13071IFS=$as_save_IFS
13072
13073fi
13074fi
13075AS=$ac_cv_prog_AS
13076if test -n "$AS"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13078$as_echo "$AS" >&6; }
13079else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082fi
13083
13084
13085fi
13086if test -z "$ac_cv_prog_AS"; then
13087 ac_ct_AS=$AS
13088 # Extract the first word of "as", so it can be a program name with args.
13089set dummy as; ac_word=$2
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013092if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013093 $as_echo_n "(cached) " >&6
13094else
13095 if test -n "$ac_ct_AS"; then
13096 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13097else
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013105 ac_cv_prog_ac_ct_AS="as"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 break 2
13108 fi
13109done
13110 done
13111IFS=$as_save_IFS
13112
13113fi
13114fi
13115ac_ct_AS=$ac_cv_prog_ac_ct_AS
13116if test -n "$ac_ct_AS"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13118$as_echo "$ac_ct_AS" >&6; }
13119else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
13122fi
13123
13124 if test "x$ac_ct_AS" = x; then
13125 AS="false"
13126 else
13127 case $cross_compiling:$ac_tool_warned in
13128yes:)
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13131ac_tool_warned=yes ;;
13132esac
13133 AS=$ac_ct_AS
13134 fi
13135else
13136 AS="$ac_cv_prog_AS"
13137fi
13138
13139 if test -n "$ac_tool_prefix"; then
13140 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13141set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013144if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013145 $as_echo_n "(cached) " >&6
13146else
13147 if test -n "$DLLTOOL"; then
13148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13149else
13150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151for as_dir in $PATH
13152do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013157 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13160 fi
13161done
13162 done
13163IFS=$as_save_IFS
13164
13165fi
13166fi
13167DLLTOOL=$ac_cv_prog_DLLTOOL
13168if test -n "$DLLTOOL"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13170$as_echo "$DLLTOOL" >&6; }
13171else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173$as_echo "no" >&6; }
13174fi
13175
13176
13177fi
13178if test -z "$ac_cv_prog_DLLTOOL"; then
13179 ac_ct_DLLTOOL=$DLLTOOL
13180 # Extract the first word of "dlltool", so it can be a program name with args.
13181set dummy dlltool; ac_word=$2
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013184if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013185 $as_echo_n "(cached) " >&6
13186else
13187 if test -n "$ac_ct_DLLTOOL"; then
13188 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013197 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202 done
13203IFS=$as_save_IFS
13204
13205fi
13206fi
13207ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13208if test -n "$ac_ct_DLLTOOL"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13210$as_echo "$ac_ct_DLLTOOL" >&6; }
13211else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216 if test "x$ac_ct_DLLTOOL" = x; then
13217 DLLTOOL="false"
13218 else
13219 case $cross_compiling:$ac_tool_warned in
13220yes:)
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13223ac_tool_warned=yes ;;
13224esac
13225 DLLTOOL=$ac_ct_DLLTOOL
13226 fi
13227else
13228 DLLTOOL="$ac_cv_prog_DLLTOOL"
13229fi
13230
13231 if test -n "$ac_tool_prefix"; then
13232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13233set dummy ${ac_tool_prefix}objdump; ac_word=$2
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013236if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013237 $as_echo_n "(cached) " >&6
13238else
13239 if test -n "$OBJDUMP"; then
13240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13252 fi
13253done
13254 done
13255IFS=$as_save_IFS
13256
13257fi
13258fi
13259OBJDUMP=$ac_cv_prog_OBJDUMP
13260if test -n "$OBJDUMP"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13262$as_echo "$OBJDUMP" >&6; }
13263else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265$as_echo "no" >&6; }
13266fi
13267
13268
13269fi
13270if test -z "$ac_cv_prog_OBJDUMP"; then
13271 ac_ct_OBJDUMP=$OBJDUMP
13272 # Extract the first word of "objdump", so it can be a program name with args.
13273set dummy objdump; ac_word=$2
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013277 $as_echo_n "(cached) " >&6
13278else
13279 if test -n "$ac_ct_OBJDUMP"; then
13280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293done
13294 done
13295IFS=$as_save_IFS
13296
13297fi
13298fi
13299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13300if test -n "$ac_ct_OBJDUMP"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13302$as_echo "$ac_ct_OBJDUMP" >&6; }
13303else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305$as_echo "no" >&6; }
13306fi
13307
13308 if test "x$ac_ct_OBJDUMP" = x; then
13309 OBJDUMP="false"
13310 else
13311 case $cross_compiling:$ac_tool_warned in
13312yes:)
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315ac_tool_warned=yes ;;
13316esac
13317 OBJDUMP=$ac_ct_OBJDUMP
13318 fi
13319else
13320 OBJDUMP="$ac_cv_prog_OBJDUMP"
13321fi
13322
13323 ;;
13324esac
13325
13326test -z "$AS" && AS=as
13327
13328
13329
13330
13331
13332test -z "$DLLTOOL" && DLLTOOL=dlltool
13333
13334
13335
13336
13337
13338test -z "$OBJDUMP" && OBJDUMP=objdump
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 # Check whether --enable-shared was given.
13349if test "${enable_shared+set}" = set; then :
13350 enableval=$enable_shared; p=${PACKAGE-default}
13351 case $enableval in
13352 yes) enable_shared=yes ;;
13353 no) enable_shared=no ;;
13354 *)
13355 enable_shared=no
13356 # Look at the argument we got. We use all the common list separators.
13357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13358 for pkg in $enableval; do
13359 IFS="$lt_save_ifs"
13360 if test "X$pkg" = "X$p"; then
13361 enable_shared=yes
13362 fi
13363 done
13364 IFS="$lt_save_ifs"
13365 ;;
13366 esac
13367else
13368 enable_shared=yes
13369fi
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379 # Check whether --enable-static was given.
13380if test "${enable_static+set}" = set; then :
13381 enableval=$enable_static; p=${PACKAGE-default}
13382 case $enableval in
13383 yes) enable_static=yes ;;
13384 no) enable_static=no ;;
13385 *)
13386 enable_static=no
13387 # Look at the argument we got. We use all the common list separators.
13388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13389 for pkg in $enableval; do
13390 IFS="$lt_save_ifs"
13391 if test "X$pkg" = "X$p"; then
13392 enable_static=yes
13393 fi
13394 done
13395 IFS="$lt_save_ifs"
13396 ;;
13397 esac
13398else
13399 enable_static=yes
13400fi
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411# Check whether --with-pic was given.
13412if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013413 withval=$with_pic; lt_p=${PACKAGE-default}
13414 case $withval in
13415 yes|no) pic_mode=$withval ;;
13416 *)
13417 pic_mode=default
13418 # Look at the argument we got. We use all the common list separators.
13419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13420 for lt_pkg in $withval; do
13421 IFS="$lt_save_ifs"
13422 if test "X$lt_pkg" = "X$lt_p"; then
13423 pic_mode=yes
13424 fi
13425 done
13426 IFS="$lt_save_ifs"
13427 ;;
13428 esac
cristy73bd4a52010-10-05 11:24:23 +000013429else
13430 pic_mode=default
13431fi
13432
13433
13434test -z "$pic_mode" && pic_mode=default
13435
13436
13437
13438
13439
13440
13441
13442 # Check whether --enable-fast-install was given.
13443if test "${enable_fast_install+set}" = set; then :
13444 enableval=$enable_fast_install; p=${PACKAGE-default}
13445 case $enableval in
13446 yes) enable_fast_install=yes ;;
13447 no) enable_fast_install=no ;;
13448 *)
13449 enable_fast_install=no
13450 # Look at the argument we got. We use all the common list separators.
13451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13452 for pkg in $enableval; do
13453 IFS="$lt_save_ifs"
13454 if test "X$pkg" = "X$p"; then
13455 enable_fast_install=yes
13456 fi
13457 done
13458 IFS="$lt_save_ifs"
13459 ;;
13460 esac
13461else
13462 enable_fast_install=yes
13463fi
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475# This can be used to rebuild libtool when needed
13476LIBTOOL_DEPS="$ltmain"
13477
13478# Always use our own libtool.
13479LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
cristy0c60a692010-11-04 01:09:47 +000013505
cristy99bd5232011-12-07 14:38:20 +000013506
13507
13508
13509
cristy73bd4a52010-10-05 11:24:23 +000013510test -z "$LN_S" && LN_S="ln -s"
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525if test -n "${ZSH_VERSION+set}" ; then
13526 setopt NO_GLOB_SUBST
13527fi
13528
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13530$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013531if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013532 $as_echo_n "(cached) " >&6
13533else
13534 rm -f .libs 2>/dev/null
13535mkdir .libs 2>/dev/null
13536if test -d .libs; then
13537 lt_cv_objdir=.libs
13538else
13539 # MS-DOS does not allow filenames that begin with a dot.
13540 lt_cv_objdir=_libs
13541fi
13542rmdir .libs 2>/dev/null
13543fi
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13545$as_echo "$lt_cv_objdir" >&6; }
13546objdir=$lt_cv_objdir
13547
13548
13549
13550
13551
13552cat >>confdefs.h <<_ACEOF
13553#define LT_OBJDIR "$lt_cv_objdir/"
13554_ACEOF
13555
13556
13557
13558
cristy73bd4a52010-10-05 11:24:23 +000013559case $host_os in
13560aix3*)
13561 # AIX sometimes has problems with the GCC collect2 program. For some
13562 # reason, if we set the COLLECT_NAMES environment variable, the problems
13563 # vanish in a puff of smoke.
13564 if test "X${COLLECT_NAMES+set}" != Xset; then
13565 COLLECT_NAMES=
13566 export COLLECT_NAMES
13567 fi
13568 ;;
13569esac
13570
cristy73bd4a52010-10-05 11:24:23 +000013571# Global variables:
13572ofile=libtool
13573can_build_shared=yes
13574
13575# All known linkers require a `.a' archive for static linking (except MSVC,
13576# which needs '.lib').
13577libext=a
13578
13579with_gnu_ld="$lt_cv_prog_gnu_ld"
13580
13581old_CC="$CC"
13582old_CFLAGS="$CFLAGS"
13583
13584# Set sane defaults for various variables
13585test -z "$CC" && CC=cc
13586test -z "$LTCC" && LTCC=$CC
13587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13588test -z "$LD" && LD=ld
13589test -z "$ac_objext" && ac_objext=o
13590
13591for cc_temp in $compiler""; do
13592 case $cc_temp in
13593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595 \-*) ;;
13596 *) break;;
13597 esac
13598done
cristy0c60a692010-11-04 01:09:47 +000013599cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013600
13601
13602# Only perform the check for file, if the check method requires it
13603test -z "$MAGIC_CMD" && MAGIC_CMD=file
13604case $deplibs_check_method in
13605file_magic*)
13606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013609if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013610 $as_echo_n "(cached) " >&6
13611else
13612 case $MAGIC_CMD in
13613[\\/*] | ?:[\\/]*)
13614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13615 ;;
13616*)
13617 lt_save_MAGIC_CMD="$MAGIC_CMD"
13618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13620 for ac_dir in $ac_dummy; do
13621 IFS="$lt_save_ifs"
13622 test -z "$ac_dir" && ac_dir=.
13623 if test -f $ac_dir/${ac_tool_prefix}file; then
13624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13625 if test -n "$file_magic_test_file"; then
13626 case $deplibs_check_method in
13627 "file_magic "*)
13628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13631 $EGREP "$file_magic_regex" > /dev/null; then
13632 :
13633 else
13634 cat <<_LT_EOF 1>&2
13635
13636*** Warning: the command libtool uses to detect shared libraries,
13637*** $file_magic_cmd, produces output that libtool cannot recognize.
13638*** The result is that libtool may fail to recognize shared libraries
13639*** as such. This will affect the creation of libtool libraries that
13640*** depend on shared libraries, but programs linked with such libtool
13641*** libraries will work regardless of this problem. Nevertheless, you
13642*** may want to report the problem to your system manager and/or to
13643*** bug-libtool@gnu.org
13644
13645_LT_EOF
13646 fi ;;
13647 esac
13648 fi
13649 break
13650 fi
13651 done
13652 IFS="$lt_save_ifs"
13653 MAGIC_CMD="$lt_save_MAGIC_CMD"
13654 ;;
13655esac
13656fi
13657
13658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13659if test -n "$MAGIC_CMD"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13661$as_echo "$MAGIC_CMD" >&6; }
13662else
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664$as_echo "no" >&6; }
13665fi
13666
13667
13668
13669
13670
13671if test -z "$lt_cv_path_MAGIC_CMD"; then
13672 if test -n "$ac_tool_prefix"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13674$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013675if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013676 $as_echo_n "(cached) " >&6
13677else
13678 case $MAGIC_CMD in
13679[\\/*] | ?:[\\/]*)
13680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13681 ;;
13682*)
13683 lt_save_MAGIC_CMD="$MAGIC_CMD"
13684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13686 for ac_dir in $ac_dummy; do
13687 IFS="$lt_save_ifs"
13688 test -z "$ac_dir" && ac_dir=.
13689 if test -f $ac_dir/file; then
13690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13691 if test -n "$file_magic_test_file"; then
13692 case $deplibs_check_method in
13693 "file_magic "*)
13694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13697 $EGREP "$file_magic_regex" > /dev/null; then
13698 :
13699 else
13700 cat <<_LT_EOF 1>&2
13701
13702*** Warning: the command libtool uses to detect shared libraries,
13703*** $file_magic_cmd, produces output that libtool cannot recognize.
13704*** The result is that libtool may fail to recognize shared libraries
13705*** as such. This will affect the creation of libtool libraries that
13706*** depend on shared libraries, but programs linked with such libtool
13707*** libraries will work regardless of this problem. Nevertheless, you
13708*** may want to report the problem to your system manager and/or to
13709*** bug-libtool@gnu.org
13710
13711_LT_EOF
13712 fi ;;
13713 esac
13714 fi
13715 break
13716 fi
13717 done
13718 IFS="$lt_save_ifs"
13719 MAGIC_CMD="$lt_save_MAGIC_CMD"
13720 ;;
13721esac
13722fi
13723
13724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13725if test -n "$MAGIC_CMD"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13727$as_echo "$MAGIC_CMD" >&6; }
13728else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730$as_echo "no" >&6; }
13731fi
13732
13733
13734 else
13735 MAGIC_CMD=:
13736 fi
13737fi
13738
13739 fi
13740 ;;
13741esac
13742
13743# Use C for the default configuration in the libtool script
13744
13745lt_save_CC="$CC"
13746ac_ext=c
13747ac_cpp='$CPP $CPPFLAGS'
13748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13750ac_compiler_gnu=$ac_cv_c_compiler_gnu
13751
13752
13753# Source file extension for C test sources.
13754ac_ext=c
13755
13756# Object file extension for compiled C test sources.
13757objext=o
13758objext=$objext
13759
13760# Code to be used in simple compile tests
13761lt_simple_compile_test_code="int some_variable = 0;"
13762
13763# Code to be used in simple link tests
13764lt_simple_link_test_code='int main(){return(0);}'
13765
13766
13767
13768
13769
13770
13771
13772# If no C compiler was specified, use CC.
13773LTCC=${LTCC-"$CC"}
13774
13775# If no C compiler flags were specified, use CFLAGS.
13776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13777
13778# Allow CC to be a program name with arguments.
13779compiler=$CC
13780
13781# Save the default compiler, since it gets overwritten when the other
13782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13783compiler_DEFAULT=$CC
13784
13785# save warnings/boilerplate of simple test code
13786ac_outfile=conftest.$ac_objext
13787echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13789_lt_compiler_boilerplate=`cat conftest.err`
13790$RM conftest*
13791
13792ac_outfile=conftest.$ac_objext
13793echo "$lt_simple_link_test_code" >conftest.$ac_ext
13794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13795_lt_linker_boilerplate=`cat conftest.err`
13796$RM -r conftest*
13797
13798
13799## CAVEAT EMPTOR:
13800## There is no encapsulation within the following macros, do not change
13801## the running order or otherwise move them around unless you know exactly
13802## what you are doing...
13803if test -n "$compiler"; then
13804
13805lt_prog_compiler_no_builtin_flag=
13806
13807if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013808 case $cc_basename in
13809 nvcc*)
13810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13811 *)
13812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13813 esac
cristy73bd4a52010-10-05 11:24:23 +000013814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13816$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013817if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013818 $as_echo_n "(cached) " >&6
13819else
13820 lt_cv_prog_compiler_rtti_exceptions=no
13821 ac_outfile=conftest.$ac_objext
13822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13823 lt_compiler_flag="-fno-rtti -fno-exceptions"
13824 # Insert the option either (1) after the last *FLAGS variable, or
13825 # (2) before a word containing "conftest.", or (3) at the end.
13826 # Note that $ac_compile itself does not contain backslashes and begins
13827 # with a dollar sign (not a hyphen), so the echo should work correctly.
13828 # The option is referenced via a variable to avoid confusing sed.
13829 lt_compile=`echo "$ac_compile" | $SED \
13830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13832 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013834 (eval "$lt_compile" 2>conftest.err)
13835 ac_status=$?
13836 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013838 if (exit $ac_status) && test -s "$ac_outfile"; then
13839 # The compiler can only warn and ignore the option if not recognized
13840 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13844 lt_cv_prog_compiler_rtti_exceptions=yes
13845 fi
13846 fi
13847 $RM conftest*
13848
13849fi
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13851$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13852
13853if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13855else
13856 :
13857fi
13858
13859fi
13860
13861
13862
13863
13864
13865
13866 lt_prog_compiler_wl=
13867lt_prog_compiler_pic=
13868lt_prog_compiler_static=
13869
cristy73bd4a52010-10-05 11:24:23 +000013870
13871 if test "$GCC" = yes; then
13872 lt_prog_compiler_wl='-Wl,'
13873 lt_prog_compiler_static='-static'
13874
13875 case $host_os in
13876 aix*)
13877 # All AIX code is PIC.
13878 if test "$host_cpu" = ia64; then
13879 # AIX 5 now supports IA64 processor
13880 lt_prog_compiler_static='-Bstatic'
13881 fi
13882 ;;
13883
13884 amigaos*)
13885 case $host_cpu in
13886 powerpc)
13887 # see comment about AmigaOS4 .so support
13888 lt_prog_compiler_pic='-fPIC'
13889 ;;
13890 m68k)
13891 # FIXME: we need at least 68020 code to build shared libraries, but
13892 # adding the `-m68020' flag to GCC prevents building anything better,
13893 # like `-m68040'.
13894 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13895 ;;
13896 esac
13897 ;;
13898
13899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13900 # PIC is the default for these OSes.
13901 ;;
13902
13903 mingw* | cygwin* | pw32* | os2* | cegcc*)
13904 # This hack is so that the source file can tell whether it is being
13905 # built for inclusion in a dll (and should export symbols for example).
13906 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13907 # (--disable-auto-import) libraries
13908 lt_prog_compiler_pic='-DDLL_EXPORT'
13909 ;;
13910
13911 darwin* | rhapsody*)
13912 # PIC is the default on this platform
13913 # Common symbols not allowed in MH_DYLIB files
13914 lt_prog_compiler_pic='-fno-common'
13915 ;;
13916
cristy0c60a692010-11-04 01:09:47 +000013917 haiku*)
13918 # PIC is the default for Haiku.
13919 # The "-static" flag exists, but is broken.
13920 lt_prog_compiler_static=
13921 ;;
13922
cristy73bd4a52010-10-05 11:24:23 +000013923 hpux*)
13924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13926 # sets the default TLS model and affects inlining.
13927 case $host_cpu in
13928 hppa*64*)
13929 # +Z the default
13930 ;;
13931 *)
13932 lt_prog_compiler_pic='-fPIC'
13933 ;;
13934 esac
13935 ;;
13936
13937 interix[3-9]*)
13938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13939 # Instead, we relocate shared libraries at runtime.
13940 ;;
13941
13942 msdosdjgpp*)
13943 # Just because we use GCC doesn't mean we suddenly get shared libraries
13944 # on systems that don't support them.
13945 lt_prog_compiler_can_build_shared=no
13946 enable_shared=no
13947 ;;
13948
13949 *nto* | *qnx*)
13950 # QNX uses GNU C++, but need to define -shared option too, otherwise
13951 # it will coredump.
13952 lt_prog_compiler_pic='-fPIC -shared'
13953 ;;
13954
13955 sysv4*MP*)
13956 if test -d /usr/nec; then
13957 lt_prog_compiler_pic=-Kconform_pic
13958 fi
13959 ;;
13960
13961 *)
13962 lt_prog_compiler_pic='-fPIC'
13963 ;;
13964 esac
cristy0c60a692010-11-04 01:09:47 +000013965
13966 case $cc_basename in
13967 nvcc*) # Cuda Compiler Driver 2.2
13968 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013969 if test -n "$lt_prog_compiler_pic"; then
13970 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13971 fi
cristy0c60a692010-11-04 01:09:47 +000013972 ;;
13973 esac
cristy73bd4a52010-10-05 11:24:23 +000013974 else
13975 # PORTME Check for flag to pass linker flags through the system compiler.
13976 case $host_os in
13977 aix*)
13978 lt_prog_compiler_wl='-Wl,'
13979 if test "$host_cpu" = ia64; then
13980 # AIX 5 now supports IA64 processor
13981 lt_prog_compiler_static='-Bstatic'
13982 else
13983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13984 fi
13985 ;;
13986
13987 mingw* | cygwin* | pw32* | os2* | cegcc*)
13988 # This hack is so that the source file can tell whether it is being
13989 # built for inclusion in a dll (and should export symbols for example).
13990 lt_prog_compiler_pic='-DDLL_EXPORT'
13991 ;;
13992
13993 hpux9* | hpux10* | hpux11*)
13994 lt_prog_compiler_wl='-Wl,'
13995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13996 # not for PA HP-UX.
13997 case $host_cpu in
13998 hppa*64*|ia64*)
13999 # +Z the default
14000 ;;
14001 *)
14002 lt_prog_compiler_pic='+Z'
14003 ;;
14004 esac
14005 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14006 lt_prog_compiler_static='${wl}-a ${wl}archive'
14007 ;;
14008
14009 irix5* | irix6* | nonstopux*)
14010 lt_prog_compiler_wl='-Wl,'
14011 # PIC (with -KPIC) is the default.
14012 lt_prog_compiler_static='-non_shared'
14013 ;;
14014
cristy0c60a692010-11-04 01:09:47 +000014015 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014016 case $cc_basename in
14017 # old Intel for x86_64 which still supported -KPIC.
14018 ecc*)
14019 lt_prog_compiler_wl='-Wl,'
14020 lt_prog_compiler_pic='-KPIC'
14021 lt_prog_compiler_static='-static'
14022 ;;
14023 # icc used to be incompatible with GCC.
14024 # ICC 10 doesn't accept -KPIC any more.
14025 icc* | ifort*)
14026 lt_prog_compiler_wl='-Wl,'
14027 lt_prog_compiler_pic='-fPIC'
14028 lt_prog_compiler_static='-static'
14029 ;;
14030 # Lahey Fortran 8.1.
14031 lf95*)
14032 lt_prog_compiler_wl='-Wl,'
14033 lt_prog_compiler_pic='--shared'
14034 lt_prog_compiler_static='--static'
14035 ;;
cristyda16f162011-02-19 23:52:17 +000014036 nagfor*)
14037 # NAG Fortran compiler
14038 lt_prog_compiler_wl='-Wl,-Wl,,'
14039 lt_prog_compiler_pic='-PIC'
14040 lt_prog_compiler_static='-Bstatic'
14041 ;;
cristy0c60a692010-11-04 01:09:47 +000014042 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014043 # Portland Group compilers (*not* the Pentium gcc compiler,
14044 # which looks to be a dead project)
14045 lt_prog_compiler_wl='-Wl,'
14046 lt_prog_compiler_pic='-fpic'
14047 lt_prog_compiler_static='-Bstatic'
14048 ;;
14049 ccc*)
14050 lt_prog_compiler_wl='-Wl,'
14051 # All Alpha code is PIC.
14052 lt_prog_compiler_static='-non_shared'
14053 ;;
cristy0c60a692010-11-04 01:09:47 +000014054 xl* | bgxl* | bgf* | mpixl*)
14055 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014056 lt_prog_compiler_wl='-Wl,'
14057 lt_prog_compiler_pic='-qpic'
14058 lt_prog_compiler_static='-qstaticlink'
14059 ;;
14060 *)
14061 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014062 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014063 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14064 lt_prog_compiler_pic='-KPIC'
14065 lt_prog_compiler_static='-Bstatic'
14066 lt_prog_compiler_wl=''
14067 ;;
cristy99bd5232011-12-07 14:38:20 +000014068 *Sun\ F* | *Sun*Fortran*)
14069 lt_prog_compiler_pic='-KPIC'
14070 lt_prog_compiler_static='-Bstatic'
14071 lt_prog_compiler_wl='-Qoption ld '
14072 ;;
cristy73bd4a52010-10-05 11:24:23 +000014073 *Sun\ C*)
14074 # Sun C 5.9
14075 lt_prog_compiler_pic='-KPIC'
14076 lt_prog_compiler_static='-Bstatic'
14077 lt_prog_compiler_wl='-Wl,'
14078 ;;
cristy99bd5232011-12-07 14:38:20 +000014079 *Intel*\ [CF]*Compiler*)
14080 lt_prog_compiler_wl='-Wl,'
14081 lt_prog_compiler_pic='-fPIC'
14082 lt_prog_compiler_static='-static'
14083 ;;
14084 *Portland\ Group*)
14085 lt_prog_compiler_wl='-Wl,'
14086 lt_prog_compiler_pic='-fpic'
14087 lt_prog_compiler_static='-Bstatic'
14088 ;;
cristy73bd4a52010-10-05 11:24:23 +000014089 esac
14090 ;;
14091 esac
14092 ;;
14093
14094 newsos6)
14095 lt_prog_compiler_pic='-KPIC'
14096 lt_prog_compiler_static='-Bstatic'
14097 ;;
14098
14099 *nto* | *qnx*)
14100 # QNX uses GNU C++, but need to define -shared option too, otherwise
14101 # it will coredump.
14102 lt_prog_compiler_pic='-fPIC -shared'
14103 ;;
14104
14105 osf3* | osf4* | osf5*)
14106 lt_prog_compiler_wl='-Wl,'
14107 # All OSF/1 code is PIC.
14108 lt_prog_compiler_static='-non_shared'
14109 ;;
14110
14111 rdos*)
14112 lt_prog_compiler_static='-non_shared'
14113 ;;
14114
14115 solaris*)
14116 lt_prog_compiler_pic='-KPIC'
14117 lt_prog_compiler_static='-Bstatic'
14118 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014119 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014120 lt_prog_compiler_wl='-Qoption ld ';;
14121 *)
14122 lt_prog_compiler_wl='-Wl,';;
14123 esac
14124 ;;
14125
14126 sunos4*)
14127 lt_prog_compiler_wl='-Qoption ld '
14128 lt_prog_compiler_pic='-PIC'
14129 lt_prog_compiler_static='-Bstatic'
14130 ;;
14131
14132 sysv4 | sysv4.2uw2* | sysv4.3*)
14133 lt_prog_compiler_wl='-Wl,'
14134 lt_prog_compiler_pic='-KPIC'
14135 lt_prog_compiler_static='-Bstatic'
14136 ;;
14137
14138 sysv4*MP*)
14139 if test -d /usr/nec ;then
14140 lt_prog_compiler_pic='-Kconform_pic'
14141 lt_prog_compiler_static='-Bstatic'
14142 fi
14143 ;;
14144
14145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14146 lt_prog_compiler_wl='-Wl,'
14147 lt_prog_compiler_pic='-KPIC'
14148 lt_prog_compiler_static='-Bstatic'
14149 ;;
14150
14151 unicos*)
14152 lt_prog_compiler_wl='-Wl,'
14153 lt_prog_compiler_can_build_shared=no
14154 ;;
14155
14156 uts4*)
14157 lt_prog_compiler_pic='-pic'
14158 lt_prog_compiler_static='-Bstatic'
14159 ;;
14160
14161 *)
14162 lt_prog_compiler_can_build_shared=no
14163 ;;
14164 esac
14165 fi
14166
14167case $host_os in
14168 # For platforms which do not support PIC, -DPIC is meaningless:
14169 *djgpp*)
14170 lt_prog_compiler_pic=
14171 ;;
14172 *)
14173 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14174 ;;
14175esac
cristy73bd4a52010-10-05 11:24:23 +000014176
cristyda16f162011-02-19 23:52:17 +000014177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14178$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14179if ${lt_cv_prog_compiler_pic+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181else
14182 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14183fi
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14185$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14186lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014187
14188#
14189# Check to make sure the PIC flag actually works.
14190#
14191if test -n "$lt_prog_compiler_pic"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14193$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014194if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014195 $as_echo_n "(cached) " >&6
14196else
14197 lt_cv_prog_compiler_pic_works=no
14198 ac_outfile=conftest.$ac_objext
14199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14200 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14201 # Insert the option either (1) after the last *FLAGS variable, or
14202 # (2) before a word containing "conftest.", or (3) at the end.
14203 # Note that $ac_compile itself does not contain backslashes and begins
14204 # with a dollar sign (not a hyphen), so the echo should work correctly.
14205 # The option is referenced via a variable to avoid confusing sed.
14206 lt_compile=`echo "$ac_compile" | $SED \
14207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14209 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014211 (eval "$lt_compile" 2>conftest.err)
14212 ac_status=$?
14213 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014215 if (exit $ac_status) && test -s "$ac_outfile"; then
14216 # The compiler can only warn and ignore the option if not recognized
14217 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14221 lt_cv_prog_compiler_pic_works=yes
14222 fi
14223 fi
14224 $RM conftest*
14225
14226fi
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14228$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14229
14230if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14231 case $lt_prog_compiler_pic in
14232 "" | " "*) ;;
14233 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14234 esac
14235else
14236 lt_prog_compiler_pic=
14237 lt_prog_compiler_can_build_shared=no
14238fi
14239
14240fi
14241
14242
14243
14244
14245
14246
cristyda16f162011-02-19 23:52:17 +000014247
14248
14249
14250
14251
cristy73bd4a52010-10-05 11:24:23 +000014252#
14253# Check to make sure the static flag actually works.
14254#
14255wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14257$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014258if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014259 $as_echo_n "(cached) " >&6
14260else
14261 lt_cv_prog_compiler_static_works=no
14262 save_LDFLAGS="$LDFLAGS"
14263 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14264 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14265 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14266 # The linker can only warn and ignore the option if not recognized
14267 # So say no if there are warnings
14268 if test -s conftest.err; then
14269 # Append any errors to the config.log.
14270 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014271 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14273 if diff conftest.exp conftest.er2 >/dev/null; then
14274 lt_cv_prog_compiler_static_works=yes
14275 fi
14276 else
14277 lt_cv_prog_compiler_static_works=yes
14278 fi
14279 fi
14280 $RM -r conftest*
14281 LDFLAGS="$save_LDFLAGS"
14282
14283fi
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14285$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14286
14287if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14288 :
14289else
14290 lt_prog_compiler_static=
14291fi
14292
14293
14294
14295
14296
14297
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14300$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014301if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014302 $as_echo_n "(cached) " >&6
14303else
14304 lt_cv_prog_compiler_c_o=no
14305 $RM -r conftest 2>/dev/null
14306 mkdir conftest
14307 cd conftest
14308 mkdir out
14309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14310
14311 lt_compiler_flag="-o out/conftest2.$ac_objext"
14312 # Insert the option either (1) after the last *FLAGS variable, or
14313 # (2) before a word containing "conftest.", or (3) at the end.
14314 # Note that $ac_compile itself does not contain backslashes and begins
14315 # with a dollar sign (not a hyphen), so the echo should work correctly.
14316 lt_compile=`echo "$ac_compile" | $SED \
14317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14319 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014321 (eval "$lt_compile" 2>out/conftest.err)
14322 ac_status=$?
14323 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14326 then
14327 # The compiler can only warn and ignore the option if not recognized
14328 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14332 lt_cv_prog_compiler_c_o=yes
14333 fi
14334 fi
14335 chmod u+w . 2>&5
14336 $RM conftest*
14337 # SGI C++ compiler will create directory out/ii_files/ for
14338 # template instantiation
14339 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14340 $RM out/* && rmdir out
14341 cd ..
14342 $RM -r conftest
14343 $RM conftest*
14344
14345fi
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14347$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14348
14349
14350
14351
14352
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14355$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014356if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014357 $as_echo_n "(cached) " >&6
14358else
14359 lt_cv_prog_compiler_c_o=no
14360 $RM -r conftest 2>/dev/null
14361 mkdir conftest
14362 cd conftest
14363 mkdir out
14364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14365
14366 lt_compiler_flag="-o out/conftest2.$ac_objext"
14367 # Insert the option either (1) after the last *FLAGS variable, or
14368 # (2) before a word containing "conftest.", or (3) at the end.
14369 # Note that $ac_compile itself does not contain backslashes and begins
14370 # with a dollar sign (not a hyphen), so the echo should work correctly.
14371 lt_compile=`echo "$ac_compile" | $SED \
14372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014376 (eval "$lt_compile" 2>out/conftest.err)
14377 ac_status=$?
14378 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14381 then
14382 # The compiler can only warn and ignore the option if not recognized
14383 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14387 lt_cv_prog_compiler_c_o=yes
14388 fi
14389 fi
14390 chmod u+w . 2>&5
14391 $RM conftest*
14392 # SGI C++ compiler will create directory out/ii_files/ for
14393 # template instantiation
14394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14395 $RM out/* && rmdir out
14396 cd ..
14397 $RM -r conftest
14398 $RM conftest*
14399
14400fi
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14402$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14403
14404
14405
14406
14407hard_links="nottested"
14408if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14409 # do not overwrite the value of need_locks provided by the user
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14411$as_echo_n "checking if we can lock with hard links... " >&6; }
14412 hard_links=yes
14413 $RM conftest*
14414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14415 touch conftest.a
14416 ln conftest.a conftest.b 2>&5 || hard_links=no
14417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14419$as_echo "$hard_links" >&6; }
14420 if test "$hard_links" = no; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14422$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14423 need_locks=warn
14424 fi
14425else
14426 need_locks=no
14427fi
14428
14429
14430
14431
14432
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14435$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14436
14437 runpath_var=
14438 allow_undefined_flag=
14439 always_export_symbols=no
14440 archive_cmds=
14441 archive_expsym_cmds=
14442 compiler_needs_object=no
14443 enable_shared_with_static_runtimes=no
14444 export_dynamic_flag_spec=
14445 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14446 hardcode_automatic=no
14447 hardcode_direct=no
14448 hardcode_direct_absolute=no
14449 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014450 hardcode_libdir_separator=
14451 hardcode_minus_L=no
14452 hardcode_shlibpath_var=unsupported
14453 inherit_rpath=no
14454 link_all_deplibs=unknown
14455 module_cmds=
14456 module_expsym_cmds=
14457 old_archive_from_new_cmds=
14458 old_archive_from_expsyms_cmds=
14459 thread_safe_flag_spec=
14460 whole_archive_flag_spec=
14461 # include_expsyms should be a list of space-separated symbols to be *always*
14462 # included in the symbol list
14463 include_expsyms=
14464 # exclude_expsyms can be an extended regexp of symbols to exclude
14465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14467 # as well as any symbol that contains `d'.
14468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14470 # platforms (ab)use it in PIC code, but their linkers get confused if
14471 # the symbol is explicitly referenced. Since portable code cannot
14472 # rely on this symbol name, it's probably fine to never include it in
14473 # preloaded symbol tables.
14474 # Exclude shared library initialization/finalization symbols.
14475 extract_expsyms_cmds=
14476
14477 case $host_os in
14478 cygwin* | mingw* | pw32* | cegcc*)
14479 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14480 # When not using gcc, we currently assume that we are using
14481 # Microsoft Visual C++.
14482 if test "$GCC" != yes; then
14483 with_gnu_ld=no
14484 fi
14485 ;;
14486 interix*)
14487 # we just hope/assume this is gcc and not c89 (= MSVC++)
14488 with_gnu_ld=yes
14489 ;;
14490 openbsd*)
14491 with_gnu_ld=no
14492 ;;
14493 esac
14494
14495 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014496
14497 # On some targets, GNU ld is compatible enough with the native linker
14498 # that we're better off using the native interface for both.
14499 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014500 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014501 case $host_os in
14502 aix*)
14503 # The AIX port of GNU ld has always aspired to compatibility
14504 # with the native linker. However, as the warning in the GNU ld
14505 # block says, versions before 2.19.5* couldn't really create working
14506 # shared libraries, regardless of the interface used.
14507 case `$LD -v 2>&1` in
14508 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14509 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14510 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14511 *)
14512 lt_use_gnu_ld_interface=yes
14513 ;;
14514 esac
14515 ;;
14516 *)
14517 lt_use_gnu_ld_interface=yes
14518 ;;
14519 esac
14520 fi
14521
14522 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014523 # If archive_cmds runs LD, not CC, wlarc should be empty
14524 wlarc='${wl}'
14525
14526 # Set some defaults for GNU ld with shared library support. These
14527 # are reset later if shared libraries are not supported. Putting them
14528 # here allows them to be overridden if necessary.
14529 runpath_var=LD_RUN_PATH
14530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14531 export_dynamic_flag_spec='${wl}--export-dynamic'
14532 # ancient GNU ld didn't support --whole-archive et. al.
14533 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14534 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14535 else
14536 whole_archive_flag_spec=
14537 fi
14538 supports_anon_versioning=no
14539 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014540 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14544 *\ 2.11.*) ;; # other 2.11 versions
14545 *) supports_anon_versioning=yes ;;
14546 esac
14547
14548 # See if GNU ld supports shared libraries.
14549 case $host_os in
14550 aix[3-9]*)
14551 # On AIX/PPC, the GNU linker is very broken
14552 if test "$host_cpu" != ia64; then
14553 ld_shlibs=no
14554 cat <<_LT_EOF 1>&2
14555
cristy0c60a692010-11-04 01:09:47 +000014556*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014557*** to be unable to reliably create shared libraries on AIX.
14558*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014559*** really care for shared libraries, you may want to install binutils
14560*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14561*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014562
14563_LT_EOF
14564 fi
14565 ;;
14566
14567 amigaos*)
14568 case $host_cpu in
14569 powerpc)
14570 # see comment about AmigaOS4 .so support
14571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572 archive_expsym_cmds=''
14573 ;;
14574 m68k)
14575 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)'
14576 hardcode_libdir_flag_spec='-L$libdir'
14577 hardcode_minus_L=yes
14578 ;;
14579 esac
14580 ;;
14581
14582 beos*)
14583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14584 allow_undefined_flag=unsupported
14585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14586 # support --undefined. This deserves some investigation. FIXME
14587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14588 else
14589 ld_shlibs=no
14590 fi
14591 ;;
14592
14593 cygwin* | mingw* | pw32* | cegcc*)
14594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14595 # as there is no search path for DLLs.
14596 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014597 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014598 allow_undefined_flag=unsupported
14599 always_export_symbols=no
14600 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014601 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'
14602 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 +000014603
14604 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14606 # If the export-symbols file already is a .def file (1st line
14607 # is EXPORTS), use it as is; otherwise, prepend...
14608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14609 cp $export_symbols $output_objdir/$soname.def;
14610 else
14611 echo EXPORTS > $output_objdir/$soname.def;
14612 cat $export_symbols >> $output_objdir/$soname.def;
14613 fi~
14614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14615 else
14616 ld_shlibs=no
14617 fi
14618 ;;
14619
cristy0c60a692010-11-04 01:09:47 +000014620 haiku*)
14621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14622 link_all_deplibs=yes
14623 ;;
14624
cristy73bd4a52010-10-05 11:24:23 +000014625 interix[3-9]*)
14626 hardcode_direct=no
14627 hardcode_shlibpath_var=no
14628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14629 export_dynamic_flag_spec='${wl}-E'
14630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14631 # Instead, shared libraries are loaded at an image base (0x10000000 by
14632 # default) and relocated if they conflict, which is a slow very memory
14633 # consuming and fragmenting process. To avoid this, we pick a random,
14634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14637 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'
14638 ;;
14639
cristy0c60a692010-11-04 01:09:47 +000014640 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014641 tmp_diet=no
14642 if test "$host_os" = linux-dietlibc; then
14643 case $cc_basename in
14644 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14645 esac
14646 fi
14647 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14648 && test "$tmp_diet" = no
14649 then
cristyda16f162011-02-19 23:52:17 +000014650 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014651 tmp_sharedflag='-shared'
14652 case $cc_basename,$host_cpu in
14653 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014654 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 +000014655 tmp_addflag=' $pic_flag'
14656 ;;
cristy0c60a692010-11-04 01:09:47 +000014657 pgf77* | pgf90* | pgf95* | pgfortran*)
14658 # Portland Group f77 and f90 compilers
14659 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 +000014660 tmp_addflag=' $pic_flag -Mnomain' ;;
14661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14662 tmp_addflag=' -i_dynamic' ;;
14663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14664 tmp_addflag=' -i_dynamic -nofor_main' ;;
14665 ifc* | ifort*) # Intel Fortran compiler
14666 tmp_addflag=' -nofor_main' ;;
14667 lf95*) # Lahey Fortran 8.1
14668 whole_archive_flag_spec=
14669 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014670 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014671 tmp_sharedflag='-qmkshrobj'
14672 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014673 nvcc*) # Cuda Compiler Driver 2.2
14674 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'
14675 compiler_needs_object=yes
14676 ;;
cristy73bd4a52010-10-05 11:24:23 +000014677 esac
14678 case `$CC -V 2>&1 | sed 5q` in
14679 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014680 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 +000014681 compiler_needs_object=yes
14682 tmp_sharedflag='-G' ;;
14683 *Sun\ F*) # Sun Fortran 8.3
14684 tmp_sharedflag='-G' ;;
14685 esac
14686 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687
14688 if test "x$supports_anon_versioning" = xyes; then
14689 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14691 echo "local: *; };" >> $output_objdir/$libname.ver~
14692 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14693 fi
14694
14695 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014696 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014697 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14698 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014701 if test "x$supports_anon_versioning" = xyes; then
14702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14704 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014706 fi
14707 ;;
14708 esac
14709 else
14710 ld_shlibs=no
14711 fi
14712 ;;
14713
14714 netbsd*)
14715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14717 wlarc=
14718 else
cristyda16f162011-02-19 23:52:17 +000014719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14720 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 +000014721 fi
14722 ;;
14723
14724 solaris*)
14725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14726 ld_shlibs=no
14727 cat <<_LT_EOF 1>&2
14728
14729*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14730*** create shared libraries on Solaris systems. Therefore, libtool
14731*** is disabling shared libraries support. We urge you to upgrade GNU
14732*** binutils to release 2.9.1 or newer. Another option is to modify
14733*** your PATH or compiler configuration so that the native linker is
14734*** used, and then restart.
14735
14736_LT_EOF
14737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739 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 +000014740 else
14741 ld_shlibs=no
14742 fi
14743 ;;
14744
14745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14746 case `$LD -v 2>&1` in
14747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14748 ld_shlibs=no
14749 cat <<_LT_EOF 1>&2
14750
14751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14752*** reliably create shared libraries on SCO systems. Therefore, libtool
14753*** is disabling shared libraries support. We urge you to upgrade GNU
14754*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14755*** your PATH or compiler configuration so that the native linker is
14756*** used, and then restart.
14757
14758_LT_EOF
14759 ;;
14760 *)
14761 # For security reasons, it is highly recommended that you always
14762 # use absolute paths for naming shared libraries, and exclude the
14763 # DT_RUNPATH tag from executables and libraries. But doing so
14764 # requires that you compile everything twice, which is a pain.
14765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14769 else
14770 ld_shlibs=no
14771 fi
14772 ;;
14773 esac
14774 ;;
14775
14776 sunos4*)
14777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14778 wlarc=
14779 hardcode_direct=yes
14780 hardcode_shlibpath_var=no
14781 ;;
14782
14783 *)
14784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786 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 +000014787 else
14788 ld_shlibs=no
14789 fi
14790 ;;
14791 esac
14792
14793 if test "$ld_shlibs" = no; then
14794 runpath_var=
14795 hardcode_libdir_flag_spec=
14796 export_dynamic_flag_spec=
14797 whole_archive_flag_spec=
14798 fi
14799 else
14800 # PORTME fill in a description of your system's linker (not GNU ld)
14801 case $host_os in
14802 aix3*)
14803 allow_undefined_flag=unsupported
14804 always_export_symbols=yes
14805 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'
14806 # Note: this linker hardcodes the directories in LIBPATH if there
14807 # are no directories specified by -L.
14808 hardcode_minus_L=yes
14809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14810 # Neither direct hardcoding nor static linking is supported with a
14811 # broken collect2.
14812 hardcode_direct=unsupported
14813 fi
14814 ;;
14815
14816 aix[4-9]*)
14817 if test "$host_cpu" = ia64; then
14818 # On IA64, the linker does run time linking by default, so we don't
14819 # have to do anything special.
14820 aix_use_runtimelinking=no
14821 exp_sym_flag='-Bexport'
14822 no_entry_flag=""
14823 else
14824 # If we're using GNU nm, then we don't want the "-C" option.
14825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014826 # Also, AIX nm treats weak defined symbols like other global
14827 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014829 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 +000014830 else
14831 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'
14832 fi
14833 aix_use_runtimelinking=no
14834
14835 # Test if we are trying to use run time linking or normal
14836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14837 # need to do runtime linking.
14838 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14839 for ld_flag in $LDFLAGS; do
14840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14841 aix_use_runtimelinking=yes
14842 break
14843 fi
14844 done
14845 ;;
14846 esac
14847
14848 exp_sym_flag='-bexport'
14849 no_entry_flag='-bnoentry'
14850 fi
14851
14852 # When large executables or shared objects are built, AIX ld can
14853 # have problems creating the table of contents. If linking a library
14854 # or program results in "error TOC overflow" add -mminimal-toc to
14855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14857
14858 archive_cmds=''
14859 hardcode_direct=yes
14860 hardcode_direct_absolute=yes
14861 hardcode_libdir_separator=':'
14862 link_all_deplibs=yes
14863 file_list_spec='${wl}-f,'
14864
14865 if test "$GCC" = yes; then
14866 case $host_os in aix4.[012]|aix4.[012].*)
14867 # We only want to do this on AIX 4.2 and lower, the check
14868 # below for broken collect2 doesn't work under 4.3+
14869 collect2name=`${CC} -print-prog-name=collect2`
14870 if test -f "$collect2name" &&
14871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14872 then
14873 # We have reworked collect2
14874 :
14875 else
14876 # We have old collect2
14877 hardcode_direct=unsupported
14878 # It fails to find uninstalled libraries when the uninstalled
14879 # path is not listed in the libpath. Setting hardcode_minus_L
14880 # to unsupported forces relinking
14881 hardcode_minus_L=yes
14882 hardcode_libdir_flag_spec='-L$libdir'
14883 hardcode_libdir_separator=
14884 fi
14885 ;;
14886 esac
14887 shared_flag='-shared'
14888 if test "$aix_use_runtimelinking" = yes; then
14889 shared_flag="$shared_flag "'${wl}-G'
14890 fi
14891 else
14892 # not using gcc
14893 if test "$host_cpu" = ia64; then
14894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14895 # chokes on -Wl,-G. The following line is correct:
14896 shared_flag='-G'
14897 else
14898 if test "$aix_use_runtimelinking" = yes; then
14899 shared_flag='${wl}-G'
14900 else
14901 shared_flag='${wl}-bM:SRE'
14902 fi
14903 fi
14904 fi
14905
14906 export_dynamic_flag_spec='${wl}-bexpall'
14907 # It seems that -bexpall does not export symbols beginning with
14908 # underscore (_), so it is better to generate a list of symbols to export.
14909 always_export_symbols=yes
14910 if test "$aix_use_runtimelinking" = yes; then
14911 # Warning - without using the other runtime loading flags (-brtl),
14912 # -berok will link without error, but may produce a broken library.
14913 allow_undefined_flag='-berok'
14914 # Determine the default libpath from the value encoded in an
14915 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014916 if test "${lt_cv_aix_libpath+set}" = set; then
14917 aix_libpath=$lt_cv_aix_libpath
14918else
14919 if ${lt_cv_aix_libpath_+:} false; then :
14920 $as_echo_n "(cached) " >&6
14921else
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014923/* end confdefs.h. */
14924
14925int
14926main ()
14927{
14928
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933if ac_fn_c_try_link "$LINENO"; then :
14934
cristyda16f162011-02-19 23:52:17 +000014935 lt_aix_libpath_sed='
14936 /Import File Strings/,/^$/ {
14937 /^0/ {
14938 s/^0 *\([^ ]*\) *$/\1/
14939 p
14940 }
14941 }'
14942 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14943 # Check for a 64-bit object if we didn't find anything.
14944 if test -z "$lt_cv_aix_libpath_"; then
14945 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14946 fi
cristy73bd4a52010-10-05 11:24:23 +000014947fi
14948rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014950 if test -z "$lt_cv_aix_libpath_"; then
14951 lt_cv_aix_libpath_="/usr/lib:/lib"
14952 fi
14953
14954fi
14955
14956 aix_libpath=$lt_cv_aix_libpath_
14957fi
cristy73bd4a52010-10-05 11:24:23 +000014958
14959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014960 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 +000014961 else
14962 if test "$host_cpu" = ia64; then
14963 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14964 allow_undefined_flag="-z nodefs"
14965 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"
14966 else
14967 # Determine the default libpath from the value encoded in an
14968 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014969 if test "${lt_cv_aix_libpath+set}" = set; then
14970 aix_libpath=$lt_cv_aix_libpath
14971else
14972 if ${lt_cv_aix_libpath_+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014976/* end confdefs.h. */
14977
14978int
14979main ()
14980{
14981
14982 ;
14983 return 0;
14984}
14985_ACEOF
14986if ac_fn_c_try_link "$LINENO"; then :
14987
cristyda16f162011-02-19 23:52:17 +000014988 lt_aix_libpath_sed='
14989 /Import File Strings/,/^$/ {
14990 /^0/ {
14991 s/^0 *\([^ ]*\) *$/\1/
14992 p
14993 }
14994 }'
14995 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14996 # Check for a 64-bit object if we didn't find anything.
14997 if test -z "$lt_cv_aix_libpath_"; then
14998 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14999 fi
cristy73bd4a52010-10-05 11:24:23 +000015000fi
15001rm -f core conftest.err conftest.$ac_objext \
15002 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015003 if test -z "$lt_cv_aix_libpath_"; then
15004 lt_cv_aix_libpath_="/usr/lib:/lib"
15005 fi
15006
15007fi
15008
15009 aix_libpath=$lt_cv_aix_libpath_
15010fi
cristy73bd4a52010-10-05 11:24:23 +000015011
15012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15013 # Warning - without using the other run time loading flags,
15014 # -berok will link without error, but may produce a broken library.
15015 no_undefined_flag=' ${wl}-bernotok'
15016 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015017 if test "$with_gnu_ld" = yes; then
15018 # We only use this code for GNU lds that support --whole-archive.
15019 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15020 else
15021 # Exported symbols can be pulled into shared objects from archives
15022 whole_archive_flag_spec='$convenience'
15023 fi
cristy73bd4a52010-10-05 11:24:23 +000015024 archive_cmds_need_lc=yes
15025 # This is similar to how AIX traditionally builds its shared libraries.
15026 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'
15027 fi
15028 fi
15029 ;;
15030
15031 amigaos*)
15032 case $host_cpu in
15033 powerpc)
15034 # see comment about AmigaOS4 .so support
15035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036 archive_expsym_cmds=''
15037 ;;
15038 m68k)
15039 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)'
15040 hardcode_libdir_flag_spec='-L$libdir'
15041 hardcode_minus_L=yes
15042 ;;
15043 esac
15044 ;;
15045
15046 bsdi[45]*)
15047 export_dynamic_flag_spec=-rdynamic
15048 ;;
15049
15050 cygwin* | mingw* | pw32* | cegcc*)
15051 # When not using gcc, we currently assume that we are using
15052 # Microsoft Visual C++.
15053 # hardcode_libdir_flag_spec is actually meaningless, as there is
15054 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015055 case $cc_basename in
15056 cl*)
15057 # Native MSVC
15058 hardcode_libdir_flag_spec=' '
15059 allow_undefined_flag=unsupported
15060 always_export_symbols=yes
15061 file_list_spec='@'
15062 # Tell ltmain to make .lib files, not .a files.
15063 libext=lib
15064 # Tell ltmain to make .dll files, not .so files.
15065 shrext_cmds=".dll"
15066 # FIXME: Setting linknames here is a bad hack.
15067 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15069 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15070 else
15071 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15072 fi~
15073 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15074 linknames='
15075 # The linker will not automatically build a static lib if we build a DLL.
15076 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15077 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015078 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15080 # Don't use ranlib
15081 old_postinstall_cmds='chmod 644 $oldlib'
15082 postlink_cmds='lt_outputfile="@OUTPUT@"~
15083 lt_tool_outputfile="@TOOL_OUTPUT@"~
15084 case $lt_outputfile in
15085 *.exe|*.EXE) ;;
15086 *)
15087 lt_outputfile="$lt_outputfile.exe"
15088 lt_tool_outputfile="$lt_tool_outputfile.exe"
15089 ;;
15090 esac~
15091 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15092 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15093 $RM "$lt_outputfile.manifest";
15094 fi'
15095 ;;
15096 *)
15097 # Assume MSVC wrapper
15098 hardcode_libdir_flag_spec=' '
15099 allow_undefined_flag=unsupported
15100 # Tell ltmain to make .lib files, not .a files.
15101 libext=lib
15102 # Tell ltmain to make .dll files, not .so files.
15103 shrext_cmds=".dll"
15104 # FIXME: Setting linknames here is a bad hack.
15105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15106 # The linker will automatically build a .lib file if we build a DLL.
15107 old_archive_from_new_cmds='true'
15108 # FIXME: Should let the user specify the lib program.
15109 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15110 enable_shared_with_static_runtimes=yes
15111 ;;
15112 esac
cristy73bd4a52010-10-05 11:24:23 +000015113 ;;
15114
15115 darwin* | rhapsody*)
15116
15117
15118 archive_cmds_need_lc=no
15119 hardcode_direct=no
15120 hardcode_automatic=yes
15121 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015122 if test "$lt_cv_ld_force_load" = "yes"; then
15123 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 +000015124
cristy0c60a692010-11-04 01:09:47 +000015125 else
15126 whole_archive_flag_spec=''
15127 fi
cristy73bd4a52010-10-05 11:24:23 +000015128 link_all_deplibs=yes
15129 allow_undefined_flag="$_lt_dar_allow_undefined"
15130 case $cc_basename in
15131 ifort*) _lt_dar_can_shared=yes ;;
15132 *) _lt_dar_can_shared=$GCC ;;
15133 esac
15134 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015135 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015136 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15137 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15138 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}"
15139 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}"
15140
15141 else
15142 ld_shlibs=no
15143 fi
15144
15145 ;;
15146
15147 dgux*)
15148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149 hardcode_libdir_flag_spec='-L$libdir'
15150 hardcode_shlibpath_var=no
15151 ;;
15152
cristy73bd4a52010-10-05 11:24:23 +000015153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15154 # support. Future versions do this automatically, but an explicit c++rt0.o
15155 # does not break anything, and helps significantly (at the cost of a little
15156 # extra space).
15157 freebsd2.2*)
15158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15159 hardcode_libdir_flag_spec='-R$libdir'
15160 hardcode_direct=yes
15161 hardcode_shlibpath_var=no
15162 ;;
15163
15164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015165 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_direct=yes
15168 hardcode_minus_L=yes
15169 hardcode_shlibpath_var=no
15170 ;;
15171
15172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15173 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015174 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015175 hardcode_libdir_flag_spec='-R$libdir'
15176 hardcode_direct=yes
15177 hardcode_shlibpath_var=no
15178 ;;
15179
15180 hpux9*)
15181 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015182 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 +000015183 else
15184 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'
15185 fi
15186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15187 hardcode_libdir_separator=:
15188 hardcode_direct=yes
15189
15190 # hardcode_minus_L: Not really in the search PATH,
15191 # but as the default location of the library.
15192 hardcode_minus_L=yes
15193 export_dynamic_flag_spec='${wl}-E'
15194 ;;
15195
15196 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015197 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015198 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 +000015199 else
15200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15201 fi
15202 if test "$with_gnu_ld" = no; then
15203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015204 hardcode_libdir_separator=:
15205 hardcode_direct=yes
15206 hardcode_direct_absolute=yes
15207 export_dynamic_flag_spec='${wl}-E'
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L=yes
15211 fi
15212 ;;
15213
15214 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015215 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015216 case $host_cpu in
15217 hppa*64*)
15218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15219 ;;
15220 ia64*)
cristyda16f162011-02-19 23:52:17 +000015221 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015222 ;;
15223 *)
cristyda16f162011-02-19 23:52:17 +000015224 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 +000015225 ;;
15226 esac
15227 else
15228 case $host_cpu in
15229 hppa*64*)
15230 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 ;;
15232 ia64*)
15233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15234 ;;
15235 *)
cristy0c60a692010-11-04 01:09:47 +000015236
15237 # Older versions of the 11.00 compiler do not understand -b yet
15238 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15240$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015241if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015242 $as_echo_n "(cached) " >&6
15243else
15244 lt_cv_prog_compiler__b=no
15245 save_LDFLAGS="$LDFLAGS"
15246 LDFLAGS="$LDFLAGS -b"
15247 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15249 # The linker can only warn and ignore the option if not recognized
15250 # So say no if there are warnings
15251 if test -s conftest.err; then
15252 # Append any errors to the config.log.
15253 cat conftest.err 1>&5
15254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15256 if diff conftest.exp conftest.er2 >/dev/null; then
15257 lt_cv_prog_compiler__b=yes
15258 fi
15259 else
15260 lt_cv_prog_compiler__b=yes
15261 fi
15262 fi
15263 $RM -r conftest*
15264 LDFLAGS="$save_LDFLAGS"
15265
15266fi
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15268$as_echo "$lt_cv_prog_compiler__b" >&6; }
15269
15270if test x"$lt_cv_prog_compiler__b" = xyes; then
15271 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15272else
15273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15274fi
15275
cristy73bd4a52010-10-05 11:24:23 +000015276 ;;
15277 esac
15278 fi
15279 if test "$with_gnu_ld" = no; then
15280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15281 hardcode_libdir_separator=:
15282
15283 case $host_cpu in
15284 hppa*64*|ia64*)
15285 hardcode_direct=no
15286 hardcode_shlibpath_var=no
15287 ;;
15288 *)
15289 hardcode_direct=yes
15290 hardcode_direct_absolute=yes
15291 export_dynamic_flag_spec='${wl}-E'
15292
15293 # hardcode_minus_L: Not really in the search PATH,
15294 # but as the default location of the library.
15295 hardcode_minus_L=yes
15296 ;;
15297 esac
15298 fi
15299 ;;
15300
15301 irix5* | irix6* | nonstopux*)
15302 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015303 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 +000015304 # Try to use the -exported_symbol ld option, if it does not
15305 # work, assume that -exports_file does not work either and
15306 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015307 # This should be the same for all languages, so no per-tag cache variable.
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15309$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15310if ${lt_cv_irix_exported_symbol+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312else
15313 save_LDFLAGS="$LDFLAGS"
15314 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015316/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015317int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015318_ACEOF
15319if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015320 lt_cv_irix_exported_symbol=yes
15321else
15322 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015323fi
15324rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015326 LDFLAGS="$save_LDFLAGS"
15327fi
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15329$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15330 if test "$lt_cv_irix_exported_symbol" = yes; then
15331 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'
15332 fi
cristy73bd4a52010-10-05 11:24:23 +000015333 else
cristy0c60a692010-11-04 01:09:47 +000015334 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'
15335 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 +000015336 fi
15337 archive_cmds_need_lc='no'
15338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15339 hardcode_libdir_separator=:
15340 inherit_rpath=yes
15341 link_all_deplibs=yes
15342 ;;
15343
15344 netbsd*)
15345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15347 else
15348 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15349 fi
15350 hardcode_libdir_flag_spec='-R$libdir'
15351 hardcode_direct=yes
15352 hardcode_shlibpath_var=no
15353 ;;
15354
15355 newsos6)
15356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_direct=yes
15358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15359 hardcode_libdir_separator=:
15360 hardcode_shlibpath_var=no
15361 ;;
15362
15363 *nto* | *qnx*)
15364 ;;
15365
15366 openbsd*)
15367 if test -f /usr/libexec/ld.so; then
15368 hardcode_direct=yes
15369 hardcode_shlibpath_var=no
15370 hardcode_direct_absolute=yes
15371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15373 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15375 export_dynamic_flag_spec='${wl}-E'
15376 else
15377 case $host_os in
15378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15380 hardcode_libdir_flag_spec='-R$libdir'
15381 ;;
15382 *)
15383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15385 ;;
15386 esac
15387 fi
15388 else
15389 ld_shlibs=no
15390 fi
15391 ;;
15392
15393 os2*)
15394 hardcode_libdir_flag_spec='-L$libdir'
15395 hardcode_minus_L=yes
15396 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015397 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 +000015398 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15399 ;;
15400
15401 osf3*)
15402 if test "$GCC" = yes; then
15403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015404 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 +000015405 else
15406 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015407 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 +000015408 fi
15409 archive_cmds_need_lc='no'
15410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15411 hardcode_libdir_separator=:
15412 ;;
15413
15414 osf4* | osf5*) # as osf3* with the addition of -msym flag
15415 if test "$GCC" = yes; then
15416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015417 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 +000015418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15419 else
15420 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015421 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 +000015422 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 +000015423 $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 +000015424
15425 # Both c and cxx compiler support -rpath directly
15426 hardcode_libdir_flag_spec='-rpath $libdir'
15427 fi
15428 archive_cmds_need_lc='no'
15429 hardcode_libdir_separator=:
15430 ;;
15431
15432 solaris*)
15433 no_undefined_flag=' -z defs'
15434 if test "$GCC" = yes; then
15435 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015436 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 +000015437 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 +000015438 $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 +000015439 else
15440 case `$CC -V 2>&1` in
15441 *"Compilers 5.0"*)
15442 wlarc=''
15443 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15446 ;;
15447 *)
15448 wlarc='${wl}'
15449 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15451 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15452 ;;
15453 esac
15454 fi
15455 hardcode_libdir_flag_spec='-R$libdir'
15456 hardcode_shlibpath_var=no
15457 case $host_os in
15458 solaris2.[0-5] | solaris2.[0-5].*) ;;
15459 *)
15460 # The compiler driver will combine and reorder linker options,
15461 # but understands `-z linker_flag'. GCC discards it without `$wl',
15462 # but is careful enough not to reorder.
15463 # Supported since Solaris 2.6 (maybe 2.5.1?)
15464 if test "$GCC" = yes; then
15465 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15466 else
15467 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15468 fi
15469 ;;
15470 esac
15471 link_all_deplibs=yes
15472 ;;
15473
15474 sunos4*)
15475 if test "x$host_vendor" = xsequent; then
15476 # Use $CC to link under sequent, because it throws in some extra .o
15477 # files that make .init and .fini sections work.
15478 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15479 else
15480 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15481 fi
15482 hardcode_libdir_flag_spec='-L$libdir'
15483 hardcode_direct=yes
15484 hardcode_minus_L=yes
15485 hardcode_shlibpath_var=no
15486 ;;
15487
15488 sysv4)
15489 case $host_vendor in
15490 sni)
15491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15492 hardcode_direct=yes # is this really true???
15493 ;;
15494 siemens)
15495 ## LD is ld it makes a PLAMLIB
15496 ## CC just makes a GrossModule.
15497 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15498 reload_cmds='$CC -r -o $output$reload_objs'
15499 hardcode_direct=no
15500 ;;
15501 motorola)
15502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15504 ;;
15505 esac
15506 runpath_var='LD_RUN_PATH'
15507 hardcode_shlibpath_var=no
15508 ;;
15509
15510 sysv4.3*)
15511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512 hardcode_shlibpath_var=no
15513 export_dynamic_flag_spec='-Bexport'
15514 ;;
15515
15516 sysv4*MP*)
15517 if test -d /usr/nec; then
15518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_shlibpath_var=no
15520 runpath_var=LD_RUN_PATH
15521 hardcode_runpath_var=yes
15522 ld_shlibs=yes
15523 fi
15524 ;;
15525
15526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15527 no_undefined_flag='${wl}-z,text'
15528 archive_cmds_need_lc=no
15529 hardcode_shlibpath_var=no
15530 runpath_var='LD_RUN_PATH'
15531
15532 if test "$GCC" = yes; then
15533 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15534 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 else
15536 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15538 fi
15539 ;;
15540
15541 sysv5* | sco3.2v5* | sco5v6*)
15542 # Note: We can NOT use -z defs as we might desire, because we do not
15543 # link with -lc, and that would cause any symbols used from libc to
15544 # always be unresolved, which means just about no library would
15545 # ever link correctly. If we're not using GNU ld we use -z text
15546 # though, which does catch some bad symbols but isn't as heavy-handed
15547 # as -z defs.
15548 no_undefined_flag='${wl}-z,text'
15549 allow_undefined_flag='${wl}-z,nodefs'
15550 archive_cmds_need_lc=no
15551 hardcode_shlibpath_var=no
15552 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15553 hardcode_libdir_separator=':'
15554 link_all_deplibs=yes
15555 export_dynamic_flag_spec='${wl}-Bexport'
15556 runpath_var='LD_RUN_PATH'
15557
15558 if test "$GCC" = yes; then
15559 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 else
15562 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15563 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 fi
15565 ;;
15566
15567 uts4*)
15568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 hardcode_libdir_flag_spec='-L$libdir'
15570 hardcode_shlibpath_var=no
15571 ;;
15572
15573 *)
15574 ld_shlibs=no
15575 ;;
15576 esac
15577
15578 if test x$host_vendor = xsni; then
15579 case $host in
15580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15581 export_dynamic_flag_spec='${wl}-Blargedynsym'
15582 ;;
15583 esac
15584 fi
15585 fi
15586
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15588$as_echo "$ld_shlibs" >&6; }
15589test "$ld_shlibs" = no && can_build_shared=no
15590
15591with_gnu_ld=$with_gnu_ld
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607#
15608# Do we need to explicitly link libc?
15609#
15610case "x$archive_cmds_need_lc" in
15611x|xyes)
15612 # Assume -lc should be added
15613 archive_cmds_need_lc=yes
15614
15615 if test "$enable_shared" = yes && test "$GCC" = yes; then
15616 case $archive_cmds in
15617 *'~'*)
15618 # FIXME: we may have to deal with multi-command sequences.
15619 ;;
15620 '$CC '*)
15621 # Test whether the compiler implicitly links with -lc since on some
15622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15623 # to ld, don't add -lc before -lgcc.
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15625$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015626if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015627 $as_echo_n "(cached) " >&6
15628else
15629 $RM conftest*
15630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015631
cristy0c60a692010-11-04 01:09:47 +000015632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015633 (eval $ac_compile) 2>&5
15634 ac_status=$?
15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015637 soname=conftest
15638 lib=conftest
15639 libobjs=conftest.$ac_objext
15640 deplibs=
15641 wl=$lt_prog_compiler_wl
15642 pic_flag=$lt_prog_compiler_pic
15643 compiler_flags=-v
15644 linker_flags=-v
15645 verstring=
15646 output_objdir=.
15647 libname=conftest
15648 lt_save_allow_undefined_flag=$allow_undefined_flag
15649 allow_undefined_flag=
15650 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 +000015651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15652 ac_status=$?
15653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15654 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015655 then
15656 lt_cv_archive_cmds_need_lc=no
15657 else
15658 lt_cv_archive_cmds_need_lc=yes
15659 fi
15660 allow_undefined_flag=$lt_save_allow_undefined_flag
15661 else
15662 cat conftest.err 1>&5
15663 fi
15664 $RM conftest*
15665
15666fi
15667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15668$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15669 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015670 ;;
15671 esac
15672 fi
15673 ;;
15674esac
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
cristy73bd4a52010-10-05 11:24:23 +000015827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15828$as_echo_n "checking dynamic linker characteristics... " >&6; }
15829
15830if test "$GCC" = yes; then
15831 case $host_os in
15832 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15833 *) lt_awk_arg="/^libraries:/" ;;
15834 esac
cristy0c60a692010-11-04 01:09:47 +000015835 case $host_os in
15836 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15837 *) lt_sed_strip_eq="s,=/,/,g" ;;
15838 esac
15839 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15840 case $lt_search_path_spec in
15841 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015842 # if the path contains ";" then we assume it to be the separator
15843 # otherwise default to the standard path separator (i.e. ":") - it is
15844 # assumed that no part of a normal pathname contains ";" but that should
15845 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015846 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15847 ;;
15848 *)
15849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15850 ;;
15851 esac
cristy73bd4a52010-10-05 11:24:23 +000015852 # Ok, now we have the path, separated by spaces, we can step through it
15853 # and add multilib dir if necessary.
15854 lt_tmp_lt_search_path_spec=
15855 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15856 for lt_sys_path in $lt_search_path_spec; do
15857 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15858 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15859 else
15860 test -d "$lt_sys_path" && \
15861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15862 fi
15863 done
cristy0c60a692010-11-04 01:09:47 +000015864 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015865BEGIN {RS=" "; FS="/|\n";} {
15866 lt_foo="";
15867 lt_count=0;
15868 for (lt_i = NF; lt_i > 0; lt_i--) {
15869 if ($lt_i != "" && $lt_i != ".") {
15870 if ($lt_i == "..") {
15871 lt_count++;
15872 } else {
15873 if (lt_count == 0) {
15874 lt_foo="/" $lt_i lt_foo;
15875 } else {
15876 lt_count--;
15877 }
15878 }
15879 }
15880 }
15881 if (lt_foo != "") { lt_freq[lt_foo]++; }
15882 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15883}'`
cristy0c60a692010-11-04 01:09:47 +000015884 # AWK program above erroneously prepends '/' to C:/dos/paths
15885 # for these hosts.
15886 case $host_os in
15887 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15888 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15889 esac
15890 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015891else
15892 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15893fi
15894library_names_spec=
15895libname_spec='lib$name'
15896soname_spec=
15897shrext_cmds=".so"
15898postinstall_cmds=
15899postuninstall_cmds=
15900finish_cmds=
15901finish_eval=
15902shlibpath_var=
15903shlibpath_overrides_runpath=unknown
15904version_type=none
15905dynamic_linker="$host_os ld.so"
15906sys_lib_dlsearch_path_spec="/lib /usr/lib"
15907need_lib_prefix=unknown
15908hardcode_into_libs=no
15909
15910# when you set need_version to no, make sure it does not cause -set_version
15911# flags to be left without arguments
15912need_version=unknown
15913
15914case $host_os in
15915aix3*)
cristy99bd5232011-12-07 14:38:20 +000015916 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15918 shlibpath_var=LIBPATH
15919
15920 # AIX 3 has no versioning support, so we append a major version to the name.
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 ;;
15923
15924aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015925 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015926 need_lib_prefix=no
15927 need_version=no
15928 hardcode_into_libs=yes
15929 if test "$host_cpu" = ia64; then
15930 # AIX 5 supports IA64
15931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 else
15934 # With GCC up to 2.95.x, collect2 would create an import file
15935 # for dependence libraries. The import file would start with
15936 # the line `#! .'. This would cause the generated library to
15937 # depend on `.', always an invalid library. This was fixed in
15938 # development snapshots of GCC prior to 3.0.
15939 case $host_os in
15940 aix4 | aix4.[01] | aix4.[01].*)
15941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15942 echo ' yes '
15943 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15944 :
15945 else
15946 can_build_shared=no
15947 fi
15948 ;;
15949 esac
15950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15951 # soname into executable. Probably we can add versioning support to
15952 # collect2, so additional links can be useful in future.
15953 if test "$aix_use_runtimelinking" = yes; then
15954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15955 # instead of lib<name>.a to let people know that these are not
15956 # typical AIX shared libraries.
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 else
15959 # We preserve .a as extension for shared libraries through AIX4.2
15960 # and later when we are not doing run time linking.
15961 library_names_spec='${libname}${release}.a $libname.a'
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 fi
15964 shlibpath_var=LIBPATH
15965 fi
15966 ;;
15967
15968amigaos*)
15969 case $host_cpu in
15970 powerpc)
15971 # Since July 2007 AmigaOS4 officially supports .so libraries.
15972 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 ;;
15975 m68k)
15976 library_names_spec='$libname.ixlibrary $libname.a'
15977 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015978 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 +000015979 ;;
15980 esac
15981 ;;
15982
15983beos*)
15984 library_names_spec='${libname}${shared_ext}'
15985 dynamic_linker="$host_os ld.so"
15986 shlibpath_var=LIBRARY_PATH
15987 ;;
15988
15989bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015990 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15998 # the default ld.so.conf also contains /usr/contrib/lib and
15999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16000 # libtool to hard-code these into programs
16001 ;;
16002
16003cygwin* | mingw* | pw32* | cegcc*)
16004 version_type=windows
16005 shrext_cmds=".dll"
16006 need_version=no
16007 need_lib_prefix=no
16008
cristyda16f162011-02-19 23:52:17 +000016009 case $GCC,$cc_basename in
16010 yes,*)
16011 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016012 library_names_spec='$libname.dll.a'
16013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16014 postinstall_cmds='base_file=`basename \${file}`~
16015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16016 dldir=$destdir/`dirname \$dlpath`~
16017 test -d \$dldir || mkdir -p \$dldir~
16018 $install_prog $dir/$dlname \$dldir/$dlname~
16019 chmod a+x \$dldir/$dlname~
16020 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16021 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16022 fi'
16023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16024 dlpath=$dir/\$dldll~
16025 $RM \$dlpath'
16026 shlibpath_overrides_runpath=yes
16027
16028 case $host_os in
16029 cygwin*)
16030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016032
16033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016034 ;;
16035 mingw* | cegcc*)
16036 # MinGW DLLs use traditional 'lib' prefix
16037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016038 ;;
16039 pw32*)
16040 # pw32 DLLs use 'pw' prefix rather than 'lib'
16041 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16042 ;;
16043 esac
cristyda16f162011-02-19 23:52:17 +000016044 dynamic_linker='Win32 ld.exe'
16045 ;;
16046
16047 *,cl*)
16048 # Native MSVC
16049 libname_spec='$name'
16050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16051 library_names_spec='${libname}.dll.lib'
16052
16053 case $build_os in
16054 mingw*)
16055 sys_lib_search_path_spec=
16056 lt_save_ifs=$IFS
16057 IFS=';'
16058 for lt_path in $LIB
16059 do
16060 IFS=$lt_save_ifs
16061 # Let DOS variable expansion print the short 8.3 style file name.
16062 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16063 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16064 done
16065 IFS=$lt_save_ifs
16066 # Convert to MSYS style.
16067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16068 ;;
16069 cygwin*)
16070 # Convert to unix form, then to dos form, then back to unix form
16071 # but this time dos style (no spaces!) so that the unix form looks
16072 # like /cygdrive/c/PROGRA~1:/cygdr...
16073 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16074 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16075 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16076 ;;
16077 *)
16078 sys_lib_search_path_spec="$LIB"
16079 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16080 # It is most probably a Windows format PATH.
16081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16082 else
16083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16084 fi
16085 # FIXME: find the short name or the path components, as spaces are
16086 # common. (e.g. "Program Files" -> "PROGRA~1")
16087 ;;
16088 esac
16089
16090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16091 postinstall_cmds='base_file=`basename \${file}`~
16092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16093 dldir=$destdir/`dirname \$dlpath`~
16094 test -d \$dldir || mkdir -p \$dldir~
16095 $install_prog $dir/$dlname \$dldir/$dlname'
16096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16097 dlpath=$dir/\$dldll~
16098 $RM \$dlpath'
16099 shlibpath_overrides_runpath=yes
16100 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016101 ;;
16102
16103 *)
cristyda16f162011-02-19 23:52:17 +000016104 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016106 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016107 ;;
16108 esac
cristy73bd4a52010-10-05 11:24:23 +000016109 # FIXME: first we should search . and the directory the executable is in
16110 shlibpath_var=PATH
16111 ;;
16112
16113darwin* | rhapsody*)
16114 dynamic_linker="$host_os dyld"
16115 version_type=darwin
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16119 soname_spec='${libname}${release}${major}$shared_ext'
16120 shlibpath_overrides_runpath=yes
16121 shlibpath_var=DYLD_LIBRARY_PATH
16122 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16123
16124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16126 ;;
16127
16128dgux*)
cristy99bd5232011-12-07 14:38:20 +000016129 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016130 need_lib_prefix=no
16131 need_version=no
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 shlibpath_var=LD_LIBRARY_PATH
16135 ;;
16136
cristy73bd4a52010-10-05 11:24:23 +000016137freebsd* | dragonfly*)
16138 # DragonFly does not have aout. When/if they implement a new
16139 # versioning mechanism, adjust this.
16140 if test -x /usr/bin/objformat; then
16141 objformat=`/usr/bin/objformat`
16142 else
16143 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016144 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016145 *) objformat=elf ;;
16146 esac
16147 fi
16148 version_type=freebsd-$objformat
16149 case $version_type in
16150 freebsd-elf*)
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16152 need_version=no
16153 need_lib_prefix=no
16154 ;;
16155 freebsd-*)
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16157 need_version=yes
16158 ;;
16159 esac
16160 shlibpath_var=LD_LIBRARY_PATH
16161 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016162 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016163 shlibpath_overrides_runpath=yes
16164 ;;
16165 freebsd3.[01]* | freebsdelf3.[01]*)
16166 shlibpath_overrides_runpath=yes
16167 hardcode_into_libs=yes
16168 ;;
16169 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16170 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16171 shlibpath_overrides_runpath=no
16172 hardcode_into_libs=yes
16173 ;;
16174 *) # from 4.6 on, and DragonFly
16175 shlibpath_overrides_runpath=yes
16176 hardcode_into_libs=yes
16177 ;;
16178 esac
16179 ;;
16180
16181gnu*)
cristy99bd5232011-12-07 14:38:20 +000016182 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016183 need_lib_prefix=no
16184 need_version=no
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016188 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016189 hardcode_into_libs=yes
16190 ;;
16191
cristy0c60a692010-11-04 01:09:47 +000016192haiku*)
cristy99bd5232011-12-07 14:38:20 +000016193 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016194 need_lib_prefix=no
16195 need_version=no
16196 dynamic_linker="$host_os runtime_loader"
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LIBRARY_PATH
16200 shlibpath_overrides_runpath=yes
16201 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16202 hardcode_into_libs=yes
16203 ;;
16204
cristy73bd4a52010-10-05 11:24:23 +000016205hpux9* | hpux10* | hpux11*)
16206 # Give a soname corresponding to the major version so that dld.sl refuses to
16207 # link against other versions.
16208 version_type=sunos
16209 need_lib_prefix=no
16210 need_version=no
16211 case $host_cpu in
16212 ia64*)
16213 shrext_cmds='.so'
16214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.so"
16216 shlibpath_var=LD_LIBRARY_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 if test "X$HPUX_IA64_MODE" = X32; then
16221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16222 else
16223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16224 fi
16225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16226 ;;
16227 hppa*64*)
16228 shrext_cmds='.sl'
16229 hardcode_into_libs=yes
16230 dynamic_linker="$host_os dld.sl"
16231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237 ;;
16238 *)
16239 shrext_cmds='.sl'
16240 dynamic_linker="$host_os dld.sl"
16241 shlibpath_var=SHLIB_PATH
16242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244 soname_spec='${libname}${release}${shared_ext}$major'
16245 ;;
16246 esac
cristy0c60a692010-11-04 01:09:47 +000016247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016248 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016249 # or fails outright, so override atomically:
16250 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016251 ;;
16252
16253interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016254 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016255 need_lib_prefix=no
16256 need_version=no
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 shlibpath_overrides_runpath=no
16262 hardcode_into_libs=yes
16263 ;;
16264
16265irix5* | irix6* | nonstopux*)
16266 case $host_os in
16267 nonstopux*) version_type=nonstopux ;;
16268 *)
16269 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016270 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016271 else
16272 version_type=irix
16273 fi ;;
16274 esac
16275 need_lib_prefix=no
16276 need_version=no
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16279 case $host_os in
16280 irix5* | nonstopux*)
16281 libsuff= shlibsuff=
16282 ;;
16283 *)
16284 case $LD in # libtool.m4 will add one of these switches to LD
16285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16286 libsuff= shlibsuff= libmagic=32-bit;;
16287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16288 libsuff=32 shlibsuff=N32 libmagic=N32;;
16289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16291 *) libsuff= shlibsuff= libmagic=never-match;;
16292 esac
16293 ;;
16294 esac
16295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16296 shlibpath_overrides_runpath=no
16297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16299 hardcode_into_libs=yes
16300 ;;
16301
16302# No shared lib support for Linux oldld, aout, or coff.
16303linux*oldld* | linux*aout* | linux*coff*)
16304 dynamic_linker=no
16305 ;;
16306
cristy99bd5232011-12-07 14:38:20 +000016307# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016308linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016309 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016310 need_lib_prefix=no
16311 need_version=no
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016317
cristy73bd4a52010-10-05 11:24:23 +000016318 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016319 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016320 $as_echo_n "(cached) " >&6
16321else
16322 lt_cv_shlibpath_overrides_runpath=no
16323 save_LDFLAGS=$LDFLAGS
16324 save_libdir=$libdir
16325 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16326 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016328/* end confdefs.h. */
16329
16330int
16331main ()
16332{
16333
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338if ac_fn_c_try_link "$LINENO"; then :
16339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016340 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016341fi
16342fi
16343rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016345 LDFLAGS=$save_LDFLAGS
16346 libdir=$save_libdir
16347
16348fi
16349
16350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016351
16352 # This implies no fast_install, which is unacceptable.
16353 # Some rework will be needed to allow for fast_install
16354 # before this can be enabled.
16355 hardcode_into_libs=yes
16356
16357 # Add ABI-specific directories to the system library path.
16358 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16359
16360 # Append ld.so.conf contents to the search path
16361 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016362 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 +000016363 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016364
cristy73bd4a52010-10-05 11:24:23 +000016365 fi
16366
16367 # We used to test for /lib/ld.so.1 and disable shared libraries on
16368 # powerpc, because MkLinux only supported shared libraries with the
16369 # GNU dynamic linker. Since this was broken with cross compilers,
16370 # most powerpc-linux boxes support dynamic linking these days and
16371 # people can always --disable-shared, the test was removed, and we
16372 # assume the GNU/Linux dynamic linker is in use.
16373 dynamic_linker='GNU/Linux ld.so'
16374 ;;
16375
16376netbsd*)
16377 version_type=sunos
16378 need_lib_prefix=no
16379 need_version=no
16380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16383 dynamic_linker='NetBSD (a.out) ld.so'
16384 else
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 dynamic_linker='NetBSD ld.elf_so'
16388 fi
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 ;;
16393
16394newsos6)
cristy99bd5232011-12-07 14:38:20 +000016395 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16399 ;;
16400
16401*nto* | *qnx*)
16402 version_type=qnx
16403 need_lib_prefix=no
16404 need_version=no
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=no
16409 hardcode_into_libs=yes
16410 dynamic_linker='ldqnx.so'
16411 ;;
16412
16413openbsd*)
16414 version_type=sunos
16415 sys_lib_dlsearch_path_spec="/usr/lib"
16416 need_lib_prefix=no
16417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16418 case $host_os in
16419 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16420 *) need_version=no ;;
16421 esac
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16426 case $host_os in
16427 openbsd2.[89] | openbsd2.[89].*)
16428 shlibpath_overrides_runpath=no
16429 ;;
16430 *)
16431 shlibpath_overrides_runpath=yes
16432 ;;
16433 esac
16434 else
16435 shlibpath_overrides_runpath=yes
16436 fi
16437 ;;
16438
16439os2*)
16440 libname_spec='$name'
16441 shrext_cmds=".dll"
16442 need_lib_prefix=no
16443 library_names_spec='$libname${shared_ext} $libname.a'
16444 dynamic_linker='OS/2 ld.exe'
16445 shlibpath_var=LIBPATH
16446 ;;
16447
16448osf3* | osf4* | osf5*)
16449 version_type=osf
16450 need_lib_prefix=no
16451 need_version=no
16452 soname_spec='${libname}${release}${shared_ext}$major'
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16454 shlibpath_var=LD_LIBRARY_PATH
16455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16457 ;;
16458
16459rdos*)
16460 dynamic_linker=no
16461 ;;
16462
16463solaris*)
cristy99bd5232011-12-07 14:38:20 +000016464 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016465 need_lib_prefix=no
16466 need_version=no
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 shlibpath_overrides_runpath=yes
16471 hardcode_into_libs=yes
16472 # ldd complains unless libraries are executable
16473 postinstall_cmds='chmod +x $lib'
16474 ;;
16475
16476sunos4*)
16477 version_type=sunos
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=yes
16482 if test "$with_gnu_ld" = yes; then
16483 need_lib_prefix=no
16484 fi
16485 need_version=yes
16486 ;;
16487
16488sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016489 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 case $host_vendor in
16494 sni)
16495 shlibpath_overrides_runpath=no
16496 need_lib_prefix=no
16497 runpath_var=LD_RUN_PATH
16498 ;;
16499 siemens)
16500 need_lib_prefix=no
16501 ;;
16502 motorola)
16503 need_lib_prefix=no
16504 need_version=no
16505 shlibpath_overrides_runpath=no
16506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16507 ;;
16508 esac
16509 ;;
16510
16511sysv4*MP*)
16512 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016513 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16515 soname_spec='$libname${shared_ext}.$major'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 fi
16518 ;;
16519
16520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16521 version_type=freebsd-elf
16522 need_lib_prefix=no
16523 need_version=no
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16525 soname_spec='${libname}${release}${shared_ext}$major'
16526 shlibpath_var=LD_LIBRARY_PATH
16527 shlibpath_overrides_runpath=yes
16528 hardcode_into_libs=yes
16529 if test "$with_gnu_ld" = yes; then
16530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16531 else
16532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16533 case $host_os in
16534 sco3.2v5*)
16535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16536 ;;
16537 esac
16538 fi
16539 sys_lib_dlsearch_path_spec='/usr/lib'
16540 ;;
16541
16542tpf*)
16543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016544 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=no
16550 hardcode_into_libs=yes
16551 ;;
16552
16553uts4*)
cristy99bd5232011-12-07 14:38:20 +000016554 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 ;;
16559
16560*)
16561 dynamic_linker=no
16562 ;;
16563esac
16564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16565$as_echo "$dynamic_linker" >&6; }
16566test "$dynamic_linker" = no && can_build_shared=no
16567
16568variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16569if test "$GCC" = yes; then
16570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16571fi
16572
16573if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16575fi
16576if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16578fi
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
cristy0c60a692010-11-04 01:09:47 +000016666
16667
16668
16669
16670
cristy73bd4a52010-10-05 11:24:23 +000016671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16672$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16673hardcode_action=
16674if test -n "$hardcode_libdir_flag_spec" ||
16675 test -n "$runpath_var" ||
16676 test "X$hardcode_automatic" = "Xyes" ; then
16677
16678 # We can hardcode non-existent directories.
16679 if test "$hardcode_direct" != no &&
16680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16681 # have to relink, otherwise we might link with an installed library
16682 # when we should be linking with a yet-to-be-installed one
16683 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16684 test "$hardcode_minus_L" != no; then
16685 # Linking always hardcodes the temporary library directory.
16686 hardcode_action=relink
16687 else
16688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16689 hardcode_action=immediate
16690 fi
16691else
16692 # We cannot hardcode anything, or else we can only hardcode existing
16693 # directories.
16694 hardcode_action=unsupported
16695fi
16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16697$as_echo "$hardcode_action" >&6; }
16698
16699if test "$hardcode_action" = relink ||
16700 test "$inherit_rpath" = yes; then
16701 # Fast installation is not supported
16702 enable_fast_install=no
16703elif test "$shlibpath_overrides_runpath" = yes ||
16704 test "$enable_shared" = no; then
16705 # Fast installation is not necessary
16706 enable_fast_install=needless
16707fi
16708
16709
16710
16711
16712
16713
16714 if test "x$enable_dlopen" != xyes; then
16715 enable_dlopen=unknown
16716 enable_dlopen_self=unknown
16717 enable_dlopen_self_static=unknown
16718else
16719 lt_cv_dlopen=no
16720 lt_cv_dlopen_libs=
16721
16722 case $host_os in
16723 beos*)
16724 lt_cv_dlopen="load_add_on"
16725 lt_cv_dlopen_libs=
16726 lt_cv_dlopen_self=yes
16727 ;;
16728
16729 mingw* | pw32* | cegcc*)
16730 lt_cv_dlopen="LoadLibrary"
16731 lt_cv_dlopen_libs=
16732 ;;
16733
16734 cygwin*)
16735 lt_cv_dlopen="dlopen"
16736 lt_cv_dlopen_libs=
16737 ;;
16738
16739 darwin*)
16740 # if libdl is installed we need to link against it
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16742$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016743if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016744 $as_echo_n "(cached) " >&6
16745else
16746 ac_check_lib_save_LIBS=$LIBS
16747LIBS="-ldl $LIBS"
16748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749/* end confdefs.h. */
16750
16751/* Override any GCC internal prototype to avoid an error.
16752 Use char because int might match the return type of a GCC
16753 builtin and then its argument prototype would still apply. */
16754#ifdef __cplusplus
16755extern "C"
16756#endif
16757char dlopen ();
16758int
16759main ()
16760{
16761return dlopen ();
16762 ;
16763 return 0;
16764}
16765_ACEOF
16766if ac_fn_c_try_link "$LINENO"; then :
16767 ac_cv_lib_dl_dlopen=yes
16768else
16769 ac_cv_lib_dl_dlopen=no
16770fi
16771rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773LIBS=$ac_check_lib_save_LIBS
16774fi
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16776$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016777if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16779else
16780
16781 lt_cv_dlopen="dyld"
16782 lt_cv_dlopen_libs=
16783 lt_cv_dlopen_self=yes
16784
16785fi
16786
16787 ;;
16788
16789 *)
16790 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016791if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016792 lt_cv_dlopen="shl_load"
16793else
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16795$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016796if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016797 $as_echo_n "(cached) " >&6
16798else
16799 ac_check_lib_save_LIBS=$LIBS
16800LIBS="-ldld $LIBS"
16801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802/* end confdefs.h. */
16803
16804/* Override any GCC internal prototype to avoid an error.
16805 Use char because int might match the return type of a GCC
16806 builtin and then its argument prototype would still apply. */
16807#ifdef __cplusplus
16808extern "C"
16809#endif
16810char shl_load ();
16811int
16812main ()
16813{
16814return shl_load ();
16815 ;
16816 return 0;
16817}
16818_ACEOF
16819if ac_fn_c_try_link "$LINENO"; then :
16820 ac_cv_lib_dld_shl_load=yes
16821else
16822 ac_cv_lib_dld_shl_load=no
16823fi
16824rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16826LIBS=$ac_check_lib_save_LIBS
16827fi
16828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16829$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016830if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016831 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16832else
16833 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016834if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016835 lt_cv_dlopen="dlopen"
16836else
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16838$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016839if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016840 $as_echo_n "(cached) " >&6
16841else
16842 ac_check_lib_save_LIBS=$LIBS
16843LIBS="-ldl $LIBS"
16844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h. */
16846
16847/* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850#ifdef __cplusplus
16851extern "C"
16852#endif
16853char dlopen ();
16854int
16855main ()
16856{
16857return dlopen ();
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862if ac_fn_c_try_link "$LINENO"; then :
16863 ac_cv_lib_dl_dlopen=yes
16864else
16865 ac_cv_lib_dl_dlopen=no
16866fi
16867rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16869LIBS=$ac_check_lib_save_LIBS
16870fi
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016873if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16875else
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16877$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016878if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016879 $as_echo_n "(cached) " >&6
16880else
16881 ac_check_lib_save_LIBS=$LIBS
16882LIBS="-lsvld $LIBS"
16883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884/* end confdefs.h. */
16885
16886/* Override any GCC internal prototype to avoid an error.
16887 Use char because int might match the return type of a GCC
16888 builtin and then its argument prototype would still apply. */
16889#ifdef __cplusplus
16890extern "C"
16891#endif
16892char dlopen ();
16893int
16894main ()
16895{
16896return dlopen ();
16897 ;
16898 return 0;
16899}
16900_ACEOF
16901if ac_fn_c_try_link "$LINENO"; then :
16902 ac_cv_lib_svld_dlopen=yes
16903else
16904 ac_cv_lib_svld_dlopen=no
16905fi
16906rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16908LIBS=$ac_check_lib_save_LIBS
16909fi
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16911$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016912if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16914else
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16916$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016917if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016918 $as_echo_n "(cached) " >&6
16919else
16920 ac_check_lib_save_LIBS=$LIBS
16921LIBS="-ldld $LIBS"
16922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h. */
16924
16925/* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16928#ifdef __cplusplus
16929extern "C"
16930#endif
16931char dld_link ();
16932int
16933main ()
16934{
16935return dld_link ();
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940if ac_fn_c_try_link "$LINENO"; then :
16941 ac_cv_lib_dld_dld_link=yes
16942else
16943 ac_cv_lib_dld_dld_link=no
16944fi
16945rm -f core conftest.err conftest.$ac_objext \
16946 conftest$ac_exeext conftest.$ac_ext
16947LIBS=$ac_check_lib_save_LIBS
16948fi
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16950$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016951if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016952 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16953fi
16954
16955
16956fi
16957
16958
16959fi
16960
16961
16962fi
16963
16964
16965fi
16966
16967
16968fi
16969
16970 ;;
16971 esac
16972
16973 if test "x$lt_cv_dlopen" != xno; then
16974 enable_dlopen=yes
16975 else
16976 enable_dlopen=no
16977 fi
16978
16979 case $lt_cv_dlopen in
16980 dlopen)
16981 save_CPPFLAGS="$CPPFLAGS"
16982 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16983
16984 save_LDFLAGS="$LDFLAGS"
16985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16986
16987 save_LIBS="$LIBS"
16988 LIBS="$lt_cv_dlopen_libs $LIBS"
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16991$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016992if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016993 $as_echo_n "(cached) " >&6
16994else
16995 if test "$cross_compiling" = yes; then :
16996 lt_cv_dlopen_self=cross
16997else
16998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16999 lt_status=$lt_dlunknown
17000 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017001#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017002#include "confdefs.h"
17003
17004#if HAVE_DLFCN_H
17005#include <dlfcn.h>
17006#endif
17007
17008#include <stdio.h>
17009
17010#ifdef RTLD_GLOBAL
17011# define LT_DLGLOBAL RTLD_GLOBAL
17012#else
17013# ifdef DL_GLOBAL
17014# define LT_DLGLOBAL DL_GLOBAL
17015# else
17016# define LT_DLGLOBAL 0
17017# endif
17018#endif
17019
17020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17021 find out it does not work in some platform. */
17022#ifndef LT_DLLAZY_OR_NOW
17023# ifdef RTLD_LAZY
17024# define LT_DLLAZY_OR_NOW RTLD_LAZY
17025# else
17026# ifdef DL_LAZY
17027# define LT_DLLAZY_OR_NOW DL_LAZY
17028# else
17029# ifdef RTLD_NOW
17030# define LT_DLLAZY_OR_NOW RTLD_NOW
17031# else
17032# ifdef DL_NOW
17033# define LT_DLLAZY_OR_NOW DL_NOW
17034# else
17035# define LT_DLLAZY_OR_NOW 0
17036# endif
17037# endif
17038# endif
17039# endif
17040#endif
17041
cristy0c60a692010-11-04 01:09:47 +000017042/* When -fvisbility=hidden is used, assume the code has been annotated
17043 correspondingly for the symbols needed. */
17044#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017045int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017046#endif
17047
cristyda16f162011-02-19 23:52:17 +000017048int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017049int main ()
17050{
17051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17052 int status = $lt_dlunknown;
17053
17054 if (self)
17055 {
17056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017057 else
17058 {
17059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17060 else puts (dlerror ());
17061 }
cristy73bd4a52010-10-05 11:24:23 +000017062 /* dlclose (self); */
17063 }
17064 else
17065 puts (dlerror ());
17066
17067 return status;
17068}
17069_LT_EOF
17070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17071 (eval $ac_link) 2>&5
17072 ac_status=$?
17073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17074 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17075 (./conftest; exit; ) >&5 2>/dev/null
17076 lt_status=$?
17077 case x$lt_status in
17078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17081 esac
17082 else :
17083 # compilation failed
17084 lt_cv_dlopen_self=no
17085 fi
17086fi
17087rm -fr conftest*
17088
17089
17090fi
17091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17092$as_echo "$lt_cv_dlopen_self" >&6; }
17093
17094 if test "x$lt_cv_dlopen_self" = xyes; then
17095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17097$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017098if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017099 $as_echo_n "(cached) " >&6
17100else
17101 if test "$cross_compiling" = yes; then :
17102 lt_cv_dlopen_self_static=cross
17103else
17104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17105 lt_status=$lt_dlunknown
17106 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017107#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017108#include "confdefs.h"
17109
17110#if HAVE_DLFCN_H
17111#include <dlfcn.h>
17112#endif
17113
17114#include <stdio.h>
17115
17116#ifdef RTLD_GLOBAL
17117# define LT_DLGLOBAL RTLD_GLOBAL
17118#else
17119# ifdef DL_GLOBAL
17120# define LT_DLGLOBAL DL_GLOBAL
17121# else
17122# define LT_DLGLOBAL 0
17123# endif
17124#endif
17125
17126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17127 find out it does not work in some platform. */
17128#ifndef LT_DLLAZY_OR_NOW
17129# ifdef RTLD_LAZY
17130# define LT_DLLAZY_OR_NOW RTLD_LAZY
17131# else
17132# ifdef DL_LAZY
17133# define LT_DLLAZY_OR_NOW DL_LAZY
17134# else
17135# ifdef RTLD_NOW
17136# define LT_DLLAZY_OR_NOW RTLD_NOW
17137# else
17138# ifdef DL_NOW
17139# define LT_DLLAZY_OR_NOW DL_NOW
17140# else
17141# define LT_DLLAZY_OR_NOW 0
17142# endif
17143# endif
17144# endif
17145# endif
17146#endif
17147
cristy0c60a692010-11-04 01:09:47 +000017148/* When -fvisbility=hidden is used, assume the code has been annotated
17149 correspondingly for the symbols needed. */
17150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017151int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017152#endif
17153
cristyda16f162011-02-19 23:52:17 +000017154int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017155int main ()
17156{
17157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17158 int status = $lt_dlunknown;
17159
17160 if (self)
17161 {
17162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017163 else
17164 {
17165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17166 else puts (dlerror ());
17167 }
cristy73bd4a52010-10-05 11:24:23 +000017168 /* dlclose (self); */
17169 }
17170 else
17171 puts (dlerror ());
17172
17173 return status;
17174}
17175_LT_EOF
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17181 (./conftest; exit; ) >&5 2>/dev/null
17182 lt_status=$?
17183 case x$lt_status in
17184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17186 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17187 esac
17188 else :
17189 # compilation failed
17190 lt_cv_dlopen_self_static=no
17191 fi
17192fi
17193rm -fr conftest*
17194
17195
17196fi
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17198$as_echo "$lt_cv_dlopen_self_static" >&6; }
17199 fi
17200
17201 CPPFLAGS="$save_CPPFLAGS"
17202 LDFLAGS="$save_LDFLAGS"
17203 LIBS="$save_LIBS"
17204 ;;
17205 esac
17206
17207 case $lt_cv_dlopen_self in
17208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17209 *) enable_dlopen_self=unknown ;;
17210 esac
17211
17212 case $lt_cv_dlopen_self_static in
17213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17214 *) enable_dlopen_self_static=unknown ;;
17215 esac
17216fi
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234striplib=
17235old_striplib=
17236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17237$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17238if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17239 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17240 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17242$as_echo "yes" >&6; }
17243else
17244# FIXME - insert some real tests, host_os isn't really good enough
17245 case $host_os in
17246 darwin*)
17247 if test -n "$STRIP" ; then
17248 striplib="$STRIP -x"
17249 old_striplib="$STRIP -S"
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17251$as_echo "yes" >&6; }
17252 else
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254$as_echo "no" >&6; }
17255 fi
17256 ;;
17257 *)
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259$as_echo "no" >&6; }
17260 ;;
17261 esac
17262fi
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275 # Report which library types will actually be built
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17277$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17279$as_echo "$can_build_shared" >&6; }
17280
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17282$as_echo_n "checking whether to build shared libraries... " >&6; }
17283 test "$can_build_shared" = "no" && enable_shared=no
17284
17285 # On AIX, shared libraries and static libraries use the same namespace, and
17286 # are all built from PIC.
17287 case $host_os in
17288 aix3*)
17289 test "$enable_shared" = yes && enable_static=no
17290 if test -n "$RANLIB"; then
17291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17292 postinstall_cmds='$RANLIB $lib'
17293 fi
17294 ;;
17295
17296 aix[4-9]*)
17297 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17298 test "$enable_shared" = yes && enable_static=no
17299 fi
17300 ;;
17301 esac
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17303$as_echo "$enable_shared" >&6; }
17304
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17306$as_echo_n "checking whether to build static libraries... " >&6; }
17307 # Make sure either enable_shared or enable_static is yes.
17308 test "$enable_shared" = yes || enable_static=yes
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17310$as_echo "$enable_static" >&6; }
17311
17312
17313
17314
17315fi
17316ac_ext=c
17317ac_cpp='$CPP $CPPFLAGS'
17318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17320ac_compiler_gnu=$ac_cv_c_compiler_gnu
17321
17322CC="$lt_save_CC"
17323
cristy0c60a692010-11-04 01:09:47 +000017324 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17325 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17326 (test "X$CXX" != "Xg++"))) ; then
17327 ac_ext=cpp
17328ac_cpp='$CXXCPP $CPPFLAGS'
17329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17333$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17334if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017335 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017336 $as_echo_n "(cached) " >&6
17337else
17338 # Double quotes because CXXCPP needs to be expanded
17339 for CXXCPP in "$CXX -E" "/lib/cpp"
17340 do
17341 ac_preproc_ok=false
17342for ac_cxx_preproc_warn_flag in '' yes
17343do
17344 # Use a header file that comes with gcc, so configuring glibc
17345 # with a fresh cross-compiler works.
17346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347 # <limits.h> exists even on freestanding compilers.
17348 # On the NeXT, cc -E runs the code through the compiler's parser,
17349 # not just through cpp. "Syntax error" is here to catch this case.
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h. */
17352#ifdef __STDC__
17353# include <limits.h>
17354#else
17355# include <assert.h>
17356#endif
17357 Syntax error
17358_ACEOF
17359if ac_fn_cxx_try_cpp "$LINENO"; then :
17360
17361else
17362 # Broken: fails on valid input.
17363continue
17364fi
cristyda16f162011-02-19 23:52:17 +000017365rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017366
17367 # OK, works on sane cases. Now check whether nonexistent headers
17368 # can be detected and how.
17369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370/* end confdefs.h. */
17371#include <ac_nonexistent.h>
17372_ACEOF
17373if ac_fn_cxx_try_cpp "$LINENO"; then :
17374 # Broken: success on invalid input.
17375continue
17376else
17377 # Passes both tests.
17378ac_preproc_ok=:
17379break
17380fi
cristyda16f162011-02-19 23:52:17 +000017381rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017382
17383done
17384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017385rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017386if $ac_preproc_ok; then :
17387 break
17388fi
17389
17390 done
17391 ac_cv_prog_CXXCPP=$CXXCPP
17392
17393fi
17394 CXXCPP=$ac_cv_prog_CXXCPP
17395else
17396 ac_cv_prog_CXXCPP=$CXXCPP
17397fi
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17399$as_echo "$CXXCPP" >&6; }
17400ac_preproc_ok=false
17401for ac_cxx_preproc_warn_flag in '' yes
17402do
17403 # Use a header file that comes with gcc, so configuring glibc
17404 # with a fresh cross-compiler works.
17405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406 # <limits.h> exists even on freestanding compilers.
17407 # On the NeXT, cc -E runs the code through the compiler's parser,
17408 # not just through cpp. "Syntax error" is here to catch this case.
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h. */
17411#ifdef __STDC__
17412# include <limits.h>
17413#else
17414# include <assert.h>
17415#endif
17416 Syntax error
17417_ACEOF
17418if ac_fn_cxx_try_cpp "$LINENO"; then :
17419
17420else
17421 # Broken: fails on valid input.
17422continue
17423fi
cristyda16f162011-02-19 23:52:17 +000017424rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017425
17426 # OK, works on sane cases. Now check whether nonexistent headers
17427 # can be detected and how.
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h. */
17430#include <ac_nonexistent.h>
17431_ACEOF
17432if ac_fn_cxx_try_cpp "$LINENO"; then :
17433 # Broken: success on invalid input.
17434continue
17435else
17436 # Passes both tests.
17437ac_preproc_ok=:
17438break
17439fi
cristyda16f162011-02-19 23:52:17 +000017440rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017441
17442done
17443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017444rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017445if $ac_preproc_ok; then :
17446
17447else
17448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17450as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17451See \`config.log' for more details" "$LINENO" 5; }
17452fi
17453
17454ac_ext=c
17455ac_cpp='$CPP $CPPFLAGS'
17456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17458ac_compiler_gnu=$ac_cv_c_compiler_gnu
17459
17460else
17461 _lt_caught_CXX_error=yes
17462fi
cristy73bd4a52010-10-05 11:24:23 +000017463
17464ac_ext=cpp
17465ac_cpp='$CXXCPP $CPPFLAGS'
17466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17469
17470archive_cmds_need_lc_CXX=no
17471allow_undefined_flag_CXX=
17472always_export_symbols_CXX=no
17473archive_expsym_cmds_CXX=
17474compiler_needs_object_CXX=no
17475export_dynamic_flag_spec_CXX=
17476hardcode_direct_CXX=no
17477hardcode_direct_absolute_CXX=no
17478hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017479hardcode_libdir_separator_CXX=
17480hardcode_minus_L_CXX=no
17481hardcode_shlibpath_var_CXX=unsupported
17482hardcode_automatic_CXX=no
17483inherit_rpath_CXX=no
17484module_cmds_CXX=
17485module_expsym_cmds_CXX=
17486link_all_deplibs_CXX=unknown
17487old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017488reload_flag_CXX=$reload_flag
17489reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017490no_undefined_flag_CXX=
17491whole_archive_flag_spec_CXX=
17492enable_shared_with_static_runtimes_CXX=no
17493
17494# Source file extension for C++ test sources.
17495ac_ext=cpp
17496
17497# Object file extension for compiled C++ test sources.
17498objext=o
17499objext_CXX=$objext
17500
17501# No sense in running all these tests if we already determined that
17502# the CXX compiler isn't working. Some variables (like enable_shared)
17503# are currently assumed to apply to all compilers on this platform,
17504# and will be corrupted by setting them based on a non-working compiler.
17505if test "$_lt_caught_CXX_error" != yes; then
17506 # Code to be used in simple compile tests
17507 lt_simple_compile_test_code="int some_variable = 0;"
17508
17509 # Code to be used in simple link tests
17510 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17511
17512 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17513
17514
17515
17516
17517
17518
17519# If no C compiler was specified, use CC.
17520LTCC=${LTCC-"$CC"}
17521
17522# If no C compiler flags were specified, use CFLAGS.
17523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17524
17525# Allow CC to be a program name with arguments.
17526compiler=$CC
17527
17528
17529 # save warnings/boilerplate of simple test code
17530 ac_outfile=conftest.$ac_objext
17531echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17533_lt_compiler_boilerplate=`cat conftest.err`
17534$RM conftest*
17535
17536 ac_outfile=conftest.$ac_objext
17537echo "$lt_simple_link_test_code" >conftest.$ac_ext
17538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17539_lt_linker_boilerplate=`cat conftest.err`
17540$RM -r conftest*
17541
17542
17543 # Allow CC to be a program name with arguments.
17544 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017545 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017546 lt_save_LD=$LD
17547 lt_save_GCC=$GCC
17548 GCC=$GXX
17549 lt_save_with_gnu_ld=$with_gnu_ld
17550 lt_save_path_LD=$lt_cv_path_LD
17551 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17552 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17553 else
17554 $as_unset lt_cv_prog_gnu_ld
17555 fi
17556 if test -n "${lt_cv_path_LDCXX+set}"; then
17557 lt_cv_path_LD=$lt_cv_path_LDCXX
17558 else
17559 $as_unset lt_cv_path_LD
17560 fi
17561 test -z "${LDCXX+set}" || LD=$LDCXX
17562 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017563 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017564 compiler=$CC
17565 compiler_CXX=$CC
17566 for cc_temp in $compiler""; do
17567 case $cc_temp in
17568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17570 \-*) ;;
17571 *) break;;
17572 esac
17573done
cristy0c60a692010-11-04 01:09:47 +000017574cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017575
17576
17577 if test -n "$compiler"; then
17578 # We don't want -fno-exception when compiling C++ code, so set the
17579 # no_builtin_flag separately
17580 if test "$GXX" = yes; then
17581 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17582 else
17583 lt_prog_compiler_no_builtin_flag_CXX=
17584 fi
17585
17586 if test "$GXX" = yes; then
17587 # Set up default GNU C++ configuration
17588
17589
17590
17591# Check whether --with-gnu-ld was given.
17592if test "${with_gnu_ld+set}" = set; then :
17593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17594else
17595 with_gnu_ld=no
17596fi
17597
17598ac_prog=ld
17599if test "$GCC" = yes; then
17600 # Check if gcc -print-prog-name=ld gives a path.
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17602$as_echo_n "checking for ld used by $CC... " >&6; }
17603 case $host in
17604 *-*-mingw*)
17605 # gcc leaves a trailing carriage return which upsets mingw
17606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17607 *)
17608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17609 esac
17610 case $ac_prog in
17611 # Accept absolute paths.
17612 [\\/]* | ?:[\\/]*)
17613 re_direlt='/[^/][^/]*/\.\./'
17614 # Canonicalize the pathname of ld
17615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17618 done
17619 test -z "$LD" && LD="$ac_prog"
17620 ;;
17621 "")
17622 # If it fails, then pretend we aren't using GCC.
17623 ac_prog=ld
17624 ;;
17625 *)
17626 # If it is relative, then search for the first ld in PATH.
17627 with_gnu_ld=unknown
17628 ;;
17629 esac
17630elif test "$with_gnu_ld" = yes; then
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17632$as_echo_n "checking for GNU ld... " >&6; }
17633else
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17635$as_echo_n "checking for non-GNU ld... " >&6; }
17636fi
cristyda16f162011-02-19 23:52:17 +000017637if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017638 $as_echo_n "(cached) " >&6
17639else
17640 if test -z "$LD"; then
17641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17642 for ac_dir in $PATH; do
17643 IFS="$lt_save_ifs"
17644 test -z "$ac_dir" && ac_dir=.
17645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17646 lt_cv_path_LD="$ac_dir/$ac_prog"
17647 # Check to see if the program is GNU ld. I'd rather use --version,
17648 # but apparently some variants of GNU ld only accept -v.
17649 # Break only if it was the GNU/non-GNU ld that we prefer.
17650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17651 *GNU* | *'with BFD'*)
17652 test "$with_gnu_ld" != no && break
17653 ;;
17654 *)
17655 test "$with_gnu_ld" != yes && break
17656 ;;
17657 esac
17658 fi
17659 done
17660 IFS="$lt_save_ifs"
17661else
17662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17663fi
17664fi
17665
17666LD="$lt_cv_path_LD"
17667if test -n "$LD"; then
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17669$as_echo "$LD" >&6; }
17670else
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17672$as_echo "no" >&6; }
17673fi
cristy98dddb52010-11-04 00:30:15 +000017674test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17676$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017677if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017678 $as_echo_n "(cached) " >&6
17679else
17680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17681case `$LD -v 2>&1 </dev/null` in
17682*GNU* | *'with BFD'*)
17683 lt_cv_prog_gnu_ld=yes
17684 ;;
17685*)
17686 lt_cv_prog_gnu_ld=no
17687 ;;
17688esac
17689fi
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17691$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17692with_gnu_ld=$lt_cv_prog_gnu_ld
17693
17694
17695
17696
17697
17698
17699
17700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17701 # archiving commands below assume that GNU ld is being used.
17702 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017703 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17704 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 +000017705
17706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17708
17709 # If archive_cmds runs LD, not CC, wlarc should be empty
17710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17711 # investigate it a little bit more. (MM)
17712 wlarc='${wl}'
17713
17714 # ancient GNU ld didn't support --whole-archive et. al.
17715 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17716 $GREP 'no-whole-archive' > /dev/null; then
17717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17718 else
17719 whole_archive_flag_spec_CXX=
17720 fi
17721 else
17722 with_gnu_ld=no
17723 wlarc=
17724
17725 # A generic and very simple default shared library creation
17726 # command for GNU C++ for the case where it uses the native
17727 # linker, instead of GNU ld. If possible, this setting should
17728 # overridden to take advantage of the native linker features on
17729 # the platform it is being used on.
17730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17731 fi
17732
17733 # Commands to make compiler produce verbose output that lists
17734 # what "hidden" libraries, object files and flags are used when
17735 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017737
17738 else
17739 GXX=no
17740 with_gnu_ld=no
17741 wlarc=
17742 fi
17743
17744 # PORTME: fill in a description of your system's C++ link characteristics
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17746$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17747 ld_shlibs_CXX=yes
17748 case $host_os in
17749 aix3*)
17750 # FIXME: insert proper C++ library support
17751 ld_shlibs_CXX=no
17752 ;;
17753 aix[4-9]*)
17754 if test "$host_cpu" = ia64; then
17755 # On IA64, the linker does run time linking by default, so we don't
17756 # have to do anything special.
17757 aix_use_runtimelinking=no
17758 exp_sym_flag='-Bexport'
17759 no_entry_flag=""
17760 else
17761 aix_use_runtimelinking=no
17762
17763 # Test if we are trying to use run time linking or normal
17764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17765 # need to do runtime linking.
17766 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17767 for ld_flag in $LDFLAGS; do
17768 case $ld_flag in
17769 *-brtl*)
17770 aix_use_runtimelinking=yes
17771 break
17772 ;;
17773 esac
17774 done
17775 ;;
17776 esac
17777
17778 exp_sym_flag='-bexport'
17779 no_entry_flag='-bnoentry'
17780 fi
17781
17782 # When large executables or shared objects are built, AIX ld can
17783 # have problems creating the table of contents. If linking a library
17784 # or program results in "error TOC overflow" add -mminimal-toc to
17785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17787
17788 archive_cmds_CXX=''
17789 hardcode_direct_CXX=yes
17790 hardcode_direct_absolute_CXX=yes
17791 hardcode_libdir_separator_CXX=':'
17792 link_all_deplibs_CXX=yes
17793 file_list_spec_CXX='${wl}-f,'
17794
17795 if test "$GXX" = yes; then
17796 case $host_os in aix4.[012]|aix4.[012].*)
17797 # We only want to do this on AIX 4.2 and lower, the check
17798 # below for broken collect2 doesn't work under 4.3+
17799 collect2name=`${CC} -print-prog-name=collect2`
17800 if test -f "$collect2name" &&
17801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17802 then
17803 # We have reworked collect2
17804 :
17805 else
17806 # We have old collect2
17807 hardcode_direct_CXX=unsupported
17808 # It fails to find uninstalled libraries when the uninstalled
17809 # path is not listed in the libpath. Setting hardcode_minus_L
17810 # to unsupported forces relinking
17811 hardcode_minus_L_CXX=yes
17812 hardcode_libdir_flag_spec_CXX='-L$libdir'
17813 hardcode_libdir_separator_CXX=
17814 fi
17815 esac
17816 shared_flag='-shared'
17817 if test "$aix_use_runtimelinking" = yes; then
17818 shared_flag="$shared_flag "'${wl}-G'
17819 fi
17820 else
17821 # not using gcc
17822 if test "$host_cpu" = ia64; then
17823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17824 # chokes on -Wl,-G. The following line is correct:
17825 shared_flag='-G'
17826 else
17827 if test "$aix_use_runtimelinking" = yes; then
17828 shared_flag='${wl}-G'
17829 else
17830 shared_flag='${wl}-bM:SRE'
17831 fi
17832 fi
17833 fi
17834
17835 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17836 # It seems that -bexpall does not export symbols beginning with
17837 # underscore (_), so it is better to generate a list of symbols to
17838 # export.
17839 always_export_symbols_CXX=yes
17840 if test "$aix_use_runtimelinking" = yes; then
17841 # Warning - without using the other runtime loading flags (-brtl),
17842 # -berok will link without error, but may produce a broken library.
17843 allow_undefined_flag_CXX='-berok'
17844 # Determine the default libpath from the value encoded in an empty
17845 # executable.
cristyda16f162011-02-19 23:52:17 +000017846 if test "${lt_cv_aix_libpath+set}" = set; then
17847 aix_libpath=$lt_cv_aix_libpath
17848else
17849 if ${lt_cv_aix_libpath__CXX+:} false; then :
17850 $as_echo_n "(cached) " >&6
17851else
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017853/* end confdefs.h. */
17854
17855int
17856main ()
17857{
17858
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863if ac_fn_cxx_try_link "$LINENO"; then :
17864
cristyda16f162011-02-19 23:52:17 +000017865 lt_aix_libpath_sed='
17866 /Import File Strings/,/^$/ {
17867 /^0/ {
17868 s/^0 *\([^ ]*\) *$/\1/
17869 p
17870 }
17871 }'
17872 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17873 # Check for a 64-bit object if we didn't find anything.
17874 if test -z "$lt_cv_aix_libpath__CXX"; then
17875 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17876 fi
cristy73bd4a52010-10-05 11:24:23 +000017877fi
17878rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017880 if test -z "$lt_cv_aix_libpath__CXX"; then
17881 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17882 fi
17883
17884fi
17885
17886 aix_libpath=$lt_cv_aix_libpath__CXX
17887fi
cristy73bd4a52010-10-05 11:24:23 +000017888
17889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17890
cristy0c60a692010-11-04 01:09:47 +000017891 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 +000017892 else
17893 if test "$host_cpu" = ia64; then
17894 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17895 allow_undefined_flag_CXX="-z nodefs"
17896 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"
17897 else
17898 # Determine the default libpath from the value encoded in an
17899 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017900 if test "${lt_cv_aix_libpath+set}" = set; then
17901 aix_libpath=$lt_cv_aix_libpath
17902else
17903 if ${lt_cv_aix_libpath__CXX+:} false; then :
17904 $as_echo_n "(cached) " >&6
17905else
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017907/* end confdefs.h. */
17908
17909int
17910main ()
17911{
17912
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917if ac_fn_cxx_try_link "$LINENO"; then :
17918
cristyda16f162011-02-19 23:52:17 +000017919 lt_aix_libpath_sed='
17920 /Import File Strings/,/^$/ {
17921 /^0/ {
17922 s/^0 *\([^ ]*\) *$/\1/
17923 p
17924 }
17925 }'
17926 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17927 # Check for a 64-bit object if we didn't find anything.
17928 if test -z "$lt_cv_aix_libpath__CXX"; then
17929 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 fi
cristy73bd4a52010-10-05 11:24:23 +000017931fi
17932rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017934 if test -z "$lt_cv_aix_libpath__CXX"; then
17935 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17936 fi
17937
17938fi
17939
17940 aix_libpath=$lt_cv_aix_libpath__CXX
17941fi
cristy73bd4a52010-10-05 11:24:23 +000017942
17943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17944 # Warning - without using the other run time loading flags,
17945 # -berok will link without error, but may produce a broken library.
17946 no_undefined_flag_CXX=' ${wl}-bernotok'
17947 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017948 if test "$with_gnu_ld" = yes; then
17949 # We only use this code for GNU lds that support --whole-archive.
17950 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17951 else
17952 # Exported symbols can be pulled into shared objects from archives
17953 whole_archive_flag_spec_CXX='$convenience'
17954 fi
cristy73bd4a52010-10-05 11:24:23 +000017955 archive_cmds_need_lc_CXX=yes
17956 # This is similar to how AIX traditionally builds its shared
17957 # libraries.
17958 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'
17959 fi
17960 fi
17961 ;;
17962
17963 beos*)
17964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17965 allow_undefined_flag_CXX=unsupported
17966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17967 # support --undefined. This deserves some investigation. FIXME
17968 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969 else
17970 ld_shlibs_CXX=no
17971 fi
17972 ;;
17973
17974 chorus*)
17975 case $cc_basename in
17976 *)
17977 # FIXME: insert proper C++ library support
17978 ld_shlibs_CXX=no
17979 ;;
17980 esac
17981 ;;
17982
17983 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017984 case $GXX,$cc_basename in
17985 ,cl* | no,cl*)
17986 # Native MSVC
17987 # hardcode_libdir_flag_spec is actually meaningless, as there is
17988 # no search path for DLLs.
17989 hardcode_libdir_flag_spec_CXX=' '
17990 allow_undefined_flag_CXX=unsupported
17991 always_export_symbols_CXX=yes
17992 file_list_spec_CXX='@'
17993 # Tell ltmain to make .lib files, not .a files.
17994 libext=lib
17995 # Tell ltmain to make .dll files, not .so files.
17996 shrext_cmds=".dll"
17997 # FIXME: Setting linknames here is a bad hack.
17998 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17999 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18000 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18001 else
18002 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18003 fi~
18004 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18005 linknames='
18006 # The linker will not automatically build a static lib if we build a DLL.
18007 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18008 enable_shared_with_static_runtimes_CXX=yes
18009 # Don't use ranlib
18010 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18011 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18012 lt_tool_outputfile="@TOOL_OUTPUT@"~
18013 case $lt_outputfile in
18014 *.exe|*.EXE) ;;
18015 *)
18016 lt_outputfile="$lt_outputfile.exe"
18017 lt_tool_outputfile="$lt_tool_outputfile.exe"
18018 ;;
18019 esac~
18020 func_to_tool_file "$lt_outputfile"~
18021 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18022 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18023 $RM "$lt_outputfile.manifest";
18024 fi'
18025 ;;
18026 *)
18027 # g++
18028 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18029 # as there is no search path for DLLs.
18030 hardcode_libdir_flag_spec_CXX='-L$libdir'
18031 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18032 allow_undefined_flag_CXX=unsupported
18033 always_export_symbols_CXX=no
18034 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018035
cristyda16f162011-02-19 23:52:17 +000018036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18037 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'
18038 # If the export-symbols file already is a .def file (1st line
18039 # is EXPORTS), use it as is; otherwise, prepend...
18040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18041 cp $export_symbols $output_objdir/$soname.def;
18042 else
18043 echo EXPORTS > $output_objdir/$soname.def;
18044 cat $export_symbols >> $output_objdir/$soname.def;
18045 fi~
18046 $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'
18047 else
18048 ld_shlibs_CXX=no
18049 fi
18050 ;;
18051 esac
18052 ;;
cristy73bd4a52010-10-05 11:24:23 +000018053 darwin* | rhapsody*)
18054
18055
18056 archive_cmds_need_lc_CXX=no
18057 hardcode_direct_CXX=no
18058 hardcode_automatic_CXX=yes
18059 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018060 if test "$lt_cv_ld_force_load" = "yes"; then
18061 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 +000018062
cristy0c60a692010-11-04 01:09:47 +000018063 else
18064 whole_archive_flag_spec_CXX=''
18065 fi
cristy73bd4a52010-10-05 11:24:23 +000018066 link_all_deplibs_CXX=yes
18067 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18068 case $cc_basename in
18069 ifort*) _lt_dar_can_shared=yes ;;
18070 *) _lt_dar_can_shared=$GCC ;;
18071 esac
18072 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018073 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018074 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}"
18075 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18076 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}"
18077 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}"
18078 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18079 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}"
18080 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}"
18081 fi
18082
18083 else
18084 ld_shlibs_CXX=no
18085 fi
18086
18087 ;;
18088
18089 dgux*)
18090 case $cc_basename in
18091 ec++*)
18092 # FIXME: insert proper C++ library support
18093 ld_shlibs_CXX=no
18094 ;;
18095 ghcx*)
18096 # Green Hills C++ Compiler
18097 # FIXME: insert proper C++ library support
18098 ld_shlibs_CXX=no
18099 ;;
18100 *)
18101 # FIXME: insert proper C++ library support
18102 ld_shlibs_CXX=no
18103 ;;
18104 esac
18105 ;;
18106
cristy99bd5232011-12-07 14:38:20 +000018107 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018108 # C++ shared libraries reported to be fairly broken before
18109 # switch to ELF
18110 ld_shlibs_CXX=no
18111 ;;
18112
18113 freebsd-elf*)
18114 archive_cmds_need_lc_CXX=no
18115 ;;
18116
18117 freebsd* | dragonfly*)
18118 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18119 # conventions
18120 ld_shlibs_CXX=yes
18121 ;;
18122
18123 gnu*)
18124 ;;
18125
cristy0c60a692010-11-04 01:09:47 +000018126 haiku*)
18127 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128 link_all_deplibs_CXX=yes
18129 ;;
18130
cristy73bd4a52010-10-05 11:24:23 +000018131 hpux9*)
18132 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18133 hardcode_libdir_separator_CXX=:
18134 export_dynamic_flag_spec_CXX='${wl}-E'
18135 hardcode_direct_CXX=yes
18136 hardcode_minus_L_CXX=yes # Not in the search PATH,
18137 # but as the default
18138 # location of the library.
18139
18140 case $cc_basename in
18141 CC*)
18142 # FIXME: insert proper C++ library support
18143 ld_shlibs_CXX=no
18144 ;;
18145 aCC*)
18146 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'
18147 # Commands to make compiler produce verbose output that lists
18148 # what "hidden" libraries, object files and flags are used when
18149 # linking a shared library.
18150 #
18151 # There doesn't appear to be a way to prevent this compiler from
18152 # explicitly linking system object files so we need to strip them
18153 # from the output so that they don't get included in the library
18154 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018155 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 +000018156 ;;
18157 *)
18158 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018159 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 +000018160 else
18161 # FIXME: insert proper C++ library support
18162 ld_shlibs_CXX=no
18163 fi
18164 ;;
18165 esac
18166 ;;
18167
18168 hpux10*|hpux11*)
18169 if test $with_gnu_ld = no; then
18170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18171 hardcode_libdir_separator_CXX=:
18172
18173 case $host_cpu in
18174 hppa*64*|ia64*)
18175 ;;
18176 *)
18177 export_dynamic_flag_spec_CXX='${wl}-E'
18178 ;;
18179 esac
18180 fi
18181 case $host_cpu in
18182 hppa*64*|ia64*)
18183 hardcode_direct_CXX=no
18184 hardcode_shlibpath_var_CXX=no
18185 ;;
18186 *)
18187 hardcode_direct_CXX=yes
18188 hardcode_direct_absolute_CXX=yes
18189 hardcode_minus_L_CXX=yes # Not in the search PATH,
18190 # but as the default
18191 # location of the library.
18192 ;;
18193 esac
18194
18195 case $cc_basename in
18196 CC*)
18197 # FIXME: insert proper C++ library support
18198 ld_shlibs_CXX=no
18199 ;;
18200 aCC*)
18201 case $host_cpu in
18202 hppa*64*)
18203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18204 ;;
18205 ia64*)
18206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18207 ;;
18208 *)
18209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18210 ;;
18211 esac
18212 # Commands to make compiler produce verbose output that lists
18213 # what "hidden" libraries, object files and flags are used when
18214 # linking a shared library.
18215 #
18216 # There doesn't appear to be a way to prevent this compiler from
18217 # explicitly linking system object files so we need to strip them
18218 # from the output so that they don't get included in the library
18219 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018220 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 +000018221 ;;
18222 *)
18223 if test "$GXX" = yes; then
18224 if test $with_gnu_ld = no; then
18225 case $host_cpu in
18226 hppa*64*)
18227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18228 ;;
18229 ia64*)
cristyda16f162011-02-19 23:52:17 +000018230 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 +000018231 ;;
18232 *)
cristyda16f162011-02-19 23:52:17 +000018233 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 +000018234 ;;
18235 esac
18236 fi
18237 else
18238 # FIXME: insert proper C++ library support
18239 ld_shlibs_CXX=no
18240 fi
18241 ;;
18242 esac
18243 ;;
18244
18245 interix[3-9]*)
18246 hardcode_direct_CXX=no
18247 hardcode_shlibpath_var_CXX=no
18248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18249 export_dynamic_flag_spec_CXX='${wl}-E'
18250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18251 # Instead, shared libraries are loaded at an image base (0x10000000 by
18252 # default) and relocated if they conflict, which is a slow very memory
18253 # consuming and fragmenting process. To avoid this, we pick a random,
18254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18256 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'
18257 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'
18258 ;;
18259 irix5* | irix6*)
18260 case $cc_basename in
18261 CC*)
18262 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018263 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 +000018264
18265 # Archives containing C++ object files must be created using
18266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18267 # necessary to make sure instantiated templates are included
18268 # in the archive.
18269 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18270 ;;
18271 *)
18272 if test "$GXX" = yes; then
18273 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018274 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 +000018275 else
cristyda16f162011-02-19 23:52:17 +000018276 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 +000018277 fi
18278 fi
18279 link_all_deplibs_CXX=yes
18280 ;;
18281 esac
18282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18283 hardcode_libdir_separator_CXX=:
18284 inherit_rpath_CXX=yes
18285 ;;
18286
cristy0c60a692010-11-04 01:09:47 +000018287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018288 case $cc_basename in
18289 KCC*)
18290 # Kuck and Associates, Inc. (KAI) C++ Compiler
18291
18292 # KCC will only create a shared library if the output file
18293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18294 # to its proper name (with version) after linking.
18295 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'
18296 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'
18297 # Commands to make compiler produce verbose output that lists
18298 # what "hidden" libraries, object files and flags are used when
18299 # linking a shared library.
18300 #
18301 # There doesn't appear to be a way to prevent this compiler from
18302 # explicitly linking system object files so we need to strip them
18303 # from the output so that they don't get included in the library
18304 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018305 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 +000018306
18307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18309
18310 # Archives containing C++ object files must be created using
18311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18313 ;;
18314 icpc* | ecpc* )
18315 # Intel C++
18316 with_gnu_ld=yes
18317 # version 8.0 and above of icpc choke on multiply defined symbols
18318 # if we add $predep_objects and $postdep_objects, however 7.1 and
18319 # earlier do not add the objects themselves.
18320 case `$CC -V 2>&1` in
18321 *"Version 7."*)
18322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18323 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'
18324 ;;
18325 *) # Version 8.0 or newer
18326 tmp_idyn=
18327 case $host_cpu in
18328 ia64*) tmp_idyn=' -i_dynamic';;
18329 esac
18330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18331 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'
18332 ;;
18333 esac
18334 archive_cmds_need_lc_CXX=no
18335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18338 ;;
18339 pgCC* | pgcpp*)
18340 # Portland Group C++ compiler
18341 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018342 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018343 prelink_cmds_CXX='tpldir=Template.dir~
18344 rm -rf $tpldir~
18345 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018346 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018347 old_archive_cmds_CXX='tpldir=Template.dir~
18348 rm -rf $tpldir~
18349 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018350 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018351 $RANLIB $oldlib'
18352 archive_cmds_CXX='tpldir=Template.dir~
18353 rm -rf $tpldir~
18354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018355 $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 +000018356 archive_expsym_cmds_CXX='tpldir=Template.dir~
18357 rm -rf $tpldir~
18358 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018359 $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 +000018360 ;;
cristy0c60a692010-11-04 01:09:47 +000018361 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018362 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18363 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'
18364 ;;
18365 esac
18366
18367 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018369 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 +000018370 ;;
18371 cxx*)
18372 # Compaq C++
18373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18374 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'
18375
18376 runpath_var=LD_RUN_PATH
18377 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18378 hardcode_libdir_separator_CXX=:
18379
18380 # Commands to make compiler produce verbose output that lists
18381 # what "hidden" libraries, object files and flags are used when
18382 # linking a shared library.
18383 #
18384 # There doesn't appear to be a way to prevent this compiler from
18385 # explicitly linking system object files so we need to strip them
18386 # from the output so that they don't get included in the library
18387 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018388 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 +000018389 ;;
cristy0c60a692010-11-04 01:09:47 +000018390 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018391 # IBM XL 8.0 on PPC, with GNU ld
18392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18394 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18395 if test "x$supports_anon_versioning" = xyes; then
18396 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18398 echo "local: *; };" >> $output_objdir/$libname.ver~
18399 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18400 fi
18401 ;;
18402 *)
18403 case `$CC -V 2>&1 | sed 5q` in
18404 *Sun\ C*)
18405 # Sun C++ 5.9
18406 no_undefined_flag_CXX=' -zdefs'
18407 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18408 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'
18409 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018410 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 +000018411 compiler_needs_object_CXX=yes
18412
18413 # Not sure whether something based on
18414 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18415 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018416 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018417
18418 # Archives containing C++ object files must be created using
18419 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18420 # necessary to make sure instantiated templates are included
18421 # in the archive.
18422 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18423 ;;
18424 esac
18425 ;;
18426 esac
18427 ;;
18428
18429 lynxos*)
18430 # FIXME: insert proper C++ library support
18431 ld_shlibs_CXX=no
18432 ;;
18433
18434 m88k*)
18435 # FIXME: insert proper C++ library support
18436 ld_shlibs_CXX=no
18437 ;;
18438
18439 mvs*)
18440 case $cc_basename in
18441 cxx*)
18442 # FIXME: insert proper C++ library support
18443 ld_shlibs_CXX=no
18444 ;;
18445 *)
18446 # FIXME: insert proper C++ library support
18447 ld_shlibs_CXX=no
18448 ;;
18449 esac
18450 ;;
18451
18452 netbsd*)
18453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18454 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18455 wlarc=
18456 hardcode_libdir_flag_spec_CXX='-R$libdir'
18457 hardcode_direct_CXX=yes
18458 hardcode_shlibpath_var_CXX=no
18459 fi
18460 # Workaround some broken pre-1.5 toolchains
18461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18462 ;;
18463
18464 *nto* | *qnx*)
18465 ld_shlibs_CXX=yes
18466 ;;
18467
18468 openbsd2*)
18469 # C++ shared libraries are fairly broken
18470 ld_shlibs_CXX=no
18471 ;;
18472
18473 openbsd*)
18474 if test -f /usr/libexec/ld.so; then
18475 hardcode_direct_CXX=yes
18476 hardcode_shlibpath_var_CXX=no
18477 hardcode_direct_absolute_CXX=yes
18478 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18481 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18482 export_dynamic_flag_spec_CXX='${wl}-E'
18483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18484 fi
cristy0c60a692010-11-04 01:09:47 +000018485 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018486 else
18487 ld_shlibs_CXX=no
18488 fi
18489 ;;
18490
18491 osf3* | osf4* | osf5*)
18492 case $cc_basename in
18493 KCC*)
18494 # Kuck and Associates, Inc. (KAI) C++ Compiler
18495
18496 # KCC will only create a shared library if the output file
18497 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18498 # to its proper name (with version) after linking.
18499 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'
18500
18501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18502 hardcode_libdir_separator_CXX=:
18503
18504 # Archives containing C++ object files must be created using
18505 # the KAI C++ compiler.
18506 case $host in
18507 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18508 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18509 esac
18510 ;;
18511 RCC*)
18512 # Rational C++ 2.4.1
18513 # FIXME: insert proper C++ library support
18514 ld_shlibs_CXX=no
18515 ;;
18516 cxx*)
18517 case $host in
18518 osf3*)
18519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018520 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 +000018521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18522 ;;
18523 *)
18524 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018525 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 +000018526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18527 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018528 $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 +000018529 $RM $lib.exp'
18530 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18531 ;;
18532 esac
18533
18534 hardcode_libdir_separator_CXX=:
18535
18536 # Commands to make compiler produce verbose output that lists
18537 # what "hidden" libraries, object files and flags are used when
18538 # linking a shared library.
18539 #
18540 # There doesn't appear to be a way to prevent this compiler from
18541 # explicitly linking system object files so we need to strip them
18542 # from the output so that they don't get included in the library
18543 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018544 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 +000018545 ;;
18546 *)
18547 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18549 case $host in
18550 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018551 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 +000018552 ;;
18553 *)
cristyda16f162011-02-19 23:52:17 +000018554 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 +000018555 ;;
18556 esac
18557
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18559 hardcode_libdir_separator_CXX=:
18560
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018565
18566 else
18567 # FIXME: insert proper C++ library support
18568 ld_shlibs_CXX=no
18569 fi
18570 ;;
18571 esac
18572 ;;
18573
18574 psos*)
18575 # FIXME: insert proper C++ library support
18576 ld_shlibs_CXX=no
18577 ;;
18578
18579 sunos4*)
18580 case $cc_basename in
18581 CC*)
18582 # Sun C++ 4.x
18583 # FIXME: insert proper C++ library support
18584 ld_shlibs_CXX=no
18585 ;;
18586 lcc*)
18587 # Lucid
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 *)
18592 # FIXME: insert proper C++ library support
18593 ld_shlibs_CXX=no
18594 ;;
18595 esac
18596 ;;
18597
18598 solaris*)
18599 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018600 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018601 # Sun C++ 4.2, 5.x and Centerline C++
18602 archive_cmds_need_lc_CXX=yes
18603 no_undefined_flag_CXX=' -zdefs'
18604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18606 $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'
18607
18608 hardcode_libdir_flag_spec_CXX='-R$libdir'
18609 hardcode_shlibpath_var_CXX=no
18610 case $host_os in
18611 solaris2.[0-5] | solaris2.[0-5].*) ;;
18612 *)
18613 # The compiler driver will combine and reorder linker options,
18614 # but understands `-z linker_flag'.
18615 # Supported since Solaris 2.6 (maybe 2.5.1?)
18616 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18617 ;;
18618 esac
18619 link_all_deplibs_CXX=yes
18620
cristy0c60a692010-11-04 01:09:47 +000018621 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018622
18623 # Archives containing C++ object files must be created using
18624 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18625 # necessary to make sure instantiated templates are included
18626 # in the archive.
18627 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18628 ;;
18629 gcx*)
18630 # Green Hills C++ Compiler
18631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18632
18633 # The C++ compiler must be used to create the archive.
18634 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18635 ;;
18636 *)
18637 # GNU C++ compiler with Solaris linker
18638 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18639 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18640 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018641 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 +000018642 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 +000018643 $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 +000018644
18645 # Commands to make compiler produce verbose output that lists
18646 # what "hidden" libraries, object files and flags are used when
18647 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018649 else
18650 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18651 # platform.
18652 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18653 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18654 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18655
18656 # Commands to make compiler produce verbose output that lists
18657 # what "hidden" libraries, object files and flags are used when
18658 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018659 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018660 fi
18661
18662 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18663 case $host_os in
18664 solaris2.[0-5] | solaris2.[0-5].*) ;;
18665 *)
18666 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18667 ;;
18668 esac
18669 fi
18670 ;;
18671 esac
18672 ;;
18673
18674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18675 no_undefined_flag_CXX='${wl}-z,text'
18676 archive_cmds_need_lc_CXX=no
18677 hardcode_shlibpath_var_CXX=no
18678 runpath_var='LD_RUN_PATH'
18679
18680 case $cc_basename in
18681 CC*)
18682 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18684 ;;
18685 *)
18686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688 ;;
18689 esac
18690 ;;
18691
18692 sysv5* | sco3.2v5* | sco5v6*)
18693 # Note: We can NOT use -z defs as we might desire, because we do not
18694 # link with -lc, and that would cause any symbols used from libc to
18695 # always be unresolved, which means just about no library would
18696 # ever link correctly. If we're not using GNU ld we use -z text
18697 # though, which does catch some bad symbols but isn't as heavy-handed
18698 # as -z defs.
18699 no_undefined_flag_CXX='${wl}-z,text'
18700 allow_undefined_flag_CXX='${wl}-z,nodefs'
18701 archive_cmds_need_lc_CXX=no
18702 hardcode_shlibpath_var_CXX=no
18703 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18704 hardcode_libdir_separator_CXX=':'
18705 link_all_deplibs_CXX=yes
18706 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18707 runpath_var='LD_RUN_PATH'
18708
18709 case $cc_basename in
18710 CC*)
18711 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18712 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 +000018713 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18714 '"$old_archive_cmds_CXX"
18715 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18716 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018717 ;;
18718 *)
18719 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18720 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18721 ;;
18722 esac
18723 ;;
18724
18725 tandem*)
18726 case $cc_basename in
18727 NCC*)
18728 # NonStop-UX NCC 3.20
18729 # FIXME: insert proper C++ library support
18730 ld_shlibs_CXX=no
18731 ;;
18732 *)
18733 # FIXME: insert proper C++ library support
18734 ld_shlibs_CXX=no
18735 ;;
18736 esac
18737 ;;
18738
18739 vxworks*)
18740 # FIXME: insert proper C++ library support
18741 ld_shlibs_CXX=no
18742 ;;
18743
18744 *)
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 ;;
18748 esac
18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18751$as_echo "$ld_shlibs_CXX" >&6; }
18752 test "$ld_shlibs_CXX" = no && can_build_shared=no
18753
18754 GCC_CXX="$GXX"
18755 LD_CXX="$LD"
18756
18757 ## CAVEAT EMPTOR:
18758 ## There is no encapsulation within the following macros, do not change
18759 ## the running order or otherwise move them around unless you know exactly
18760 ## what you are doing...
18761 # Dependencies to place before and after the object being linked:
18762predep_objects_CXX=
18763postdep_objects_CXX=
18764predeps_CXX=
18765postdeps_CXX=
18766compiler_lib_search_path_CXX=
18767
18768cat > conftest.$ac_ext <<_LT_EOF
18769class Foo
18770{
18771public:
18772 Foo (void) { a = 0; }
18773private:
18774 int a;
18775};
18776_LT_EOF
18777
cristyda16f162011-02-19 23:52:17 +000018778
18779_lt_libdeps_save_CFLAGS=$CFLAGS
18780case "$CC $CFLAGS " in #(
18781*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18782*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018783*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018784esac
18785
cristy73bd4a52010-10-05 11:24:23 +000018786if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18787 (eval $ac_compile) 2>&5
18788 ac_status=$?
18789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790 test $ac_status = 0; }; then
18791 # Parse the compiler output and extract the necessary
18792 # objects, libraries and library flags.
18793
18794 # Sentinel used to keep track of whether or not we are before
18795 # the conftest object file.
18796 pre_test_object_deps_done=no
18797
18798 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018799 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018800
18801 -L* | -R* | -l*)
18802 # Some compilers place space between "-{L,R}" and the path.
18803 # Remove the space.
18804 if test $p = "-L" ||
18805 test $p = "-R"; then
18806 prev=$p
18807 continue
cristy73bd4a52010-10-05 11:24:23 +000018808 fi
18809
cristyda16f162011-02-19 23:52:17 +000018810 # Expand the sysroot to ease extracting the directories later.
18811 if test -z "$prev"; then
18812 case $p in
18813 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18814 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18815 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18816 esac
18817 fi
18818 case $p in
18819 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18820 esac
cristy73bd4a52010-10-05 11:24:23 +000018821 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018822 case ${prev} in
18823 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018824 # Internal compiler library paths should come after those
18825 # provided the user. The postdeps already come after the
18826 # user supplied libs so there is no need to process them.
18827 if test -z "$compiler_lib_search_path_CXX"; then
18828 compiler_lib_search_path_CXX="${prev}${p}"
18829 else
18830 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18831 fi
18832 ;;
18833 # The "-l" case would never come before the object being
18834 # linked, so don't bother handling this case.
18835 esac
18836 else
18837 if test -z "$postdeps_CXX"; then
18838 postdeps_CXX="${prev}${p}"
18839 else
18840 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18841 fi
18842 fi
cristyda16f162011-02-19 23:52:17 +000018843 prev=
cristy73bd4a52010-10-05 11:24:23 +000018844 ;;
18845
cristyda16f162011-02-19 23:52:17 +000018846 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018847 *.$objext)
18848 # This assumes that the test object file only shows up
18849 # once in the compiler output.
18850 if test "$p" = "conftest.$objext"; then
18851 pre_test_object_deps_done=yes
18852 continue
18853 fi
18854
18855 if test "$pre_test_object_deps_done" = no; then
18856 if test -z "$predep_objects_CXX"; then
18857 predep_objects_CXX="$p"
18858 else
18859 predep_objects_CXX="$predep_objects_CXX $p"
18860 fi
18861 else
18862 if test -z "$postdep_objects_CXX"; then
18863 postdep_objects_CXX="$p"
18864 else
18865 postdep_objects_CXX="$postdep_objects_CXX $p"
18866 fi
18867 fi
18868 ;;
18869
18870 *) ;; # Ignore the rest.
18871
18872 esac
18873 done
18874
18875 # Clean up.
18876 rm -f a.out a.exe
18877else
18878 echo "libtool.m4: error: problem compiling CXX test program"
18879fi
18880
18881$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018882CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018883
18884# PORTME: override above test on systems where it is broken
18885case $host_os in
18886interix[3-9]*)
18887 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18888 # hack all around it, let's just trust "g++" to DTRT.
18889 predep_objects_CXX=
18890 postdep_objects_CXX=
18891 postdeps_CXX=
18892 ;;
18893
18894linux*)
18895 case `$CC -V 2>&1 | sed 5q` in
18896 *Sun\ C*)
18897 # Sun C++ 5.9
18898
18899 # The more standards-conforming stlport4 library is
18900 # incompatible with the Cstd library. Avoid specifying
18901 # it if it's in CXXFLAGS. Ignore libCrun as
18902 # -library=stlport4 depends on it.
18903 case " $CXX $CXXFLAGS " in
18904 *" -library=stlport4 "*)
18905 solaris_use_stlport4=yes
18906 ;;
18907 esac
18908
18909 if test "$solaris_use_stlport4" != yes; then
18910 postdeps_CXX='-library=Cstd -library=Crun'
18911 fi
18912 ;;
18913 esac
18914 ;;
18915
18916solaris*)
18917 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018918 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018919 # The more standards-conforming stlport4 library is
18920 # incompatible with the Cstd library. Avoid specifying
18921 # it if it's in CXXFLAGS. Ignore libCrun as
18922 # -library=stlport4 depends on it.
18923 case " $CXX $CXXFLAGS " in
18924 *" -library=stlport4 "*)
18925 solaris_use_stlport4=yes
18926 ;;
18927 esac
18928
18929 # Adding this requires a known-good setup of shared libraries for
18930 # Sun compiler versions before 5.6, else PIC objects from an old
18931 # archive will be linked into the output, leading to subtle bugs.
18932 if test "$solaris_use_stlport4" != yes; then
18933 postdeps_CXX='-library=Cstd -library=Crun'
18934 fi
18935 ;;
18936 esac
18937 ;;
18938esac
18939
18940
18941case " $postdeps_CXX " in
18942*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18943esac
18944 compiler_lib_search_dirs_CXX=
18945if test -n "${compiler_lib_search_path_CXX}"; then
18946 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18947fi
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979 lt_prog_compiler_wl_CXX=
18980lt_prog_compiler_pic_CXX=
18981lt_prog_compiler_static_CXX=
18982
cristy73bd4a52010-10-05 11:24:23 +000018983
18984 # C++ specific cases for pic, static, wl, etc.
18985 if test "$GXX" = yes; then
18986 lt_prog_compiler_wl_CXX='-Wl,'
18987 lt_prog_compiler_static_CXX='-static'
18988
18989 case $host_os in
18990 aix*)
18991 # All AIX code is PIC.
18992 if test "$host_cpu" = ia64; then
18993 # AIX 5 now supports IA64 processor
18994 lt_prog_compiler_static_CXX='-Bstatic'
18995 fi
18996 ;;
18997
18998 amigaos*)
18999 case $host_cpu in
19000 powerpc)
19001 # see comment about AmigaOS4 .so support
19002 lt_prog_compiler_pic_CXX='-fPIC'
19003 ;;
19004 m68k)
19005 # FIXME: we need at least 68020 code to build shared libraries, but
19006 # adding the `-m68020' flag to GCC prevents building anything better,
19007 # like `-m68040'.
19008 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19009 ;;
19010 esac
19011 ;;
19012
19013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19014 # PIC is the default for these OSes.
19015 ;;
19016 mingw* | cygwin* | os2* | pw32* | cegcc*)
19017 # This hack is so that the source file can tell whether it is being
19018 # built for inclusion in a dll (and should export symbols for example).
19019 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19020 # (--disable-auto-import) libraries
19021 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19022 ;;
19023 darwin* | rhapsody*)
19024 # PIC is the default on this platform
19025 # Common symbols not allowed in MH_DYLIB files
19026 lt_prog_compiler_pic_CXX='-fno-common'
19027 ;;
19028 *djgpp*)
19029 # DJGPP does not support shared libraries at all
19030 lt_prog_compiler_pic_CXX=
19031 ;;
cristy0c60a692010-11-04 01:09:47 +000019032 haiku*)
19033 # PIC is the default for Haiku.
19034 # The "-static" flag exists, but is broken.
19035 lt_prog_compiler_static_CXX=
19036 ;;
cristy73bd4a52010-10-05 11:24:23 +000019037 interix[3-9]*)
19038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19039 # Instead, we relocate shared libraries at runtime.
19040 ;;
19041 sysv4*MP*)
19042 if test -d /usr/nec; then
19043 lt_prog_compiler_pic_CXX=-Kconform_pic
19044 fi
19045 ;;
19046 hpux*)
19047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19049 # sets the default TLS model and affects inlining.
19050 case $host_cpu in
19051 hppa*64*)
19052 ;;
19053 *)
19054 lt_prog_compiler_pic_CXX='-fPIC'
19055 ;;
19056 esac
19057 ;;
19058 *qnx* | *nto*)
19059 # QNX uses GNU C++, but need to define -shared option too, otherwise
19060 # it will coredump.
19061 lt_prog_compiler_pic_CXX='-fPIC -shared'
19062 ;;
19063 *)
19064 lt_prog_compiler_pic_CXX='-fPIC'
19065 ;;
19066 esac
19067 else
19068 case $host_os in
19069 aix[4-9]*)
19070 # All AIX code is PIC.
19071 if test "$host_cpu" = ia64; then
19072 # AIX 5 now supports IA64 processor
19073 lt_prog_compiler_static_CXX='-Bstatic'
19074 else
19075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19076 fi
19077 ;;
19078 chorus*)
19079 case $cc_basename in
19080 cxch68*)
19081 # Green Hills C++ Compiler
19082 # _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"
19083 ;;
19084 esac
19085 ;;
cristyda16f162011-02-19 23:52:17 +000019086 mingw* | cygwin* | os2* | pw32* | cegcc*)
19087 # This hack is so that the source file can tell whether it is being
19088 # built for inclusion in a dll (and should export symbols for example).
19089 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19090 ;;
cristy73bd4a52010-10-05 11:24:23 +000019091 dgux*)
19092 case $cc_basename in
19093 ec++*)
19094 lt_prog_compiler_pic_CXX='-KPIC'
19095 ;;
19096 ghcx*)
19097 # Green Hills C++ Compiler
19098 lt_prog_compiler_pic_CXX='-pic'
19099 ;;
19100 *)
19101 ;;
19102 esac
19103 ;;
19104 freebsd* | dragonfly*)
19105 # FreeBSD uses GNU C++
19106 ;;
19107 hpux9* | hpux10* | hpux11*)
19108 case $cc_basename in
19109 CC*)
19110 lt_prog_compiler_wl_CXX='-Wl,'
19111 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19112 if test "$host_cpu" != ia64; then
19113 lt_prog_compiler_pic_CXX='+Z'
19114 fi
19115 ;;
19116 aCC*)
19117 lt_prog_compiler_wl_CXX='-Wl,'
19118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19119 case $host_cpu in
19120 hppa*64*|ia64*)
19121 # +Z the default
19122 ;;
19123 *)
19124 lt_prog_compiler_pic_CXX='+Z'
19125 ;;
19126 esac
19127 ;;
19128 *)
19129 ;;
19130 esac
19131 ;;
19132 interix*)
19133 # This is c89, which is MS Visual C++ (no shared libs)
19134 # Anyone wants to do a port?
19135 ;;
19136 irix5* | irix6* | nonstopux*)
19137 case $cc_basename in
19138 CC*)
19139 lt_prog_compiler_wl_CXX='-Wl,'
19140 lt_prog_compiler_static_CXX='-non_shared'
19141 # CC pic flag -KPIC is the default.
19142 ;;
19143 *)
19144 ;;
19145 esac
19146 ;;
cristy0c60a692010-11-04 01:09:47 +000019147 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019148 case $cc_basename in
19149 KCC*)
19150 # KAI C++ Compiler
19151 lt_prog_compiler_wl_CXX='--backend -Wl,'
19152 lt_prog_compiler_pic_CXX='-fPIC'
19153 ;;
19154 ecpc* )
19155 # old Intel C++ for x86_64 which still supported -KPIC.
19156 lt_prog_compiler_wl_CXX='-Wl,'
19157 lt_prog_compiler_pic_CXX='-KPIC'
19158 lt_prog_compiler_static_CXX='-static'
19159 ;;
19160 icpc* )
19161 # Intel C++, used to be incompatible with GCC.
19162 # ICC 10 doesn't accept -KPIC any more.
19163 lt_prog_compiler_wl_CXX='-Wl,'
19164 lt_prog_compiler_pic_CXX='-fPIC'
19165 lt_prog_compiler_static_CXX='-static'
19166 ;;
19167 pgCC* | pgcpp*)
19168 # Portland Group C++ compiler
19169 lt_prog_compiler_wl_CXX='-Wl,'
19170 lt_prog_compiler_pic_CXX='-fpic'
19171 lt_prog_compiler_static_CXX='-Bstatic'
19172 ;;
19173 cxx*)
19174 # Compaq C++
19175 # Make sure the PIC flag is empty. It appears that all Alpha
19176 # Linux and Compaq Tru64 Unix objects are PIC.
19177 lt_prog_compiler_pic_CXX=
19178 lt_prog_compiler_static_CXX='-non_shared'
19179 ;;
cristy0c60a692010-11-04 01:09:47 +000019180 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19181 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019182 lt_prog_compiler_wl_CXX='-Wl,'
19183 lt_prog_compiler_pic_CXX='-qpic'
19184 lt_prog_compiler_static_CXX='-qstaticlink'
19185 ;;
19186 *)
19187 case `$CC -V 2>&1 | sed 5q` in
19188 *Sun\ C*)
19189 # Sun C++ 5.9
19190 lt_prog_compiler_pic_CXX='-KPIC'
19191 lt_prog_compiler_static_CXX='-Bstatic'
19192 lt_prog_compiler_wl_CXX='-Qoption ld '
19193 ;;
19194 esac
19195 ;;
19196 esac
19197 ;;
19198 lynxos*)
19199 ;;
19200 m88k*)
19201 ;;
19202 mvs*)
19203 case $cc_basename in
19204 cxx*)
19205 lt_prog_compiler_pic_CXX='-W c,exportall'
19206 ;;
19207 *)
19208 ;;
19209 esac
19210 ;;
19211 netbsd*)
19212 ;;
19213 *qnx* | *nto*)
19214 # QNX uses GNU C++, but need to define -shared option too, otherwise
19215 # it will coredump.
19216 lt_prog_compiler_pic_CXX='-fPIC -shared'
19217 ;;
19218 osf3* | osf4* | osf5*)
19219 case $cc_basename in
19220 KCC*)
19221 lt_prog_compiler_wl_CXX='--backend -Wl,'
19222 ;;
19223 RCC*)
19224 # Rational C++ 2.4.1
19225 lt_prog_compiler_pic_CXX='-pic'
19226 ;;
19227 cxx*)
19228 # Digital/Compaq C++
19229 lt_prog_compiler_wl_CXX='-Wl,'
19230 # Make sure the PIC flag is empty. It appears that all Alpha
19231 # Linux and Compaq Tru64 Unix objects are PIC.
19232 lt_prog_compiler_pic_CXX=
19233 lt_prog_compiler_static_CXX='-non_shared'
19234 ;;
19235 *)
19236 ;;
19237 esac
19238 ;;
19239 psos*)
19240 ;;
19241 solaris*)
19242 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019243 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019244 # Sun C++ 4.2, 5.x and Centerline C++
19245 lt_prog_compiler_pic_CXX='-KPIC'
19246 lt_prog_compiler_static_CXX='-Bstatic'
19247 lt_prog_compiler_wl_CXX='-Qoption ld '
19248 ;;
19249 gcx*)
19250 # Green Hills C++ Compiler
19251 lt_prog_compiler_pic_CXX='-PIC'
19252 ;;
19253 *)
19254 ;;
19255 esac
19256 ;;
19257 sunos4*)
19258 case $cc_basename in
19259 CC*)
19260 # Sun C++ 4.x
19261 lt_prog_compiler_pic_CXX='-pic'
19262 lt_prog_compiler_static_CXX='-Bstatic'
19263 ;;
19264 lcc*)
19265 # Lucid
19266 lt_prog_compiler_pic_CXX='-pic'
19267 ;;
19268 *)
19269 ;;
19270 esac
19271 ;;
19272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19273 case $cc_basename in
19274 CC*)
19275 lt_prog_compiler_wl_CXX='-Wl,'
19276 lt_prog_compiler_pic_CXX='-KPIC'
19277 lt_prog_compiler_static_CXX='-Bstatic'
19278 ;;
19279 esac
19280 ;;
19281 tandem*)
19282 case $cc_basename in
19283 NCC*)
19284 # NonStop-UX NCC 3.20
19285 lt_prog_compiler_pic_CXX='-KPIC'
19286 ;;
19287 *)
19288 ;;
19289 esac
19290 ;;
19291 vxworks*)
19292 ;;
19293 *)
19294 lt_prog_compiler_can_build_shared_CXX=no
19295 ;;
19296 esac
19297 fi
19298
19299case $host_os in
19300 # For platforms which do not support PIC, -DPIC is meaningless:
19301 *djgpp*)
19302 lt_prog_compiler_pic_CXX=
19303 ;;
19304 *)
19305 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19306 ;;
19307esac
cristy73bd4a52010-10-05 11:24:23 +000019308
cristyda16f162011-02-19 23:52:17 +000019309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19310$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19311if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19312 $as_echo_n "(cached) " >&6
19313else
19314 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19315fi
19316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19317$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19318lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019319
19320#
19321# Check to make sure the PIC flag actually works.
19322#
19323if test -n "$lt_prog_compiler_pic_CXX"; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19325$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019326if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019327 $as_echo_n "(cached) " >&6
19328else
19329 lt_cv_prog_compiler_pic_works_CXX=no
19330 ac_outfile=conftest.$ac_objext
19331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19332 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19333 # Insert the option either (1) after the last *FLAGS variable, or
19334 # (2) before a word containing "conftest.", or (3) at the end.
19335 # Note that $ac_compile itself does not contain backslashes and begins
19336 # with a dollar sign (not a hyphen), so the echo should work correctly.
19337 # The option is referenced via a variable to avoid confusing sed.
19338 lt_compile=`echo "$ac_compile" | $SED \
19339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19341 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019343 (eval "$lt_compile" 2>conftest.err)
19344 ac_status=$?
19345 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019347 if (exit $ac_status) && test -s "$ac_outfile"; then
19348 # The compiler can only warn and ignore the option if not recognized
19349 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19353 lt_cv_prog_compiler_pic_works_CXX=yes
19354 fi
19355 fi
19356 $RM conftest*
19357
19358fi
19359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19360$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19361
19362if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19363 case $lt_prog_compiler_pic_CXX in
19364 "" | " "*) ;;
19365 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19366 esac
19367else
19368 lt_prog_compiler_pic_CXX=
19369 lt_prog_compiler_can_build_shared_CXX=no
19370fi
19371
19372fi
19373
19374
19375
cristyda16f162011-02-19 23:52:17 +000019376
19377
cristy73bd4a52010-10-05 11:24:23 +000019378#
19379# Check to make sure the static flag actually works.
19380#
19381wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19383$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019384if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019385 $as_echo_n "(cached) " >&6
19386else
19387 lt_cv_prog_compiler_static_works_CXX=no
19388 save_LDFLAGS="$LDFLAGS"
19389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19392 # The linker can only warn and ignore the option if not recognized
19393 # So say no if there are warnings
19394 if test -s conftest.err; then
19395 # Append any errors to the config.log.
19396 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19399 if diff conftest.exp conftest.er2 >/dev/null; then
19400 lt_cv_prog_compiler_static_works_CXX=yes
19401 fi
19402 else
19403 lt_cv_prog_compiler_static_works_CXX=yes
19404 fi
19405 fi
19406 $RM -r conftest*
19407 LDFLAGS="$save_LDFLAGS"
19408
19409fi
19410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19411$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19412
19413if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19414 :
19415else
19416 lt_prog_compiler_static_CXX=
19417fi
19418
19419
19420
19421
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19423$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019424if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019425 $as_echo_n "(cached) " >&6
19426else
19427 lt_cv_prog_compiler_c_o_CXX=no
19428 $RM -r conftest 2>/dev/null
19429 mkdir conftest
19430 cd conftest
19431 mkdir out
19432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19433
19434 lt_compiler_flag="-o out/conftest2.$ac_objext"
19435 # Insert the option either (1) after the last *FLAGS variable, or
19436 # (2) before a word containing "conftest.", or (3) at the end.
19437 # Note that $ac_compile itself does not contain backslashes and begins
19438 # with a dollar sign (not a hyphen), so the echo should work correctly.
19439 lt_compile=`echo "$ac_compile" | $SED \
19440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19442 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019444 (eval "$lt_compile" 2>out/conftest.err)
19445 ac_status=$?
19446 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19449 then
19450 # The compiler can only warn and ignore the option if not recognized
19451 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19455 lt_cv_prog_compiler_c_o_CXX=yes
19456 fi
19457 fi
19458 chmod u+w . 2>&5
19459 $RM conftest*
19460 # SGI C++ compiler will create directory out/ii_files/ for
19461 # template instantiation
19462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19463 $RM out/* && rmdir out
19464 cd ..
19465 $RM -r conftest
19466 $RM conftest*
19467
19468fi
19469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19470$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19471
19472
19473
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19475$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019476if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019477 $as_echo_n "(cached) " >&6
19478else
19479 lt_cv_prog_compiler_c_o_CXX=no
19480 $RM -r conftest 2>/dev/null
19481 mkdir conftest
19482 cd conftest
19483 mkdir out
19484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19485
19486 lt_compiler_flag="-o out/conftest2.$ac_objext"
19487 # Insert the option either (1) after the last *FLAGS variable, or
19488 # (2) before a word containing "conftest.", or (3) at the end.
19489 # Note that $ac_compile itself does not contain backslashes and begins
19490 # with a dollar sign (not a hyphen), so the echo should work correctly.
19491 lt_compile=`echo "$ac_compile" | $SED \
19492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19494 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019496 (eval "$lt_compile" 2>out/conftest.err)
19497 ac_status=$?
19498 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19501 then
19502 # The compiler can only warn and ignore the option if not recognized
19503 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19507 lt_cv_prog_compiler_c_o_CXX=yes
19508 fi
19509 fi
19510 chmod u+w . 2>&5
19511 $RM conftest*
19512 # SGI C++ compiler will create directory out/ii_files/ for
19513 # template instantiation
19514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19515 $RM out/* && rmdir out
19516 cd ..
19517 $RM -r conftest
19518 $RM conftest*
19519
19520fi
19521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19522$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19523
19524
19525
19526
19527hard_links="nottested"
19528if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19529 # do not overwrite the value of need_locks provided by the user
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19531$as_echo_n "checking if we can lock with hard links... " >&6; }
19532 hard_links=yes
19533 $RM conftest*
19534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19535 touch conftest.a
19536 ln conftest.a conftest.b 2>&5 || hard_links=no
19537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19539$as_echo "$hard_links" >&6; }
19540 if test "$hard_links" = no; then
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19542$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19543 need_locks=warn
19544 fi
19545else
19546 need_locks=no
19547fi
19548
19549
19550
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19553
19554 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019555 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019556 case $host_os in
19557 aix[4-9]*)
19558 # If we're using GNU nm, then we don't want the "-C" option.
19559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019560 # Also, AIX nm treats weak defined symbols like other global defined
19561 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019563 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 +000019564 else
19565 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'
19566 fi
19567 ;;
19568 pw32*)
19569 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019570 ;;
cristy73bd4a52010-10-05 11:24:23 +000019571 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019572 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019573 cl*)
19574 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19575 ;;
cristyda16f162011-02-19 23:52:17 +000019576 *)
19577 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'
19578 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19579 ;;
19580 esac
19581 ;;
cristy73bd4a52010-10-05 11:24:23 +000019582 *)
19583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019584 ;;
cristy73bd4a52010-10-05 11:24:23 +000019585 esac
cristy73bd4a52010-10-05 11:24:23 +000019586
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19588$as_echo "$ld_shlibs_CXX" >&6; }
19589test "$ld_shlibs_CXX" = no && can_build_shared=no
19590
19591with_gnu_ld_CXX=$with_gnu_ld
19592
19593
19594
19595
19596
19597
19598#
19599# Do we need to explicitly link libc?
19600#
19601case "x$archive_cmds_need_lc_CXX" in
19602x|xyes)
19603 # Assume -lc should be added
19604 archive_cmds_need_lc_CXX=yes
19605
19606 if test "$enable_shared" = yes && test "$GCC" = yes; then
19607 case $archive_cmds_CXX in
19608 *'~'*)
19609 # FIXME: we may have to deal with multi-command sequences.
19610 ;;
19611 '$CC '*)
19612 # Test whether the compiler implicitly links with -lc since on some
19613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19614 # to ld, don't add -lc before -lgcc.
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19616$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019617if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019618 $as_echo_n "(cached) " >&6
19619else
19620 $RM conftest*
19621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019622
cristy0c60a692010-11-04 01:09:47 +000019623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019624 (eval $ac_compile) 2>&5
19625 ac_status=$?
19626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019628 soname=conftest
19629 lib=conftest
19630 libobjs=conftest.$ac_objext
19631 deplibs=
19632 wl=$lt_prog_compiler_wl_CXX
19633 pic_flag=$lt_prog_compiler_pic_CXX
19634 compiler_flags=-v
19635 linker_flags=-v
19636 verstring=
19637 output_objdir=.
19638 libname=conftest
19639 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19640 allow_undefined_flag_CXX=
19641 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 +000019642 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19643 ac_status=$?
19644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019646 then
19647 lt_cv_archive_cmds_need_lc_CXX=no
19648 else
19649 lt_cv_archive_cmds_need_lc_CXX=yes
19650 fi
19651 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19652 else
19653 cat conftest.err 1>&5
19654 fi
19655 $RM conftest*
19656
19657fi
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19659$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19660 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019661 ;;
19662 esac
19663 fi
19664 ;;
19665esac
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
cristy73bd4a52010-10-05 11:24:23 +000019728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19729$as_echo_n "checking dynamic linker characteristics... " >&6; }
19730
19731library_names_spec=
19732libname_spec='lib$name'
19733soname_spec=
19734shrext_cmds=".so"
19735postinstall_cmds=
19736postuninstall_cmds=
19737finish_cmds=
19738finish_eval=
19739shlibpath_var=
19740shlibpath_overrides_runpath=unknown
19741version_type=none
19742dynamic_linker="$host_os ld.so"
19743sys_lib_dlsearch_path_spec="/lib /usr/lib"
19744need_lib_prefix=unknown
19745hardcode_into_libs=no
19746
19747# when you set need_version to no, make sure it does not cause -set_version
19748# flags to be left without arguments
19749need_version=unknown
19750
19751case $host_os in
19752aix3*)
cristy99bd5232011-12-07 14:38:20 +000019753 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19755 shlibpath_var=LIBPATH
19756
19757 # AIX 3 has no versioning support, so we append a major version to the name.
19758 soname_spec='${libname}${release}${shared_ext}$major'
19759 ;;
19760
19761aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019762 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019763 need_lib_prefix=no
19764 need_version=no
19765 hardcode_into_libs=yes
19766 if test "$host_cpu" = ia64; then
19767 # AIX 5 supports IA64
19768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19769 shlibpath_var=LD_LIBRARY_PATH
19770 else
19771 # With GCC up to 2.95.x, collect2 would create an import file
19772 # for dependence libraries. The import file would start with
19773 # the line `#! .'. This would cause the generated library to
19774 # depend on `.', always an invalid library. This was fixed in
19775 # development snapshots of GCC prior to 3.0.
19776 case $host_os in
19777 aix4 | aix4.[01] | aix4.[01].*)
19778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19779 echo ' yes '
19780 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19781 :
19782 else
19783 can_build_shared=no
19784 fi
19785 ;;
19786 esac
19787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19788 # soname into executable. Probably we can add versioning support to
19789 # collect2, so additional links can be useful in future.
19790 if test "$aix_use_runtimelinking" = yes; then
19791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19792 # instead of lib<name>.a to let people know that these are not
19793 # typical AIX shared libraries.
19794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19795 else
19796 # We preserve .a as extension for shared libraries through AIX4.2
19797 # and later when we are not doing run time linking.
19798 library_names_spec='${libname}${release}.a $libname.a'
19799 soname_spec='${libname}${release}${shared_ext}$major'
19800 fi
19801 shlibpath_var=LIBPATH
19802 fi
19803 ;;
19804
19805amigaos*)
19806 case $host_cpu in
19807 powerpc)
19808 # Since July 2007 AmigaOS4 officially supports .so libraries.
19809 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 ;;
19812 m68k)
19813 library_names_spec='$libname.ixlibrary $libname.a'
19814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019815 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 +000019816 ;;
19817 esac
19818 ;;
19819
19820beos*)
19821 library_names_spec='${libname}${shared_ext}'
19822 dynamic_linker="$host_os ld.so"
19823 shlibpath_var=LIBRARY_PATH
19824 ;;
19825
19826bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019827 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019828 need_version=no
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19832 shlibpath_var=LD_LIBRARY_PATH
19833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19835 # the default ld.so.conf also contains /usr/contrib/lib and
19836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19837 # libtool to hard-code these into programs
19838 ;;
19839
19840cygwin* | mingw* | pw32* | cegcc*)
19841 version_type=windows
19842 shrext_cmds=".dll"
19843 need_version=no
19844 need_lib_prefix=no
19845
cristyda16f162011-02-19 23:52:17 +000019846 case $GCC,$cc_basename in
19847 yes,*)
19848 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019849 library_names_spec='$libname.dll.a'
19850 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19851 postinstall_cmds='base_file=`basename \${file}`~
19852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19853 dldir=$destdir/`dirname \$dlpath`~
19854 test -d \$dldir || mkdir -p \$dldir~
19855 $install_prog $dir/$dlname \$dldir/$dlname~
19856 chmod a+x \$dldir/$dlname~
19857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19859 fi'
19860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19861 dlpath=$dir/\$dldll~
19862 $RM \$dlpath'
19863 shlibpath_overrides_runpath=yes
19864
19865 case $host_os in
19866 cygwin*)
19867 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019869
cristy73bd4a52010-10-05 11:24:23 +000019870 ;;
19871 mingw* | cegcc*)
19872 # MinGW DLLs use traditional 'lib' prefix
19873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019874 ;;
19875 pw32*)
19876 # pw32 DLLs use 'pw' prefix rather than 'lib'
19877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19878 ;;
19879 esac
cristyda16f162011-02-19 23:52:17 +000019880 dynamic_linker='Win32 ld.exe'
19881 ;;
19882
19883 *,cl*)
19884 # Native MSVC
19885 libname_spec='$name'
19886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19887 library_names_spec='${libname}.dll.lib'
19888
19889 case $build_os in
19890 mingw*)
19891 sys_lib_search_path_spec=
19892 lt_save_ifs=$IFS
19893 IFS=';'
19894 for lt_path in $LIB
19895 do
19896 IFS=$lt_save_ifs
19897 # Let DOS variable expansion print the short 8.3 style file name.
19898 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19899 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19900 done
19901 IFS=$lt_save_ifs
19902 # Convert to MSYS style.
19903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19904 ;;
19905 cygwin*)
19906 # Convert to unix form, then to dos form, then back to unix form
19907 # but this time dos style (no spaces!) so that the unix form looks
19908 # like /cygdrive/c/PROGRA~1:/cygdr...
19909 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19910 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19911 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19912 ;;
19913 *)
19914 sys_lib_search_path_spec="$LIB"
19915 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19916 # It is most probably a Windows format PATH.
19917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19918 else
19919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19920 fi
19921 # FIXME: find the short name or the path components, as spaces are
19922 # common. (e.g. "Program Files" -> "PROGRA~1")
19923 ;;
19924 esac
19925
19926 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19927 postinstall_cmds='base_file=`basename \${file}`~
19928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19929 dldir=$destdir/`dirname \$dlpath`~
19930 test -d \$dldir || mkdir -p \$dldir~
19931 $install_prog $dir/$dlname \$dldir/$dlname'
19932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19933 dlpath=$dir/\$dldll~
19934 $RM \$dlpath'
19935 shlibpath_overrides_runpath=yes
19936 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019937 ;;
19938
19939 *)
cristyda16f162011-02-19 23:52:17 +000019940 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019942 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019943 ;;
19944 esac
cristy73bd4a52010-10-05 11:24:23 +000019945 # FIXME: first we should search . and the directory the executable is in
19946 shlibpath_var=PATH
19947 ;;
19948
19949darwin* | rhapsody*)
19950 dynamic_linker="$host_os dyld"
19951 version_type=darwin
19952 need_lib_prefix=no
19953 need_version=no
19954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19955 soname_spec='${libname}${release}${major}$shared_ext'
19956 shlibpath_overrides_runpath=yes
19957 shlibpath_var=DYLD_LIBRARY_PATH
19958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19959
19960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19961 ;;
19962
19963dgux*)
cristy99bd5232011-12-07 14:38:20 +000019964 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019965 need_lib_prefix=no
19966 need_version=no
19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19968 soname_spec='${libname}${release}${shared_ext}$major'
19969 shlibpath_var=LD_LIBRARY_PATH
19970 ;;
19971
cristy73bd4a52010-10-05 11:24:23 +000019972freebsd* | dragonfly*)
19973 # DragonFly does not have aout. When/if they implement a new
19974 # versioning mechanism, adjust this.
19975 if test -x /usr/bin/objformat; then
19976 objformat=`/usr/bin/objformat`
19977 else
19978 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019979 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019980 *) objformat=elf ;;
19981 esac
19982 fi
19983 version_type=freebsd-$objformat
19984 case $version_type in
19985 freebsd-elf*)
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19987 need_version=no
19988 need_lib_prefix=no
19989 ;;
19990 freebsd-*)
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19992 need_version=yes
19993 ;;
19994 esac
19995 shlibpath_var=LD_LIBRARY_PATH
19996 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019997 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019998 shlibpath_overrides_runpath=yes
19999 ;;
20000 freebsd3.[01]* | freebsdelf3.[01]*)
20001 shlibpath_overrides_runpath=yes
20002 hardcode_into_libs=yes
20003 ;;
20004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20006 shlibpath_overrides_runpath=no
20007 hardcode_into_libs=yes
20008 ;;
20009 *) # from 4.6 on, and DragonFly
20010 shlibpath_overrides_runpath=yes
20011 hardcode_into_libs=yes
20012 ;;
20013 esac
20014 ;;
20015
20016gnu*)
cristy99bd5232011-12-07 14:38:20 +000020017 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020018 need_lib_prefix=no
20019 need_version=no
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020023 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020024 hardcode_into_libs=yes
20025 ;;
20026
cristy0c60a692010-11-04 01:09:47 +000020027haiku*)
cristy99bd5232011-12-07 14:38:20 +000020028 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020029 need_lib_prefix=no
20030 need_version=no
20031 dynamic_linker="$host_os runtime_loader"
20032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 shlibpath_var=LIBRARY_PATH
20035 shlibpath_overrides_runpath=yes
20036 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20037 hardcode_into_libs=yes
20038 ;;
20039
cristy73bd4a52010-10-05 11:24:23 +000020040hpux9* | hpux10* | hpux11*)
20041 # Give a soname corresponding to the major version so that dld.sl refuses to
20042 # link against other versions.
20043 version_type=sunos
20044 need_lib_prefix=no
20045 need_version=no
20046 case $host_cpu in
20047 ia64*)
20048 shrext_cmds='.so'
20049 hardcode_into_libs=yes
20050 dynamic_linker="$host_os dld.so"
20051 shlibpath_var=LD_LIBRARY_PATH
20052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 if test "X$HPUX_IA64_MODE" = X32; then
20056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20057 else
20058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20059 fi
20060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20061 ;;
20062 hppa*64*)
20063 shrext_cmds='.sl'
20064 hardcode_into_libs=yes
20065 dynamic_linker="$host_os dld.sl"
20066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20072 ;;
20073 *)
20074 shrext_cmds='.sl'
20075 dynamic_linker="$host_os dld.sl"
20076 shlibpath_var=SHLIB_PATH
20077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20079 soname_spec='${libname}${release}${shared_ext}$major'
20080 ;;
20081 esac
cristy0c60a692010-11-04 01:09:47 +000020082 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020083 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020084 # or fails outright, so override atomically:
20085 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020086 ;;
20087
20088interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020089 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020090 need_lib_prefix=no
20091 need_version=no
20092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20093 soname_spec='${libname}${release}${shared_ext}$major'
20094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=no
20097 hardcode_into_libs=yes
20098 ;;
20099
20100irix5* | irix6* | nonstopux*)
20101 case $host_os in
20102 nonstopux*) version_type=nonstopux ;;
20103 *)
20104 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020105 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020106 else
20107 version_type=irix
20108 fi ;;
20109 esac
20110 need_lib_prefix=no
20111 need_version=no
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20114 case $host_os in
20115 irix5* | nonstopux*)
20116 libsuff= shlibsuff=
20117 ;;
20118 *)
20119 case $LD in # libtool.m4 will add one of these switches to LD
20120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20121 libsuff= shlibsuff= libmagic=32-bit;;
20122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20123 libsuff=32 shlibsuff=N32 libmagic=N32;;
20124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20126 *) libsuff= shlibsuff= libmagic=never-match;;
20127 esac
20128 ;;
20129 esac
20130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20131 shlibpath_overrides_runpath=no
20132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20134 hardcode_into_libs=yes
20135 ;;
20136
20137# No shared lib support for Linux oldld, aout, or coff.
20138linux*oldld* | linux*aout* | linux*coff*)
20139 dynamic_linker=no
20140 ;;
20141
cristy99bd5232011-12-07 14:38:20 +000020142# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020143linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020144 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020145 need_lib_prefix=no
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020152
cristy73bd4a52010-10-05 11:24:23 +000020153 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020154 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020155 $as_echo_n "(cached) " >&6
20156else
20157 lt_cv_shlibpath_overrides_runpath=no
20158 save_LDFLAGS=$LDFLAGS
20159 save_libdir=$libdir
20160 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20161 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020163/* end confdefs.h. */
20164
20165int
20166main ()
20167{
20168
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173if ac_fn_cxx_try_link "$LINENO"; then :
20174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020175 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020176fi
20177fi
20178rm -f core conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020180 LDFLAGS=$save_LDFLAGS
20181 libdir=$save_libdir
20182
20183fi
20184
20185 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020186
20187 # This implies no fast_install, which is unacceptable.
20188 # Some rework will be needed to allow for fast_install
20189 # before this can be enabled.
20190 hardcode_into_libs=yes
20191
20192 # Add ABI-specific directories to the system library path.
20193 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20194
20195 # Append ld.so.conf contents to the search path
20196 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020197 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 +000020198 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020199
cristy73bd4a52010-10-05 11:24:23 +000020200 fi
20201
20202 # We used to test for /lib/ld.so.1 and disable shared libraries on
20203 # powerpc, because MkLinux only supported shared libraries with the
20204 # GNU dynamic linker. Since this was broken with cross compilers,
20205 # most powerpc-linux boxes support dynamic linking these days and
20206 # people can always --disable-shared, the test was removed, and we
20207 # assume the GNU/Linux dynamic linker is in use.
20208 dynamic_linker='GNU/Linux ld.so'
20209 ;;
20210
20211netbsd*)
20212 version_type=sunos
20213 need_lib_prefix=no
20214 need_version=no
20215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20218 dynamic_linker='NetBSD (a.out) ld.so'
20219 else
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 dynamic_linker='NetBSD ld.elf_so'
20223 fi
20224 shlibpath_var=LD_LIBRARY_PATH
20225 shlibpath_overrides_runpath=yes
20226 hardcode_into_libs=yes
20227 ;;
20228
20229newsos6)
cristy99bd5232011-12-07 14:38:20 +000020230 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 shlibpath_overrides_runpath=yes
20234 ;;
20235
20236*nto* | *qnx*)
20237 version_type=qnx
20238 need_lib_prefix=no
20239 need_version=no
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20241 soname_spec='${libname}${release}${shared_ext}$major'
20242 shlibpath_var=LD_LIBRARY_PATH
20243 shlibpath_overrides_runpath=no
20244 hardcode_into_libs=yes
20245 dynamic_linker='ldqnx.so'
20246 ;;
20247
20248openbsd*)
20249 version_type=sunos
20250 sys_lib_dlsearch_path_spec="/usr/lib"
20251 need_lib_prefix=no
20252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20253 case $host_os in
20254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20255 *) need_version=no ;;
20256 esac
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20261 case $host_os in
20262 openbsd2.[89] | openbsd2.[89].*)
20263 shlibpath_overrides_runpath=no
20264 ;;
20265 *)
20266 shlibpath_overrides_runpath=yes
20267 ;;
20268 esac
20269 else
20270 shlibpath_overrides_runpath=yes
20271 fi
20272 ;;
20273
20274os2*)
20275 libname_spec='$name'
20276 shrext_cmds=".dll"
20277 need_lib_prefix=no
20278 library_names_spec='$libname${shared_ext} $libname.a'
20279 dynamic_linker='OS/2 ld.exe'
20280 shlibpath_var=LIBPATH
20281 ;;
20282
20283osf3* | osf4* | osf5*)
20284 version_type=osf
20285 need_lib_prefix=no
20286 need_version=no
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20289 shlibpath_var=LD_LIBRARY_PATH
20290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20292 ;;
20293
20294rdos*)
20295 dynamic_linker=no
20296 ;;
20297
20298solaris*)
cristy99bd5232011-12-07 14:38:20 +000020299 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020300 need_lib_prefix=no
20301 need_version=no
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 shlibpath_overrides_runpath=yes
20306 hardcode_into_libs=yes
20307 # ldd complains unless libraries are executable
20308 postinstall_cmds='chmod +x $lib'
20309 ;;
20310
20311sunos4*)
20312 version_type=sunos
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=yes
20317 if test "$with_gnu_ld" = yes; then
20318 need_lib_prefix=no
20319 fi
20320 need_version=yes
20321 ;;
20322
20323sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020324 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 soname_spec='${libname}${release}${shared_ext}$major'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 case $host_vendor in
20329 sni)
20330 shlibpath_overrides_runpath=no
20331 need_lib_prefix=no
20332 runpath_var=LD_RUN_PATH
20333 ;;
20334 siemens)
20335 need_lib_prefix=no
20336 ;;
20337 motorola)
20338 need_lib_prefix=no
20339 need_version=no
20340 shlibpath_overrides_runpath=no
20341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20342 ;;
20343 esac
20344 ;;
20345
20346sysv4*MP*)
20347 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020348 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20350 soname_spec='$libname${shared_ext}.$major'
20351 shlibpath_var=LD_LIBRARY_PATH
20352 fi
20353 ;;
20354
20355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20356 version_type=freebsd-elf
20357 need_lib_prefix=no
20358 need_version=no
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20360 soname_spec='${libname}${release}${shared_ext}$major'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 shlibpath_overrides_runpath=yes
20363 hardcode_into_libs=yes
20364 if test "$with_gnu_ld" = yes; then
20365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20366 else
20367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20368 case $host_os in
20369 sco3.2v5*)
20370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20371 ;;
20372 esac
20373 fi
20374 sys_lib_dlsearch_path_spec='/usr/lib'
20375 ;;
20376
20377tpf*)
20378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020379 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020380 need_lib_prefix=no
20381 need_version=no
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=no
20385 hardcode_into_libs=yes
20386 ;;
20387
20388uts4*)
cristy99bd5232011-12-07 14:38:20 +000020389 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 soname_spec='${libname}${release}${shared_ext}$major'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 ;;
20394
20395*)
20396 dynamic_linker=no
20397 ;;
20398esac
20399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20400$as_echo "$dynamic_linker" >&6; }
20401test "$dynamic_linker" = no && can_build_shared=no
20402
20403variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20404if test "$GCC" = yes; then
20405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20406fi
20407
20408if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20410fi
20411if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20413fi
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
cristy0c60a692010-11-04 01:09:47 +000020450
20451
cristy73bd4a52010-10-05 11:24:23 +000020452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20453$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20454hardcode_action_CXX=
20455if test -n "$hardcode_libdir_flag_spec_CXX" ||
20456 test -n "$runpath_var_CXX" ||
20457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20458
20459 # We can hardcode non-existent directories.
20460 if test "$hardcode_direct_CXX" != no &&
20461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20462 # have to relink, otherwise we might link with an installed library
20463 # when we should be linking with a yet-to-be-installed one
20464 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20465 test "$hardcode_minus_L_CXX" != no; then
20466 # Linking always hardcodes the temporary library directory.
20467 hardcode_action_CXX=relink
20468 else
20469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20470 hardcode_action_CXX=immediate
20471 fi
20472else
20473 # We cannot hardcode anything, or else we can only hardcode existing
20474 # directories.
20475 hardcode_action_CXX=unsupported
20476fi
20477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20478$as_echo "$hardcode_action_CXX" >&6; }
20479
20480if test "$hardcode_action_CXX" = relink ||
20481 test "$inherit_rpath_CXX" = yes; then
20482 # Fast installation is not supported
20483 enable_fast_install=no
20484elif test "$shlibpath_overrides_runpath" = yes ||
20485 test "$enable_shared" = no; then
20486 # Fast installation is not necessary
20487 enable_fast_install=needless
20488fi
20489
20490
20491
20492
20493
20494
20495
20496 fi # test -n "$compiler"
20497
20498 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020499 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020500 LDCXX=$LD
20501 LD=$lt_save_LD
20502 GCC=$lt_save_GCC
20503 with_gnu_ld=$lt_save_with_gnu_ld
20504 lt_cv_path_LDCXX=$lt_cv_path_LD
20505 lt_cv_path_LD=$lt_save_path_LD
20506 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20507 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20508fi # test "$_lt_caught_CXX_error" != yes
20509
20510ac_ext=c
20511ac_cpp='$CPP $CPPFLAGS'
20512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
cristy99bd5232011-12-07 14:38:20 +000020528
20529
cristy73bd4a52010-10-05 11:24:23 +000020530 ac_config_commands="$ac_config_commands libtool"
20531
20532
20533
20534
20535# Only expand once:
20536
20537
20538
cristy3ed852e2009-09-05 21:47:34 +000020539
20540
20541# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020542
20543
20544
20545
20546
20547
20548
cristy73bd4a52010-10-05 11:24:23 +000020549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20550$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020551if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020552 $as_echo_n "(cached) " >&6
20553else
20554
20555module=yes
20556eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020557module=no
20558eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020559
20560fi
20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20562$as_echo "$libltdl_cv_shlibext" >&6; }
20563if test -n "$libltdl_cv_shlibext"; then
20564
20565cat >>confdefs.h <<_ACEOF
20566#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20567_ACEOF
20568
20569fi
cristy99bd5232011-12-07 14:38:20 +000020570if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20571
20572cat >>confdefs.h <<_ACEOF
20573#define LT_SHARED_EXT "$libltdl_cv_shrext"
20574_ACEOF
20575
20576fi
cristy73bd4a52010-10-05 11:24:23 +000020577
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20579$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020580if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020581 $as_echo_n "(cached) " >&6
20582else
20583 lt_cv_module_path_var="$shlibpath_var"
20584fi
20585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20586$as_echo "$lt_cv_module_path_var" >&6; }
20587if test -n "$lt_cv_module_path_var"; then
20588
20589cat >>confdefs.h <<_ACEOF
20590#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20591_ACEOF
20592
20593fi
20594
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20596$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020597if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020598 $as_echo_n "(cached) " >&6
20599else
20600 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20601fi
20602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20603$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20604if test -n "$lt_cv_sys_dlsearch_path"; then
20605 sys_dlsearch_path=
20606 for dir in $lt_cv_sys_dlsearch_path; do
20607 if test -z "$sys_dlsearch_path"; then
20608 sys_dlsearch_path="$dir"
20609 else
20610 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20611 fi
20612 done
20613
20614cat >>confdefs.h <<_ACEOF
20615#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20616_ACEOF
20617
20618fi
20619
20620
20621LT_DLLOADERS=
20622
20623
20624ac_ext=c
20625ac_cpp='$CPP $CPPFLAGS'
20626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20628ac_compiler_gnu=$ac_cv_c_compiler_gnu
20629
20630
20631LIBADD_DLOPEN=
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20633$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020634if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020635 $as_echo_n "(cached) " >&6
20636else
20637 ac_func_search_save_LIBS=$LIBS
20638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639/* end confdefs.h. */
20640
20641/* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644#ifdef __cplusplus
20645extern "C"
20646#endif
20647char dlopen ();
20648int
20649main ()
20650{
20651return dlopen ();
20652 ;
20653 return 0;
20654}
20655_ACEOF
20656for ac_lib in '' dl; do
20657 if test -z "$ac_lib"; then
20658 ac_res="none required"
20659 else
20660 ac_res=-l$ac_lib
20661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20662 fi
20663 if ac_fn_c_try_link "$LINENO"; then :
20664 ac_cv_search_dlopen=$ac_res
20665fi
20666rm -f core conftest.err conftest.$ac_objext \
20667 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020668 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020669 break
20670fi
20671done
cristyda16f162011-02-19 23:52:17 +000020672if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020673
20674else
20675 ac_cv_search_dlopen=no
20676fi
20677rm conftest.$ac_ext
20678LIBS=$ac_func_search_save_LIBS
20679fi
20680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20681$as_echo "$ac_cv_search_dlopen" >&6; }
20682ac_res=$ac_cv_search_dlopen
20683if test "$ac_res" != no; then :
20684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20685
20686$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20687
20688 if test "$ac_cv_search_dlopen" != "none required" ; then
20689 LIBADD_DLOPEN="-ldl"
20690 fi
20691 libltdl_cv_lib_dl_dlopen="yes"
20692 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20693else
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695/* end confdefs.h. */
20696#if HAVE_DLFCN_H
20697# include <dlfcn.h>
20698#endif
20699
20700int
20701main ()
20702{
20703dlopen(0, 0);
20704 ;
20705 return 0;
20706}
20707_ACEOF
20708if ac_fn_c_try_link "$LINENO"; then :
20709
20710$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20711
20712 libltdl_cv_func_dlopen="yes"
20713 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20714else
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20716$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020717if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020718 $as_echo_n "(cached) " >&6
20719else
20720 ac_check_lib_save_LIBS=$LIBS
20721LIBS="-lsvld $LIBS"
20722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723/* end confdefs.h. */
20724
20725/* Override any GCC internal prototype to avoid an error.
20726 Use char because int might match the return type of a GCC
20727 builtin and then its argument prototype would still apply. */
20728#ifdef __cplusplus
20729extern "C"
20730#endif
20731char dlopen ();
20732int
20733main ()
20734{
20735return dlopen ();
20736 ;
20737 return 0;
20738}
20739_ACEOF
20740if ac_fn_c_try_link "$LINENO"; then :
20741 ac_cv_lib_svld_dlopen=yes
20742else
20743 ac_cv_lib_svld_dlopen=no
20744fi
20745rm -f core conftest.err conftest.$ac_objext \
20746 conftest$ac_exeext conftest.$ac_ext
20747LIBS=$ac_check_lib_save_LIBS
20748fi
20749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20750$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020751if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020752
20753$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20754
20755 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20756 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20757fi
20758
20759fi
20760rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
20762fi
20763
20764if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20765then
20766 lt_save_LIBS="$LIBS"
20767 LIBS="$LIBS $LIBADD_DLOPEN"
20768 for ac_func in dlerror
20769do :
20770 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020771if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020772 cat >>confdefs.h <<_ACEOF
20773#define HAVE_DLERROR 1
20774_ACEOF
20775
20776fi
20777done
20778
20779 LIBS="$lt_save_LIBS"
20780fi
20781
20782
20783LIBADD_SHL_LOAD=
20784ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020785if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020786
20787$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20788
20789 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20790else
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20792$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020793if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020794 $as_echo_n "(cached) " >&6
20795else
20796 ac_check_lib_save_LIBS=$LIBS
20797LIBS="-ldld $LIBS"
20798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799/* end confdefs.h. */
20800
20801/* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20804#ifdef __cplusplus
20805extern "C"
20806#endif
20807char shl_load ();
20808int
20809main ()
20810{
20811return shl_load ();
20812 ;
20813 return 0;
20814}
20815_ACEOF
20816if ac_fn_c_try_link "$LINENO"; then :
20817 ac_cv_lib_dld_shl_load=yes
20818else
20819 ac_cv_lib_dld_shl_load=no
20820fi
20821rm -f core conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823LIBS=$ac_check_lib_save_LIBS
20824fi
20825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20826$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020827if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020828
20829$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20830
20831 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20832 LIBADD_SHL_LOAD="-ldld"
20833fi
20834
20835fi
20836
20837
20838
20839case $host_os in
20840darwin[1567].*)
20841# We only want this for pre-Mac OS X 10.4.
20842 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020843if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020844
20845$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20846
20847 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20848fi
20849
20850 ;;
20851beos*)
20852 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20853 ;;
20854cygwin* | mingw* | os2* | pw32*)
20855 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20856"
cristyda16f162011-02-19 23:52:17 +000020857if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020858 ac_have_decl=1
20859else
20860 ac_have_decl=0
20861fi
20862
20863cat >>confdefs.h <<_ACEOF
20864#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20865_ACEOF
20866
20867 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20868 ;;
20869esac
20870
20871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20872$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020873if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020874 $as_echo_n "(cached) " >&6
20875else
20876 ac_check_lib_save_LIBS=$LIBS
20877LIBS="-ldld $LIBS"
20878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879/* end confdefs.h. */
20880
20881/* Override any GCC internal prototype to avoid an error.
20882 Use char because int might match the return type of a GCC
20883 builtin and then its argument prototype would still apply. */
20884#ifdef __cplusplus
20885extern "C"
20886#endif
20887char dld_link ();
20888int
20889main ()
20890{
20891return dld_link ();
20892 ;
20893 return 0;
20894}
20895_ACEOF
20896if ac_fn_c_try_link "$LINENO"; then :
20897 ac_cv_lib_dld_dld_link=yes
20898else
20899 ac_cv_lib_dld_dld_link=no
20900fi
20901rm -f core conftest.err conftest.$ac_objext \
20902 conftest$ac_exeext conftest.$ac_ext
20903LIBS=$ac_check_lib_save_LIBS
20904fi
20905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20906$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020907if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020908
20909$as_echo "#define HAVE_DLD 1" >>confdefs.h
20910
20911 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20912fi
20913
20914
20915
20916
20917LT_DLPREOPEN=
20918if test -n "$LT_DLLOADERS"
20919then
20920 for lt_loader in $LT_DLLOADERS; do
20921 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20922 done
20923
20924$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20925
20926fi
20927
20928
20929LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20930
20931
20932ac_ext=c
20933ac_cpp='$CPP $CPPFLAGS'
20934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20936ac_compiler_gnu=$ac_cv_c_compiler_gnu
20937
20938
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20940$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020941if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020942 $as_echo_n "(cached) " >&6
20943else
20944 lt_cv_sys_symbol_underscore=no
20945 cat > conftest.$ac_ext <<_LT_EOF
20946void nm_test_func(){}
20947int main(){nm_test_func;return 0;}
20948_LT_EOF
20949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20950 (eval $ac_compile) 2>&5
20951 ac_status=$?
20952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20953 test $ac_status = 0; }; then
20954 # Now try to grab the symbols.
20955 ac_nlist=conftest.nm
20956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20957 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20958 ac_status=$?
20959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20960 test $ac_status = 0; } && test -s "$ac_nlist"; then
20961 # See whether the symbols have a leading underscore.
20962 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20963 lt_cv_sys_symbol_underscore=yes
20964 else
20965 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20966 :
20967 else
20968 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20969 fi
20970 fi
20971 else
20972 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20973 fi
20974 else
20975 echo "configure: failed program was:" >&5
20976 cat conftest.c >&5
20977 fi
20978 rm -rf conftest*
20979
20980fi
20981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20982$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20983 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20984
20985
20986if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20987 if test x"$libltdl_cv_func_dlopen" = xyes ||
20988 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20990$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020991if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020992 $as_echo_n "(cached) " >&6
20993else
20994 libltdl_cv_need_uscore=unknown
20995 save_LIBS="$LIBS"
20996 LIBS="$LIBS $LIBADD_DLOPEN"
20997 if test "$cross_compiling" = yes; then :
20998 libltdl_cv_need_uscore=cross
20999else
21000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21001 lt_status=$lt_dlunknown
21002 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021003#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021004#include "confdefs.h"
21005
21006#if HAVE_DLFCN_H
21007#include <dlfcn.h>
21008#endif
21009
21010#include <stdio.h>
21011
21012#ifdef RTLD_GLOBAL
21013# define LT_DLGLOBAL RTLD_GLOBAL
21014#else
21015# ifdef DL_GLOBAL
21016# define LT_DLGLOBAL DL_GLOBAL
21017# else
21018# define LT_DLGLOBAL 0
21019# endif
21020#endif
21021
21022/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21023 find out it does not work in some platform. */
21024#ifndef LT_DLLAZY_OR_NOW
21025# ifdef RTLD_LAZY
21026# define LT_DLLAZY_OR_NOW RTLD_LAZY
21027# else
21028# ifdef DL_LAZY
21029# define LT_DLLAZY_OR_NOW DL_LAZY
21030# else
21031# ifdef RTLD_NOW
21032# define LT_DLLAZY_OR_NOW RTLD_NOW
21033# else
21034# ifdef DL_NOW
21035# define LT_DLLAZY_OR_NOW DL_NOW
21036# else
21037# define LT_DLLAZY_OR_NOW 0
21038# endif
21039# endif
21040# endif
21041# endif
21042#endif
21043
cristy0c60a692010-11-04 01:09:47 +000021044/* When -fvisbility=hidden is used, assume the code has been annotated
21045 correspondingly for the symbols needed. */
21046#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021047int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021048#endif
21049
cristyda16f162011-02-19 23:52:17 +000021050int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021051int main ()
21052{
21053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21054 int status = $lt_dlunknown;
21055
21056 if (self)
21057 {
21058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021059 else
21060 {
21061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21062 else puts (dlerror ());
21063 }
cristy73bd4a52010-10-05 11:24:23 +000021064 /* dlclose (self); */
21065 }
21066 else
21067 puts (dlerror ());
21068
21069 return status;
21070}
21071_LT_EOF
21072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21073 (eval $ac_link) 2>&5
21074 ac_status=$?
21075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21076 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21077 (./conftest; exit; ) >&5 2>/dev/null
21078 lt_status=$?
21079 case x$lt_status in
21080 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21081 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21082 x$lt_dlunknown|x*) ;;
21083 esac
21084 else :
21085 # compilation failed
21086
21087 fi
21088fi
21089rm -fr conftest*
21090
21091 LIBS="$save_LIBS"
21092
21093fi
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21095$as_echo "$libltdl_cv_need_uscore" >&6; }
21096 fi
21097fi
21098
21099if test x"$libltdl_cv_need_uscore" = xyes; then
21100
21101$as_echo "#define NEED_USCORE 1" >>confdefs.h
21102
21103fi
21104
21105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21106$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021107if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021108 $as_echo_n "(cached) " >&6
21109else
21110 # PORTME does your system automatically load deplibs for dlopen?
21111 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21112 # For now, we just catch OSes we know something about -- in the
21113 # future, we'll try test this programmatically.
21114 lt_cv_sys_dlopen_deplibs=unknown
21115 case $host_os in
21116 aix3*|aix4.1.*|aix4.2.*)
21117 # Unknown whether this is true for these versions of AIX, but
21118 # we want this `case' here to explicitly catch those versions.
21119 lt_cv_sys_dlopen_deplibs=unknown
21120 ;;
21121 aix[4-9]*)
21122 lt_cv_sys_dlopen_deplibs=yes
21123 ;;
21124 amigaos*)
21125 case $host_cpu in
21126 powerpc)
21127 lt_cv_sys_dlopen_deplibs=no
21128 ;;
21129 esac
21130 ;;
21131 darwin*)
21132 # Assuming the user has installed a libdl from somewhere, this is true
21133 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21134 lt_cv_sys_dlopen_deplibs=yes
21135 ;;
21136 freebsd* | dragonfly*)
21137 lt_cv_sys_dlopen_deplibs=yes
21138 ;;
cristy0c60a692010-11-04 01:09:47 +000021139 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021140 # GNU and its variants, using gnu ld.so (Glibc)
21141 lt_cv_sys_dlopen_deplibs=yes
21142 ;;
21143 hpux10*|hpux11*)
21144 lt_cv_sys_dlopen_deplibs=yes
21145 ;;
21146 interix*)
21147 lt_cv_sys_dlopen_deplibs=yes
21148 ;;
21149 irix[12345]*|irix6.[01]*)
21150 # Catch all versions of IRIX before 6.2, and indicate that we don't
21151 # know how it worked for any of those versions.
21152 lt_cv_sys_dlopen_deplibs=unknown
21153 ;;
21154 irix*)
21155 # The case above catches anything before 6.2, and it's known that
21156 # at 6.2 and later dlopen does load deplibs.
21157 lt_cv_sys_dlopen_deplibs=yes
21158 ;;
21159 netbsd*)
21160 lt_cv_sys_dlopen_deplibs=yes
21161 ;;
21162 openbsd*)
21163 lt_cv_sys_dlopen_deplibs=yes
21164 ;;
21165 osf[1234]*)
21166 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21167 # it did *not* use an RPATH in a shared library to find objects the
21168 # library depends on, so we explicitly say `no'.
21169 lt_cv_sys_dlopen_deplibs=no
21170 ;;
21171 osf5.0|osf5.0a|osf5.1)
21172 # dlopen *does* load deplibs and with the right loader patch applied
21173 # it even uses RPATH in a shared library to search for shared objects
21174 # that the library depends on, but there's no easy way to know if that
21175 # patch is installed. Since this is the case, all we can really
21176 # say is unknown -- it depends on the patch being installed. If
21177 # it is, this changes to `yes'. Without it, it would be `no'.
21178 lt_cv_sys_dlopen_deplibs=unknown
21179 ;;
21180 osf*)
21181 # the two cases above should catch all versions of osf <= 5.1. Read
21182 # the comments above for what we know about them.
21183 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21184 # is used to find them so we can finally say `yes'.
21185 lt_cv_sys_dlopen_deplibs=yes
21186 ;;
21187 qnx*)
21188 lt_cv_sys_dlopen_deplibs=yes
21189 ;;
21190 solaris*)
21191 lt_cv_sys_dlopen_deplibs=yes
21192 ;;
21193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21194 libltdl_cv_sys_dlopen_deplibs=yes
21195 ;;
21196 esac
21197
21198fi
21199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21200$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21201if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21202
21203$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21204
21205fi
21206
21207:
21208
21209for ac_header in argz.h
21210do :
21211 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21212"
cristyda16f162011-02-19 23:52:17 +000021213if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021214 cat >>confdefs.h <<_ACEOF
21215#define HAVE_ARGZ_H 1
21216_ACEOF
21217
21218fi
21219
21220done
21221
21222
21223ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21224# include <argz.h>
21225#endif
21226"
cristyda16f162011-02-19 23:52:17 +000021227if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021228
21229cat >>confdefs.h <<_ACEOF
21230#define HAVE_ERROR_T 1
21231_ACEOF
21232
21233
21234else
21235
21236$as_echo "#define error_t int" >>confdefs.h
21237
21238
21239$as_echo "#define __error_t_defined 1" >>confdefs.h
21240
21241fi
21242
21243
21244ARGZ_H=
21245for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21246 argz_next argz_stringify
21247do :
21248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21249ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021250if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021251 cat >>confdefs.h <<_ACEOF
21252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21253_ACEOF
21254
21255else
21256 ARGZ_H=argz.h;
21257
21258 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21259
21260fi
21261done
21262
21263
21264if test -z "$ARGZ_H"; then :
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21266$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021267if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021268 $as_echo_n "(cached) " >&6
21269else
21270 case $host_os in #(
21271 *cygwin*)
21272 lt_cv_sys_argz_works=no
21273 if test "$cross_compiling" != no; then
21274 lt_cv_sys_argz_works="guessing no"
21275 else
21276 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21277 save_IFS=$IFS
21278 IFS=-.
21279 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21280 IFS=$save_IFS
21281 lt_os_major=${2-0}
21282 lt_os_minor=${3-0}
21283 lt_os_micro=${4-0}
21284 if test "$lt_os_major" -gt 1 \
21285 || { test "$lt_os_major" -eq 1 \
21286 && { test "$lt_os_minor" -gt 5 \
21287 || { test "$lt_os_minor" -eq 5 \
21288 && test "$lt_os_micro" -gt 24; }; }; }; then
21289 lt_cv_sys_argz_works=yes
21290 fi
21291 fi
21292 ;; #(
21293 *) lt_cv_sys_argz_works=yes ;;
21294 esac
21295fi
21296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21297$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021298 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021299
21300$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21301
21302else
21303 ARGZ_H=argz.h
21304
21305
21306 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21307
21308fi
21309fi
21310
21311
21312
21313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21314$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021315if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021316 $as_echo_n "(cached) " >&6
21317else
21318 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21319 libltdl_cv_preloaded_symbols=yes
21320 else
21321 libltdl_cv_preloaded_symbols=no
21322 fi
21323
21324fi
21325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21326$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21327if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21328
21329$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21330
21331fi
21332
21333# Set options
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345# Check whether --with-included_ltdl was given.
21346if test "${with_included_ltdl+set}" = set; then :
21347 withval=$with_included_ltdl;
21348fi
21349
21350
21351if test "x$with_included_ltdl" != xyes; then
21352 # We are not being forced to use the included libltdl sources, so
21353 # decide whether there is a useful installed version we can use.
21354 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21355
21356"
cristyda16f162011-02-19 23:52:17 +000021357if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021358 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21359 #include <ltdl.h>
21360"
cristyda16f162011-02-19 23:52:17 +000021361if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21363$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021364if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021365 $as_echo_n "(cached) " >&6
21366else
21367 ac_check_lib_save_LIBS=$LIBS
21368LIBS="-lltdl $LIBS"
21369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370/* end confdefs.h. */
21371
21372/* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21375#ifdef __cplusplus
21376extern "C"
21377#endif
21378char lt_dladvise_preload ();
21379int
21380main ()
21381{
21382return lt_dladvise_preload ();
21383 ;
21384 return 0;
21385}
21386_ACEOF
21387if ac_fn_c_try_link "$LINENO"; then :
21388 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21389else
21390 ac_cv_lib_ltdl_lt_dladvise_preload=no
21391fi
21392rm -f core conftest.err conftest.$ac_objext \
21393 conftest$ac_exeext conftest.$ac_ext
21394LIBS=$ac_check_lib_save_LIBS
21395fi
21396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21397$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021398if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021399 with_included_ltdl=no
21400else
21401 with_included_ltdl=yes
21402fi
21403
21404else
21405 with_included_ltdl=yes
21406fi
21407
21408else
21409 with_included_ltdl=yes
21410fi
21411
21412
21413fi
21414
21415
21416
21417
21418# Check whether --with-ltdl_include was given.
21419if test "${with_ltdl_include+set}" = set; then :
21420 withval=$with_ltdl_include;
21421fi
21422
21423
21424if test -n "$with_ltdl_include"; then
21425 if test -f "$with_ltdl_include/ltdl.h"; then :
21426 else
cristy98dddb52010-11-04 00:30:15 +000021427 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021428 fi
21429else
21430 with_ltdl_include=no
21431fi
21432
21433
21434# Check whether --with-ltdl_lib was given.
21435if test "${with_ltdl_lib+set}" = set; then :
21436 withval=$with_ltdl_lib;
21437fi
21438
21439
21440if test -n "$with_ltdl_lib"; then
21441 if test -f "$with_ltdl_lib/libltdl.la"; then :
21442 else
cristy98dddb52010-11-04 00:30:15 +000021443 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021444 fi
21445else
21446 with_ltdl_lib=no
21447fi
21448
21449case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21450 ,yes,no,no,)
21451 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021452 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021453 "") enable_ltdl_convenience=yes
21454 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21455esac
21456LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21457LTDLDEPS=$LIBLTDL
21458LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21459
21460
21461
21462
21463
21464# For backwards non-gettext consistent compatibility...
21465INCLTDL="$LTDLINCL"
21466
21467
21468 ;;
21469 ,no,no,no,)
21470 # If the included ltdl is not to be used, then use the
21471 # preinstalled libltdl we found.
21472
21473$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21474
21475 LIBLTDL=-lltdl
21476 LTDLDEPS=
21477 LTDLINCL=
21478 ;;
21479 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021480 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021481 ;;
21482 *) with_included_ltdl=no
21483 LIBLTDL="-L$with_ltdl_lib -lltdl"
21484 LTDLDEPS=
21485 LTDLINCL="-I$with_ltdl_include"
21486 ;;
21487esac
21488INCLTDL="$LTDLINCL"
21489
21490# Report our decision...
21491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21492$as_echo_n "checking where to find libltdl headers... " >&6; }
21493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21494$as_echo "$LTDLINCL" >&6; }
21495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21496$as_echo_n "checking where to find libltdl library... " >&6; }
21497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21498$as_echo "$LIBLTDL" >&6; }
21499
21500
21501
21502# Check whether --enable-ltdl-install was given.
21503if test "${enable_ltdl_install+set}" = set; then :
21504 enableval=$enable_ltdl_install;
21505fi
21506
21507
21508case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21509 *yes*) ;;
21510 *) enable_ltdl_convenience=yes ;;
21511esac
21512
21513 if test x"${enable_ltdl_install-no}" != xno; then
21514 INSTALL_LTDL_TRUE=
21515 INSTALL_LTDL_FALSE='#'
21516else
21517 INSTALL_LTDL_TRUE='#'
21518 INSTALL_LTDL_FALSE=
21519fi
21520
21521 if test x"${enable_ltdl_convenience-no}" != xno; then
21522 CONVENIENCE_LTDL_TRUE=
21523 CONVENIENCE_LTDL_FALSE='#'
21524else
21525 CONVENIENCE_LTDL_TRUE='#'
21526 CONVENIENCE_LTDL_FALSE=
21527fi
21528
21529
21530
21531
21532
21533
cristy73bd4a52010-10-05 11:24:23 +000021534# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21535# the user used. This is so that ltdl.h can pick up the parent projects
21536# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21537# definitions required by ltdl.c.
21538# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21539
21540
21541
21542for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21543do :
21544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21546"
cristy98dddb52010-11-04 00:30:15 +000021547if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021548 cat >>confdefs.h <<_ACEOF
21549#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21550_ACEOF
21551
21552fi
21553
21554done
21555
21556
21557for ac_func in closedir opendir readdir
21558do :
21559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021561if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021562 cat >>confdefs.h <<_ACEOF
21563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21564_ACEOF
21565
21566else
21567
21568
21569 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21570
21571fi
21572done
21573
21574for ac_func in strlcat strlcpy
21575do :
21576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021578if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021579 cat >>confdefs.h <<_ACEOF
21580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21581_ACEOF
21582
21583else
21584
21585
21586 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21587
21588fi
21589done
21590
21591
21592
21593cat >>confdefs.h <<_ACEOF
21594#define LT_LIBEXT "$libext"
21595_ACEOF
21596
21597
cristyda16f162011-02-19 23:52:17 +000021598name=
21599eval "lt_libprefix=\"$libname_spec\""
21600
21601cat >>confdefs.h <<_ACEOF
21602#define LT_LIBPREFIX "$lt_libprefix"
21603_ACEOF
21604
21605
cristy73bd4a52010-10-05 11:24:23 +000021606name=ltdl
cristyda16f162011-02-19 23:52:17 +000021607eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021608
21609
21610
21611
21612
21613
21614
21615
21616# Only expand once:
21617
21618
cristy3ed852e2009-09-05 21:47:34 +000021619
21620# Check to see if building shared libraries
21621libtool_build_shared_libs='no'
21622if test "$enable_shared" = 'yes'; then
21623 libtool_build_shared_libs='yes'
21624fi
21625
21626# Check to see if building static libraries
21627libtool_build_static_libs='no'
21628if test "$enable_static" = 'yes'; then
21629 libtool_build_static_libs='yes'
21630fi
21631
cristy73bd4a52010-10-05 11:24:23 +000021632 if test "${libtool_build_shared_libs}" = 'yes'; then
21633 WITH_SHARED_LIBS_TRUE=
21634 WITH_SHARED_LIBS_FALSE='#'
21635else
21636 WITH_SHARED_LIBS_TRUE='#'
21637 WITH_SHARED_LIBS_FALSE=
21638fi
21639
cristy3ed852e2009-09-05 21:47:34 +000021640#
21641# Enable support for building loadable modules
21642#
21643
21644# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021645if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021646 withval=$with_modules; with_modules=$withval
21647else
cristy5a1cefd2010-01-06 20:42:35 +000021648 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021649fi
21650
21651
21652# Only allow building loadable modules if we are building shared libraries
21653if test "$with_modules" != 'no' ; then
21654 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021655 { $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 +000021656$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21657 with_modules='no'
21658 fi
21659fi
21660if test "$with_modules" != 'no'; then
21661
cristy8b350f62009-11-15 23:12:43 +000021662$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021663
21664fi
cristy73bd4a52010-10-05 11:24:23 +000021665 if test "$with_modules" != 'no'; then
21666 WITH_MODULES_TRUE=
21667 WITH_MODULES_FALSE='#'
21668else
21669 WITH_MODULES_TRUE='#'
21670 WITH_MODULES_FALSE=
21671fi
21672
cristy3ed852e2009-09-05 21:47:34 +000021673
21674# Enable building/use of libltdl if we are building shared libraries regardless
21675# of whether modules are built or not.
21676with_ltdl='no'
21677if test "$libtool_build_shared_libs" != 'no'; then
21678 with_ltdl='yes'
21679fi
21680
cristy73bd4a52010-10-05 11:24:23 +000021681 if test "$with_ltdl" != 'no'; then
21682 WITH_LTDL_TRUE=
21683 WITH_LTDL_FALSE='#'
21684else
21685 WITH_LTDL_TRUE='#'
21686 WITH_LTDL_FALSE=
21687fi
21688
cristy3ed852e2009-09-05 21:47:34 +000021689if test "$with_ltdl" != 'no'; then
21690
cristy8b350f62009-11-15 23:12:43 +000021691$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021692
21693
21694 # Set DLLDFLAGS
21695 if test X"$enable_shared" = Xyes; then
21696 DLLDFLAGS=-export-dynamic
21697
21698 fi
21699fi
21700
21701# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021702# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021703# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021704if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021705 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21706else
21707 enable_delegate_build='no'
21708fi
21709
21710
21711# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021712if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021713 enableval=$enable_deprecated; enable_deprecated=$enableval
21714else
21715 enable_deprecated='no'
21716fi
21717
21718
21719if test "$enable_deprecated" = 'yes'; then
21720
cristy8b350f62009-11-15 23:12:43 +000021721$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021722
21723else
21724 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21725fi
21726
21727# Build a version of ImageMagick which operates uninstalled.
21728# Used to build distributions located via MAGICK_HOME / executable path
21729# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021730if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 enableval=$enable_installed; enable_installed=$enableval
21732else
21733 enable_installed='yes'
21734fi
21735
21736
21737if test "$enable_installed" = 'yes'; then
21738
cristy8b350f62009-11-15 23:12:43 +000021739$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021740
21741else
21742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21743fi
21744
21745# Permit enciphering and deciphering image pixels.
21746# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021747if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021748 enableval=$enable_cipher; enable_cipher=$enableval
21749else
21750 enable_cipher='yes'
21751fi
21752
21753
21754if test "$enable_cipher" = 'yes'; then
21755
cristy8b350f62009-11-15 23:12:43 +000021756$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021757
21758fi
21759
cristy6e3607c2011-09-13 13:59:17 +000021760# Build a zero-configuration version of ImageMagick.
21761# Check whether --enable-zero-configuration was given.
21762if test "${enable_zero_configuration+set}" = set; then :
21763 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021764else
cristy6e3607c2011-09-13 13:59:17 +000021765 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021766fi
21767
21768
cristy6e3607c2011-09-13 13:59:17 +000021769if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021770
cristy6e3607c2011-09-13 13:59:17 +000021771$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021772
cristy81af5702011-09-13 14:20:58 +000021773 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021774fi
21775
21776# Build a high dynamic range version of ImageMagick.
21777# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021778if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021779 enableval=$enable_hdri; enable_hdri=$enableval
21780else
21781 enable_hdri='no'
21782fi
21783
21784
21785MAGICK_HDRI=""
21786if test "$enable_hdri" = 'yes'; then
21787 MAGICK_HDRI="HDRI"
21788
cristy8b350f62009-11-15 23:12:43 +000021789$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021790
cristyfd9dcd42010-08-08 18:07:02 +000021791 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021792fi
21793
cristy3ed852e2009-09-05 21:47:34 +000021794# Build a version of ImageMagick with assert statements.
21795# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021796if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021797 enableval=$enable_assert; enable_assert=$enableval
21798else
21799 enable_assert='yes'
21800fi
21801
21802
21803if test "$enable_assert" = 'no'; then
21804
cristy8b350f62009-11-15 23:12:43 +000021805$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021806
21807fi
21808
cristya448bd22011-10-14 12:38:13 +000021809# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021810
21811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21812$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21813 # Check whether --enable-maintainer-mode was given.
21814if test "${enable_maintainer_mode+set}" = set; then :
21815 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21816else
21817 USE_MAINTAINER_MODE=no
21818fi
21819
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21821$as_echo "$USE_MAINTAINER_MODE" >&6; }
21822 if test $USE_MAINTAINER_MODE = yes; then
21823 MAINTAINER_MODE_TRUE=
21824 MAINTAINER_MODE_FALSE='#'
21825else
21826 MAINTAINER_MODE_TRUE='#'
21827 MAINTAINER_MODE_FALSE=
21828fi
21829
21830 MAINT=$MAINTAINER_MODE_TRUE
21831
21832
cristy3ed852e2009-09-05 21:47:34 +000021833
cristy3ed852e2009-09-05 21:47:34 +000021834# Enable ccmalloc memory debugging support
21835# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021836if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021837 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21838else
21839 enable_ccmalloc='no'
21840fi
21841
21842
21843# Enable Electric Fence memory debugging support
21844# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021845if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 enableval=$enable_efence; enable_efence=$enableval
21847else
21848 enable_efence='no'
21849fi
21850
21851
21852# Enable prof-based profiling support
21853# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021854if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021855 enableval=$enable_prof; enable_prof=$enableval
21856else
21857 enable_prof='no'
21858fi
21859
21860
21861# Enable gprof-based profiling support
21862# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021863if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021864 enableval=$enable_gprof; enable_gprof=$enableval
21865else
21866 enable_gprof='no'
21867fi
21868
21869
21870# Enable gcov-based profiling support
21871# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021872if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 enableval=$enable_gcov; enable_gcov=$enableval
21874else
21875 enable_gcov='no'
21876fi
21877
21878
21879enable_profiling='no'
21880if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21881 enable_profiling='yes'
21882 if test "$libtool_build_shared_libs" = 'yes'; then
21883 echo "Warning: Can not profile code using shared libraries"
21884 fi
21885fi
21886
21887# Magick API method prefix
21888
21889# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021890if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021891 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021892else
cristyfc3d0222012-02-07 15:05:57 +000021893 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021894fi
21895
21896
cristyfc3d0222012-02-07 15:05:57 +000021897if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021898
21899cat >>confdefs.h <<_ACEOF
21900#define NAMESPACE_PREFIX $with_method_prefix
21901_ACEOF
21902
cristyfc3d0222012-02-07 15:05:57 +000021903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021904fi
21905
cristy71d8c202012-03-20 17:05:01 +000021906# Enable legacy support (default no)
21907# Check whether --enable-legacy-support was given.
21908if test "${enable_legacy_support+set}" = set; then :
21909 enableval=$enable_legacy_support; with_legacy_support=$enableval
21910else
21911 with_legacy_support='no'
21912fi
21913
21914 if test "$with_legacy_support" != 'no'; then
21915 LEGACY_SUPPORT_TRUE=
21916 LEGACY_SUPPORT_FALSE='#'
21917else
21918 LEGACY_SUPPORT_TRUE='#'
21919 LEGACY_SUPPORT_FALSE=
21920fi
21921
21922
cristy3ed852e2009-09-05 21:47:34 +000021923# Number of bits in a Quantum
21924
21925# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021926if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 withval=$with_quantum_depth; with_quantum_depth=$withval
21928else
21929 with_quantum_depth=16
21930fi
21931
21932
21933if test "$with_quantum_depth" != '8'; then
21934 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21935fi
21936
21937case "${with_quantum_depth}" in
21938 8 ) ;;
21939 16 ) ;;
21940 32 ) ;;
21941 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021942 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021943esac
21944QUANTUM_DEPTH="$with_quantum_depth"
21945
21946cat >>confdefs.h <<_ACEOF
21947#define QUANTUM_DEPTH $QUANTUM_DEPTH
21948_ACEOF
21949
21950
21951# Set pixel cache threshold
21952
21953# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021954if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021955 withval=$with_cache; with_cache=$withval
21956else
21957 with_cache=''
21958fi
21959
21960
21961if test "$with_cache" != ''; then
21962
21963cat >>confdefs.h <<_ACEOF
21964#define PixelCacheThreshold $with_cache
21965_ACEOF
21966
21967 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21968fi
21969
21970# Disable/Enable support for full delegate paths
21971
21972# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021973if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021974 withval=$with_frozenpaths; with_frozenpaths=$withval
21975else
21976 with_frozenpaths='no'
21977fi
21978
21979
21980# Enable build/install of Magick++
21981
21982# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021983if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021984 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21985else
21986 with_magick_plus_plus='yes'
21987fi
21988
21989
21990# Disable build/install of PerlMagick.
21991
21992# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021993if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021994 withval=$with_perl; with_perl=$withval
21995else
cristyb5f4e2f2010-04-25 00:49:11 +000021996 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021997fi
21998
21999
22000# Options to pass when configuring PerlMagick
22001
22002# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022003if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022004 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022005fi
22006
22007
cristy3ed852e2009-09-05 21:47:34 +000022008
22009# Enable umem, object-caching memory allocation library.
22010
22011# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022012if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022013 withval=$with_umem; with_umem=$withval
22014else
22015 with_umem='no'
22016fi
22017
22018if test "$with_umem" != 'yes' ; then
22019 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22020fi
22021
22022#
22023# Specify path to shared libstdc++ if not in normal location
22024#
22025
22026# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022027if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022028 withval=$with_libstdc; with_libstdc=$withval
22029else
22030 with_libstdc=''
22031fi
22032
22033
22034if test "$with_libstdc" != ''; then
22035 if test -d "$with_libstdc"; then
22036 LIBSTDCLDFLAGS="-L$with_libstdc"
22037 fi
22038fi
22039
22040
22041# Does gcc required -traditional?
22042if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022044$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022045if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022046 $as_echo_n "(cached) " >&6
22047else
22048 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022050/* end confdefs.h. */
22051#include <sgtty.h>
22052Autoconf TIOCGETP
22053_ACEOF
22054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022055 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 ac_cv_prog_gcc_traditional=yes
22057else
22058 ac_cv_prog_gcc_traditional=no
22059fi
22060rm -f conftest*
22061
22062
22063 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022065/* end confdefs.h. */
22066#include <termio.h>
22067Autoconf TCGETA
22068_ACEOF
22069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022070 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022071 ac_cv_prog_gcc_traditional=yes
22072fi
22073rm -f conftest*
22074
22075 fi
22076fi
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22079 if test $ac_cv_prog_gcc_traditional = yes; then
22080 CC="$CC -traditional"
22081 fi
22082fi
22083
22084
22085########
22086#
22087# Set defines required to build DLLs and modules using MinGW
22088#
22089########
22090# These options are set for multi-thread DLL module build
22091# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22092# module: _DLL
22093# executable/Magick++: _DLL _MAGICKMOD_
22094MODULE_EXTRA_CPPFLAGS=''
22095LIBRARY_EXTRA_CPPFLAGS=''
22096if test "${native_win32_build}" = 'yes'; then
22097 if test "${libtool_build_shared_libs}" = 'yes'; then
22098 CPPFLAGS="$CPPFLAGS -D_DLL"
22099 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22100 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22101 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22102 if test "$with_modules" = 'yes'; then
22103 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22104 else
22105 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22106 fi
22107 else
22108 CPPFLAGS="$CPPFLAGS -D_LIB"
22109 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22110 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22111 fi
22112 if test "$with_threads" = 'yes'; then
22113 CPPFLAGS="$CPPFLAGS -D_MT"
22114 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22115 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22116 fi
22117fi
22118
22119
22120
22121# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022123$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022124if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022125 $as_echo_n "(cached) " >&6
22126else
cristy8b350f62009-11-15 23:12:43 +000022127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022128/* end confdefs.h. */
22129#include <stdlib.h>
22130#include <stdarg.h>
22131#include <string.h>
22132#include <float.h>
22133
22134int
22135main ()
22136{
22137
22138 ;
22139 return 0;
22140}
22141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022142if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 ac_cv_header_stdc=yes
22144else
cristy8b350f62009-11-15 23:12:43 +000022145 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022146fi
cristy3ed852e2009-09-05 21:47:34 +000022147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148
22149if test $ac_cv_header_stdc = yes; then
22150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022152/* end confdefs.h. */
22153#include <string.h>
22154
22155_ACEOF
22156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022157 $EGREP "memchr" >/dev/null 2>&1; then :
22158
cristy3ed852e2009-09-05 21:47:34 +000022159else
22160 ac_cv_header_stdc=no
22161fi
22162rm -f conftest*
22163
22164fi
22165
22166if test $ac_cv_header_stdc = yes; then
22167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022169/* end confdefs.h. */
22170#include <stdlib.h>
22171
22172_ACEOF
22173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022174 $EGREP "free" >/dev/null 2>&1; then :
22175
cristy3ed852e2009-09-05 21:47:34 +000022176else
22177 ac_cv_header_stdc=no
22178fi
22179rm -f conftest*
22180
22181fi
22182
22183if test $ac_cv_header_stdc = yes; then
22184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022185 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022186 :
22187else
cristy8b350f62009-11-15 23:12:43 +000022188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022189/* end confdefs.h. */
22190#include <ctype.h>
22191#include <stdlib.h>
22192#if ((' ' & 0x0FF) == 0x020)
22193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22195#else
22196# define ISLOWER(c) \
22197 (('a' <= (c) && (c) <= 'i') \
22198 || ('j' <= (c) && (c) <= 'r') \
22199 || ('s' <= (c) && (c) <= 'z'))
22200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22201#endif
22202
22203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22204int
22205main ()
22206{
22207 int i;
22208 for (i = 0; i < 256; i++)
22209 if (XOR (islower (i), ISLOWER (i))
22210 || toupper (i) != TOUPPER (i))
22211 return 2;
22212 return 0;
22213}
22214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022215if ac_fn_c_try_run "$LINENO"; then :
22216
cristy3ed852e2009-09-05 21:47:34 +000022217else
cristy8b350f62009-11-15 23:12:43 +000022218 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022219fi
cristy8b350f62009-11-15 23:12:43 +000022220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22221 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022222fi
22223
cristy3ed852e2009-09-05 21:47:34 +000022224fi
22225fi
cristy8b350f62009-11-15 23:12:43 +000022226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022227$as_echo "$ac_cv_header_stdc" >&6; }
22228if test $ac_cv_header_stdc = yes; then
22229
cristy8b350f62009-11-15 23:12:43 +000022230$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022231
22232fi
22233
22234if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022235 { $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 +000022236 header files. Compilation cannot proceed. Please install the ANSI C
22237 headers and rerun this script." >&5
22238$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22239 header files. Compilation cannot proceed. Please install the ANSI C
22240 headers and rerun this script." >&2;};
22241fi
cristya0b81c32010-01-22 02:54:33 +000022242
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22244$as_echo_n "checking whether to enable assertions... " >&6; }
22245 # Check whether --enable-assert was given.
22246if test "${enable_assert+set}" = set; then :
22247 enableval=$enable_assert; ac_enable_assert=$enableval
22248 if test "x$enableval" = xno; then :
22249
22250$as_echo "#define NDEBUG 1" >>confdefs.h
22251
22252elif test "x$enableval" != xyes; then :
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22254$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22255 ac_enable_assert=yes
22256fi
22257else
22258 ac_enable_assert=yes
22259fi
22260
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22262$as_echo "$ac_enable_assert" >&6; }
22263
cristy3ed852e2009-09-05 21:47:34 +000022264ac_header_dirent=no
22265for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22266 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022268$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022269if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022270 $as_echo_n "(cached) " >&6
22271else
cristy8b350f62009-11-15 23:12:43 +000022272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022273/* end confdefs.h. */
22274#include <sys/types.h>
22275#include <$ac_hdr>
22276
22277int
22278main ()
22279{
22280if ((DIR *) 0)
22281return 0;
22282 ;
22283 return 0;
22284}
22285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022287 eval "$as_ac_Header=yes"
22288else
cristy8b350f62009-11-15 23:12:43 +000022289 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy3ed852e2009-09-05 21:47:34 +000022291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292fi
cristy8b350f62009-11-15 23:12:43 +000022293eval ac_res=\$$as_ac_Header
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022295$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022297 cat >>confdefs.h <<_ACEOF
22298#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22299_ACEOF
22300
22301ac_header_dirent=$ac_hdr; break
22302fi
22303
22304done
22305# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22306if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022309if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 $as_echo_n "(cached) " >&6
22311else
22312 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022314/* end confdefs.h. */
22315
22316/* Override any GCC internal prototype to avoid an error.
22317 Use char because int might match the return type of a GCC
22318 builtin and then its argument prototype would still apply. */
22319#ifdef __cplusplus
22320extern "C"
22321#endif
22322char opendir ();
22323int
22324main ()
22325{
22326return opendir ();
22327 ;
22328 return 0;
22329}
22330_ACEOF
22331for ac_lib in '' dir; do
22332 if test -z "$ac_lib"; then
22333 ac_res="none required"
22334 else
22335 ac_res=-l$ac_lib
22336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22337 fi
cristy8b350f62009-11-15 23:12:43 +000022338 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022340fi
cristy8b350f62009-11-15 23:12:43 +000022341rm -f core conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022343 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022344 break
22345fi
22346done
cristyda16f162011-02-19 23:52:17 +000022347if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022348
cristy3ed852e2009-09-05 21:47:34 +000022349else
22350 ac_cv_search_opendir=no
22351fi
22352rm conftest.$ac_ext
22353LIBS=$ac_func_search_save_LIBS
22354fi
cristy8b350f62009-11-15 23:12:43 +000022355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022356$as_echo "$ac_cv_search_opendir" >&6; }
22357ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022358if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22360
22361fi
22362
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022365$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022366if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 $as_echo_n "(cached) " >&6
22368else
22369 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022371/* end confdefs.h. */
22372
22373/* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22376#ifdef __cplusplus
22377extern "C"
22378#endif
22379char opendir ();
22380int
22381main ()
22382{
22383return opendir ();
22384 ;
22385 return 0;
22386}
22387_ACEOF
22388for ac_lib in '' x; do
22389 if test -z "$ac_lib"; then
22390 ac_res="none required"
22391 else
22392 ac_res=-l$ac_lib
22393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22394 fi
cristy8b350f62009-11-15 23:12:43 +000022395 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022397fi
cristy8b350f62009-11-15 23:12:43 +000022398rm -f core conftest.err conftest.$ac_objext \
22399 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022400 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022401 break
22402fi
22403done
cristyda16f162011-02-19 23:52:17 +000022404if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022405
cristy3ed852e2009-09-05 21:47:34 +000022406else
22407 ac_cv_search_opendir=no
22408fi
22409rm conftest.$ac_ext
22410LIBS=$ac_func_search_save_LIBS
22411fi
cristy8b350f62009-11-15 23:12:43 +000022412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022413$as_echo "$ac_cv_search_opendir" >&6; }
22414ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022415if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22417
22418fi
22419
22420fi
22421
22422
22423# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022424for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022425do :
22426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022429 cat >>confdefs.h <<_ACEOF
22430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22431_ACEOF
22432
22433fi
22434
22435done
22436
22437
22438########
22439#
22440# Checks for typedefs, structures, and compiler characteristics.
22441#
22442########
22443
cristy8b350f62009-11-15 23:12:43 +000022444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022445$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022446if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022447 $as_echo_n "(cached) " >&6
22448else
cristy8b350f62009-11-15 23:12:43 +000022449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022450/* end confdefs.h. */
22451
cristy14fefe52012-05-21 00:59:18 +000022452 #include <stdbool.h>
22453 #ifndef bool
22454 "error: bool is not defined"
22455 #endif
22456 #ifndef false
22457 "error: false is not defined"
22458 #endif
22459 #if false
22460 "error: false is not 0"
22461 #endif
22462 #ifndef true
22463 "error: true is not defined"
22464 #endif
22465 #if true != 1
22466 "error: true is not 1"
22467 #endif
22468 #ifndef __bool_true_false_are_defined
22469 "error: __bool_true_false_are_defined is not defined"
22470 #endif
cristy3ed852e2009-09-05 21:47:34 +000022471
cristy14fefe52012-05-21 00:59:18 +000022472 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022473
cristy14fefe52012-05-21 00:59:18 +000022474 char a[true == 1 ? 1 : -1];
22475 char b[false == 0 ? 1 : -1];
22476 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22477 char d[(bool) 0.5 == true ? 1 : -1];
22478 /* See body of main program for 'e'. */
22479 char f[(_Bool) 0.0 == false ? 1 : -1];
22480 char g[true];
22481 char h[sizeof (_Bool)];
22482 char i[sizeof s.t];
22483 enum { j = false, k = true, l = false * true, m = true * 256 };
22484 /* The following fails for
22485 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22486 _Bool n[m];
22487 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22488 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22489 /* Catch a bug in an HP-UX C compiler. See
22490 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22491 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22492 */
22493 _Bool q = true;
22494 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022495
22496int
22497main ()
22498{
22499
cristy14fefe52012-05-21 00:59:18 +000022500 bool e = &s;
22501 *pq |= q;
22502 *pq |= ! q;
22503 /* Refer to every declared value, to avoid compiler optimizations. */
22504 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22505 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022506
22507 ;
22508 return 0;
22509}
22510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022511if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022512 ac_cv_header_stdbool_h=yes
22513else
cristy8b350f62009-11-15 23:12:43 +000022514 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022515fi
cristy3ed852e2009-09-05 21:47:34 +000022516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517fi
cristy8b350f62009-11-15 23:12:43 +000022518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022519$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022520 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022521if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022522
22523cat >>confdefs.h <<_ACEOF
22524#define HAVE__BOOL 1
22525_ACEOF
22526
22527
22528fi
22529
cristy14fefe52012-05-21 00:59:18 +000022530
cristy3ed852e2009-09-05 21:47:34 +000022531if test $ac_cv_header_stdbool_h = yes; then
22532
cristy8b350f62009-11-15 23:12:43 +000022533$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022534
22535fi
22536
cristy8b350f62009-11-15 23:12:43 +000022537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022538$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022539if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022540 $as_echo_n "(cached) " >&6
22541else
cristy8b350f62009-11-15 23:12:43 +000022542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022543/* end confdefs.h. */
22544
22545int
22546main ()
22547{
22548
22549volatile int x;
22550int * volatile y = (int *) 0;
22551return !x && !y;
22552 ;
22553 return 0;
22554}
22555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022556if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022557 ac_cv_c_volatile=yes
22558else
cristy8b350f62009-11-15 23:12:43 +000022559 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022560fi
cristy3ed852e2009-09-05 21:47:34 +000022561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562fi
cristy8b350f62009-11-15 23:12:43 +000022563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022564$as_echo "$ac_cv_c_volatile" >&6; }
22565if test $ac_cv_c_volatile = no; then
22566
cristy8b350f62009-11-15 23:12:43 +000022567$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022568
22569fi
22570
cristy8b350f62009-11-15 23:12:43 +000022571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022572$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022573if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 $as_echo_n "(cached) " >&6
22575else
cristy8b350f62009-11-15 23:12:43 +000022576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022577/* end confdefs.h. */
22578#define x(y) #y
22579
22580char *s = x(teststring);
22581_ACEOF
22582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022583 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022584 ac_cv_c_stringize=no
22585else
22586 ac_cv_c_stringize=yes
22587fi
22588rm -f conftest*
22589
22590fi
cristy8b350f62009-11-15 23:12:43 +000022591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo "$ac_cv_c_stringize" >&6; }
22593if test $ac_cv_c_stringize = yes; then
22594
cristy8b350f62009-11-15 23:12:43 +000022595$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022596
22597fi
22598
cristy8b350f62009-11-15 23:12:43 +000022599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022600$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022601if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022602 $as_echo_n "(cached) " >&6
22603else
cristy8b350f62009-11-15 23:12:43 +000022604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022605/* end confdefs.h. */
22606#include <sys/types.h>
22607#include <sys/stat.h>
22608
22609#if defined S_ISBLK && defined S_IFDIR
22610extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22611#endif
22612
22613#if defined S_ISBLK && defined S_IFCHR
22614extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22615#endif
22616
22617#if defined S_ISLNK && defined S_IFREG
22618extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22619#endif
22620
22621#if defined S_ISSOCK && defined S_IFREG
22622extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22623#endif
22624
22625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022626if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022627 ac_cv_header_stat_broken=no
22628else
cristy8b350f62009-11-15 23:12:43 +000022629 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022630fi
cristy3ed852e2009-09-05 21:47:34 +000022631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22632fi
cristy8b350f62009-11-15 23:12:43 +000022633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022634$as_echo "$ac_cv_header_stat_broken" >&6; }
22635if test $ac_cv_header_stat_broken = yes; then
22636
cristy8b350f62009-11-15 23:12:43 +000022637$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022638
22639fi
22640
cristy8b350f62009-11-15 23:12:43 +000022641{ $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 +000022642$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022643if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022644 $as_echo_n "(cached) " >&6
22645else
cristy8b350f62009-11-15 23:12:43 +000022646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022647/* end confdefs.h. */
22648#include <sys/types.h>
22649#include <sys/time.h>
22650#include <time.h>
22651
22652int
22653main ()
22654{
22655if ((struct tm *) 0)
22656return 0;
22657 ;
22658 return 0;
22659}
22660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022661if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022662 ac_cv_header_time=yes
22663else
cristy8b350f62009-11-15 23:12:43 +000022664 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022665fi
cristy3ed852e2009-09-05 21:47:34 +000022666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667fi
cristy8b350f62009-11-15 23:12:43 +000022668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022669$as_echo "$ac_cv_header_time" >&6; }
22670if test $ac_cv_header_time = yes; then
22671
cristy8b350f62009-11-15 23:12:43 +000022672$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022673
22674fi
22675
cristy8b350f62009-11-15 23:12:43 +000022676{ $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 +000022677$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022678if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022679 $as_echo_n "(cached) " >&6
22680else
cristy8b350f62009-11-15 23:12:43 +000022681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022682/* end confdefs.h. */
22683#include <sys/types.h>
22684#include <time.h>
22685
22686int
22687main ()
22688{
22689struct tm tm;
22690 int *p = &tm.tm_sec;
22691 return !p;
22692 ;
22693 return 0;
22694}
22695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022697 ac_cv_struct_tm=time.h
22698else
cristy8b350f62009-11-15 23:12:43 +000022699 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022700fi
cristy3ed852e2009-09-05 21:47:34 +000022701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702fi
cristy8b350f62009-11-15 23:12:43 +000022703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022704$as_echo "$ac_cv_struct_tm" >&6; }
22705if test $ac_cv_struct_tm = sys/time.h; then
22706
cristy8b350f62009-11-15 23:12:43 +000022707$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022708
22709fi
22710
cristy92703d82010-04-26 00:18:18 +000022711ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22712#include <$ac_cv_struct_tm>
22713
22714"
cristyda16f162011-02-19 23:52:17 +000022715if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022716
22717cat >>confdefs.h <<_ACEOF
22718#define HAVE_STRUCT_TM_TM_ZONE 1
22719_ACEOF
22720
22721
22722fi
22723
22724if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22725
22726$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22727
22728else
22729 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22730"
cristyda16f162011-02-19 23:52:17 +000022731if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022732 ac_have_decl=1
22733else
22734 ac_have_decl=0
22735fi
22736
22737cat >>confdefs.h <<_ACEOF
22738#define HAVE_DECL_TZNAME $ac_have_decl
22739_ACEOF
22740
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22742$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022743if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022744 $as_echo_n "(cached) " >&6
22745else
22746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22747/* end confdefs.h. */
22748#include <time.h>
22749#if !HAVE_DECL_TZNAME
22750extern char *tzname[];
22751#endif
22752
22753int
22754main ()
22755{
22756return tzname[0][0];
22757 ;
22758 return 0;
22759}
22760_ACEOF
22761if ac_fn_c_try_link "$LINENO"; then :
22762 ac_cv_var_tzname=yes
22763else
22764 ac_cv_var_tzname=no
22765fi
22766rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22768fi
22769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22770$as_echo "$ac_cv_var_tzname" >&6; }
22771 if test $ac_cv_var_tzname = yes; then
22772
22773$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22774
22775 fi
22776fi
22777
cristy8b350f62009-11-15 23:12:43 +000022778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022779$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022780if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022781 $as_echo_n "(cached) " >&6
22782else
22783 echo '#! /bin/cat
22784exit 69
22785' >conftest
22786chmod u+x conftest
22787(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22788if test $? -ne 69; then
22789 ac_cv_sys_interpreter=yes
22790else
22791 ac_cv_sys_interpreter=no
22792fi
22793rm -f conftest
22794fi
cristy8b350f62009-11-15 23:12:43 +000022795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022796$as_echo "$ac_cv_sys_interpreter" >&6; }
22797interpval=$ac_cv_sys_interpreter
22798
22799
cristy3ed852e2009-09-05 21:47:34 +000022800# If the C compiler supports the keyword inline, do nothing. Otherwise
22801# define inline to __inline__ or __inline if it accepts one of those,
22802# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022804$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022805if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022806 $as_echo_n "(cached) " >&6
22807else
22808 ac_cv_c_inline=no
22809for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022811/* end confdefs.h. */
22812#ifndef __cplusplus
22813typedef int foo_t;
22814static $ac_kw foo_t static_foo () {return 0; }
22815$ac_kw foo_t foo () {return 0; }
22816#endif
22817
22818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022819if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022820 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022821fi
cristy3ed852e2009-09-05 21:47:34 +000022822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22823 test "$ac_cv_c_inline" != no && break
22824done
22825
22826fi
cristy8b350f62009-11-15 23:12:43 +000022827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022828$as_echo "$ac_cv_c_inline" >&6; }
22829
cristy3ed852e2009-09-05 21:47:34 +000022830case $ac_cv_c_inline in
22831 inline | yes) ;;
22832 *)
22833 case $ac_cv_c_inline in
22834 no) ac_val=;;
22835 *) ac_val=$ac_cv_c_inline;;
22836 esac
22837 cat >>confdefs.h <<_ACEOF
22838#ifndef __cplusplus
22839#define inline $ac_val
22840#endif
22841_ACEOF
22842 ;;
22843esac
22844
22845
22846# If the C compiler supports the keyword restrict, do nothing. Otherwise
22847# define restrict to __restrict__ or __restrict if it accepts one of those,
22848# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022850$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022851if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022852 $as_echo_n "(cached) " >&6
22853else
22854 ac_cv_c_restrict=no
22855 # The order here caters to the fact that C++ does not require restrict.
22856 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022858/* end confdefs.h. */
22859typedef int * int_ptr;
22860 int foo (int_ptr $ac_kw ip) {
22861 return ip[0];
22862 }
22863int
22864main ()
22865{
22866int s[1];
22867 int * $ac_kw t = s;
22868 t[0] = 0;
22869 return foo(t)
22870 ;
22871 return 0;
22872}
22873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022874if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022875 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022876fi
cristy3ed852e2009-09-05 21:47:34 +000022877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878 test "$ac_cv_c_restrict" != no && break
22879 done
22880
22881fi
cristy8b350f62009-11-15 23:12:43 +000022882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022883$as_echo "$ac_cv_c_restrict" >&6; }
22884
cristy3ed852e2009-09-05 21:47:34 +000022885 case $ac_cv_c_restrict in
22886 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022887 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022888 ;;
22889 *) cat >>confdefs.h <<_ACEOF
22890#define restrict $ac_cv_c_restrict
22891_ACEOF
22892 ;;
22893 esac
22894
22895
22896# If words are stored with the most significant byte first (like
22897# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022900if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022901 $as_echo_n "(cached) " >&6
22902else
22903 ac_cv_c_bigendian=unknown
22904 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022906/* end confdefs.h. */
22907#ifndef __APPLE_CC__
22908 not a universal capable compiler
22909 #endif
22910 typedef int dummy;
22911
22912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022914
22915 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022916 # there are at least two -arch flags with different values.
22917 ac_arch=
22918 ac_prev=
22919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22920 if test -n "$ac_prev"; then
22921 case $ac_word in
22922 i?86 | x86_64 | ppc | ppc64)
22923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22924 ac_arch=$ac_word
22925 else
22926 ac_cv_c_bigendian=universal
22927 break
22928 fi
22929 ;;
22930 esac
22931 ac_prev=
22932 elif test "x$ac_word" = "x-arch"; then
22933 ac_prev=arch
22934 fi
22935 done
cristy3ed852e2009-09-05 21:47:34 +000022936fi
cristy3ed852e2009-09-05 21:47:34 +000022937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 if test $ac_cv_c_bigendian = unknown; then
22939 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022941/* end confdefs.h. */
22942#include <sys/types.h>
22943 #include <sys/param.h>
22944
22945int
22946main ()
22947{
22948#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22950 && LITTLE_ENDIAN)
22951 bogus endian macros
22952 #endif
22953
22954 ;
22955 return 0;
22956}
22957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022958if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022961/* end confdefs.h. */
22962#include <sys/types.h>
22963 #include <sys/param.h>
22964
22965int
22966main ()
22967{
22968#if BYTE_ORDER != BIG_ENDIAN
22969 not big endian
22970 #endif
22971
22972 ;
22973 return 0;
22974}
22975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022977 ac_cv_c_bigendian=yes
22978else
cristy8b350f62009-11-15 23:12:43 +000022979 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022980fi
cristy3ed852e2009-09-05 21:47:34 +000022981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022982fi
cristy3ed852e2009-09-05 21:47:34 +000022983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 fi
22985 if test $ac_cv_c_bigendian = unknown; then
22986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022988/* end confdefs.h. */
22989#include <limits.h>
22990
22991int
22992main ()
22993{
22994#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22995 bogus endian macros
22996 #endif
22997
22998 ;
22999 return 0;
23000}
23001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023002if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023003 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023005/* end confdefs.h. */
23006#include <limits.h>
23007
23008int
23009main ()
23010{
23011#ifndef _BIG_ENDIAN
23012 not big endian
23013 #endif
23014
23015 ;
23016 return 0;
23017}
23018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023019if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023020 ac_cv_c_bigendian=yes
23021else
cristy8b350f62009-11-15 23:12:43 +000023022 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023023fi
cristy3ed852e2009-09-05 21:47:34 +000023024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023025fi
cristy3ed852e2009-09-05 21:47:34 +000023026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 fi
23028 if test $ac_cv_c_bigendian = unknown; then
23029 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023030 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023031 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023033/* end confdefs.h. */
23034short int ascii_mm[] =
23035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23036 short int ascii_ii[] =
23037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23038 int use_ascii (int i) {
23039 return ascii_mm[i] + ascii_ii[i];
23040 }
23041 short int ebcdic_ii[] =
23042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23043 short int ebcdic_mm[] =
23044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23045 int use_ebcdic (int i) {
23046 return ebcdic_mm[i] + ebcdic_ii[i];
23047 }
23048 extern int foo;
23049
23050int
23051main ()
23052{
23053return use_ascii (foo) == use_ebcdic (foo);
23054 ;
23055 return 0;
23056}
23057_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023058if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23060 ac_cv_c_bigendian=yes
23061 fi
23062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23063 if test "$ac_cv_c_bigendian" = unknown; then
23064 ac_cv_c_bigendian=no
23065 else
23066 # finding both strings is unlikely to happen, but who knows?
23067 ac_cv_c_bigendian=unknown
23068 fi
23069 fi
cristy3ed852e2009-09-05 21:47:34 +000023070fi
cristy3ed852e2009-09-05 21:47:34 +000023071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072else
cristy8b350f62009-11-15 23:12:43 +000023073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023074/* end confdefs.h. */
23075$ac_includes_default
23076int
23077main ()
23078{
23079
23080 /* Are we little or big endian? From Harbison&Steele. */
23081 union
23082 {
23083 long int l;
23084 char c[sizeof (long int)];
23085 } u;
23086 u.l = 1;
23087 return u.c[sizeof (long int) - 1] == 1;
23088
23089 ;
23090 return 0;
23091}
23092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023093if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023094 ac_cv_c_bigendian=no
23095else
cristy8b350f62009-11-15 23:12:43 +000023096 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023097fi
cristy8b350f62009-11-15 23:12:43 +000023098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23099 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023100fi
23101
cristy3ed852e2009-09-05 21:47:34 +000023102 fi
23103fi
cristy8b350f62009-11-15 23:12:43 +000023104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023105$as_echo "$ac_cv_c_bigendian" >&6; }
23106 case $ac_cv_c_bigendian in #(
23107 yes)
cristy8b350f62009-11-15 23:12:43 +000023108 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023109;; #(
23110 no)
23111 ;; #(
23112 universal)
23113
cristy8b350f62009-11-15 23:12:43 +000023114$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023115
23116 ;; #(
23117 *)
cristy98dddb52010-11-04 00:30:15 +000023118 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023119 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023120 esac
23121
23122
cristy501c8042011-05-26 17:46:28 +000023123# Define to a suitable type, if standard headers do not define it.
23124ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23125case $ac_cv_c_int8_t in #(
23126 no|yes) ;; #(
23127 *)
cristy3ed852e2009-09-05 21:47:34 +000023128
23129cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023130#define int8_t $ac_cv_c_int8_t
23131_ACEOF
23132;;
23133esac
23134
23135ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23136case $ac_cv_c_int16_t in #(
23137 no|yes) ;; #(
23138 *)
23139
23140cat >>confdefs.h <<_ACEOF
23141#define int16_t $ac_cv_c_int16_t
23142_ACEOF
23143;;
23144esac
23145
23146ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23147case $ac_cv_c_int32_t in #(
23148 no|yes) ;; #(
23149 *)
23150
23151cat >>confdefs.h <<_ACEOF
23152#define int32_t $ac_cv_c_int32_t
23153_ACEOF
23154;;
23155esac
23156
23157ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23158case $ac_cv_c_int64_t in #(
23159 no|yes) ;; #(
23160 *)
23161
23162cat >>confdefs.h <<_ACEOF
23163#define int64_t $ac_cv_c_int64_t
23164_ACEOF
23165;;
23166esac
23167
23168
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23170$as_echo_n "checking for long long int... " >&6; }
23171if ${ac_cv_type_long_long_int+:} false; then :
23172 $as_echo_n "(cached) " >&6
23173else
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175/* end confdefs.h. */
23176
23177 /* For now, do not test the preprocessor; as of 2007 there are too many
23178 implementations with broken preprocessors. Perhaps this can
23179 be revisited in 2012. In the meantime, code should not expect
23180 #if to work with literals wider than 32 bits. */
23181 /* Test literals. */
23182 long long int ll = 9223372036854775807ll;
23183 long long int nll = -9223372036854775807LL;
23184 unsigned long long int ull = 18446744073709551615ULL;
23185 /* Test constant expressions. */
23186 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23187 ? 1 : -1)];
23188 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23189 ? 1 : -1)];
23190 int i = 63;
23191int
23192main ()
23193{
23194/* Test availability of runtime routines for shift and division. */
23195 long long int llmax = 9223372036854775807ll;
23196 unsigned long long int ullmax = 18446744073709551615ull;
23197 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23198 | (llmax / ll) | (llmax % ll)
23199 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23200 | (ullmax / ull) | (ullmax % ull));
23201 ;
23202 return 0;
23203}
23204
23205_ACEOF
23206if ac_fn_c_try_link "$LINENO"; then :
23207 if test "$cross_compiling" = yes; then :
23208 ac_cv_type_long_long_int=yes
23209else
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211/* end confdefs.h. */
23212#include <limits.h>
23213 #ifndef LLONG_MAX
23214 # define HALF \
23215 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23216 # define LLONG_MAX (HALF - 1 + HALF)
23217 #endif
23218int
23219main ()
23220{
23221long long int n = 1;
23222 int i;
23223 for (i = 0; ; i++)
23224 {
23225 long long int m = n << i;
23226 if (m >> i != n)
23227 return 1;
23228 if (LLONG_MAX / 2 < m)
23229 break;
23230 }
23231 return 0;
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236if ac_fn_c_try_run "$LINENO"; then :
23237 ac_cv_type_long_long_int=yes
23238else
23239 ac_cv_type_long_long_int=no
23240fi
23241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23242 conftest.$ac_objext conftest.beam conftest.$ac_ext
23243fi
23244
23245else
23246 ac_cv_type_long_long_int=no
23247fi
23248rm -f core conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23250fi
23251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23252$as_echo "$ac_cv_type_long_long_int" >&6; }
23253 if test $ac_cv_type_long_long_int = yes; then
23254
23255$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23256
23257 fi
23258
23259
23260
23261 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23262if test "x$ac_cv_type_intmax_t" = xyes; then :
23263
23264$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23265
23266else
23267 test $ac_cv_type_long_long_int = yes \
23268 && ac_type='long long int' \
23269 || ac_type='long int'
23270
23271cat >>confdefs.h <<_ACEOF
23272#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023273_ACEOF
23274
23275fi
23276
23277
cristy501c8042011-05-26 17:46:28 +000023278
23279 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23280if test "x$ac_cv_type_intptr_t" = xyes; then :
23281
23282$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023283
cristy3ed852e2009-09-05 21:47:34 +000023284else
cristy501c8042011-05-26 17:46:28 +000023285 for ac_type in 'int' 'long int' 'long long int'; do
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287/* end confdefs.h. */
23288$ac_includes_default
23289int
23290main ()
23291{
23292static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023293test_array [0] = 0;
23294return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023295
23296 ;
23297 return 0;
23298}
23299_ACEOF
23300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023301
23302cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023303#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023304_ACEOF
23305
cristy501c8042011-05-26 17:46:28 +000023306 ac_type=
23307fi
23308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 test -z "$ac_type" && break
23310 done
cristy3ed852e2009-09-05 21:47:34 +000023311fi
23312
23313
cristy3ed852e2009-09-05 21:47:34 +000023314
cristy501c8042011-05-26 17:46:28 +000023315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23316$as_echo_n "checking for long double... " >&6; }
23317if ${ac_cv_type_long_double+:} false; then :
23318 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023319else
cristy501c8042011-05-26 17:46:28 +000023320 if test "$GCC" = yes; then
23321 ac_cv_type_long_double=yes
23322 else
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324/* end confdefs.h. */
23325/* The Stardent Vistra knows sizeof (long double), but does
23326 not support it. */
23327 long double foo = 0.0L;
23328int
23329main ()
23330{
23331static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23332 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023333test_array [0] = 0;
23334return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023335
cristy501c8042011-05-26 17:46:28 +000023336 ;
23337 return 0;
23338}
cristy3ed852e2009-09-05 21:47:34 +000023339_ACEOF
cristy501c8042011-05-26 17:46:28 +000023340if ac_fn_c_try_compile "$LINENO"; then :
23341 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023342else
cristy501c8042011-05-26 17:46:28 +000023343 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023344fi
cristy501c8042011-05-26 17:46:28 +000023345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 fi
cristy3ed852e2009-09-05 21:47:34 +000023347fi
cristy501c8042011-05-26 17:46:28 +000023348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23349$as_echo "$ac_cv_type_long_double" >&6; }
23350 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023351
cristy501c8042011-05-26 17:46:28 +000023352$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023353
cristy501c8042011-05-26 17:46:28 +000023354 fi
23355
cristy3ed852e2009-09-05 21:47:34 +000023356
cristy8b350f62009-11-15 23:12:43 +000023357 { $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 +000023358$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023359if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023360 $as_echo_n "(cached) " >&6
23361else
cristy8b350f62009-11-15 23:12:43 +000023362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023363/* end confdefs.h. */
23364#include <float.h>
23365 long double const a[] =
23366 {
23367 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23368 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23369 };
23370 long double
23371 f (long double x)
23372 {
23373 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23374 + (x ? f (x) : 'c'));
23375 }
23376
23377int
23378main ()
23379{
23380static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23381 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23382 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23383 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23384 && (int) LDBL_EPSILON == 0
23385 )];
cristy14fefe52012-05-21 00:59:18 +000023386test_array [0] = 0;
23387return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023388
23389 ;
23390 return 0;
23391}
23392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023394 ac_cv_type_long_double_wider=yes
23395else
cristy8b350f62009-11-15 23:12:43 +000023396 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023397fi
cristy3ed852e2009-09-05 21:47:34 +000023398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399fi
cristy8b350f62009-11-15 23:12:43 +000023400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023401$as_echo "$ac_cv_type_long_double_wider" >&6; }
23402 if test $ac_cv_type_long_double_wider = yes; then
23403
cristy8b350f62009-11-15 23:12:43 +000023404$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023405
23406 fi
23407
23408
cristy501c8042011-05-26 17:46:28 +000023409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23410$as_echo_n "checking for long long int... " >&6; }
23411if ${ac_cv_type_long_long_int+:} false; then :
23412 $as_echo_n "(cached) " >&6
23413else
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415/* end confdefs.h. */
23416
23417 /* For now, do not test the preprocessor; as of 2007 there are too many
23418 implementations with broken preprocessors. Perhaps this can
23419 be revisited in 2012. In the meantime, code should not expect
23420 #if to work with literals wider than 32 bits. */
23421 /* Test literals. */
23422 long long int ll = 9223372036854775807ll;
23423 long long int nll = -9223372036854775807LL;
23424 unsigned long long int ull = 18446744073709551615ULL;
23425 /* Test constant expressions. */
23426 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23427 ? 1 : -1)];
23428 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23429 ? 1 : -1)];
23430 int i = 63;
23431int
23432main ()
23433{
23434/* Test availability of runtime routines for shift and division. */
23435 long long int llmax = 9223372036854775807ll;
23436 unsigned long long int ullmax = 18446744073709551615ull;
23437 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23438 | (llmax / ll) | (llmax % ll)
23439 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23440 | (ullmax / ull) | (ullmax % ull));
23441 ;
23442 return 0;
23443}
23444
23445_ACEOF
23446if ac_fn_c_try_link "$LINENO"; then :
23447 if test "$cross_compiling" = yes; then :
23448 ac_cv_type_long_long_int=yes
23449else
23450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23451/* end confdefs.h. */
23452#include <limits.h>
23453 #ifndef LLONG_MAX
23454 # define HALF \
23455 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23456 # define LLONG_MAX (HALF - 1 + HALF)
23457 #endif
23458int
23459main ()
23460{
23461long long int n = 1;
23462 int i;
23463 for (i = 0; ; i++)
23464 {
23465 long long int m = n << i;
23466 if (m >> i != n)
23467 return 1;
23468 if (LLONG_MAX / 2 < m)
23469 break;
23470 }
23471 return 0;
23472 ;
23473 return 0;
23474}
23475_ACEOF
23476if ac_fn_c_try_run "$LINENO"; then :
23477 ac_cv_type_long_long_int=yes
23478else
23479 ac_cv_type_long_long_int=no
23480fi
23481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23482 conftest.$ac_objext conftest.beam conftest.$ac_ext
23483fi
23484
23485else
23486 ac_cv_type_long_long_int=no
23487fi
23488rm -f core conftest.err conftest.$ac_objext \
23489 conftest$ac_exeext conftest.$ac_ext
23490fi
23491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23492$as_echo "$ac_cv_type_long_long_int" >&6; }
23493 if test $ac_cv_type_long_long_int = yes; then
23494
23495$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23496
23497 fi
23498
23499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23500$as_echo_n "checking for mbstate_t... " >&6; }
23501if ${ac_cv_type_mbstate_t+:} false; then :
23502 $as_echo_n "(cached) " >&6
23503else
23504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23505/* end confdefs.h. */
23506$ac_includes_default
23507# include <wchar.h>
23508int
23509main ()
23510{
23511mbstate_t x; return sizeof x;
23512 ;
23513 return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_compile "$LINENO"; then :
23517 ac_cv_type_mbstate_t=yes
23518else
23519 ac_cv_type_mbstate_t=no
23520fi
23521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522fi
23523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23524$as_echo "$ac_cv_type_mbstate_t" >&6; }
23525 if test $ac_cv_type_mbstate_t = yes; then
23526
23527$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23528
23529 else
23530
23531$as_echo "#define mbstate_t int" >>confdefs.h
23532
23533 fi
23534ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23535if test "x$ac_cv_type_mode_t" = xyes; then :
23536
23537else
23538
23539cat >>confdefs.h <<_ACEOF
23540#define mode_t int
23541_ACEOF
23542
23543fi
23544
23545ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23546if test "x$ac_cv_type_off_t" = xyes; then :
23547
23548else
23549
23550cat >>confdefs.h <<_ACEOF
23551#define off_t long int
23552_ACEOF
23553
23554fi
23555
23556ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23557if test "x$ac_cv_type_pid_t" = xyes; then :
23558
23559else
23560
23561cat >>confdefs.h <<_ACEOF
23562#define pid_t int
23563_ACEOF
23564
23565fi
23566
23567ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23568if test "x$ac_cv_type_size_t" = xyes; then :
23569
23570else
23571
23572cat >>confdefs.h <<_ACEOF
23573#define size_t unsigned int
23574_ACEOF
23575
23576fi
23577
23578ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23579if test "x$ac_cv_type_ssize_t" = xyes; then :
23580
23581else
23582
23583cat >>confdefs.h <<_ACEOF
23584#define ssize_t int
23585_ACEOF
23586
23587fi
23588
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23590$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23591if ${ac_cv_type_uid_t+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593else
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595/* end confdefs.h. */
23596#include <sys/types.h>
23597
23598_ACEOF
23599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23600 $EGREP "uid_t" >/dev/null 2>&1; then :
23601 ac_cv_type_uid_t=yes
23602else
23603 ac_cv_type_uid_t=no
23604fi
23605rm -f conftest*
23606
23607fi
23608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23609$as_echo "$ac_cv_type_uid_t" >&6; }
23610if test $ac_cv_type_uid_t = no; then
23611
23612$as_echo "#define uid_t int" >>confdefs.h
23613
23614
23615$as_echo "#define gid_t int" >>confdefs.h
23616
23617fi
23618
23619ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23620case $ac_cv_c_uint8_t in #(
23621 no|yes) ;; #(
23622 *)
23623
23624$as_echo "#define _UINT8_T 1" >>confdefs.h
23625
23626
23627cat >>confdefs.h <<_ACEOF
23628#define uint8_t $ac_cv_c_uint8_t
23629_ACEOF
23630;;
23631 esac
23632
23633ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23634case $ac_cv_c_uint16_t in #(
23635 no|yes) ;; #(
23636 *)
23637
23638
23639cat >>confdefs.h <<_ACEOF
23640#define uint16_t $ac_cv_c_uint16_t
23641_ACEOF
23642;;
23643 esac
23644
23645ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23646case $ac_cv_c_uint32_t in #(
23647 no|yes) ;; #(
23648 *)
23649
23650$as_echo "#define _UINT32_T 1" >>confdefs.h
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define uint32_t $ac_cv_c_uint32_t
23655_ACEOF
23656;;
23657 esac
23658
23659ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23660case $ac_cv_c_uint64_t in #(
23661 no|yes) ;; #(
23662 *)
23663
23664$as_echo "#define _UINT64_T 1" >>confdefs.h
23665
23666
23667cat >>confdefs.h <<_ACEOF
23668#define uint64_t $ac_cv_c_uint64_t
23669_ACEOF
23670;;
23671 esac
23672
23673
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23675$as_echo_n "checking for unsigned long long int... " >&6; }
23676if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23677 $as_echo_n "(cached) " >&6
23678else
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680/* end confdefs.h. */
23681
23682 /* For now, do not test the preprocessor; as of 2007 there are too many
23683 implementations with broken preprocessors. Perhaps this can
23684 be revisited in 2012. In the meantime, code should not expect
23685 #if to work with literals wider than 32 bits. */
23686 /* Test literals. */
23687 long long int ll = 9223372036854775807ll;
23688 long long int nll = -9223372036854775807LL;
23689 unsigned long long int ull = 18446744073709551615ULL;
23690 /* Test constant expressions. */
23691 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23692 ? 1 : -1)];
23693 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23694 ? 1 : -1)];
23695 int i = 63;
23696int
23697main ()
23698{
23699/* Test availability of runtime routines for shift and division. */
23700 long long int llmax = 9223372036854775807ll;
23701 unsigned long long int ullmax = 18446744073709551615ull;
23702 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23703 | (llmax / ll) | (llmax % ll)
23704 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23705 | (ullmax / ull) | (ullmax % ull));
23706 ;
23707 return 0;
23708}
23709
23710_ACEOF
23711if ac_fn_c_try_link "$LINENO"; then :
23712 ac_cv_type_unsigned_long_long_int=yes
23713else
23714 ac_cv_type_unsigned_long_long_int=no
23715fi
23716rm -f core conftest.err conftest.$ac_objext \
23717 conftest$ac_exeext conftest.$ac_ext
23718fi
23719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23720$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23721 if test $ac_cv_type_unsigned_long_long_int = yes; then
23722
23723$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23724
23725 fi
23726
23727
23728
23729 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23730if test "x$ac_cv_type_uintmax_t" = xyes; then :
23731
23732$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23733
23734else
23735 test $ac_cv_type_unsigned_long_long_int = yes \
23736 && ac_type='unsigned long long int' \
23737 || ac_type='unsigned long int'
23738
23739cat >>confdefs.h <<_ACEOF
23740#define uintmax_t $ac_type
23741_ACEOF
23742
23743fi
23744
23745
23746
23747 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23748if test "x$ac_cv_type_uintptr_t" = xyes; then :
23749
23750$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23751
23752else
23753 for ac_type in 'unsigned int' 'unsigned long int' \
23754 'unsigned long long int'; do
23755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23756/* end confdefs.h. */
23757$ac_includes_default
23758int
23759main ()
23760{
23761static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023762test_array [0] = 0;
23763return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023764
23765 ;
23766 return 0;
23767}
23768_ACEOF
23769if ac_fn_c_try_compile "$LINENO"; then :
23770
23771cat >>confdefs.h <<_ACEOF
23772#define uintptr_t $ac_type
23773_ACEOF
23774
23775 ac_type=
23776fi
23777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 test -z "$ac_type" && break
23779 done
23780fi
23781
23782
23783
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23785$as_echo_n "checking for unsigned long long int... " >&6; }
23786if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788else
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790/* end confdefs.h. */
23791
23792 /* For now, do not test the preprocessor; as of 2007 there are too many
23793 implementations with broken preprocessors. Perhaps this can
23794 be revisited in 2012. In the meantime, code should not expect
23795 #if to work with literals wider than 32 bits. */
23796 /* Test literals. */
23797 long long int ll = 9223372036854775807ll;
23798 long long int nll = -9223372036854775807LL;
23799 unsigned long long int ull = 18446744073709551615ULL;
23800 /* Test constant expressions. */
23801 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23802 ? 1 : -1)];
23803 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23804 ? 1 : -1)];
23805 int i = 63;
23806int
23807main ()
23808{
23809/* Test availability of runtime routines for shift and division. */
23810 long long int llmax = 9223372036854775807ll;
23811 unsigned long long int ullmax = 18446744073709551615ull;
23812 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23813 | (llmax / ll) | (llmax % ll)
23814 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23815 | (ullmax / ull) | (ullmax % ull));
23816 ;
23817 return 0;
23818}
23819
23820_ACEOF
23821if ac_fn_c_try_link "$LINENO"; then :
23822 ac_cv_type_unsigned_long_long_int=yes
23823else
23824 ac_cv_type_unsigned_long_long_int=no
23825fi
23826rm -f core conftest.err conftest.$ac_objext \
23827 conftest$ac_exeext conftest.$ac_ext
23828fi
23829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23830$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23831 if test $ac_cv_type_unsigned_long_long_int = yes; then
23832
23833$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23834
23835 fi
23836
23837
cristy3ed852e2009-09-05 21:47:34 +000023838# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23839# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023842if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023843 $as_echo_n "(cached) " >&6
23844else
cristy8b350f62009-11-15 23:12:43 +000023845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023846/* end confdefs.h. */
23847$ac_includes_default
23848int
23849main ()
23850{
23851static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023852test_array [0] = 0;
23853return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023854
23855 ;
23856 return 0;
23857}
23858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023859if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023860 ac_cv_c_char_unsigned=no
23861else
cristy8b350f62009-11-15 23:12:43 +000023862 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023863fi
cristy3ed852e2009-09-05 21:47:34 +000023864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865fi
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo "$ac_cv_c_char_unsigned" >&6; }
23868if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023869 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023870
23871fi
23872
23873
23874# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23875# The cast to long int works around a bug in the HP C Compiler
23876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23878# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023881if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023882 $as_echo_n "(cached) " >&6
23883else
cristy8b350f62009-11-15 23:12:43 +000023884 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 +000023885
cristy3ed852e2009-09-05 21:47:34 +000023886else
cristy8b350f62009-11-15 23:12:43 +000023887 if test "$ac_cv_type_signed_short" = yes; then
23888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023890as_fn_error 77 "cannot compute sizeof (signed short)
23891See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023892 else
23893 ac_cv_sizeof_signed_short=0
23894 fi
23895fi
cristy8b350f62009-11-15 23:12:43 +000023896
cristy3ed852e2009-09-05 21:47:34 +000023897fi
cristy8b350f62009-11-15 23:12:43 +000023898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023899$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23900
23901
23902
23903cat >>confdefs.h <<_ACEOF
23904#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23905_ACEOF
23906
23907
23908
23909# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23910# The cast to long int works around a bug in the HP C Compiler
23911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23913# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023916if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 $as_echo_n "(cached) " >&6
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 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 +000023920
cristy3ed852e2009-09-05 21:47:34 +000023921else
cristy8b350f62009-11-15 23:12:43 +000023922 if test "$ac_cv_type_unsigned_short" = yes; then
23923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023925as_fn_error 77 "cannot compute sizeof (unsigned short)
23926See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023927 else
23928 ac_cv_sizeof_unsigned_short=0
23929 fi
23930fi
cristy8b350f62009-11-15 23:12:43 +000023931
cristy3ed852e2009-09-05 21:47:34 +000023932fi
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23935
23936
23937
23938cat >>confdefs.h <<_ACEOF
23939#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23940_ACEOF
23941
23942
23943
23944# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23945# The cast to long int works around a bug in the HP C Compiler
23946# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23947# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23948# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023950$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023951if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023952 $as_echo_n "(cached) " >&6
23953else
cristy8b350f62009-11-15 23:12:43 +000023954 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 +000023955
cristy3ed852e2009-09-05 21:47:34 +000023956else
cristy8b350f62009-11-15 23:12:43 +000023957 if test "$ac_cv_type_signed_int" = yes; then
23958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023960as_fn_error 77 "cannot compute sizeof (signed int)
23961See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023962 else
23963 ac_cv_sizeof_signed_int=0
23964 fi
23965fi
cristy8b350f62009-11-15 23:12:43 +000023966
cristy3ed852e2009-09-05 21:47:34 +000023967fi
cristy8b350f62009-11-15 23:12:43 +000023968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023969$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23970
23971
23972
23973cat >>confdefs.h <<_ACEOF
23974#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23975_ACEOF
23976
23977
23978
23979# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23980# The cast to long int works around a bug in the HP C Compiler
23981# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23982# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23983# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023985$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023986if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023987 $as_echo_n "(cached) " >&6
23988else
cristy8b350f62009-11-15 23:12:43 +000023989 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 +000023990
cristy3ed852e2009-09-05 21:47:34 +000023991else
cristy8b350f62009-11-15 23:12:43 +000023992 if test "$ac_cv_type_unsigned_int" = yes; then
23993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023995as_fn_error 77 "cannot compute sizeof (unsigned int)
23996See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023997 else
23998 ac_cv_sizeof_unsigned_int=0
23999 fi
24000fi
cristy8b350f62009-11-15 23:12:43 +000024001
cristy3ed852e2009-09-05 21:47:34 +000024002fi
cristy8b350f62009-11-15 23:12:43 +000024003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024004$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24005
24006
24007
24008cat >>confdefs.h <<_ACEOF
24009#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24010_ACEOF
24011
24012
24013
24014# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24015# The cast to long int works around a bug in the HP C Compiler
24016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24018# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024020$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024021if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024022 $as_echo_n "(cached) " >&6
24023else
cristy8b350f62009-11-15 23:12:43 +000024024 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 +000024025
cristy3ed852e2009-09-05 21:47:34 +000024026else
cristy8b350f62009-11-15 23:12:43 +000024027 if test "$ac_cv_type_signed_long" = yes; then
24028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024030as_fn_error 77 "cannot compute sizeof (signed long)
24031See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024032 else
24033 ac_cv_sizeof_signed_long=0
24034 fi
24035fi
cristy8b350f62009-11-15 23:12:43 +000024036
cristy3ed852e2009-09-05 21:47:34 +000024037fi
cristy8b350f62009-11-15 23:12:43 +000024038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024039$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24040
24041
24042
24043cat >>confdefs.h <<_ACEOF
24044#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24045_ACEOF
24046
24047
24048
24049# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24050# The cast to long int works around a bug in the HP C Compiler
24051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24053# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024055$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024056if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024057 $as_echo_n "(cached) " >&6
24058else
cristy8b350f62009-11-15 23:12:43 +000024059 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 +000024060
cristy3ed852e2009-09-05 21:47:34 +000024061else
cristy8b350f62009-11-15 23:12:43 +000024062 if test "$ac_cv_type_unsigned_long" = yes; then
24063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024065as_fn_error 77 "cannot compute sizeof (unsigned long)
24066See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024067 else
24068 ac_cv_sizeof_unsigned_long=0
24069 fi
24070fi
cristy8b350f62009-11-15 23:12:43 +000024071
cristy3ed852e2009-09-05 21:47:34 +000024072fi
cristy8b350f62009-11-15 23:12:43 +000024073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024074$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24075
24076
24077
24078cat >>confdefs.h <<_ACEOF
24079#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24080_ACEOF
24081
24082
24083
24084# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24085# 'signed long long' is not supported then the value defined is zero.
24086# The cast to long int works around a bug in the HP C Compiler
24087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24089# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024091$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024092if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024093 $as_echo_n "(cached) " >&6
24094else
cristy8b350f62009-11-15 23:12:43 +000024095 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 +000024096
cristy3ed852e2009-09-05 21:47:34 +000024097else
cristy8b350f62009-11-15 23:12:43 +000024098 if test "$ac_cv_type_signed_long_long" = yes; then
24099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024101as_fn_error 77 "cannot compute sizeof (signed long long)
24102See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024103 else
24104 ac_cv_sizeof_signed_long_long=0
24105 fi
24106fi
cristy8b350f62009-11-15 23:12:43 +000024107
cristy3ed852e2009-09-05 21:47:34 +000024108fi
cristy8b350f62009-11-15 23:12:43 +000024109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024110$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24111
24112
24113
24114cat >>confdefs.h <<_ACEOF
24115#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24116_ACEOF
24117
24118
24119
24120# Obtain size of a 'unsigned long long' and define as
24121# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24122# supported then the value defined is zero.
24123# The cast to long int works around a bug in the HP C Compiler
24124# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24125# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24126# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024128$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024129if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024130 $as_echo_n "(cached) " >&6
24131else
cristy8b350f62009-11-15 23:12:43 +000024132 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 +000024133
cristy3ed852e2009-09-05 21:47:34 +000024134else
cristy8b350f62009-11-15 23:12:43 +000024135 if test "$ac_cv_type_unsigned_long_long" = yes; then
24136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024138as_fn_error 77 "cannot compute sizeof (unsigned long long)
24139See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024140 else
24141 ac_cv_sizeof_unsigned_long_long=0
24142 fi
24143fi
cristy8b350f62009-11-15 23:12:43 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145fi
cristy8b350f62009-11-15 23:12:43 +000024146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24148
24149
24150
24151cat >>confdefs.h <<_ACEOF
24152#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24153_ACEOF
24154
24155
24156
24157# Obtain size of off_t and define as SIZEOF_OFF_T
24158# The cast to long int works around a bug in the HP C Compiler
24159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24161# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024163$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024164if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024165 $as_echo_n "(cached) " >&6
24166else
cristy8b350f62009-11-15 23:12:43 +000024167 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024168
cristy3ed852e2009-09-05 21:47:34 +000024169else
cristy8b350f62009-11-15 23:12:43 +000024170 if test "$ac_cv_type_off_t" = yes; then
24171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024173as_fn_error 77 "cannot compute sizeof (off_t)
24174See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024175 else
24176 ac_cv_sizeof_off_t=0
24177 fi
24178fi
cristy8b350f62009-11-15 23:12:43 +000024179
cristy3ed852e2009-09-05 21:47:34 +000024180fi
cristy8b350f62009-11-15 23:12:43 +000024181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo "$ac_cv_sizeof_off_t" >&6; }
24183
24184
24185
24186cat >>confdefs.h <<_ACEOF
24187#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24188_ACEOF
24189
24190
24191
24192# Obtain size of size_t and define as SIZEOF_SIZE_T
24193# The cast to long int works around a bug in the HP C Compiler
24194# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24195# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24196# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024199if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024200 $as_echo_n "(cached) " >&6
24201else
cristy8b350f62009-11-15 23:12:43 +000024202 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000024203
cristy3ed852e2009-09-05 21:47:34 +000024204else
cristy8b350f62009-11-15 23:12:43 +000024205 if test "$ac_cv_type_size_t" = yes; then
24206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024208as_fn_error 77 "cannot compute sizeof (size_t)
24209See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024210 else
24211 ac_cv_sizeof_size_t=0
24212 fi
24213fi
cristy8b350f62009-11-15 23:12:43 +000024214
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$ac_cv_sizeof_size_t" >&6; }
24218
24219
24220
24221cat >>confdefs.h <<_ACEOF
24222#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24223_ACEOF
24224
24225
24226
cristy330e9352010-06-01 18:42:49 +000024227# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24228# The cast to long int works around a bug in the HP C Compiler
24229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24231# This bug is HP SR number 8606223364.
24232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24233$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024234if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024235 $as_echo_n "(cached) " >&6
24236else
24237 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24238
24239else
24240 if test "$ac_cv_type_ssize_t" = yes; then
24241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024243as_fn_error 77 "cannot compute sizeof (ssize_t)
24244See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024245 else
24246 ac_cv_sizeof_ssize_t=0
24247 fi
24248fi
24249
24250fi
24251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24252$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24253
24254
24255
24256cat >>confdefs.h <<_ACEOF
24257#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24258_ACEOF
24259
24260
24261
cristy3ed852e2009-09-05 21:47:34 +000024262# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24263# The cast to long int works around a bug in the HP C Compiler
24264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24266# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024269if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024270 $as_echo_n "(cached) " >&6
24271else
cristy8b350f62009-11-15 23:12:43 +000024272 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 +000024273
cristy3ed852e2009-09-05 21:47:34 +000024274else
cristy8b350f62009-11-15 23:12:43 +000024275 if test "$ac_cv_type_unsigned_intp" = yes; then
24276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024278as_fn_error 77 "cannot compute sizeof (unsigned int*)
24279See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024280 else
24281 ac_cv_sizeof_unsigned_intp=0
24282 fi
24283fi
cristy8b350f62009-11-15 23:12:43 +000024284
cristy3ed852e2009-09-05 21:47:34 +000024285fi
cristy8b350f62009-11-15 23:12:43 +000024286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24288
24289
24290
24291cat >>confdefs.h <<_ACEOF
24292#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24293_ACEOF
24294
24295
24296
24297#
24298# Compute sized types for current CPU and compiler options.
24299#
24300
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo_n "checking for signed 8-bit type... " >&6; }
24303INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024304{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24305$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024306
24307
cristy8b350f62009-11-15 23:12:43 +000024308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24310UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024311{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24312$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024313
24314
cristy8b350f62009-11-15 23:12:43 +000024315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo_n "checking for signed 16-bit type... " >&6; }
24317INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024318{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24319$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024320
24321
cristy8b350f62009-11-15 23:12:43 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024323$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24324UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024325{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24326$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024327
24328
cristy8b350f62009-11-15 23:12:43 +000024329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024330$as_echo_n "checking for signed 32-bit type... " >&6; }
24331INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024332INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024333if test $ac_cv_sizeof_signed_int -eq 4; then
24334 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024335 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024336elif test $ac_cv_sizeof_signed_long -eq 4; then
24337 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024338 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024339fi
cristy09b53e12011-10-14 12:47:22 +000024340{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24341$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024342
24343
cristy6d5e20f2011-04-25 13:48:54 +000024344
cristy8b350f62009-11-15 23:12:43 +000024345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024346$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24347UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024348UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024349if test $ac_cv_sizeof_unsigned_int -eq 4; then
24350 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024351 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024352elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24353 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024354 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024355fi
cristy09b53e12011-10-14 12:47:22 +000024356{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24357$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024358
24359
cristy6d5e20f2011-04-25 13:48:54 +000024360
cristy8b350f62009-11-15 23:12:43 +000024361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024362$as_echo_n "checking for signed 64-bit type... " >&6; }
24363INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024364INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024365if test $ac_cv_sizeof_signed_long -eq 8; then
24366 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024367 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024368elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24369 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024370 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024371fi
cristy3a99dcf2011-12-17 01:29:40 +000024372case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024373 mingw* )
24374 INT64_F='"I64"'
24375 ;;
24376esac
cristy09b53e12011-10-14 12:47:22 +000024377{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24378$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024379
24380
cristy6d5e20f2011-04-25 13:48:54 +000024381
cristy8b350f62009-11-15 23:12:43 +000024382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024383$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24384UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024385UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024386if test $ac_cv_sizeof_unsigned_long -eq 8; then
24387 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024388 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024389elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24390 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024391 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024392fi
cristy3a99dcf2011-12-17 01:29:40 +000024393case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024394 mingw* )
24395 UINT64_F='"I64"'
24396 ;;
24397esac
cristy09b53e12011-10-14 12:47:22 +000024398{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24399$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024400
24401
cristy6d5e20f2011-04-25 13:48:54 +000024402
cristy8b350f62009-11-15 23:12:43 +000024403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024404$as_echo_n "checking for unsigned maximum type... " >&6; }
24405UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024406UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024407if test "$UINT64_T" != 'none'; then
24408 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024409 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024410elif test "$UINT32_T" != 'none'; then
24411 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024412 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024413fi
cristy09b53e12011-10-14 12:47:22 +000024414{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24415$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024416
24417
cristy6d5e20f2011-04-25 13:48:54 +000024418
cristy8b350f62009-11-15 23:12:43 +000024419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024420$as_echo_n "checking for pointer difference type... " >&6; }
24421UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024422UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024423if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24424 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024425 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024426elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24427 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024428 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024429fi
cristy09b53e12011-10-14 12:47:22 +000024430{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24431$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024432
24433
cristy6d5e20f2011-04-25 13:48:54 +000024434
cristy8b350f62009-11-15 23:12:43 +000024435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024436$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024438/* end confdefs.h. */
24439
24440int
24441main ()
24442{
24443{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24444 ;
24445 return 0;
24446}
24447_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024448if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024449 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24450$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024451else
cristy09b53e12011-10-14 12:47:22 +000024452 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24453$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024455$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024457/* end confdefs.h. */
24458
24459int
24460main ()
24461{
24462{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24463 ;
24464 return 0;
24465}
24466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024467if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024468 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24469$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024470
cristy8b350f62009-11-15 23:12:43 +000024471$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024472
24473else
cristy09b53e12011-10-14 12:47:22 +000024474 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24475$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024476
cristy8b350f62009-11-15 23:12:43 +000024477$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024478
24479fi
cristy3ed852e2009-09-05 21:47:34 +000024480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24481fi
cristy3ed852e2009-09-05 21:47:34 +000024482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483
24484########
24485#
24486# Check for functions
24487#
24488########
cristy73bd4a52010-10-05 11:24:23 +000024489for ac_header in stdlib.h unistd.h
24490do :
24491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24492ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024493if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024494 cat >>confdefs.h <<_ACEOF
24495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24496_ACEOF
24497
24498fi
24499
24500done
24501
24502for ac_func in getpagesize
24503do :
24504 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024505if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024506 cat >>confdefs.h <<_ACEOF
24507#define HAVE_GETPAGESIZE 1
24508_ACEOF
24509
24510fi
24511done
24512
24513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24514$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024515if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024516 $as_echo_n "(cached) " >&6
24517else
24518 if test "$cross_compiling" = yes; then :
24519 magick_cv_func_mmap_fileio=no
24520else
24521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24522/* end confdefs.h. */
24523$ac_includes_default
24524/* malloc might have been renamed as rpl_malloc. */
24525#undef malloc
24526
24527/*
24528 This test is derived from GNU Autoconf's similar macro.
24529 The purpose of this test is to verify that files may be memory
24530 mapped, and that memory mapping and file I/O are coherent.
24531
24532 The test creates a test file, memory maps the file, updates
24533 the file using the memory map, and then reads the file using
24534 file I/O to verify that the file contains the updates.
24535*/
24536
24537#include <fcntl.h>
24538#include <sys/mman.h>
24539
24540#if !STDC_HEADERS && !HAVE_STDLIB_H
24541char *malloc ();
24542#endif
24543
24544/* This mess was copied from the GNU getpagesize.h. */
24545#if !HAVE_GETPAGESIZE
24546/* Assume that all systems that can run configure have sys/param.h. */
24547# if !HAVE_SYS_PARAM_H
24548# define HAVE_SYS_PARAM_H 1
24549# endif
24550
24551# ifdef _SC_PAGESIZE
24552# define getpagesize() sysconf(_SC_PAGESIZE)
24553# else /* no _SC_PAGESIZE */
24554# if HAVE_SYS_PARAM_H
24555# include <sys/param.h>
24556# ifdef EXEC_PAGESIZE
24557# define getpagesize() EXEC_PAGESIZE
24558# else /* no EXEC_PAGESIZE */
24559# ifdef NBPG
24560# define getpagesize() NBPG * CLSIZE
24561# ifndef CLSIZE
24562# define CLSIZE 1
24563# endif /* no CLSIZE */
24564# else /* no NBPG */
24565# ifdef NBPC
24566# define getpagesize() NBPC
24567# else /* no NBPC */
24568# ifdef PAGESIZE
24569# define getpagesize() PAGESIZE
24570# endif /* PAGESIZE */
24571# endif /* no NBPC */
24572# endif /* no NBPG */
24573# endif /* no EXEC_PAGESIZE */
24574# else /* no HAVE_SYS_PARAM_H */
24575# define getpagesize() 8192 /* punt totally */
24576# endif /* no HAVE_SYS_PARAM_H */
24577# endif /* no _SC_PAGESIZE */
24578
24579#endif /* no HAVE_GETPAGESIZE */
24580
24581int
24582main ()
24583{
24584 char *data, *data2, *data3;
24585 int i, pagesize;
24586 int fd;
24587
24588 pagesize = getpagesize ();
24589
24590 /* First, make a file with some known garbage in it. */
24591 data = (char *) malloc (pagesize);
24592 if (!data)
24593 exit (1);
24594 for (i = 0; i < pagesize; ++i)
24595 *(data + i) = rand ();
24596 umask (0);
24597 fd = creat ("conftest.mmap", 0600);
24598 if (fd < 0)
24599 exit (1);
24600 if (write (fd, data, pagesize) != pagesize)
24601 exit (1);
24602 close (fd);
24603
24604 /* Mmap the file as read/write/shared and verify that we see the
24605 same garbage. */
24606 fd = open ("conftest.mmap", O_RDWR);
24607 if (fd < 0)
24608 exit (1);
24609 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24610 if (data2 == 0)
24611 exit (1);
24612 for (i = 0; i < pagesize; ++i)
24613 if (*(data + i) != *(data2 + i))
24614 exit (1);
24615
24616 /* Finally, make sure that changes to the mapped area
24617 percolate back to the file as seen by read(). */
24618 for (i = 0; i < pagesize; ++i)
24619 *(data2 + i) = *(data2 + i) + 1;
24620 data3 = (char *) malloc (pagesize);
24621 if (!data3)
24622 exit (1);
24623 if (read (fd, data3, pagesize) != pagesize)
24624 exit (1);
24625 for (i = 0; i < pagesize; ++i)
24626 if (*(data2 + i) != *(data3 + i))
24627 exit (1);
24628 close (fd);
24629 exit (0);
24630}
24631_ACEOF
24632if ac_fn_c_try_run "$LINENO"; then :
24633 magick_cv_func_mmap_fileio=yes
24634else
24635 magick_cv_func_mmap_fileio=no
24636fi
24637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24638 conftest.$ac_objext conftest.beam conftest.$ac_ext
24639fi
24640
24641fi
24642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24643$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24644if test $magick_cv_func_mmap_fileio = yes; then
24645
24646$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24647
24648fi
24649rm -f conftest.mmap
24650
cristy8b350f62009-11-15 23:12:43 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024654 $as_echo_n "(cached) " >&6
24655else
cristy8b350f62009-11-15 23:12:43 +000024656 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_func_closedir_void=yes
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024660/* end confdefs.h. */
24661$ac_includes_default
24662#include <$ac_header_dirent>
24663#ifndef __cplusplus
24664int closedir ();
24665#endif
24666
24667int
24668main ()
24669{
24670return closedir (opendir (".")) != 0;
24671 ;
24672 return 0;
24673}
24674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024675if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 ac_cv_func_closedir_void=no
24677else
cristy8b350f62009-11-15 23:12:43 +000024678 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024679fi
cristy8b350f62009-11-15 23:12:43 +000024680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24681 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024682fi
24683
cristy3ed852e2009-09-05 21:47:34 +000024684fi
cristy8b350f62009-11-15 23:12:43 +000024685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024686$as_echo "$ac_cv_func_closedir_void" >&6; }
24687if test $ac_cv_func_closedir_void = yes; then
24688
cristy8b350f62009-11-15 23:12:43 +000024689$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024690
24691fi
24692
cristycd4c5312009-11-22 01:19:08 +000024693
24694
24695
24696 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024697do :
24698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24700"
cristy98dddb52010-11-04 00:30:15 +000024701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024702 cat >>confdefs.h <<_ACEOF
24703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24704_ACEOF
24705
24706fi
24707
24708done
24709
cristycd4c5312009-11-22 01:19:08 +000024710
24711
24712
24713
24714
24715
24716
cristy3ed852e2009-09-05 21:47:34 +000024717for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024718do :
24719 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024720if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024721 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024722#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024723_ACEOF
24724
24725fi
24726done
24727
cristy8b350f62009-11-15 23:12:43 +000024728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024729$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024730if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 $as_echo_n "(cached) " >&6
24732else
cristy8b350f62009-11-15 23:12:43 +000024733 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 ac_cv_func_mmap_fixed_mapped=no
24735else
cristy8b350f62009-11-15 23:12:43 +000024736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024737/* end confdefs.h. */
24738$ac_includes_default
24739/* malloc might have been renamed as rpl_malloc. */
24740#undef malloc
24741
24742/* Thanks to Mike Haertel and Jim Avera for this test.
24743 Here is a matrix of mmap possibilities:
24744 mmap private not fixed
24745 mmap private fixed at somewhere currently unmapped
24746 mmap private fixed at somewhere already mapped
24747 mmap shared not fixed
24748 mmap shared fixed at somewhere currently unmapped
24749 mmap shared fixed at somewhere already mapped
24750 For private mappings, we should verify that changes cannot be read()
24751 back from the file, nor mmap's back from the file at a different
24752 address. (There have been systems where private was not correctly
24753 implemented like the infamous i386 svr4.0, and systems where the
24754 VM page cache was not coherent with the file system buffer cache
24755 like early versions of FreeBSD and possibly contemporary NetBSD.)
24756 For shared mappings, we should conversely verify that changes get
24757 propagated back to all the places they're supposed to be.
24758
24759 Grep wants private fixed already mapped.
24760 The main things grep needs to know about mmap are:
24761 * does it exist and is it safe to write into the mmap'd area
24762 * how to use it (BSD variants) */
24763
24764#include <fcntl.h>
24765#include <sys/mman.h>
24766
24767#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24768char *malloc ();
24769#endif
24770
24771/* This mess was copied from the GNU getpagesize.h. */
24772#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024773# ifdef _SC_PAGESIZE
24774# define getpagesize() sysconf(_SC_PAGESIZE)
24775# else /* no _SC_PAGESIZE */
24776# ifdef HAVE_SYS_PARAM_H
24777# include <sys/param.h>
24778# ifdef EXEC_PAGESIZE
24779# define getpagesize() EXEC_PAGESIZE
24780# else /* no EXEC_PAGESIZE */
24781# ifdef NBPG
24782# define getpagesize() NBPG * CLSIZE
24783# ifndef CLSIZE
24784# define CLSIZE 1
24785# endif /* no CLSIZE */
24786# else /* no NBPG */
24787# ifdef NBPC
24788# define getpagesize() NBPC
24789# else /* no NBPC */
24790# ifdef PAGESIZE
24791# define getpagesize() PAGESIZE
24792# endif /* PAGESIZE */
24793# endif /* no NBPC */
24794# endif /* no NBPG */
24795# endif /* no EXEC_PAGESIZE */
24796# else /* no HAVE_SYS_PARAM_H */
24797# define getpagesize() 8192 /* punt totally */
24798# endif /* no HAVE_SYS_PARAM_H */
24799# endif /* no _SC_PAGESIZE */
24800
24801#endif /* no HAVE_GETPAGESIZE */
24802
24803int
24804main ()
24805{
24806 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024807 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024808 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024809 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024810
24811 pagesize = getpagesize ();
24812
24813 /* First, make a file with some known garbage in it. */
24814 data = (char *) malloc (pagesize);
24815 if (!data)
24816 return 1;
24817 for (i = 0; i < pagesize; ++i)
24818 *(data + i) = rand ();
24819 umask (0);
24820 fd = creat ("conftest.mmap", 0600);
24821 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024822 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024823 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024824 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024825 close (fd);
24826
cristycd4c5312009-11-22 01:19:08 +000024827 /* Next, check that the tail of a page is zero-filled. File must have
24828 non-zero length, otherwise we risk SIGBUS for entire page. */
24829 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24830 if (fd2 < 0)
24831 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024832 cdata2 = "";
24833 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024834 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024835 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024836 if (data2 == MAP_FAILED)
24837 return 6;
24838 for (i = 0; i < pagesize; ++i)
24839 if (*(data2 + i))
24840 return 7;
24841 close (fd2);
24842 if (munmap (data2, pagesize))
24843 return 8;
24844
cristy3ed852e2009-09-05 21:47:34 +000024845 /* Next, try to mmap the file at a fixed address which already has
24846 something else allocated at it. If we can, also make sure that
24847 we see the same garbage. */
24848 fd = open ("conftest.mmap", O_RDWR);
24849 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024850 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024851 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24852 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024853 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024854 for (i = 0; i < pagesize; ++i)
24855 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024856 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024857
24858 /* Finally, make sure that changes to the mapped area do not
24859 percolate back to the file as seen by read(). (This is a bug on
24860 some variants of i386 svr4.0.) */
24861 for (i = 0; i < pagesize; ++i)
24862 *(data2 + i) = *(data2 + i) + 1;
24863 data3 = (char *) malloc (pagesize);
24864 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024865 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024866 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024867 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024868 for (i = 0; i < pagesize; ++i)
24869 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024870 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024871 close (fd);
24872 return 0;
24873}
24874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024875if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 ac_cv_func_mmap_fixed_mapped=yes
24877else
cristy8b350f62009-11-15 23:12:43 +000024878 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024879fi
cristy8b350f62009-11-15 23:12:43 +000024880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24881 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882fi
24883
cristy3ed852e2009-09-05 21:47:34 +000024884fi
cristy8b350f62009-11-15 23:12:43 +000024885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024886$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24887if test $ac_cv_func_mmap_fixed_mapped = yes; then
24888
cristy8b350f62009-11-15 23:12:43 +000024889$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024890
24891fi
cristycd4c5312009-11-22 01:19:08 +000024892rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024893
cristy3ed852e2009-09-05 21:47:34 +000024894for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024895do :
24896 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024897if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024898 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024899#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024900_ACEOF
24901
24902fi
24903
24904done
24905
cristy3ed852e2009-09-05 21:47:34 +000024906for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024907do :
24908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24909ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024910if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024911 cat >>confdefs.h <<_ACEOF
24912#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24913_ACEOF
24914
24915fi
24916done
24917
24918if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024920$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024921if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024922 $as_echo_n "(cached) " >&6
24923else
cristy8b350f62009-11-15 23:12:43 +000024924 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024925 ac_cv_func_fork_works=cross
24926else
cristy8b350f62009-11-15 23:12:43 +000024927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024928/* end confdefs.h. */
24929$ac_includes_default
24930int
24931main ()
24932{
24933
24934 /* By Ruediger Kuhlmann. */
24935 return fork () < 0;
24936
24937 ;
24938 return 0;
24939}
24940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024941if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 ac_cv_func_fork_works=yes
24943else
cristy8b350f62009-11-15 23:12:43 +000024944 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024945fi
cristy8b350f62009-11-15 23:12:43 +000024946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24947 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024948fi
24949
cristy3ed852e2009-09-05 21:47:34 +000024950fi
cristy8b350f62009-11-15 23:12:43 +000024951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024952$as_echo "$ac_cv_func_fork_works" >&6; }
24953
24954else
24955 ac_cv_func_fork_works=$ac_cv_func_fork
24956fi
24957if test "x$ac_cv_func_fork_works" = xcross; then
24958 case $host in
24959 *-*-amigaos* | *-*-msdosdjgpp*)
24960 # Override, as these systems have only a dummy fork() stub
24961 ac_cv_func_fork_works=no
24962 ;;
24963 *)
24964 ac_cv_func_fork_works=yes
24965 ;;
24966 esac
cristy8b350f62009-11-15 23:12:43 +000024967 { $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 +000024968$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24969fi
24970ac_cv_func_vfork_works=$ac_cv_func_vfork
24971if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024974if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 $as_echo_n "(cached) " >&6
24976else
cristy8b350f62009-11-15 23:12:43 +000024977 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024978 ac_cv_func_vfork_works=cross
24979else
cristy8b350f62009-11-15 23:12:43 +000024980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024981/* end confdefs.h. */
24982/* Thanks to Paul Eggert for this test. */
24983$ac_includes_default
24984#include <sys/wait.h>
24985#ifdef HAVE_VFORK_H
24986# include <vfork.h>
24987#endif
24988/* On some sparc systems, changes by the child to local and incoming
24989 argument registers are propagated back to the parent. The compiler
24990 is told about this with #include <vfork.h>, but some compilers
24991 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24992 static variable whose address is put into a register that is
24993 clobbered by the vfork. */
24994static void
24995#ifdef __cplusplus
24996sparc_address_test (int arg)
24997# else
24998sparc_address_test (arg) int arg;
24999#endif
25000{
25001 static pid_t child;
25002 if (!child) {
25003 child = vfork ();
25004 if (child < 0) {
25005 perror ("vfork");
25006 _exit(2);
25007 }
25008 if (!child) {
25009 arg = getpid();
25010 write(-1, "", 0);
25011 _exit (arg);
25012 }
25013 }
25014}
25015
25016int
25017main ()
25018{
25019 pid_t parent = getpid ();
25020 pid_t child;
25021
25022 sparc_address_test (0);
25023
25024 child = vfork ();
25025
25026 if (child == 0) {
25027 /* Here is another test for sparc vfork register problems. This
25028 test uses lots of local variables, at least as many local
25029 variables as main has allocated so far including compiler
25030 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25031 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25032 reuse the register of parent for one of the local variables,
25033 since it will think that parent can't possibly be used any more
25034 in this routine. Assigning to the local variable will thus
25035 munge parent in the parent process. */
25036 pid_t
25037 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25038 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25039 /* Convince the compiler that p..p7 are live; otherwise, it might
25040 use the same hardware register for all 8 local variables. */
25041 if (p != p1 || p != p2 || p != p3 || p != p4
25042 || p != p5 || p != p6 || p != p7)
25043 _exit(1);
25044
25045 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25046 from child file descriptors. If the child closes a descriptor
25047 before it execs or exits, this munges the parent's descriptor
25048 as well. Test for this by closing stdout in the child. */
25049 _exit(close(fileno(stdout)) != 0);
25050 } else {
25051 int status;
25052 struct stat st;
25053
25054 while (wait(&status) != child)
25055 ;
25056 return (
25057 /* Was there some problem with vforking? */
25058 child < 0
25059
25060 /* Did the child fail? (This shouldn't happen.) */
25061 || status
25062
25063 /* Did the vfork/compiler bug occur? */
25064 || parent != getpid()
25065
25066 /* Did the file descriptor bug occur? */
25067 || fstat(fileno(stdout), &st) != 0
25068 );
25069 }
25070}
25071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025072if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025073 ac_cv_func_vfork_works=yes
25074else
cristy8b350f62009-11-15 23:12:43 +000025075 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25078 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025079fi
25080
cristy3ed852e2009-09-05 21:47:34 +000025081fi
cristy8b350f62009-11-15 23:12:43 +000025082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025083$as_echo "$ac_cv_func_vfork_works" >&6; }
25084
25085fi;
25086if test "x$ac_cv_func_fork_works" = xcross; then
25087 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025088 { $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 +000025089$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25090fi
25091
25092if test "x$ac_cv_func_vfork_works" = xyes; then
25093
cristy8b350f62009-11-15 23:12:43 +000025094$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025095
25096else
25097
cristy8b350f62009-11-15 23:12:43 +000025098$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025099
25100fi
25101if test "x$ac_cv_func_fork_works" = xyes; then
25102
cristy8b350f62009-11-15 23:12:43 +000025103$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025104
25105fi
25106
cristy8b350f62009-11-15 23:12:43 +000025107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025109if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025110 $as_echo_n "(cached) " >&6
25111else
cristy8b350f62009-11-15 23:12:43 +000025112 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025113 ac_cv_func_memcmp_working=no
25114else
cristy8b350f62009-11-15 23:12:43 +000025115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025116/* end confdefs.h. */
25117$ac_includes_default
25118int
25119main ()
25120{
25121
25122 /* Some versions of memcmp are not 8-bit clean. */
25123 char c0 = '\100', c1 = '\200', c2 = '\201';
25124 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25125 return 1;
25126
25127 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25128 or more and with at least one buffer not starting on a 4-byte boundary.
25129 William Lewis provided this test program. */
25130 {
25131 char foo[21];
25132 char bar[21];
25133 int i;
25134 for (i = 0; i < 4; i++)
25135 {
25136 char *a = foo + i;
25137 char *b = bar + i;
25138 strcpy (a, "--------01111111");
25139 strcpy (b, "--------10000000");
25140 if (memcmp (a, b, 16) >= 0)
25141 return 1;
25142 }
25143 return 0;
25144 }
25145
25146 ;
25147 return 0;
25148}
25149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025150if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025151 ac_cv_func_memcmp_working=yes
25152else
cristy8b350f62009-11-15 23:12:43 +000025153 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025154fi
cristy8b350f62009-11-15 23:12:43 +000025155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25156 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025157fi
25158
cristy3ed852e2009-09-05 21:47:34 +000025159fi
cristy8b350f62009-11-15 23:12:43 +000025160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025161$as_echo "$ac_cv_func_memcmp_working" >&6; }
25162test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25163 *" memcmp.$ac_objext "* ) ;;
25164 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25165 ;;
25166esac
25167
25168
cristy3ed852e2009-09-05 21:47:34 +000025169for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025170do :
25171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25172ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025174 cat >>confdefs.h <<_ACEOF
25175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25176_ACEOF
25177
25178fi
25179
25180done
25181
cristy8b350f62009-11-15 23:12:43 +000025182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025183$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025184if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025185 $as_echo_n "(cached) " >&6
25186else
25187 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25188 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25189 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025191/* end confdefs.h. */
25192$ac_includes_default
25193#ifdef HAVE_SYS_SELECT_H
25194# include <sys/select.h>
25195#endif
25196#ifdef HAVE_SYS_SOCKET_H
25197# include <sys/socket.h>
25198#endif
25199
25200int
25201main ()
25202{
25203extern int select ($ac_arg1,
25204 $ac_arg234, $ac_arg234, $ac_arg234,
25205 $ac_arg5);
25206 ;
25207 return 0;
25208}
25209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025212fi
cristy3ed852e2009-09-05 21:47:34 +000025213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25214 done
25215 done
25216done
25217# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025218: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025219
25220fi
cristy8b350f62009-11-15 23:12:43 +000025221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025222$as_echo "$ac_cv_func_select_args" >&6; }
25223ac_save_IFS=$IFS; IFS=','
25224set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25225IFS=$ac_save_IFS
25226shift
25227
25228cat >>confdefs.h <<_ACEOF
25229#define SELECT_TYPE_ARG1 $1
25230_ACEOF
25231
25232
25233cat >>confdefs.h <<_ACEOF
25234#define SELECT_TYPE_ARG234 ($2)
25235_ACEOF
25236
25237
25238cat >>confdefs.h <<_ACEOF
25239#define SELECT_TYPE_ARG5 ($3)
25240_ACEOF
25241
25242rm -f conftest*
25243
cristyda16f162011-02-19 23:52:17 +000025244if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025245 $as_echo_n "(cached) " >&6
25246else
25247 ac_cv_func_setvbuf_reversed=no
25248fi
25249
25250
cristy8b350f62009-11-15 23:12:43 +000025251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025252$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025253if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025254 $as_echo_n "(cached) " >&6
25255else
cristy8b350f62009-11-15 23:12:43 +000025256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025257/* end confdefs.h. */
25258#include <sys/types.h>
25259#include <signal.h>
25260
25261int
25262main ()
25263{
25264return *(signal (0, 0)) (0) == 1;
25265 ;
25266 return 0;
25267}
25268_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025269if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025270 ac_cv_type_signal=int
25271else
cristy8b350f62009-11-15 23:12:43 +000025272 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025273fi
cristy3ed852e2009-09-05 21:47:34 +000025274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275fi
cristy8b350f62009-11-15 23:12:43 +000025276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo "$ac_cv_type_signal" >&6; }
25278
25279cat >>confdefs.h <<_ACEOF
25280#define RETSIGTYPE $ac_cv_type_signal
25281_ACEOF
25282
25283
cristy8b350f62009-11-15 23:12:43 +000025284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025286if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 $as_echo_n "(cached) " >&6
25288else
cristy8b350f62009-11-15 23:12:43 +000025289 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 ac_cv_func_strtod=no
25291else
cristy8b350f62009-11-15 23:12:43 +000025292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025293/* end confdefs.h. */
25294
25295$ac_includes_default
25296#ifndef strtod
25297double strtod ();
25298#endif
25299int
25300main()
25301{
25302 {
25303 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25304 char *string = " +69";
25305 char *term;
25306 double value;
25307 value = strtod (string, &term);
25308 if (value != 69 || term != (string + 4))
25309 return 1;
25310 }
25311
25312 {
25313 /* Under Solaris 2.4, strtod returns the wrong value for the
25314 terminating character under some conditions. */
25315 char *string = "NaN";
25316 char *term;
25317 strtod (string, &term);
25318 if (term != string && *(term - 1) == 0)
25319 return 1;
25320 }
25321 return 0;
25322}
25323
25324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025325if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025326 ac_cv_func_strtod=yes
25327else
cristy8b350f62009-11-15 23:12:43 +000025328 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025329fi
cristy8b350f62009-11-15 23:12:43 +000025330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25331 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025332fi
25333
cristy3ed852e2009-09-05 21:47:34 +000025334fi
cristy8b350f62009-11-15 23:12:43 +000025335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025336$as_echo "$ac_cv_func_strtod" >&6; }
25337if test $ac_cv_func_strtod = no; then
25338 case " $LIBOBJS " in
25339 *" strtod.$ac_objext "* ) ;;
25340 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25341 ;;
25342esac
25343
cristy8b350f62009-11-15 23:12:43 +000025344ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025345if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025346
cristy3ed852e2009-09-05 21:47:34 +000025347fi
25348
cristy3ed852e2009-09-05 21:47:34 +000025349if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025352if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025353 $as_echo_n "(cached) " >&6
25354else
25355 ac_check_lib_save_LIBS=$LIBS
25356LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025358/* end confdefs.h. */
25359
25360/* Override any GCC internal prototype to avoid an error.
25361 Use char because int might match the return type of a GCC
25362 builtin and then its argument prototype would still apply. */
25363#ifdef __cplusplus
25364extern "C"
25365#endif
25366char pow ();
25367int
25368main ()
25369{
25370return pow ();
25371 ;
25372 return 0;
25373}
25374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025376 ac_cv_lib_m_pow=yes
25377else
cristy8b350f62009-11-15 23:12:43 +000025378 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025379fi
cristy8b350f62009-11-15 23:12:43 +000025380rm -f core conftest.err conftest.$ac_objext \
25381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025382LIBS=$ac_check_lib_save_LIBS
25383fi
cristy8b350f62009-11-15 23:12:43 +000025384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025385$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025386if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025387 POW_LIB=-lm
25388else
cristy8b350f62009-11-15 23:12:43 +000025389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25391fi
25392
25393fi
25394
25395fi
25396
cristy7d4a1d62011-10-13 15:54:12 +000025397ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25398if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25399 ac_have_decl=1
25400else
25401 ac_have_decl=0
25402fi
25403
25404cat >>confdefs.h <<_ACEOF
25405#define HAVE_DECL_STRERROR_R $ac_have_decl
25406_ACEOF
25407
25408for ac_func in strerror_r
25409do :
25410 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25411if test "x$ac_cv_func_strerror_r" = xyes; then :
25412 cat >>confdefs.h <<_ACEOF
25413#define HAVE_STRERROR_R 1
25414_ACEOF
25415
25416fi
25417done
25418
25419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25420$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25421if ${ac_cv_func_strerror_r_char_p+:} false; then :
25422 $as_echo_n "(cached) " >&6
25423else
25424
25425 ac_cv_func_strerror_r_char_p=no
25426 if test $ac_cv_have_decl_strerror_r = yes; then
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428/* end confdefs.h. */
25429$ac_includes_default
25430int
25431main ()
25432{
25433
25434 char buf[100];
25435 char x = *strerror_r (0, buf, sizeof buf);
25436 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025437 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025438
25439 ;
25440 return 0;
25441}
25442_ACEOF
25443if ac_fn_c_try_compile "$LINENO"; then :
25444 ac_cv_func_strerror_r_char_p=yes
25445fi
25446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 else
25448 # strerror_r is not declared. Choose between
25449 # systems that have relatively inaccessible declarations for the
25450 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25451 # former has a strerror_r that returns char*, while the latter
25452 # has a strerror_r that returns `int'.
25453 # This test should segfault on the DEC system.
25454 if test "$cross_compiling" = yes; then :
25455 :
25456else
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h. */
25459$ac_includes_default
25460 extern char *strerror_r ();
25461int
25462main ()
25463{
25464char buf[100];
25465 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025466 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025467 ;
25468 return 0;
25469}
25470_ACEOF
25471if ac_fn_c_try_run "$LINENO"; then :
25472 ac_cv_func_strerror_r_char_p=yes
25473fi
25474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25475 conftest.$ac_objext conftest.beam conftest.$ac_ext
25476fi
25477
25478 fi
25479
25480fi
25481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25482$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25483if test $ac_cv_func_strerror_r_char_p = yes; then
25484
25485$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25486
25487fi
25488
cristy3ed852e2009-09-05 21:47:34 +000025489for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025490do :
25491 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025492if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025493 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025494#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025495_ACEOF
25496
cristy8b350f62009-11-15 23:12:43 +000025497ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025498if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025499
cristy8b350f62009-11-15 23:12:43 +000025500$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025501
25502fi
25503
25504fi
25505done
25506
25507
25508
cristy161b9262010-03-20 19:34:32 +000025509#
25510# Find math library
25511#
25512MATH_LIBS=''
25513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25514$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025515if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025516 $as_echo_n "(cached) " >&6
25517else
25518 ac_check_lib_save_LIBS=$LIBS
25519LIBS="-lm $LIBS"
25520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521/* end confdefs.h. */
25522
25523/* Override any GCC internal prototype to avoid an error.
25524 Use char because int might match the return type of a GCC
25525 builtin and then its argument prototype would still apply. */
25526#ifdef __cplusplus
25527extern "C"
25528#endif
25529char sqrt ();
25530int
25531main ()
25532{
25533return sqrt ();
25534 ;
25535 return 0;
25536}
25537_ACEOF
25538if ac_fn_c_try_link "$LINENO"; then :
25539 ac_cv_lib_m_sqrt=yes
25540else
25541 ac_cv_lib_m_sqrt=no
25542fi
25543rm -f core conftest.err conftest.$ac_objext \
25544 conftest$ac_exeext conftest.$ac_ext
25545LIBS=$ac_check_lib_save_LIBS
25546fi
25547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25548$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025549if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025550 MATH_LIBS="-lm"
25551fi
25552
25553LIBS="$MATH_LIBS $LIBS"
25554
25555
cristy82b20722011-11-05 21:52:36 +000025556for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025557do :
25558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025561 cat >>confdefs.h <<_ACEOF
25562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25563_ACEOF
25564
25565fi
25566done
25567
25568
cristye43a45e2009-09-28 14:49:00 +000025569#
25570# Check for clock_gettime().
25571#
cristy8b350f62009-11-15 23:12:43 +000025572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025573$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025574if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025575 $as_echo_n "(cached) " >&6
25576else
25577 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025579/* end confdefs.h. */
25580
25581/* Override any GCC internal prototype to avoid an error.
25582 Use char because int might match the return type of a GCC
25583 builtin and then its argument prototype would still apply. */
25584#ifdef __cplusplus
25585extern "C"
25586#endif
25587char clock_gettime ();
25588int
25589main ()
25590{
25591return clock_gettime ();
25592 ;
25593 return 0;
25594}
25595_ACEOF
25596for ac_lib in '' rt; do
25597 if test -z "$ac_lib"; then
25598 ac_res="none required"
25599 else
25600 ac_res=-l$ac_lib
25601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25602 fi
cristy8b350f62009-11-15 23:12:43 +000025603 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025604 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025605fi
cristy8b350f62009-11-15 23:12:43 +000025606rm -f core conftest.err conftest.$ac_objext \
25607 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025608 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025609 break
25610fi
25611done
cristyda16f162011-02-19 23:52:17 +000025612if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025613
cristye43a45e2009-09-28 14:49:00 +000025614else
25615 ac_cv_search_clock_gettime=no
25616fi
25617rm conftest.$ac_ext
25618LIBS=$ac_func_search_save_LIBS
25619fi
cristy8b350f62009-11-15 23:12:43 +000025620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025621$as_echo "$ac_cv_search_clock_gettime" >&6; }
25622ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025623if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25625
25626
cristy8b350f62009-11-15 23:12:43 +000025627$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025628
cristy8b350f62009-11-15 23:12:43 +000025629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025630$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025632/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025633
25634 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025635int
25636main ()
25637{
25638clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025639 ;
25640 return 0;
25641}
25642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025643if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025644
cristy09b53e12011-10-14 12:47:22 +000025645 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25646$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025647
cristy8b350f62009-11-15 23:12:43 +000025648$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025649
25650
25651else
cristy09b53e12011-10-14 12:47:22 +000025652 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25653$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025654
25655fi
cristye43a45e2009-09-28 14:49:00 +000025656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657
25658else
25659
cristy8b350f62009-11-15 23:12:43 +000025660 for ac_func in gettimeofday ftime
25661do :
25662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25663ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025664if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025665 cat >>confdefs.h <<_ACEOF
25666#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25667_ACEOF
25668 break
25669fi
25670done
25671
25672
25673
25674fi
25675
25676
cristy3ed852e2009-09-05 21:47:34 +000025677########
25678#
25679# Check for function prototypes
25680#
25681########
25682
cristy8b350f62009-11-15 23:12:43 +000025683ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025684#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025685"
cristyda16f162011-02-19 23:52:17 +000025686if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025687 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025688else
cristy8b350f62009-11-15 23:12:43 +000025689 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025690fi
25691
cristy3ed852e2009-09-05 21:47:34 +000025692cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025693#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025695ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025696#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025697"
cristyda16f162011-02-19 23:52:17 +000025698if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025699 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025700else
cristy8b350f62009-11-15 23:12:43 +000025701 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025702fi
25703
cristy3ed852e2009-09-05 21:47:34 +000025704cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025705#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025706_ACEOF
25707
25708
cristy8b350f62009-11-15 23:12:43 +000025709ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025710#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025711"
cristyda16f162011-02-19 23:52:17 +000025712if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025713 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025714else
cristy8b350f62009-11-15 23:12:43 +000025715 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025716fi
25717
cristy3ed852e2009-09-05 21:47:34 +000025718cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025719#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025720_ACEOF
25721
25722
cristy8b350f62009-11-15 23:12:43 +000025723ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025724#include <stdio.h>
25725#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025726"
cristyda16f162011-02-19 23:52:17 +000025727if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025728 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025729else
cristy8b350f62009-11-15 23:12:43 +000025730 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025731fi
25732
cristy3ed852e2009-09-05 21:47:34 +000025733cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025734#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025735_ACEOF
25736
25737
cristy3ed852e2009-09-05 21:47:34 +000025738########
25739#
25740# C++ Support Tests (For Magick++)
25741#
25742########
25743have_magick_plus_plus='no'
25744if test "$with_magick_plus_plus" = 'yes'; then
25745 OLIBS="$LIBS"
25746 LIBS=''
25747 ac_ext=cpp
25748ac_cpp='$CXXCPP $CPPFLAGS'
25749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25752
25753
25754 # Full set of headers used...
25755 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25756 # functional iomanip iosfwd iostream iterator list string strstream utility
25757 ac_ext=cpp
25758ac_cpp='$CXXCPP $CPPFLAGS'
25759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25762
25763 ac_ext=cpp
25764ac_cpp='$CXXCPP $CPPFLAGS'
25765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25768if test -z "$CXX"; then
25769 if test -n "$CCC"; then
25770 CXX=$CCC
25771 else
25772 if test -n "$ac_tool_prefix"; then
25773 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25774 do
25775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025779if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025780 $as_echo_n "(cached) " >&6
25781else
25782 if test -n "$CXX"; then
25783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25784else
25785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25786for as_dir in $PATH
25787do
25788 IFS=$as_save_IFS
25789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025794 break 2
25795 fi
25796done
cristy8b350f62009-11-15 23:12:43 +000025797 done
cristy3ed852e2009-09-05 21:47:34 +000025798IFS=$as_save_IFS
25799
25800fi
25801fi
25802CXX=$ac_cv_prog_CXX
25803if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805$as_echo "$CXX" >&6; }
25806else
cristy8b350f62009-11-15 23:12:43 +000025807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025808$as_echo "no" >&6; }
25809fi
25810
25811
25812 test -n "$CXX" && break
25813 done
25814fi
25815if test -z "$CXX"; then
25816 ac_ct_CXX=$CXX
25817 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25818do
25819 # Extract the first word of "$ac_prog", so it can be a program name with args.
25820set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025823if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025824 $as_echo_n "(cached) " >&6
25825else
25826 if test -n "$ac_ct_CXX"; then
25827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25828else
25829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25830for as_dir in $PATH
25831do
25832 IFS=$as_save_IFS
25833 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025836 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838 break 2
25839 fi
25840done
cristy8b350f62009-11-15 23:12:43 +000025841 done
cristy3ed852e2009-09-05 21:47:34 +000025842IFS=$as_save_IFS
25843
25844fi
25845fi
25846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25847if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025849$as_echo "$ac_ct_CXX" >&6; }
25850else
cristy8b350f62009-11-15 23:12:43 +000025851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo "no" >&6; }
25853fi
25854
25855
25856 test -n "$ac_ct_CXX" && break
25857done
25858
25859 if test "x$ac_ct_CXX" = x; then
25860 CXX="g++"
25861 else
25862 case $cross_compiling:$ac_tool_warned in
25863yes:)
cristy8b350f62009-11-15 23:12:43 +000025864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25866ac_tool_warned=yes ;;
25867esac
25868 CXX=$ac_ct_CXX
25869 fi
25870fi
25871
25872 fi
25873fi
25874# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025875$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025876set X $ac_compile
25877ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025878for ac_option in --version -v -V -qversion; do
25879 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025880case "(($ac_try" in
25881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882 *) ac_try_echo=$ac_try;;
25883esac
cristy8b350f62009-11-15 23:12:43 +000025884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25885$as_echo "$ac_try_echo"; } >&5
25886 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025887 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025888 if test -s conftest.err; then
25889 sed '10a\
25890... rest of stderr output deleted ...
25891 10q' conftest.err >conftest.er1
25892 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025893 fi
cristycd4c5312009-11-22 01:19:08 +000025894 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }
25897done
cristy3ed852e2009-09-05 21:47:34 +000025898
cristy8b350f62009-11-15 23:12:43 +000025899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025901if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025902 $as_echo_n "(cached) " >&6
25903else
cristy8b350f62009-11-15 23:12:43 +000025904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025905/* end confdefs.h. */
25906
25907int
25908main ()
25909{
25910#ifndef __GNUC__
25911 choke me
25912#endif
25913
25914 ;
25915 return 0;
25916}
25917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025918if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 ac_compiler_gnu=yes
25920else
cristy8b350f62009-11-15 23:12:43 +000025921 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025922fi
cristy3ed852e2009-09-05 21:47:34 +000025923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25924ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25925
25926fi
cristy8b350f62009-11-15 23:12:43 +000025927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025928$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25929if test $ac_compiler_gnu = yes; then
25930 GXX=yes
25931else
25932 GXX=
25933fi
25934ac_test_CXXFLAGS=${CXXFLAGS+set}
25935ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025937$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025938if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025939 $as_echo_n "(cached) " >&6
25940else
25941 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25942 ac_cxx_werror_flag=yes
25943 ac_cv_prog_cxx_g=no
25944 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025946/* end confdefs.h. */
25947
25948int
25949main ()
25950{
25951
25952 ;
25953 return 0;
25954}
25955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025956if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_prog_cxx_g=yes
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 CXXFLAGS=""
25960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025961/* end confdefs.h. */
25962
25963int
25964main ()
25965{
25966
25967 ;
25968 return 0;
25969}
25970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025971if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025972
cristy8b350f62009-11-15 23:12:43 +000025973else
25974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025975 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025977/* end confdefs.h. */
25978
25979int
25980main ()
25981{
25982
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025989fi
cristy3ed852e2009-09-05 21:47:34 +000025990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25991fi
cristy3ed852e2009-09-05 21:47:34 +000025992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993fi
cristy3ed852e2009-09-05 21:47:34 +000025994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25996fi
cristy8b350f62009-11-15 23:12:43 +000025997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025998$as_echo "$ac_cv_prog_cxx_g" >&6; }
25999if test "$ac_test_CXXFLAGS" = set; then
26000 CXXFLAGS=$ac_save_CXXFLAGS
26001elif test $ac_cv_prog_cxx_g = yes; then
26002 if test "$GXX" = yes; then
26003 CXXFLAGS="-g -O2"
26004 else
26005 CXXFLAGS="-g"
26006 fi
26007else
26008 if test "$GXX" = yes; then
26009 CXXFLAGS="-O2"
26010 else
26011 CXXFLAGS=
26012 fi
26013fi
26014ac_ext=cpp
26015ac_cpp='$CXXCPP $CPPFLAGS'
26016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26019
cristy73bd4a52010-10-05 11:24:23 +000026020depcc="$CXX" am_compiler_list=
26021
26022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26023$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026024if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026025 $as_echo_n "(cached) " >&6
26026else
26027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26028 # We make a subdir and do the tests there. Otherwise we can end up
26029 # making bogus files that we don't know about and never remove. For
26030 # instance it was reported that on HP-UX the gcc test will end up
26031 # making a dummy file named `D' -- because `-MD' means `put the output
26032 # in D'.
cristy7247bba2012-02-05 16:37:27 +000026033 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026034 mkdir conftest.dir
26035 # Copy depcomp to subdir because otherwise we won't find it if we're
26036 # using a relative directory.
26037 cp "$am_depcomp" conftest.dir
26038 cd conftest.dir
26039 # We will build objects and dependencies in a subdirectory because
26040 # it helps to detect inapplicable dependency modes. For instance
26041 # both Tru64's cc and ICC support -MD to output dependencies as a
26042 # side effect of compilation, but ICC will put the dependencies in
26043 # the current directory while Tru64 will put them in the object
26044 # directory.
26045 mkdir sub
26046
26047 am_cv_CXX_dependencies_compiler_type=none
26048 if test "$am_compiler_list" = ""; then
26049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26050 fi
26051 am__universal=false
26052 case " $depcc " in #(
26053 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26054 esac
26055
26056 for depmode in $am_compiler_list; do
26057 # Setup a source with many dependencies, because some compilers
26058 # like to wrap large dependency lists on column 80 (with \), and
26059 # we should not choose a depcomp mode which is confused by this.
26060 #
26061 # We need to recreate these files for each test, as the compiler may
26062 # overwrite some of them when testing with obscure command lines.
26063 # This happens at least with the AIX C compiler.
26064 : > sub/conftest.c
26065 for i in 1 2 3 4 5 6; do
26066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26067 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
26068 # Solaris 8's {/usr,}/bin/sh.
26069 touch sub/conftst$i.h
26070 done
26071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26072
26073 # We check with `-c' and `-o' for the sake of the "dashmstdout"
26074 # mode. It turns out that the SunPro C++ compiler does not properly
26075 # handle `-M -o', and we need to detect this. Also, some Intel
26076 # versions had trouble with output in subdirs
26077 am__obj=sub/conftest.${OBJEXT-o}
26078 am__minus_obj="-o $am__obj"
26079 case $depmode in
26080 gcc)
26081 # This depmode causes a compiler race in universal mode.
26082 test "$am__universal" = false || continue
26083 ;;
26084 nosideeffect)
26085 # after this tag, mechanisms are not by side-effect, so they'll
26086 # only be used when explicitly requested
26087 if test "x$enable_dependency_tracking" = xyes; then
26088 continue
26089 else
26090 break
26091 fi
26092 ;;
cristy7247bba2012-02-05 16:37:27 +000026093 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000026094 # This compiler won't grok `-c -o', but also, the minuso test has
26095 # not run yet. These depmodes are late enough in the game, and
26096 # so weak that their functioning should not be impacted.
26097 am__obj=conftest.${OBJEXT-o}
26098 am__minus_obj=
26099 ;;
26100 none) break ;;
26101 esac
26102 if depmode=$depmode \
26103 source=sub/conftest.c object=$am__obj \
26104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26106 >/dev/null 2>conftest.err &&
26107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26111 # icc doesn't choke on unknown options, it will just issue warnings
26112 # or remarks (even with -Werror). So we grep stderr for any message
26113 # that says an option was ignored or not supported.
26114 # When given -MP, icc 7.0 and 7.1 complain thusly:
26115 # icc: Command line warning: ignoring option '-M'; no argument required
26116 # The diagnosis changed in icc 8.0:
26117 # icc: Command line remark: option '-MP' not supported
26118 if (grep 'ignoring option' conftest.err ||
26119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26120 am_cv_CXX_dependencies_compiler_type=$depmode
26121 break
26122 fi
26123 fi
26124 done
26125
26126 cd ..
26127 rm -rf conftest.dir
26128else
26129 am_cv_CXX_dependencies_compiler_type=none
26130fi
26131
26132fi
26133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26134$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26135CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26136
26137 if
26138 test "x$enable_dependency_tracking" != xno \
26139 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26140 am__fastdepCXX_TRUE=
26141 am__fastdepCXX_FALSE='#'
26142else
26143 am__fastdepCXX_TRUE='#'
26144 am__fastdepCXX_FALSE=
26145fi
26146
26147
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26149$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026150if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026151 $as_echo_n "(cached) " >&6
26152else
26153
26154 ac_ext=cpp
26155ac_cpp='$CXXCPP $CPPFLAGS'
26156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26159
26160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26161/* end confdefs.h. */
26162
26163int f(int x){return 1;}
26164int f(char x){return 1;}
26165int f(bool x){return 1;}
26166
26167int
26168main ()
26169{
26170bool b = true; return f(b);
26171 ;
26172 return 0;
26173}
26174_ACEOF
26175if ac_fn_cxx_try_compile "$LINENO"; then :
26176 ax_cv_cxx_bool=yes
26177else
26178 ax_cv_cxx_bool=no
26179fi
26180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181 ac_ext=cpp
26182ac_cpp='$CXXCPP $CPPFLAGS'
26183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26186
26187
26188fi
26189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26190$as_echo "$ax_cv_cxx_bool" >&6; }
26191if test "$ax_cv_cxx_bool" = yes; then
26192
26193$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26194
26195fi
26196
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26198$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026199if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026200 $as_echo_n "(cached) " >&6
26201else
26202
26203 ac_ext=cpp
26204ac_cpp='$CXXCPP $CPPFLAGS'
26205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26208
26209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26210/* end confdefs.h. */
26211namespace Outer { namespace Inner { int i = 0; }}
26212int
26213main ()
26214{
26215using namespace Outer::Inner; return i;
26216 ;
26217 return 0;
26218}
26219_ACEOF
26220if ac_fn_cxx_try_compile "$LINENO"; then :
26221 ax_cv_cxx_namespaces=yes
26222else
26223 ax_cv_cxx_namespaces=no
26224fi
26225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26226 ac_ext=cpp
26227ac_cpp='$CXXCPP $CPPFLAGS'
26228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26231
26232
26233fi
26234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26235$as_echo "$ax_cv_cxx_namespaces" >&6; }
26236if test "$ax_cv_cxx_namespaces" = yes; then
26237
26238$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26239
26240fi
26241
26242
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26244$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026245if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026246 $as_echo_n "(cached) " >&6
26247else
26248
26249 ac_ext=cpp
26250ac_cpp='$CXXCPP $CPPFLAGS'
26251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26254
26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256/* end confdefs.h. */
26257#include <iostream>
26258 std::istream& is = std::cin;
26259int
26260main ()
26261{
26262
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267if ac_fn_cxx_try_compile "$LINENO"; then :
26268 ax_cv_cxx_have_std_namespace=yes
26269else
26270 ax_cv_cxx_have_std_namespace=no
26271fi
26272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 ac_ext=cpp
26274ac_cpp='$CXXCPP $CPPFLAGS'
26275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26278
26279
26280fi
26281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26282$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26283 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26284
26285$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26286
26287 fi
26288
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26290$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026291if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026292 $as_echo_n "(cached) " >&6
26293else
26294
26295
26296 ac_ext=cpp
26297ac_cpp='$CXXCPP $CPPFLAGS'
26298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26301
26302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303/* end confdefs.h. */
26304#include <iostream>
26305#include <map>
26306#include <iomanip>
26307#include <cmath>
26308#ifdef HAVE_NAMESPACES
26309using namespace std;
26310#endif
26311int
26312main ()
26313{
26314return 0;
26315 ;
26316 return 0;
26317}
26318_ACEOF
26319if ac_fn_cxx_try_compile "$LINENO"; then :
26320 ac_cv_cxx_have_std_libs=yes
26321else
26322 ac_cv_cxx_have_std_libs=no
26323fi
26324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26325 ac_ext=cpp
26326ac_cpp='$CXXCPP $CPPFLAGS'
26327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26330
26331
26332fi
26333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26334$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26335if test "$ac_cv_cxx_have_std_libs" = yes; then
26336
26337$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26338
26339fi
26340
cristy3ed852e2009-09-05 21:47:34 +000026341
26342 OPENMP_CXXFLAGS=
26343 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026344if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 enableval=$enable_openmp;
26346fi
26347
26348 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26350$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026351if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026352 $as_echo_n "(cached) " >&6
26353else
cristy8b350f62009-11-15 23:12:43 +000026354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026356
26357#ifndef _OPENMP
26358 choke me
26359#endif
26360#include <omp.h>
26361int main () { return omp_get_num_threads (); }
26362
26363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026364if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026365 ac_cv_prog_cxx_openmp='none needed'
26366else
cristy8b350f62009-11-15 23:12:43 +000026367 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026368 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26369 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026370 ac_save_CXXFLAGS=$CXXFLAGS
26371 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26373/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026374
26375#ifndef _OPENMP
26376 choke me
26377#endif
26378#include <omp.h>
26379int main () { return omp_get_num_threads (); }
26380
26381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026382if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385rm -f core conftest.err conftest.$ac_objext \
26386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026387 CXXFLAGS=$ac_save_CXXFLAGS
26388 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26389 break
26390 fi
26391 done
26392fi
cristy8b350f62009-11-15 23:12:43 +000026393rm -f core conftest.err conftest.$ac_objext \
26394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026395fi
cristy8b350f62009-11-15 23:12:43 +000026396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026397$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26398 case $ac_cv_prog_cxx_openmp in #(
26399 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026400 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026401 *)
cristy8b350f62009-11-15 23:12:43 +000026402 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026403 esac
26404 fi
26405
26406
26407 ac_ext=c
26408ac_cpp='$CPP $CPPFLAGS'
26409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26411ac_compiler_gnu=$ac_cv_c_compiler_gnu
26412
26413
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26416 if \
cristy964cb7f2010-04-25 23:18:00 +000026417 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026418 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026419 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026420 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026421 have_magick_plus_plus='yes'
26422 else
26423 have_magick_plus_plus='no (failed tests)'
26424 fi
cristy09b53e12011-10-14 12:47:22 +000026425 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26426$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026427 LIBS="$OLIBS"
26428fi
cristy73bd4a52010-10-05 11:24:23 +000026429 if test "$have_magick_plus_plus" = 'yes'; then
26430 WITH_MAGICK_PLUS_PLUS_TRUE=
26431 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26432else
26433 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26434 WITH_MAGICK_PLUS_PLUS_FALSE=
26435fi
26436
cristy3ed852e2009-09-05 21:47:34 +000026437
26438# Only check for delegate libraries in subdirectories if requested.
26439if test "$enable_delegate_build" != 'no'; then
26440 # Check for delegate sub-directories and add -I & -L options as required.
26441 # This presumes that delegates are installed as detailed in the ImageMagick
26442 # README. If delegates are installed in a standard location where the
26443 # compiler will automatically find them then these options should not be
26444 # required.
26445
26446 #
26447 # Most delegates have includes in the same directory as the library, but not all...
26448 #
26449 # Includes
cristy2542fc62011-12-06 17:50:25 +000026450 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026451 if test -d "$builddir/$dir"; then
26452 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26453 else
26454 if test -d "$srcdirfull/$dir"; then
26455 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26456 fi
26457 fi
26458 done
26459
26460 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026461 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026462 if test -d "$builddir/$dir/.libs"; then
26463 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26464 else
26465 if test -d "$srcdirfull/$dir/.libs"; then
26466 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26467 fi
26468 fi
26469 if test -d "$builddir/$dir"; then
26470 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26471 else
26472 if test -d "$srcdirfull/$dir"; then
26473 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26474 fi
26475 fi
26476 done
26477fi
26478
26479# Assume that delegate headers reside under same directory as ImageMagick
26480# installation prefix.
26481MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26482
26483#
26484# Find the X11 RGB database
26485#
cristy8b350f62009-11-15 23:12:43 +000026486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026488if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026489 $as_echo_n "(cached) " >&6
26490else
26491 # Look for the header file in a standard set of common directories.
26492# Check X11 before X11Rn because it is often a symlink to the current release.
26493 for ac_dir in \
26494 /lib/usr/lib/X11 \
26495 /usr/X11/lib \
26496 /usr/X11R4/lib \
26497 /usr/X11R5/lib \
26498 /usr/X11R6/lib \
26499 /usr/X11R7/lib \
26500 /usr/X386/lib \
26501 /usr/XFree86/lib/X11 \
26502 /usr/athena/lib \
26503 /usr/lib \
26504 /usr/lib/X11 \
26505 /usr/lib/X11R4 \
26506 /usr/lib/X11R5 \
26507 /usr/lib/X11R6 \
26508 /usr/lib/X11R7 \
26509 /usr/local/X11/lib \
26510 /usr/local/X11R4/lib \
26511 /usr/local/X11R5/lib \
26512 /usr/local/X11R6/lib \
26513 /usr/local/lib \
26514 /usr/local/lib/X11 \
26515 /usr/local/lib/X11R4 \
26516 /usr/local/lib/X11R5 \
26517 /usr/local/lib/X11R6 \
26518 /usr/local/lib/X11R7 \
26519 /usr/local/x11r5/lib \
26520 /usr/lpp/Xamples/lib \
26521 /usr/openwin/lib \
26522 /usr/openwin/share/lib \
26523 /usr/unsupported/lib \
26524 /usr/x386/lib \
26525 ; do
26526 if test -f "$ac_dir/X11/rgb.txt"; then
26527 im_cv_x_configure="$ac_dir/X11/"
26528 break
26529 elif test -f "$ac_dir/rgb.txt"; then
26530 im_cv_x_configure="$ac_dir/"
26531 break
26532 fi
26533
26534 done
26535fi
cristy8b350f62009-11-15 23:12:43 +000026536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026537$as_echo "$im_cv_x_configure" >&6; }
26538X11_CONFIGURE_PATH="$im_cv_x_configure"
26539case "${build_os}" in
26540 mingw* )
26541 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26542 ;;
26543esac
26544
26545cat >>confdefs.h <<_ACEOF
26546#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26547_ACEOF
26548
26549
26550#
26551# Find OpenMP library
26552#
26553GOMP_LIBS=''
26554if test "$enable_openmp" != 'no'; then
26555 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026556 # Open64 (passes for GCC but uses different OpenMP implementation)
26557 if test "x$GOMP_LIBS" = x ; then
26558 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26560$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26561if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26562 $as_echo_n "(cached) " >&6
26563else
26564 ac_check_lib_save_LIBS=$LIBS
26565LIBS="-lopenmp $LIBS"
26566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567/* end confdefs.h. */
26568
26569/* Override any GCC internal prototype to avoid an error.
26570 Use char because int might match the return type of a GCC
26571 builtin and then its argument prototype would still apply. */
26572#ifdef __cplusplus
26573extern "C"
26574#endif
26575char omp_get_num_procs ();
26576int
26577main ()
26578{
26579return omp_get_num_procs ();
26580 ;
26581 return 0;
26582}
26583_ACEOF
26584if ac_fn_c_try_link "$LINENO"; then :
26585 ac_cv_lib_openmp_omp_get_num_procs=yes
26586else
26587 ac_cv_lib_openmp_omp_get_num_procs=no
26588fi
26589rm -f core conftest.err conftest.$ac_objext \
26590 conftest$ac_exeext conftest.$ac_ext
26591LIBS=$ac_check_lib_save_LIBS
26592fi
26593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26594$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26595if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26596 GOMP_LIBS="-lopenmp"
26597fi
26598
26599 fi
26600 fi
26601 # GCC
26602 if test "x$GOMP_LIBS" = x ; then
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026604$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026605if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026606 $as_echo_n "(cached) " >&6
26607else
26608 ac_check_lib_save_LIBS=$LIBS
26609LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026611/* end confdefs.h. */
26612
26613/* Override any GCC internal prototype to avoid an error.
26614 Use char because int might match the return type of a GCC
26615 builtin and then its argument prototype would still apply. */
26616#ifdef __cplusplus
26617extern "C"
26618#endif
26619char GOMP_parallel_start ();
26620int
26621main ()
26622{
26623return GOMP_parallel_start ();
26624 ;
26625 return 0;
26626}
26627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026629 ac_cv_lib_gomp_GOMP_parallel_start=yes
26630else
cristy8b350f62009-11-15 23:12:43 +000026631 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026632fi
cristy8b350f62009-11-15 23:12:43 +000026633rm -f core conftest.err conftest.$ac_objext \
26634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026635LIBS=$ac_check_lib_save_LIBS
26636fi
cristy8b350f62009-11-15 23:12:43 +000026637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026638$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026639if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026640 GOMP_LIBS="-lgomp"
26641fi
cristy18307f12011-12-30 01:20:16 +000026642
26643 fi
cristy3ed852e2009-09-05 21:47:34 +000026644 else
cristy18307f12011-12-30 01:20:16 +000026645 # Sun CC
26646 if test "x$GOMP_LIBS" = x ; then
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026649if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026650 $as_echo_n "(cached) " >&6
26651else
26652 ac_check_lib_save_LIBS=$LIBS
26653LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026655/* end confdefs.h. */
26656
26657/* Override any GCC internal prototype to avoid an error.
26658 Use char because int might match the return type of a GCC
26659 builtin and then its argument prototype would still apply. */
26660#ifdef __cplusplus
26661extern "C"
26662#endif
26663char sunw_mp_register_warn ();
26664int
26665main ()
26666{
26667return sunw_mp_register_warn ();
26668 ;
26669 return 0;
26670}
26671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026673 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26674else
cristy8b350f62009-11-15 23:12:43 +000026675 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026676fi
cristy8b350f62009-11-15 23:12:43 +000026677rm -f core conftest.err conftest.$ac_objext \
26678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026679LIBS=$ac_check_lib_save_LIBS
26680fi
cristy8b350f62009-11-15 23:12:43 +000026681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026683if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026684 GOMP_LIBS="-lmtsk"
26685fi
cristy18307f12011-12-30 01:20:16 +000026686
26687 fi
26688 # AIX xlc
26689 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026691$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026692if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026693 $as_echo_n "(cached) " >&6
26694else
26695 ac_check_lib_save_LIBS=$LIBS
26696LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026698/* end confdefs.h. */
26699
26700/* Override any GCC internal prototype to avoid an error.
26701 Use char because int might match the return type of a GCC
26702 builtin and then its argument prototype would still apply. */
26703#ifdef __cplusplus
26704extern "C"
26705#endif
26706char _xlsmpFlush ();
26707int
26708main ()
26709{
26710return _xlsmpFlush ();
26711 ;
26712 return 0;
26713}
26714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026716 ac_cv_lib_xlsmp__xlsmpFlush=yes
26717else
cristy8b350f62009-11-15 23:12:43 +000026718 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026719fi
cristy8b350f62009-11-15 23:12:43 +000026720rm -f core conftest.err conftest.$ac_objext \
26721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026722LIBS=$ac_check_lib_save_LIBS
26723fi
cristy8b350f62009-11-15 23:12:43 +000026724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026725$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026726if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026727 GOMP_LIBS="-lxlsmp"
26728fi
cristy18307f12011-12-30 01:20:16 +000026729
26730 fi
26731 # SGI IRIX 6.5 MIPSpro C/C++
26732 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026735if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 $as_echo_n "(cached) " >&6
26737else
26738 ac_check_lib_save_LIBS=$LIBS
26739LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026741/* end confdefs.h. */
26742
26743/* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
26746#ifdef __cplusplus
26747extern "C"
26748#endif
26749char mp_destroy ();
26750int
26751main ()
26752{
26753return mp_destroy ();
26754 ;
26755 return 0;
26756}
26757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026759 ac_cv_lib_mp_mp_destroy=yes
26760else
cristy8b350f62009-11-15 23:12:43 +000026761 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026762fi
cristy8b350f62009-11-15 23:12:43 +000026763rm -f core conftest.err conftest.$ac_objext \
26764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026765LIBS=$ac_check_lib_save_LIBS
26766fi
cristy8b350f62009-11-15 23:12:43 +000026767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026768$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026769if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026770 GOMP_LIBS="-lmp"
26771fi
cristy18307f12011-12-30 01:20:16 +000026772
26773 fi
cristy3ed852e2009-09-05 21:47:34 +000026774 fi
26775 LIBS="$GOMP_LIBS $LIBS"
26776fi
26777
26778
26779#
26780# Find Posix threads library
26781#
26782THREAD_LIBS=''
26783if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26784
26785 if test "x$PTHREAD_LIBS" = "x"; then
26786 case "${host_cpu}-${host_os}" in
26787 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026788
26789
26790
26791ac_ext=c
26792ac_cpp='$CPP $CPPFLAGS'
26793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26795ac_compiler_gnu=$ac_cv_c_compiler_gnu
26796
26797magick_pthread_lib_ok=no
26798
26799LIB=-lc_r
26800save_LIBS="$LIBS"
26801LIBS="$LIBS $LIB"
26802
26803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26804$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26806/* end confdefs.h. */
26807#include <pthread.h>
26808int
26809main ()
26810{
26811 pthread_t th;
26812 pthread_join(th, 0);
26813 pthread_attr_init(0);
26814 pthread_cleanup_push(0, 0);
26815 pthread_create(0,0,0,0);
26816 pthread_cleanup_pop(0);
26817 ;
26818 return 0;
26819}
26820_ACEOF
26821if ac_fn_c_try_link "$LINENO"; then :
26822 magick_pthread_lib_ok=yes
26823fi
26824rm -f core conftest.err conftest.$ac_objext \
26825 conftest$ac_exeext conftest.$ac_ext
26826
26827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26828$as_echo "${magick_pthread_lib_ok}" >&6; }
26829if test "$magick_pthread_lib_ok" = yes
26830then
26831 PTHREAD_LIBS=-lc_r
26832 :
26833else
26834
26835 :
26836fi
26837
26838LIBS="$save_LIBS"
26839
26840ac_ext=c
26841ac_cpp='$CPP $CPPFLAGS'
26842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26844ac_compiler_gnu=$ac_cv_c_compiler_gnu
26845
26846 ;;
cristy3ed852e2009-09-05 21:47:34 +000026847 esac
26848 fi
26849
26850 for lib in pthread pthreads; do
26851 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026852
26853
26854
26855ac_ext=c
26856ac_cpp='$CPP $CPPFLAGS'
26857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26859ac_compiler_gnu=$ac_cv_c_compiler_gnu
26860
26861magick_pthread_lib_ok=no
26862
26863LIB=-l$lib
26864save_LIBS="$LIBS"
26865LIBS="$LIBS $LIB"
26866
26867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26868$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26870/* end confdefs.h. */
26871#include <pthread.h>
26872int
26873main ()
26874{
26875 pthread_t th;
26876 pthread_join(th, 0);
26877 pthread_attr_init(0);
26878 pthread_cleanup_push(0, 0);
26879 pthread_create(0,0,0,0);
26880 pthread_cleanup_pop(0);
26881 ;
26882 return 0;
26883}
26884_ACEOF
26885if ac_fn_c_try_link "$LINENO"; then :
26886 magick_pthread_lib_ok=yes
26887fi
26888rm -f core conftest.err conftest.$ac_objext \
26889 conftest$ac_exeext conftest.$ac_ext
26890
26891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26892$as_echo "${magick_pthread_lib_ok}" >&6; }
26893if test "$magick_pthread_lib_ok" = yes
26894then
26895 PTHREAD_LIBS=-l$lib
26896 :
26897else
26898
26899 :
26900fi
26901
26902LIBS="$save_LIBS"
26903
26904ac_ext=c
26905ac_cpp='$CPP $CPPFLAGS'
26906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26908ac_compiler_gnu=$ac_cv_c_compiler_gnu
26909
26910
cristy3ed852e2009-09-05 21:47:34 +000026911 fi
26912 done
26913
26914 THREAD_LIBS="$PTHREAD_LIBS"
26915 LIBS="$LIBS $THREAD_LIBS"
26916fi
26917
26918
26919#
26920# Check for umem.
26921#
26922have_umem='no'
26923UMEM_LIBS=''
26924if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026927 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26928$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026929 failed=0
26930 passed=0
cristy8b350f62009-11-15 23:12:43 +000026931 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026932if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026933 passed=`expr $passed + 1`
26934else
26935 failed=`expr $failed + 1`
26936fi
26937
26938
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026941if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 $as_echo_n "(cached) " >&6
26943else
26944 ac_check_lib_save_LIBS=$LIBS
26945LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026947/* end confdefs.h. */
26948
26949/* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955char umem_alloc ();
26956int
26957main ()
26958{
26959return umem_alloc ();
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 ac_cv_lib_umem_umem_alloc=yes
26966else
cristy8b350f62009-11-15 23:12:43 +000026967 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026968fi
cristy8b350f62009-11-15 23:12:43 +000026969rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971LIBS=$ac_check_lib_save_LIBS
26972fi
cristy8b350f62009-11-15 23:12:43 +000026973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026975if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 passed=`expr $passed + 1`
26977else
26978 failed=`expr $failed + 1`
26979fi
26980
cristy8b350f62009-11-15 23:12:43 +000026981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026982$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026983if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026984 $as_echo_n "(cached) " >&6
26985else
26986 ac_check_lib_save_LIBS=$LIBS
26987LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026988cat 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 umem_free ();
26998int
26999main ()
27000{
27001return umem_free ();
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 ac_cv_lib_umem_umem_free=yes
27008else
cristy8b350f62009-11-15 23:12:43 +000027009 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027010fi
cristy8b350f62009-11-15 23:12:43 +000027011rm -f core conftest.err conftest.$ac_objext \
27012 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027013LIBS=$ac_check_lib_save_LIBS
27014fi
cristy8b350f62009-11-15 23:12:43 +000027015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027016$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027017if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027018 passed=`expr $passed + 1`
27019else
27020 failed=`expr $failed + 1`
27021fi
27022
cristy8b350f62009-11-15 23:12:43 +000027023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027024$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27025 if test $passed -gt 0; then
27026 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027027 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27028$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027029 have_umem='no (failed tests)'
27030 else
27031 UMEM_LIBS='-lumem'
27032 LIBS="$UMEM_LIBS $LIBS"
27033
cristy8b350f62009-11-15 23:12:43 +000027034$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027035
cristy09b53e12011-10-14 12:47:22 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27037$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027038 have_umem='yes'
27039 fi
27040 else
cristy09b53e12011-10-14 12:47:22 +000027041 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27042$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027043 fi
27044fi
cristy73bd4a52010-10-05 11:24:23 +000027045 if test "$have_umem" = 'yes'; then
27046 HasUMEM_TRUE=
27047 HasUMEM_FALSE='#'
27048else
27049 HasUMEM_TRUE='#'
27050 HasUMEM_FALSE=
27051fi
27052
cristy3ed852e2009-09-05 21:47:34 +000027053
27054
27055#
27056# Add support for ccmalloc memory debugging library if requested
27057#
27058have_ccmalloc='no'
27059CCMALLOC_LIBS=''
27060if test "$enable_ccmalloc" = 'yes'; then
27061 # Extract the first word of "ccmalloc", so it can be a program name with args.
27062set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027065if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027066 $as_echo_n "(cached) " >&6
27067else
27068 case $CCMALLOCDelegate in
27069 [\\/]* | ?:[\\/]*)
27070 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27071 ;;
27072 *)
27073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27074for as_dir in $PATH
27075do
27076 IFS=$as_save_IFS
27077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027080 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082 break 2
27083 fi
27084done
cristy8b350f62009-11-15 23:12:43 +000027085 done
cristy3ed852e2009-09-05 21:47:34 +000027086IFS=$as_save_IFS
27087
27088 ;;
27089esac
27090fi
27091CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27092if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo "$CCMALLOCDelegate" >&6; }
27095else
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo "no" >&6; }
27098fi
27099
27100
27101 if test -n "$CCMALLOCDelegate"; then
27102 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27103 OLIBS="$LIBS"
27104 # Assume that gcc is used with ccmalloc.
27105 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 $as_echo_n "(cached) " >&6
27110else
27111 ac_check_lib_save_LIBS=$LIBS
27112LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027114/* end confdefs.h. */
27115
27116/* Override any GCC internal prototype to avoid an error.
27117 Use char because int might match the return type of a GCC
27118 builtin and then its argument prototype would still apply. */
27119#ifdef __cplusplus
27120extern "C"
27121#endif
27122char ccmalloc_malloc ();
27123int
27124main ()
27125{
27126return ccmalloc_malloc ();
27127 ;
27128 return 0;
27129}
27130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027132 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27133else
cristy8b350f62009-11-15 23:12:43 +000027134 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027135fi
cristy8b350f62009-11-15 23:12:43 +000027136rm -f core conftest.err conftest.$ac_objext \
27137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027138LIBS=$ac_check_lib_save_LIBS
27139fi
cristy8b350f62009-11-15 23:12:43 +000027140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027141$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027142if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27144fi
27145
27146 if test -n "$CCMALLOC_LIBS"; then
27147 LIBS="$OLIBS"
27148 LIBS="$LIBS $CCMALLOC_LIBS"
27149 have_ccmalloc='yes'
27150 else
27151 LIBS="$OLIBS"
27152 fi
27153 fi
27154fi
27155
27156#
27157# Add support for efence memory debugging library if requested
27158#
27159if test "$enable_efence" = 'yes'; then
27160 EFENCE_LIBS='-lefence'
27161 LIBS="$EFENCE_LIBS $LIBS"
27162fi
27163
cristy3ed852e2009-09-05 21:47:34 +000027164
27165#
27166# Check for BZLIB
27167#
27168
27169
27170# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027171if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 withval=$with_bzlib; with_bzlib=$withval
27173else
27174 with_bzlib='yes'
27175fi
27176
27177
27178if test "$with_bzlib" != 'yes'; then
27179 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27180fi
27181
27182have_bzlib='no'
27183if test "$with_bzlib" != 'no'; then
27184 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27186$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027189 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27190$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027191 failed=0
27192 passed=0
27193 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027194 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027195if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027196 passed=`expr $passed + 1`
27197else
27198 failed=`expr $failed + 1`
27199fi
27200
27201
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027204if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 $as_echo_n "(cached) " >&6
27206else
27207 ac_check_lib_save_LIBS=$LIBS
27208LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210/* end confdefs.h. */
27211
27212/* Override any GCC internal prototype to avoid an error.
27213 Use char because int might match the return type of a GCC
27214 builtin and then its argument prototype would still apply. */
27215#ifdef __cplusplus
27216extern "C"
27217#endif
27218char BZ2_bzDecompress ();
27219int
27220main ()
27221{
27222return BZ2_bzDecompress ();
27223 ;
27224 return 0;
27225}
27226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027227if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27229else
cristy8b350f62009-11-15 23:12:43 +000027230 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027231fi
cristy8b350f62009-11-15 23:12:43 +000027232rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027234LIBS=$ac_check_lib_save_LIBS
27235fi
cristy8b350f62009-11-15 23:12:43 +000027236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027238if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 found_libbz=`expr $found_libbz + 1`
27240fi
27241
27242 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027244$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027245if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 $as_echo_n "(cached) " >&6
27247else
27248 ac_check_lib_save_LIBS=$LIBS
27249LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027251/* end confdefs.h. */
27252
27253/* Override any GCC internal prototype to avoid an error.
27254 Use char because int might match the return type of a GCC
27255 builtin and then its argument prototype would still apply. */
27256#ifdef __cplusplus
27257extern "C"
27258#endif
27259char _imp__BZ2_decompress ();
27260int
27261main ()
27262{
27263return _imp__BZ2_decompress ();
27264 ;
27265 return 0;
27266}
27267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27270else
cristy8b350f62009-11-15 23:12:43 +000027271 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027272fi
cristy8b350f62009-11-15 23:12:43 +000027273rm -f core conftest.err conftest.$ac_objext \
27274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027275LIBS=$ac_check_lib_save_LIBS
27276fi
cristy8b350f62009-11-15 23:12:43 +000027277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027279if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027280 found_libbz=`expr $found_libbz + 1`
27281fi
27282
27283 fi
27284 if test $found_libbz -gt 0; then
27285 passed=`expr $passed + 1`
27286 else
27287 failed=`expr $failed + 1`
27288 fi
cristy8b350f62009-11-15 23:12:43 +000027289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027290$as_echo_n "checking if BZLIB package is complete... " >&6; }
27291 if test $passed -gt 0; then
27292 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027293 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27294$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027295 have_bzlib='no (failed tests)'
27296 else
27297 BZLIB_LIBS='-lbz2'
27298 LIBS="$BZLIB_LIBS $LIBS"
27299
cristy8b350f62009-11-15 23:12:43 +000027300$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027301
cristy09b53e12011-10-14 12:47:22 +000027302 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27303$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027304 have_bzlib='yes'
27305 fi
27306 else
cristy09b53e12011-10-14 12:47:22 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27308$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027309 fi
27310fi
cristy73bd4a52010-10-05 11:24:23 +000027311 if test "$have_bzlib" = 'yes'; then
27312 BZLIB_DELEGATE_TRUE=
27313 BZLIB_DELEGATE_FALSE='#'
27314else
27315 BZLIB_DELEGATE_TRUE='#'
27316 BZLIB_DELEGATE_FALSE=
27317fi
27318
cristy3ed852e2009-09-05 21:47:34 +000027319
27320
27321#
27322# Find the X11 include and library directories.
27323#
27324IPC_LIBS=''
27325X11_LIBS=''
27326XEXT_LIBS=''
27327XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027329$as_echo_n "checking for X... " >&6; }
27330
27331
27332# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027333if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027334 withval=$with_x;
27335fi
27336
27337# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27338if test "x$with_x" = xno; then
27339 # The user explicitly disabled X.
27340 have_x=disabled
27341else
27342 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027343 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027344 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027345 $as_echo_n "(cached) " >&6
27346else
27347 # One or both of the vars are not set, and there is no cached value.
27348ac_x_includes=no ac_x_libraries=no
27349rm -f -r conftest.dir
27350if mkdir conftest.dir; then
27351 cd conftest.dir
27352 cat >Imakefile <<'_ACEOF'
27353incroot:
27354 @echo incroot='${INCROOT}'
27355usrlibdir:
27356 @echo usrlibdir='${USRLIBDIR}'
27357libdir:
27358 @echo libdir='${LIBDIR}'
27359_ACEOF
27360 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027361 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027362 for ac_var in incroot usrlibdir libdir; do
27363 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27364 done
27365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27366 for ac_extension in a so sl dylib la dll; do
27367 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27368 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27369 ac_im_usrlibdir=$ac_im_libdir; break
27370 fi
27371 done
27372 # Screen out bogus values from the imake configuration. They are
27373 # bogus both because they are the default anyway, and because
27374 # using them would break gcc on systems where it needs fixed includes.
27375 case $ac_im_incroot in
27376 /usr/include) ac_x_includes= ;;
27377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27378 esac
27379 case $ac_im_usrlibdir in
27380 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27382 esac
27383 fi
27384 cd ..
27385 rm -f -r conftest.dir
27386fi
27387
27388# Standard set of common directories for X headers.
27389# Check X11 before X11Rn because it is often a symlink to the current release.
27390ac_x_header_dirs='
27391/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027392/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027393/usr/X11R6/include
27394/usr/X11R5/include
27395/usr/X11R4/include
27396
27397/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027398/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027399/usr/include/X11R6
27400/usr/include/X11R5
27401/usr/include/X11R4
27402
27403/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027404/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027405/usr/local/X11R6/include
27406/usr/local/X11R5/include
27407/usr/local/X11R4/include
27408
27409/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027410/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027411/usr/local/include/X11R6
27412/usr/local/include/X11R5
27413/usr/local/include/X11R4
27414
27415/usr/X386/include
27416/usr/x386/include
27417/usr/XFree86/include/X11
27418
27419/usr/include
27420/usr/local/include
27421/usr/unsupported/include
27422/usr/athena/include
27423/usr/local/x11r5/include
27424/usr/lpp/Xamples/include
27425
27426/usr/openwin/include
27427/usr/openwin/share/include'
27428
27429if test "$ac_x_includes" = no; then
27430 # Guess where to find include files, by looking for Xlib.h.
27431 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027433/* end confdefs.h. */
27434#include <X11/Xlib.h>
27435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027436if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027437 # We can compile using X headers with no special include directory.
27438ac_x_includes=
27439else
cristyc7083c12009-10-14 03:16:55 +000027440 for ac_dir in $ac_x_header_dirs; do
27441 if test -r "$ac_dir/X11/Xlib.h"; then
27442 ac_x_includes=$ac_dir
27443 break
27444 fi
27445done
27446fi
cristyda16f162011-02-19 23:52:17 +000027447rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027448fi # $ac_x_includes = no
27449
27450if test "$ac_x_libraries" = no; then
27451 # Check for the libraries.
27452 # See if we find them without any special options.
27453 # Don't add to $LIBS permanently.
27454 ac_save_LIBS=$LIBS
27455 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027457/* end confdefs.h. */
27458#include <X11/Xlib.h>
27459int
27460main ()
27461{
27462XrmInitialize ()
27463 ;
27464 return 0;
27465}
27466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027467if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027468 LIBS=$ac_save_LIBS
27469# We can link X programs with no special library path.
27470ac_x_libraries=
27471else
cristy8b350f62009-11-15 23:12:43 +000027472 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027473for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27474do
27475 # Don't even attempt the hair of trying to link an X program!
27476 for ac_extension in a so sl dylib la dll; do
27477 if test -r "$ac_dir/libX11.$ac_extension"; then
27478 ac_x_libraries=$ac_dir
27479 break 2
27480 fi
27481 done
27482done
27483fi
cristy8b350f62009-11-15 23:12:43 +000027484rm -f core conftest.err conftest.$ac_objext \
27485 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027486fi # $ac_x_libraries = no
27487
27488case $ac_x_includes,$ac_x_libraries in #(
27489 no,* | *,no | *\'*)
27490 # Didn't find X, or a directory has "'" in its name.
27491 ac_cv_have_x="have_x=no";; #(
27492 *)
27493 # Record where we found X for the cache.
27494 ac_cv_have_x="have_x=yes\
27495 ac_x_includes='$ac_x_includes'\
27496 ac_x_libraries='$ac_x_libraries'"
27497esac
27498fi
27499;; #(
27500 *) have_x=yes;;
27501 esac
27502 eval "$ac_cv_have_x"
27503fi # $with_x != no
27504
27505if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027507$as_echo "$have_x" >&6; }
27508 no_x=yes
27509else
27510 # If each of the values was on the command line, it overrides each guess.
27511 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27512 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27513 # Update the cache value to reflect the command line values.
27514 ac_cv_have_x="have_x=yes\
27515 ac_x_includes='$x_includes'\
27516 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027518$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27519fi
27520
cristy3ed852e2009-09-05 21:47:34 +000027521if test "$no_x" = yes; then
27522 # Not all programs may use this symbol, but it does not hurt to define it.
27523
cristy8b350f62009-11-15 23:12:43 +000027524$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027525
27526 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27527else
27528 if test -n "$x_includes"; then
27529 X_CFLAGS="$X_CFLAGS -I$x_includes"
27530 fi
27531
27532 # It would also be nice to do this for all -L options, not just this one.
27533 if test -n "$x_libraries"; then
27534 X_LIBS="$X_LIBS -L$x_libraries"
27535 # For Solaris; some versions of Sun CC require a space after -R and
27536 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27539 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27540 ac_xsave_c_werror_flag=$ac_c_werror_flag
27541 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543/* end confdefs.h. */
27544
27545int
27546main ()
27547{
27548
27549 ;
27550 return 0;
27551}
27552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027553if ac_fn_c_try_link "$LINENO"; then :
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027555$as_echo "no" >&6; }
27556 X_LIBS="$X_LIBS -R$x_libraries"
27557else
cristy8b350f62009-11-15 23:12:43 +000027558 LIBS="$ac_xsave_LIBS -R $x_libraries"
27559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027560/* end confdefs.h. */
27561
27562int
27563main ()
27564{
27565
27566 ;
27567 return 0;
27568}
27569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027570if ac_fn_c_try_link "$LINENO"; then :
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo "yes" >&6; }
27573 X_LIBS="$X_LIBS -R $x_libraries"
27574else
cristy8b350f62009-11-15 23:12:43 +000027575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027576$as_echo "neither works" >&6; }
27577fi
cristy8b350f62009-11-15 23:12:43 +000027578rm -f core conftest.err conftest.$ac_objext \
27579 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027580fi
cristy8b350f62009-11-15 23:12:43 +000027581rm -f core conftest.err conftest.$ac_objext \
27582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027583 ac_c_werror_flag=$ac_xsave_c_werror_flag
27584 LIBS=$ac_xsave_LIBS
27585 fi
27586
27587 # Check for system-dependent libraries X programs must link with.
27588 # Do this before checking for the system-independent R6 libraries
27589 # (-lICE), since we may need -lsocket or whatever for X linking.
27590
27591 if test "$ISC" = yes; then
27592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27593 else
27594 # Martyn Johnson says this is needed for Ultrix, if the X
27595 # libraries were built with DECnet support. And Karl Berry says
27596 # the Alpha needs dnet_stub (dnet does not exist).
27597 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027599/* end confdefs.h. */
27600
27601/* Override any GCC internal prototype to avoid an error.
27602 Use char because int might match the return type of a GCC
27603 builtin and then its argument prototype would still apply. */
27604#ifdef __cplusplus
27605extern "C"
27606#endif
27607char XOpenDisplay ();
27608int
27609main ()
27610{
27611return XOpenDisplay ();
27612 ;
27613 return 0;
27614}
27615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027617
cristy8b350f62009-11-15 23:12:43 +000027618else
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027620$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027621if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 $as_echo_n "(cached) " >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027627/* end confdefs.h. */
27628
27629/* Override any GCC internal prototype to avoid an error.
27630 Use char because int might match the return type of a GCC
27631 builtin and then its argument prototype would still apply. */
27632#ifdef __cplusplus
27633extern "C"
27634#endif
27635char dnet_ntoa ();
27636int
27637main ()
27638{
27639return dnet_ntoa ();
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027645 ac_cv_lib_dnet_dnet_ntoa=yes
27646else
cristy8b350f62009-11-15 23:12:43 +000027647 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027648fi
cristy8b350f62009-11-15 23:12:43 +000027649rm -f core conftest.err conftest.$ac_objext \
27650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651LIBS=$ac_check_lib_save_LIBS
27652fi
cristy8b350f62009-11-15 23:12:43 +000027653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027654$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027655if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27657fi
27658
27659 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027661$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027662if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 $as_echo_n "(cached) " >&6
27664else
27665 ac_check_lib_save_LIBS=$LIBS
27666LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027668/* end confdefs.h. */
27669
27670/* Override any GCC internal prototype to avoid an error.
27671 Use char because int might match the return type of a GCC
27672 builtin and then its argument prototype would still apply. */
27673#ifdef __cplusplus
27674extern "C"
27675#endif
27676char dnet_ntoa ();
27677int
27678main ()
27679{
27680return dnet_ntoa ();
27681 ;
27682 return 0;
27683}
27684_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027685if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027686 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27687else
cristy8b350f62009-11-15 23:12:43 +000027688 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027689fi
cristy8b350f62009-11-15 23:12:43 +000027690rm -f core conftest.err conftest.$ac_objext \
27691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027692LIBS=$ac_check_lib_save_LIBS
27693fi
cristy8b350f62009-11-15 23:12:43 +000027694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027695$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027696if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27698fi
27699
27700 fi
27701fi
cristy8b350f62009-11-15 23:12:43 +000027702rm -f core conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027704 LIBS="$ac_xsave_LIBS"
27705
27706 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27707 # to get the SysV transport functions.
27708 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27709 # needs -lnsl.
27710 # The nsl library prevents programs from opening the X display
27711 # on Irix 5.2, according to T.E. Dickey.
27712 # The functions gethostbyname, getservbyname, and inet_addr are
27713 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027714 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027715if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027716
cristy3ed852e2009-09-05 21:47:34 +000027717fi
27718
cristy3ed852e2009-09-05 21:47:34 +000027719 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 $as_echo_n "(cached) " >&6
27724else
27725 ac_check_lib_save_LIBS=$LIBS
27726LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027728/* end confdefs.h. */
27729
27730/* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27733#ifdef __cplusplus
27734extern "C"
27735#endif
27736char gethostbyname ();
27737int
27738main ()
27739{
27740return gethostbyname ();
27741 ;
27742 return 0;
27743}
27744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027746 ac_cv_lib_nsl_gethostbyname=yes
27747else
cristy8b350f62009-11-15 23:12:43 +000027748 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027749fi
cristy8b350f62009-11-15 23:12:43 +000027750rm -f core conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027752LIBS=$ac_check_lib_save_LIBS
27753fi
cristy8b350f62009-11-15 23:12:43 +000027754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027756if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27758fi
27759
27760 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 $as_echo_n "(cached) " >&6
27765else
27766 ac_check_lib_save_LIBS=$LIBS
27767LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027769/* end confdefs.h. */
27770
27771/* Override any GCC internal prototype to avoid an error.
27772 Use char because int might match the return type of a GCC
27773 builtin and then its argument prototype would still apply. */
27774#ifdef __cplusplus
27775extern "C"
27776#endif
27777char gethostbyname ();
27778int
27779main ()
27780{
27781return gethostbyname ();
27782 ;
27783 return 0;
27784}
27785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 ac_cv_lib_bsd_gethostbyname=yes
27788else
cristy8b350f62009-11-15 23:12:43 +000027789 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027790fi
cristy8b350f62009-11-15 23:12:43 +000027791rm -f core conftest.err conftest.$ac_objext \
27792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027793LIBS=$ac_check_lib_save_LIBS
27794fi
cristy8b350f62009-11-15 23:12:43 +000027795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027797if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27799fi
27800
27801 fi
27802 fi
27803
27804 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27805 # socket/setsockopt and other routines are undefined under SCO ODT
27806 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27807 # on later versions), says Simon Leinen: it contains gethostby*
27808 # variants that don't use the name server (or something). -lsocket
27809 # must be given before -lnsl if both are needed. We assume that
27810 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027811 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027812if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027813
cristy3ed852e2009-09-05 21:47:34 +000027814fi
27815
cristy3ed852e2009-09-05 21:47:34 +000027816 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027819if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 $as_echo_n "(cached) " >&6
27821else
27822 ac_check_lib_save_LIBS=$LIBS
27823LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027825/* end confdefs.h. */
27826
27827/* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27830#ifdef __cplusplus
27831extern "C"
27832#endif
27833char connect ();
27834int
27835main ()
27836{
27837return connect ();
27838 ;
27839 return 0;
27840}
27841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027842if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 ac_cv_lib_socket_connect=yes
27844else
cristy8b350f62009-11-15 23:12:43 +000027845 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027846fi
cristy8b350f62009-11-15 23:12:43 +000027847rm -f core conftest.err conftest.$ac_objext \
27848 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849LIBS=$ac_check_lib_save_LIBS
27850fi
cristy8b350f62009-11-15 23:12:43 +000027851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027853if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027854 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27855fi
27856
27857 fi
27858
27859 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027860 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027861if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027862
cristy3ed852e2009-09-05 21:47:34 +000027863fi
27864
cristy3ed852e2009-09-05 21:47:34 +000027865 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027867$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027868if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027869 $as_echo_n "(cached) " >&6
27870else
27871 ac_check_lib_save_LIBS=$LIBS
27872LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027874/* end confdefs.h. */
27875
27876/* Override any GCC internal prototype to avoid an error.
27877 Use char because int might match the return type of a GCC
27878 builtin and then its argument prototype would still apply. */
27879#ifdef __cplusplus
27880extern "C"
27881#endif
27882char remove ();
27883int
27884main ()
27885{
27886return remove ();
27887 ;
27888 return 0;
27889}
27890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027892 ac_cv_lib_posix_remove=yes
27893else
cristy8b350f62009-11-15 23:12:43 +000027894 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027895fi
cristy8b350f62009-11-15 23:12:43 +000027896rm -f core conftest.err conftest.$ac_objext \
27897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027898LIBS=$ac_check_lib_save_LIBS
27899fi
cristy8b350f62009-11-15 23:12:43 +000027900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027901$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027902if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27904fi
27905
27906 fi
27907
27908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027909 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027910if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027911
cristy3ed852e2009-09-05 21:47:34 +000027912fi
27913
cristy3ed852e2009-09-05 21:47:34 +000027914 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027917if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 $as_echo_n "(cached) " >&6
27919else
27920 ac_check_lib_save_LIBS=$LIBS
27921LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027923/* end confdefs.h. */
27924
27925/* Override any GCC internal prototype to avoid an error.
27926 Use char because int might match the return type of a GCC
27927 builtin and then its argument prototype would still apply. */
27928#ifdef __cplusplus
27929extern "C"
27930#endif
27931char shmat ();
27932int
27933main ()
27934{
27935return shmat ();
27936 ;
27937 return 0;
27938}
27939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027940if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 ac_cv_lib_ipc_shmat=yes
27942else
cristy8b350f62009-11-15 23:12:43 +000027943 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027944fi
cristy8b350f62009-11-15 23:12:43 +000027945rm -f core conftest.err conftest.$ac_objext \
27946 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027947LIBS=$ac_check_lib_save_LIBS
27948fi
cristy8b350f62009-11-15 23:12:43 +000027949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027950$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027951if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27953fi
27954
27955 fi
27956 fi
27957
27958 # Check for libraries that X11R6 Xt/Xaw programs need.
27959 ac_save_LDFLAGS=$LDFLAGS
27960 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27961 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27962 # check for ICE first), but we must link in the order -lSM -lICE or
27963 # we get undefined symbols. So assume we have SM if we have ICE.
27964 # These have to be linked with before -lX11, unlike the other
27965 # libraries we check for below, so use a different variable.
27966 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027969if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 $as_echo_n "(cached) " >&6
27971else
27972 ac_check_lib_save_LIBS=$LIBS
27973LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027975/* end confdefs.h. */
27976
27977/* Override any GCC internal prototype to avoid an error.
27978 Use char because int might match the return type of a GCC
27979 builtin and then its argument prototype would still apply. */
27980#ifdef __cplusplus
27981extern "C"
27982#endif
27983char IceConnectionNumber ();
27984int
27985main ()
27986{
27987return IceConnectionNumber ();
27988 ;
27989 return 0;
27990}
27991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 ac_cv_lib_ICE_IceConnectionNumber=yes
27994else
cristy8b350f62009-11-15 23:12:43 +000027995 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027996fi
cristy8b350f62009-11-15 23:12:43 +000027997rm -f core conftest.err conftest.$ac_objext \
27998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027999LIBS=$ac_check_lib_save_LIBS
28000fi
cristy8b350f62009-11-15 23:12:43 +000028001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028002$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028003if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028004 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28005fi
28006
28007 LDFLAGS=$ac_save_LDFLAGS
28008
28009fi
28010
28011if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28013$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028016 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28017$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028018 LDFLAGS="$LDFLAGS $X_LIBS"
28019 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28020 LIBS="$X11_LIBS $LIBS"
28021 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28022
28023
cristy8b350f62009-11-15 23:12:43 +000028024$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028025
28026 #
28027 # Check for X11 shared memory extension
28028 #
28029 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028030 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028031if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 have_shmctl='yes'
28033fi
28034
28035 if test "$have_shmctl" != 'yes'; then
28036 PERSIST_LIBS=$LIBS
28037 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028039/* end confdefs.h. */
28040
28041/* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28044#ifdef __cplusplus
28045extern "C"
28046#endif
28047char shmctl ();
28048int
28049main ()
28050{
28051return shmctl ();
28052 ;
28053 return 0;
28054}
28055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028057 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028058fi
cristy8b350f62009-11-15 23:12:43 +000028059rm -f core conftest.err conftest.$ac_objext \
28060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028061 LIBS=$PERSIST_LIBS
28062 fi
28063
28064 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028066$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028067if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028068 $as_echo_n "(cached) " >&6
28069else
28070 ac_check_lib_save_LIBS=$LIBS
28071LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028073/* end confdefs.h. */
28074
28075/* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28078#ifdef __cplusplus
28079extern "C"
28080#endif
28081char XShmAttach ();
28082int
28083main ()
28084{
28085return XShmAttach ();
28086 ;
28087 return 0;
28088}
28089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028091 ac_cv_lib_Xext_XShmAttach=yes
28092else
cristy8b350f62009-11-15 23:12:43 +000028093 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028094fi
cristy8b350f62009-11-15 23:12:43 +000028095rm -f core conftest.err conftest.$ac_objext \
28096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028097LIBS=$ac_check_lib_save_LIBS
28098fi
cristy8b350f62009-11-15 23:12:43 +000028099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028101if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028102 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028103$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028104
28105fi
28106
28107 fi
28108
28109 #
28110 # Check for X11 shape extension
28111 #
cristy8b350f62009-11-15 23:12:43 +000028112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028113$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028114if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028115 $as_echo_n "(cached) " >&6
28116else
28117 ac_check_lib_save_LIBS=$LIBS
28118LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028120/* end confdefs.h. */
28121
28122/* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
28125#ifdef __cplusplus
28126extern "C"
28127#endif
28128char XShapeCombineMask ();
28129int
28130main ()
28131{
28132return XShapeCombineMask ();
28133 ;
28134 return 0;
28135}
28136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 ac_cv_lib_Xext_XShapeCombineMask=yes
28139else
cristy8b350f62009-11-15 23:12:43 +000028140 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028141fi
cristy8b350f62009-11-15 23:12:43 +000028142rm -f core conftest.err conftest.$ac_objext \
28143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028144LIBS=$ac_check_lib_save_LIBS
28145fi
cristy8b350f62009-11-15 23:12:43 +000028146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028147$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028148if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028150$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028151
28152fi
28153
cristy8b350f62009-11-15 23:12:43 +000028154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028156if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028157 $as_echo_n "(cached) " >&6
28158else
28159 ac_check_lib_save_LIBS=$LIBS
28160LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028162/* end confdefs.h. */
28163
28164/* Override any GCC internal prototype to avoid an error.
28165 Use char because int might match the return type of a GCC
28166 builtin and then its argument prototype would still apply. */
28167#ifdef __cplusplus
28168extern "C"
28169#endif
28170char XtSetEventDispatcher ();
28171int
28172main ()
28173{
28174return XtSetEventDispatcher ();
28175 ;
28176 return 0;
28177}
28178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028179if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028180 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28181else
cristy8b350f62009-11-15 23:12:43 +000028182 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028183fi
cristy8b350f62009-11-15 23:12:43 +000028184rm -f core conftest.err conftest.$ac_objext \
28185 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028186LIBS=$ac_check_lib_save_LIBS
28187fi
cristy8b350f62009-11-15 23:12:43 +000028188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028189$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028190if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028191 XT_LIBS='-lXt'
28192fi
28193
28194 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28195fi
28196if test "$no_x" != 'yes'; then
28197 have_x='yes'
28198else
28199 have_x='no'
28200fi
cristy73bd4a52010-10-05 11:24:23 +000028201 if test "$have_x" = 'yes'; then
28202 X11_DELEGATE_TRUE=
28203 X11_DELEGATE_FALSE='#'
28204else
28205 X11_DELEGATE_TRUE='#'
28206 X11_DELEGATE_FALSE=
28207fi
28208
cristy3ed852e2009-09-05 21:47:34 +000028209
28210
28211
28212
28213#
28214# Check for ZLIB
28215#
28216
28217# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028218if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028219 withval=$with_zlib; with_zlib=$withval
28220else
28221 with_zlib='yes'
28222fi
28223
28224
28225if test "$with_zlib" != 'yes'; then
28226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28227fi
28228
28229have_zlib='no'
28230ZLIB_LIBS=''
28231if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28233$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028236 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28237$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028238 ZLIB_LIBS=''
28239 failed=0
28240 passed=0
cristy8b350f62009-11-15 23:12:43 +000028241 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028242if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028243 passed=`expr $passed + 1`
28244else
28245 failed=`expr $failed + 1`
28246fi
28247
28248
cristy8b350f62009-11-15 23:12:43 +000028249 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028250if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028251 passed=`expr $passed + 1`
28252else
28253 failed=`expr $failed + 1`
28254fi
28255
28256
cristy8b350f62009-11-15 23:12:43 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028258$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028259if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028260 $as_echo_n "(cached) " >&6
28261else
28262 ac_check_lib_save_LIBS=$LIBS
28263LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028265/* end confdefs.h. */
28266
28267/* Override any GCC internal prototype to avoid an error.
28268 Use char because int might match the return type of a GCC
28269 builtin and then its argument prototype would still apply. */
28270#ifdef __cplusplus
28271extern "C"
28272#endif
28273char compress ();
28274int
28275main ()
28276{
28277return compress ();
28278 ;
28279 return 0;
28280}
28281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028282if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028283 ac_cv_lib_z_compress=yes
28284else
cristy8b350f62009-11-15 23:12:43 +000028285 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028286fi
cristy8b350f62009-11-15 23:12:43 +000028287rm -f core conftest.err conftest.$ac_objext \
28288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028289LIBS=$ac_check_lib_save_LIBS
28290fi
cristy8b350f62009-11-15 23:12:43 +000028291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028293if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028294 passed=`expr $passed + 1`
28295else
28296 failed=`expr $failed + 1`
28297fi
28298
cristy8b350f62009-11-15 23:12:43 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 $as_echo_n "(cached) " >&6
28303else
28304 ac_check_lib_save_LIBS=$LIBS
28305LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028307/* end confdefs.h. */
28308
28309/* Override any GCC internal prototype to avoid an error.
28310 Use char because int might match the return type of a GCC
28311 builtin and then its argument prototype would still apply. */
28312#ifdef __cplusplus
28313extern "C"
28314#endif
28315char uncompress ();
28316int
28317main ()
28318{
28319return uncompress ();
28320 ;
28321 return 0;
28322}
28323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 ac_cv_lib_z_uncompress=yes
28326else
cristy8b350f62009-11-15 23:12:43 +000028327 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028328fi
cristy8b350f62009-11-15 23:12:43 +000028329rm -f core conftest.err conftest.$ac_objext \
28330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028331LIBS=$ac_check_lib_save_LIBS
28332fi
cristy8b350f62009-11-15 23:12:43 +000028333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028334$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028335if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028336 passed=`expr $passed + 1`
28337else
28338 failed=`expr $failed + 1`
28339fi
28340
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028343if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 $as_echo_n "(cached) " >&6
28345else
28346 ac_check_lib_save_LIBS=$LIBS
28347LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349/* end confdefs.h. */
28350
28351/* Override any GCC internal prototype to avoid an error.
28352 Use char because int might match the return type of a GCC
28353 builtin and then its argument prototype would still apply. */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char deflate ();
28358int
28359main ()
28360{
28361return deflate ();
28362 ;
28363 return 0;
28364}
28365_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 ac_cv_lib_z_deflate=yes
28368else
cristy8b350f62009-11-15 23:12:43 +000028369 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028370fi
cristy8b350f62009-11-15 23:12:43 +000028371rm -f core conftest.err conftest.$ac_objext \
28372 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028373LIBS=$ac_check_lib_save_LIBS
28374fi
cristy8b350f62009-11-15 23:12:43 +000028375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028376$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028377if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028378 passed=`expr $passed + 1`
28379else
28380 failed=`expr $failed + 1`
28381fi
28382
cristy8b350f62009-11-15 23:12:43 +000028383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028385if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 $as_echo_n "(cached) " >&6
28387else
28388 ac_check_lib_save_LIBS=$LIBS
28389LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028391/* end confdefs.h. */
28392
28393/* Override any GCC internal prototype to avoid an error.
28394 Use char because int might match the return type of a GCC
28395 builtin and then its argument prototype would still apply. */
28396#ifdef __cplusplus
28397extern "C"
28398#endif
28399char inflate ();
28400int
28401main ()
28402{
28403return inflate ();
28404 ;
28405 return 0;
28406}
28407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 ac_cv_lib_z_inflate=yes
28410else
cristy8b350f62009-11-15 23:12:43 +000028411 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028412fi
cristy8b350f62009-11-15 23:12:43 +000028413rm -f core conftest.err conftest.$ac_objext \
28414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028415LIBS=$ac_check_lib_save_LIBS
28416fi
cristy8b350f62009-11-15 23:12:43 +000028417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028418$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028419if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
cristy8b350f62009-11-15 23:12:43 +000028425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028426$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028427if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 $as_echo_n "(cached) " >&6
28429else
28430 ac_check_lib_save_LIBS=$LIBS
28431LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028433/* end confdefs.h. */
28434
28435/* Override any GCC internal prototype to avoid an error.
28436 Use char because int might match the return type of a GCC
28437 builtin and then its argument prototype would still apply. */
28438#ifdef __cplusplus
28439extern "C"
28440#endif
28441char gzseek ();
28442int
28443main ()
28444{
28445return gzseek ();
28446 ;
28447 return 0;
28448}
28449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028450if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 ac_cv_lib_z_gzseek=yes
28452else
cristy8b350f62009-11-15 23:12:43 +000028453 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028454fi
cristy8b350f62009-11-15 23:12:43 +000028455rm -f core conftest.err conftest.$ac_objext \
28456 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028457LIBS=$ac_check_lib_save_LIBS
28458fi
cristy8b350f62009-11-15 23:12:43 +000028459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028460$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028461if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028462 passed=`expr $passed + 1`
28463else
28464 failed=`expr $failed + 1`
28465fi
28466
cristy8b350f62009-11-15 23:12:43 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 $as_echo_n "(cached) " >&6
28471else
28472 ac_check_lib_save_LIBS=$LIBS
28473LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028475/* end confdefs.h. */
28476
28477/* Override any GCC internal prototype to avoid an error.
28478 Use char because int might match the return type of a GCC
28479 builtin and then its argument prototype would still apply. */
28480#ifdef __cplusplus
28481extern "C"
28482#endif
28483char gztell ();
28484int
28485main ()
28486{
28487return gztell ();
28488 ;
28489 return 0;
28490}
28491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 ac_cv_lib_z_gztell=yes
28494else
cristy8b350f62009-11-15 23:12:43 +000028495 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028496fi
cristy8b350f62009-11-15 23:12:43 +000028497rm -f core conftest.err conftest.$ac_objext \
28498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028499LIBS=$ac_check_lib_save_LIBS
28500fi
cristy8b350f62009-11-15 23:12:43 +000028501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028503if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 passed=`expr $passed + 1`
28505else
28506 failed=`expr $failed + 1`
28507fi
28508
cristy8b350f62009-11-15 23:12:43 +000028509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028510$as_echo_n "checking if ZLIB package is complete... " >&6; }
28511 if test $passed -gt 0; then
28512 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28514$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028515 have_zlib='no (failed tests)'
28516 else
28517 ZLIB_LIBS='-lz'
28518 LIBS="$ZLIB_LIBS $LIBS"
28519
cristy8b350f62009-11-15 23:12:43 +000028520$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028521
cristy09b53e12011-10-14 12:47:22 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28523$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028524 have_zlib='yes'
28525 fi
28526 else
cristy09b53e12011-10-14 12:47:22 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28528$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028529 fi
28530fi
cristy73bd4a52010-10-05 11:24:23 +000028531 if test "$have_zlib" = 'yes'; then
28532 ZLIB_DELEGATE_TRUE=
28533 ZLIB_DELEGATE_FALSE='#'
28534else
28535 ZLIB_DELEGATE_TRUE='#'
28536 ZLIB_DELEGATE_FALSE=
28537fi
28538
cristy3ed852e2009-09-05 21:47:34 +000028539
28540
28541#
28542# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28543#
28544LIB_DL=''
28545if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 $as_echo_n "(cached) " >&6
28550else
28551 ac_check_lib_save_LIBS=$LIBS
28552LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028554/* end confdefs.h. */
28555
28556/* Override any GCC internal prototype to avoid an error.
28557 Use char because int might match the return type of a GCC
28558 builtin and then its argument prototype would still apply. */
28559#ifdef __cplusplus
28560extern "C"
28561#endif
28562char dlopen ();
28563int
28564main ()
28565{
28566return dlopen ();
28567 ;
28568 return 0;
28569}
28570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028571if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 ac_cv_lib_dl_dlopen=yes
28573else
cristy8b350f62009-11-15 23:12:43 +000028574 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028575fi
cristy8b350f62009-11-15 23:12:43 +000028576rm -f core conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028578LIBS=$ac_check_lib_save_LIBS
28579fi
cristy8b350f62009-11-15 23:12:43 +000028580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028582if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028583 LIB_DL='-ldl'
28584fi
28585
28586 LIBS="$LIB_DL $LIBS"
28587fi
28588
28589
28590
28591#
28592# Check for Autotrace delegate library.
28593#
28594
28595# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028596if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028597 withval=$with_autotrace; with_autotrace=$withval
28598else
28599 with_autotrace='no'
28600fi
28601
28602
28603if test "$with_autotrace" != 'yes'; then
28604 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28605fi
28606
28607have_autotrace='no'
28608AUTOTRACE_CFLAGS=""
28609AUTOTRACE_LIBS=""
28610AUTOTRACE_PKG=""
28611if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28613$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028614
28615pkg_failed=no
28616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28617$as_echo_n "checking for AUTOTRACE... " >&6; }
28618
28619if test -n "$AUTOTRACE_CFLAGS"; then
28620 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28621 elif test -n "$PKG_CONFIG"; then
28622 if test -n "$PKG_CONFIG" && \
28623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28624 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28625 ac_status=$?
28626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28627 test $ac_status = 0; }; then
28628 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28629else
28630 pkg_failed=yes
28631fi
28632 else
28633 pkg_failed=untried
28634fi
28635if test -n "$AUTOTRACE_LIBS"; then
28636 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28637 elif test -n "$PKG_CONFIG"; then
28638 if test -n "$PKG_CONFIG" && \
28639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28640 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28641 ac_status=$?
28642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643 test $ac_status = 0; }; then
28644 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28645else
28646 pkg_failed=yes
28647fi
28648 else
28649 pkg_failed=untried
28650fi
28651
28652
28653
28654if test $pkg_failed = yes; then
28655
28656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28657 _pkg_short_errors_supported=yes
28658else
28659 _pkg_short_errors_supported=no
28660fi
28661 if test $_pkg_short_errors_supported = yes; then
28662 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28663 else
28664 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28665 fi
28666 # Put the nasty error message in config.log where it belongs
28667 echo "$AUTOTRACE_PKG_ERRORS" >&5
28668
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28670$as_echo "no" >&6; }
28671 have_autotrace=no
28672elif test $pkg_failed = untried; then
28673 have_autotrace=no
28674else
28675 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28676 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28678$as_echo "yes" >&6; }
28679 have_autotrace=yes
28680fi
cristy09b53e12011-10-14 12:47:22 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28682$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028683fi
28684
28685if test "$have_autotrace" = 'yes'; then
28686 failed=0
28687
cristy8b350f62009-11-15 23:12:43 +000028688$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028689
28690 if test "$with_modules" = 'no'; then
28691 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28692 fi
28693fi
28694
cristy73bd4a52010-10-05 11:24:23 +000028695 if test "$have_autotrace" = 'yes'; then
28696 AUTOTRACE_DELEGATE_TRUE=
28697 AUTOTRACE_DELEGATE_FALSE='#'
28698else
28699 AUTOTRACE_DELEGATE_TRUE='#'
28700 AUTOTRACE_DELEGATE_FALSE=
28701fi
28702
cristy3ed852e2009-09-05 21:47:34 +000028703
28704
28705
28706
28707#
28708# Check for Display Postscript delegate library.
28709#
28710
28711# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028712if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028713 withval=$with_dps; with_dps=$withval
28714else
28715 with_dps='yes'
28716fi
28717
28718
28719if test "$with_dps" != 'yes'; then
28720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28721fi
28722
28723have_dps='no'
28724DPS_LIBS=''
28725if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28727$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28731$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028732 failed=0
28733 passed=0
28734 PERSIST_CPPFLAGS="$CPPFLAGS"
28735 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028736 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 +000028737if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028738 passed=`expr $passed + 1`
28739else
28740 failed=`expr $failed + 1`
28741fi
28742
28743
28744 # DPS issues:
28745 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28746 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28747 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28748 # ImageMagick itself doesn't use -lXt.
28749 have_libdps='no'
28750 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028754 $as_echo_n "(cached) " >&6
28755else
28756 ac_check_lib_save_LIBS=$LIBS
28757LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028759/* end confdefs.h. */
28760
28761/* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767char DPSInitialize ();
28768int
28769main ()
28770{
28771return DPSInitialize ();
28772 ;
28773 return 0;
28774}
28775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 ac_cv_lib_dps_DPSInitialize=yes
28778else
cristy8b350f62009-11-15 23:12:43 +000028779 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028780fi
cristy8b350f62009-11-15 23:12:43 +000028781rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028783LIBS=$ac_check_lib_save_LIBS
28784fi
cristy8b350f62009-11-15 23:12:43 +000028785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028786$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028787if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 have_libdps='yes'
28789else
28790 have_libdps='no'
28791fi
28792
28793 if test "$have_libdps" != 'yes'; then
28794 # Unset cache variable so we can try again.
28795 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028798if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028799 $as_echo_n "(cached) " >&6
28800else
28801 ac_check_lib_save_LIBS=$LIBS
28802LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028804/* end confdefs.h. */
28805
28806/* Override any GCC internal prototype to avoid an error.
28807 Use char because int might match the return type of a GCC
28808 builtin and then its argument prototype would still apply. */
28809#ifdef __cplusplus
28810extern "C"
28811#endif
28812char DPSInitialize ();
28813int
28814main ()
28815{
28816return DPSInitialize ();
28817 ;
28818 return 0;
28819}
28820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028822 ac_cv_lib_dps_DPSInitialize=yes
28823else
cristy8b350f62009-11-15 23:12:43 +000028824 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028825fi
cristy8b350f62009-11-15 23:12:43 +000028826rm -f core conftest.err conftest.$ac_objext \
28827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028828LIBS=$ac_check_lib_save_LIBS
28829fi
cristy8b350f62009-11-15 23:12:43 +000028830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028831$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028832if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028833 have_libdps='yes'
28834else
28835 have_libdps='no'
28836fi
28837
28838 if test "$have_libdps" = 'yes'; then
28839 LIBDPS_XT='-lXt'
28840 fi
28841 fi
28842 if test "$have_libdps" = 'yes'; then
28843 passed=`expr $passed + 1`
28844 else
28845 failed=`expr $failed + 1`
28846 fi
cristy8b350f62009-11-15 23:12:43 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028849if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028850 $as_echo_n "(cached) " >&6
28851else
28852 ac_check_lib_save_LIBS=$LIBS
28853LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028855/* end confdefs.h. */
28856
28857/* Override any GCC internal prototype to avoid an error.
28858 Use char because int might match the return type of a GCC
28859 builtin and then its argument prototype would still apply. */
28860#ifdef __cplusplus
28861extern "C"
28862#endif
28863char XDPSPixelsPerPoint ();
28864int
28865main ()
28866{
28867return XDPSPixelsPerPoint ();
28868 ;
28869 return 0;
28870}
28871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028872if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028873 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28874else
cristy8b350f62009-11-15 23:12:43 +000028875 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028876fi
cristy8b350f62009-11-15 23:12:43 +000028877rm -f core conftest.err conftest.$ac_objext \
28878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028879LIBS=$ac_check_lib_save_LIBS
28880fi
cristy8b350f62009-11-15 23:12:43 +000028881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028882$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028883if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 passed=`expr $passed + 1`
28885else
28886 failed=`expr $failed + 1`
28887fi
28888
cristy8b350f62009-11-15 23:12:43 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo_n "checking if DPS package is complete... " >&6; }
28891 if test $passed -gt 0; then
28892 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028893 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28894$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028895 have_dps='no (failed tests)'
28896 CPPFLAGS="$PERSIST_CPPFLAGS"
28897 else
28898 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28899 LIBS="$DPS_LIBS $LIBS"
28900
cristy8b350f62009-11-15 23:12:43 +000028901$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028902
cristy09b53e12011-10-14 12:47:22 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28904$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028905 have_dps='yes'
28906 fi
28907 else
cristy09b53e12011-10-14 12:47:22 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28909$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028910 CPPFLAGS=$PERSIST_CPPFLAGS
28911 fi
28912fi
cristy73bd4a52010-10-05 11:24:23 +000028913 if test "$have_dps" = 'yes'; then
28914 DPS_DELEGATE_TRUE=
28915 DPS_DELEGATE_FALSE='#'
28916else
28917 DPS_DELEGATE_TRUE='#'
28918 DPS_DELEGATE_FALSE=
28919fi
28920
cristy3ed852e2009-09-05 21:47:34 +000028921
28922
28923
28924#
28925# Check for DJVU delegate library.
28926#
28927
28928# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028929if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 withval=$with_djvu; with_djvu=$withval
28931else
28932 with_djvu='yes'
28933fi
28934
28935
28936if test "$with_djvu" != 'yes'; then
28937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28938fi
28939
28940have_djvu='no'
28941DJVU_LIBS=''
28942if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028943 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28944$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28948$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028949 failed=0
28950 passed=0
cristy8b350f62009-11-15 23:12:43 +000028951 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 +000028952if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028953 passed=`expr $passed + 1`
28954else
28955 failed=`expr $failed + 1`
28956fi
28957
28958
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028961if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028962 $as_echo_n "(cached) " >&6
28963else
28964 ac_check_lib_save_LIBS=$LIBS
28965LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028967/* end confdefs.h. */
28968
28969/* Override any GCC internal prototype to avoid an error.
28970 Use char because int might match the return type of a GCC
28971 builtin and then its argument prototype would still apply. */
28972#ifdef __cplusplus
28973extern "C"
28974#endif
28975char ddjvu_context_create ();
28976int
28977main ()
28978{
28979return ddjvu_context_create ();
28980 ;
28981 return 0;
28982}
28983_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028984if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28986else
cristy8b350f62009-11-15 23:12:43 +000028987 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028988fi
cristy8b350f62009-11-15 23:12:43 +000028989rm -f core conftest.err conftest.$ac_objext \
28990 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028991LIBS=$ac_check_lib_save_LIBS
28992fi
cristy8b350f62009-11-15 23:12:43 +000028993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028994$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028995if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028996 passed=`expr $passed + 1`
28997else
28998 failed=`expr $failed + 1`
28999fi
29000
cristy8b350f62009-11-15 23:12:43 +000029001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029002$as_echo_n "checking if DJVU package is complete... " >&6; }
29003 if test $passed -gt 0; then
29004 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029005 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29006$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029007 have_djvu='no (failed tests)'
29008 else
29009 DJVU_LIBS='-ldjvulibre'
29010 LIBS="$DJVU_LIBS $LIBS"
29011
cristy8b350f62009-11-15 23:12:43 +000029012$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029013
cristy09b53e12011-10-14 12:47:22 +000029014 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29015$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029016 have_djvu='yes'
29017 fi
29018 else
cristy09b53e12011-10-14 12:47:22 +000029019 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29020$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029021 fi
29022fi
cristy73bd4a52010-10-05 11:24:23 +000029023 if test "$have_djvu" = 'yes'; then
29024 DJVU_DELEGATE_TRUE=
29025 DJVU_DELEGATE_FALSE='#'
29026else
29027 DJVU_DELEGATE_TRUE='#'
29028 DJVU_DELEGATE_FALSE=
29029fi
29030
cristy3ed852e2009-09-05 21:47:34 +000029031
29032
29033
29034#
cristy430a7312010-01-21 20:44:04 +000029035# Set DejaVu font directory.
29036#
29037
29038# Check whether --with-dejavu-font-dir was given.
29039if test "${with_dejavu_font_dir+set}" = set; then :
29040 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29041else
29042 with_dejavu_font_dir='default'
29043fi
29044
29045
29046if test "$with_dejavu_font_dir" != 'default'; then
29047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29048fi
29049
29050
29051#
cristy3ed852e2009-09-05 21:47:34 +000029052# Check for FFTW delegate library.
29053#
29054
29055# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029056if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029057 withval=$with_fftw; with_fftw=$withval
29058else
29059 with_fftw='yes'
29060fi
29061
29062
29063if test "$with_fftw" != 'yes'; then
29064 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29065fi
29066
cristy81beccd2011-10-03 18:17:24 +000029067have_fftw='no'
29068FFTW_LIBS=''
29069if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29071$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29073$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029074 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29075$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029076 failed=0
29077 passed=0
29078 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29079if test "x$ac_cv_header_fftw3_h" = xyes; then :
29080 passed=`expr $passed + 1`
29081else
29082 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029083fi
29084
cristy81beccd2011-10-03 18:17:24 +000029085
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29087$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29088if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29089 $as_echo_n "(cached) " >&6
29090else
29091 ac_check_lib_save_LIBS=$LIBS
29092LIBS="-lfftw3 $LIBS"
29093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29094/* end confdefs.h. */
29095
29096/* Override any GCC internal prototype to avoid an error.
29097 Use char because int might match the return type of a GCC
29098 builtin and then its argument prototype would still apply. */
29099#ifdef __cplusplus
29100extern "C"
29101#endif
29102char fftw_execute ();
29103int
29104main ()
29105{
29106return fftw_execute ();
29107 ;
29108 return 0;
29109}
29110_ACEOF
29111if ac_fn_c_try_link "$LINENO"; then :
29112 ac_cv_lib_fftw3_fftw_execute=yes
29113else
29114 ac_cv_lib_fftw3_fftw_execute=no
29115fi
29116rm -f core conftest.err conftest.$ac_objext \
29117 conftest$ac_exeext conftest.$ac_ext
29118LIBS=$ac_check_lib_save_LIBS
29119fi
29120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29121$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29122if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29123 passed=`expr $passed + 1`
29124else
29125 failed=`expr $failed + 1`
29126fi
29127
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29129$as_echo_n "checking if FFTW package is complete... " >&6; }
29130 if test $passed -gt 0; then
29131 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029132 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29133$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029134 have_fftw='no (failed tests)'
29135 else
29136 FFTW_LIBS='-lfftw3'
29137 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029138
cristy8b350f62009-11-15 23:12:43 +000029139$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029140
cristy09b53e12011-10-14 12:47:22 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29142$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029143 have_fftw='yes'
29144 fi
29145 else
cristy09b53e12011-10-14 12:47:22 +000029146 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29147$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029148 fi
29149fi
cristy73bd4a52010-10-05 11:24:23 +000029150 if test "$have_fftw" = 'yes'; then
29151 FFTW_DELEGATE_TRUE=
29152 FFTW_DELEGATE_FALSE='#'
29153else
29154 FFTW_DELEGATE_TRUE='#'
29155 FFTW_DELEGATE_FALSE=
29156fi
29157
cristy3ed852e2009-09-05 21:47:34 +000029158
29159
29160
29161#
29162# Check for FlashPIX delegate library.
29163#
29164
29165# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029166if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029167 withval=$with_fpx; with_fpx=$withval
29168else
29169 with_fpx='yes'
29170fi
29171
29172
29173if test "$with_fpx" != 'yes'; then
29174 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29175fi
29176
29177have_fpx='no'
29178FPX_LIBS=''
29179if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029180 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29181$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029183$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029184 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29185$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029186 failed=0
29187 passed=0
29188 ac_ext=cpp
29189ac_cpp='$CXXCPP $CPPFLAGS'
29190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29193
29194
cristy8b350f62009-11-15 23:12:43 +000029195ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029196if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029197 passed=`expr $passed + 1`
29198else
29199 failed=`expr $failed + 1`
29200fi
29201
29202
cristy8b350f62009-11-15 23:12:43 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029204$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029205if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029206 $as_echo_n "(cached) " >&6
29207else
29208 ac_check_lib_save_LIBS=$LIBS
29209LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029211/* end confdefs.h. */
29212
29213/* Override any GCC internal prototype to avoid an error.
29214 Use char because int might match the return type of a GCC
29215 builtin and then its argument prototype would still apply. */
29216#ifdef __cplusplus
29217extern "C"
29218#endif
29219char FPX_OpenImageByFilename ();
29220int
29221main ()
29222{
29223return FPX_OpenImageByFilename ();
29224 ;
29225 return 0;
29226}
29227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029228if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029229 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29230else
cristy8b350f62009-11-15 23:12:43 +000029231 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029232fi
cristy8b350f62009-11-15 23:12:43 +000029233rm -f core conftest.err conftest.$ac_objext \
29234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029235LIBS=$ac_check_lib_save_LIBS
29236fi
cristy8b350f62009-11-15 23:12:43 +000029237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029238$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029239if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 passed=`expr $passed + 1`
29241else
29242 failed=`expr $failed + 1`
29243fi
29244
29245 ac_ext=c
29246ac_cpp='$CPP $CPPFLAGS'
29247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29249ac_compiler_gnu=$ac_cv_c_compiler_gnu
29250
cristy8b350f62009-11-15 23:12:43 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029252$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29253 if test $passed -gt 0; then
29254 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29256$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029257 have_fpx='no (failed tests)'
29258 else
29259 FPX_LIBS='-lfpx'
29260
cristy8b350f62009-11-15 23:12:43 +000029261$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029262
cristy09b53e12011-10-14 12:47:22 +000029263 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29264$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029265 have_fpx='yes'
29266 PERLMAINCC="$CXX"
29267 fi
29268 else
cristy09b53e12011-10-14 12:47:22 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29270$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029271 fi
29272fi
cristy73bd4a52010-10-05 11:24:23 +000029273 if test "$have_fpx" = 'yes'; then
29274 FPX_DELEGATE_TRUE=
29275 FPX_DELEGATE_FALSE='#'
29276else
29277 FPX_DELEGATE_TRUE='#'
29278 FPX_DELEGATE_FALSE=
29279fi
29280
cristy3ed852e2009-09-05 21:47:34 +000029281
29282
29283
29284#
29285# Check for fontconfig delegate library.
29286#
29287
29288# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029289if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 withval=$with_fontconfig; with_fontconfig=$withval
29291else
cristyfc3d0222012-02-07 15:05:57 +000029292 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029293fi
29294
29295
29296if test "$with_fontconfig" != 'yes'; then
29297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29298fi
29299
29300have_fontconfig='no'
29301FONTCONFIG_CFLAGS=""
29302FONTCONFIG_LIBS=""
29303FONTCONFIG_PKG=""
29304if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029305 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29306$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029307
29308pkg_failed=no
29309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29310$as_echo_n "checking for FONTCONFIG... " >&6; }
29311
29312if test -n "$FONTCONFIG_CFLAGS"; then
29313 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29314 elif test -n "$PKG_CONFIG"; then
29315 if test -n "$PKG_CONFIG" && \
29316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29317 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29318 ac_status=$?
29319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29320 test $ac_status = 0; }; then
29321 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29322else
29323 pkg_failed=yes
29324fi
29325 else
29326 pkg_failed=untried
29327fi
29328if test -n "$FONTCONFIG_LIBS"; then
29329 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29330 elif test -n "$PKG_CONFIG"; then
29331 if test -n "$PKG_CONFIG" && \
29332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29333 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29334 ac_status=$?
29335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29336 test $ac_status = 0; }; then
29337 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29338else
29339 pkg_failed=yes
29340fi
29341 else
29342 pkg_failed=untried
29343fi
29344
29345
29346
29347if test $pkg_failed = yes; then
29348
29349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29350 _pkg_short_errors_supported=yes
29351else
29352 _pkg_short_errors_supported=no
29353fi
29354 if test $_pkg_short_errors_supported = yes; then
29355 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29356 else
29357 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29358 fi
29359 # Put the nasty error message in config.log where it belongs
29360 echo "$FONTCONFIG_PKG_ERRORS" >&5
29361
29362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29363$as_echo "no" >&6; }
29364 have_fontconfig=no
29365elif test $pkg_failed = untried; then
29366 have_fontconfig=no
29367else
29368 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29369 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29371$as_echo "yes" >&6; }
29372 have_fontconfig=yes
29373fi
cristy09b53e12011-10-14 12:47:22 +000029374 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29375$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029376fi
29377
29378if test "$have_fontconfig" = 'yes'; then
29379
cristy8b350f62009-11-15 23:12:43 +000029380$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029381
cristyd09bcf92010-03-25 03:04:45 +000029382 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029383 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029384 fi
cristy3ed852e2009-09-05 21:47:34 +000029385fi
29386
cristy73bd4a52010-10-05 11:24:23 +000029387 if test "$have_fontconfig" = 'yes'; then
29388 FONTCONFIG_DELEGATE_TRUE=
29389 FONTCONFIG_DELEGATE_FALSE='#'
29390else
29391 FONTCONFIG_DELEGATE_TRUE='#'
29392 FONTCONFIG_DELEGATE_FALSE=
29393fi
29394
cristy3ed852e2009-09-05 21:47:34 +000029395
29396
29397
29398
29399#
cristy81beccd2011-10-03 18:17:24 +000029400# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029401#
29402
29403# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029404if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029405 withval=$with_freetype; with_freetype=$withval
29406else
29407 with_freetype='yes'
29408fi
29409
29410
cristy81beccd2011-10-03 18:17:24 +000029411
cristy3ed852e2009-09-05 21:47:34 +000029412if test "$with_freetype" != 'yes'; then
29413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29414fi
29415
cristy81beccd2011-10-03 18:17:24 +000029416have_freetype='no'
29417FREETYPE_LIBS=''
29418if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029419 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29420$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29422$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029423 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29424$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029425 failed=0
29426 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029427 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029428 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029429 freetype_config=''
29430 # Allow the user to specify the location of freetype.
29431 if test "$with_freetype" != 'yes'; then
29432 if test -x "${with_freetype}/bin/freetype-config"; then
29433 freetype_config="${with_freetype}/bin/freetype-config"
29434 elif test -x "${with_freetype}"; then
29435 freetype_config=${with_freetype}
29436 fi
29437 fi
29438 if test -z "$freetype_config"; then
29439 # Extract the first word of "freetype-config", so it can be a program name with args.
29440set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29442$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029443if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029444 $as_echo_n "(cached) " >&6
29445else
cristy98ca0f52011-10-08 23:19:10 +000029446 case $freetype_config in
29447 [\\/]* | ?:[\\/]*)
29448 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29449 ;;
29450 *)
29451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029452for as_dir in $PATH
29453do
29454 IFS=$as_save_IFS
29455 test -z "$as_dir" && as_dir=.
29456 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029458 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29460 break 2
29461 fi
29462done
29463 done
29464IFS=$as_save_IFS
29465
cristy98ca0f52011-10-08 23:19:10 +000029466 ;;
29467esac
cristy81beccd2011-10-03 18:17:24 +000029468fi
cristy98ca0f52011-10-08 23:19:10 +000029469freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029470if test -n "$freetype_config"; then
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29472$as_echo "$freetype_config" >&6; }
29473else
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29475$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029476fi
29477
cristy98ca0f52011-10-08 23:19:10 +000029478 fi
29479 if test -n "$freetype_config"; then
29480 freetype_prefix=`${freetype_config} --prefix`
29481 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29482 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29483 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029484 fi
29485
29486 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029488$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29489if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29490 $as_echo_n "(cached) " >&6
29491else
29492 ac_check_lib_save_LIBS=$LIBS
29493LIBS="-lfreetype $LIBS"
29494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495/* end confdefs.h. */
29496
29497/* Override any GCC internal prototype to avoid an error.
29498 Use char because int might match the return type of a GCC
29499 builtin and then its argument prototype would still apply. */
29500#ifdef __cplusplus
29501extern "C"
29502#endif
29503char FT_Init_FreeType ();
29504int
29505main ()
29506{
29507return FT_Init_FreeType ();
29508 ;
29509 return 0;
29510}
29511_ACEOF
29512if ac_fn_c_try_link "$LINENO"; then :
29513 ac_cv_lib_freetype_FT_Init_FreeType=yes
29514else
29515 ac_cv_lib_freetype_FT_Init_FreeType=no
29516fi
29517rm -f core conftest.err conftest.$ac_objext \
29518 conftest$ac_exeext conftest.$ac_ext
29519LIBS=$ac_check_lib_save_LIBS
29520fi
29521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29522$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29523if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29524 FREETYPE_LIBS='-lfreetype'
29525fi
29526
cristy98ca0f52011-10-08 23:19:10 +000029527 if test "$FREETYPE_LIBS" != ''; then
29528 passed=`expr $passed + 1`
29529 else
29530 failed=`expr $failed + 1`
29531 LDFLAGS="$PERSIST_LDFLAGS"
29532 fi
cristy81beccd2011-10-03 18:17:24 +000029533 fi
29534
29535 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29536if test "x$ac_cv_header_ft2build_h" = xyes; then :
29537 FT2BUILD_H='#include <ft2build.h>'
29538else
29539 ft2build=''
29540fi
29541
29542
29543 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29544"
29545if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29546 have_freetype_h='yes'
29547else
29548 have_freetype_h='no'
29549fi
29550
29551
cristy98ca0f52011-10-08 23:19:10 +000029552 if test "$have_freetype_h" = 'yes'; then
29553 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029554 else
cristy98ca0f52011-10-08 23:19:10 +000029555 failed=`expr $failed + 1`
29556 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029557 fi
29558
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29560$as_echo_n "checking if FreeType package is complete... " >&6; }
29561 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029562 if test $failed -gt 0; then
29563 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029564 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29565$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029566 have_freetype='no (failed tests)'
29567 else
29568 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029569
cristy8b350f62009-11-15 23:12:43 +000029570$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029571
cristy98ca0f52011-10-08 23:19:10 +000029572 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029573
29574$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29575
cristy81beccd2011-10-03 18:17:24 +000029576 fi
cristy09b53e12011-10-14 12:47:22 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29578$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029579 have_freetype='yes'
29580 fi
cristy81beccd2011-10-03 18:17:24 +000029581 else
cristy09b53e12011-10-14 12:47:22 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29583$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029584 fi
29585fi
cristy73bd4a52010-10-05 11:24:23 +000029586 if test "$have_freetype" = 'yes'; then
29587 FREETYPE_DELEGATE_TRUE=
29588 FREETYPE_DELEGATE_FALSE='#'
29589else
29590 FREETYPE_DELEGATE_TRUE='#'
29591 FREETYPE_DELEGATE_FALSE=
29592fi
29593
cristy3ed852e2009-09-05 21:47:34 +000029594
29595
29596
cristy3ed852e2009-09-05 21:47:34 +000029597#
29598# Check for Ghostscript library or framework.
29599#
29600# Test for iapi.h & test for gsapi_new_instance in -lgs
29601# or -framework Ghostscript
29602
29603
29604# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029605if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 withval=$with_gslib; with_gslib=$withval
29607else
29608 with_gslib='no'
29609fi
29610
29611
cristyb7931f12009-09-25 10:22:21 +000029612gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029613if test "$with_gslib" != 'yes'; then
29614 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29615fi
29616
29617have_gslib='no'
29618GS_LIBS=''
29619if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029620 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29621$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29625$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029626 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029627 failed=0
29628 passed=0
cristy8b350f62009-11-15 23:12:43 +000029629 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 +000029630if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 passed=`expr $passed + 1`
29632else
29633 failed=`expr $failed + 1`
29634fi
29635
29636
cristy8b350f62009-11-15 23:12:43 +000029637 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 +000029638if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029639 passed=`expr $passed + 1`
29640else
29641 failed=`expr $failed + 1`
29642fi
29643
29644
cristy73bd4a52010-10-05 11:24:23 +000029645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29646$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029647if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029648 $as_echo_n "(cached) " >&6
29649else
29650 ac_check_framework_save_LIBS=$LIBS
29651LIBS="-framework Ghostscript $LIBS"
29652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29653/* end confdefs.h. */
29654
29655/* Override any GCC internal prototype to avoid an error.
29656 Use char because int might match the return type of a GCC
29657 builtin and then its argument prototype would still apply. */
29658#ifdef __cplusplus
29659extern "C"
29660#endif
29661char gsapi_new_instance ();
29662int
29663main ()
29664{
29665return gsapi_new_instance ();
29666 ;
29667 return 0;
29668}
29669_ACEOF
29670if ac_fn_c_try_link "$LINENO"; then :
29671 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29672else
29673 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29674fi
29675rm -f core conftest.err conftest.$ac_objext \
29676 conftest$ac_exeext conftest.$ac_ext
29677LIBS=$ac_check_framework_save_LIBS
29678fi
29679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29680$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29681if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29682 framework=`expr $framework + 1`
29683else
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029685$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029686if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029687 $as_echo_n "(cached) " >&6
29688else
29689 ac_check_lib_save_LIBS=$LIBS
29690LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029692/* end confdefs.h. */
29693
29694/* Override any GCC internal prototype to avoid an error.
29695 Use char because int might match the return type of a GCC
29696 builtin and then its argument prototype would still apply. */
29697#ifdef __cplusplus
29698extern "C"
29699#endif
29700char gsapi_new_instance ();
29701int
29702main ()
29703{
29704return gsapi_new_instance ();
29705 ;
29706 return 0;
29707}
29708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 ac_cv_lib_gs_gsapi_new_instance=yes
29711else
cristy8b350f62009-11-15 23:12:43 +000029712 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029713fi
cristy8b350f62009-11-15 23:12:43 +000029714rm -f core conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029716LIBS=$ac_check_lib_save_LIBS
29717fi
cristy8b350f62009-11-15 23:12:43 +000029718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029719$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029720if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029721 passed=`expr $passed + 1`
29722else
29723 failed=`expr $failed + 1`
29724fi
cristy73bd4a52010-10-05 11:24:23 +000029725
29726fi
cristy8b350f62009-11-15 23:12:43 +000029727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029728$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29729 if test $passed -gt 0; then
29730 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29732$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029733 have_gslib='no (failed tests)'
29734 else
29735 if test $framework -gt 0; then
29736 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029737 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029738 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29739$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029740 else
cristy09b53e12011-10-14 12:47:22 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29742$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029743 GS_LIBS='-lgs'
29744 fi
29745 LIBS="$GS_LIBS $LIBS"
29746
cristy8b350f62009-11-15 23:12:43 +000029747$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029748
29749 have_gslib='yes'
29750 fi
29751 else
cristy09b53e12011-10-14 12:47:22 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29753$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029754 fi
29755fi
cristy73bd4a52010-10-05 11:24:23 +000029756 if test "$have_gslib" = 'yes'; then
29757 GS_DELEGATE_TRUE=
29758 GS_DELEGATE_FALSE='#'
29759else
29760 GS_DELEGATE_TRUE='#'
29761 GS_DELEGATE_FALSE=
29762fi
29763
cristy3ed852e2009-09-05 21:47:34 +000029764
29765
29766# Set default font search path
29767
29768# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029769if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 withval=$with_fontpath; with_fontpath=$withval
29771else
29772 with_fontpath=''
29773fi
29774
29775
29776if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29777 with_fontpath=''
29778else
29779
29780cat >>confdefs.h <<_ACEOF
29781#define MAGICK_FONT_PATH "$with_fontpath"
29782_ACEOF
29783
29784fi
29785if test "$with_fontpath=" != ''; then
29786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29787fi
29788
29789# Set Ghostscript font directory
29790
29791# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029792if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029793 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29794else
29795 with_gs_font_dir='default'
29796fi
29797
29798
29799if test "$with_gs_font_dir" != 'default'; then
29800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29801fi
29802
29803
29804#
29805# Check for GVC delegate library.
29806#
29807
29808# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029809if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 withval=$with_gvc; with_gvc=$withval
29811else
cristy1b70dc82012-07-01 23:15:05 +000029812 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029813fi
29814
29815
29816if test "$with_gvc" != 'yes'; then
29817 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29818fi
29819
29820GVC_PKG=""
29821if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29823$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029824
29825pkg_failed=no
29826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29827$as_echo_n "checking for GVC... " >&6; }
29828
29829if test -n "$GVC_CFLAGS"; then
29830 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29831 elif test -n "$PKG_CONFIG"; then
29832 if test -n "$PKG_CONFIG" && \
29833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29834 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29835 ac_status=$?
29836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29837 test $ac_status = 0; }; then
29838 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29839else
29840 pkg_failed=yes
29841fi
29842 else
29843 pkg_failed=untried
29844fi
29845if test -n "$GVC_LIBS"; then
29846 pkg_cv_GVC_LIBS="$GVC_LIBS"
29847 elif test -n "$PKG_CONFIG"; then
29848 if test -n "$PKG_CONFIG" && \
29849 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29850 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29851 ac_status=$?
29852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29853 test $ac_status = 0; }; then
29854 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29855else
29856 pkg_failed=yes
29857fi
29858 else
29859 pkg_failed=untried
29860fi
29861
29862
29863
29864if test $pkg_failed = yes; then
29865
29866if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29867 _pkg_short_errors_supported=yes
29868else
29869 _pkg_short_errors_supported=no
29870fi
29871 if test $_pkg_short_errors_supported = yes; then
29872 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29873 else
29874 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29875 fi
29876 # Put the nasty error message in config.log where it belongs
29877 echo "$GVC_PKG_ERRORS" >&5
29878
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880$as_echo "no" >&6; }
29881 have_gvc=no
29882elif test $pkg_failed = untried; then
29883 have_gvc=no
29884else
29885 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29886 GVC_LIBS=$pkg_cv_GVC_LIBS
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888$as_echo "yes" >&6; }
29889 have_gvc=yes
29890fi
cristy09b53e12011-10-14 12:47:22 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29892$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029893fi
29894
29895if test "$have_gvc" = 'yes'; then
29896
cristy8b350f62009-11-15 23:12:43 +000029897$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029898
29899 if test "$with_modules" = 'no'; then
29900 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29901 fi
29902fi
29903
cristy73bd4a52010-10-05 11:24:23 +000029904 if test "$have_gvc" = 'yes'; then
29905 GVC_DELEGATE_TRUE=
29906 GVC_DELEGATE_FALSE='#'
29907else
29908 GVC_DELEGATE_TRUE='#'
29909 GVC_DELEGATE_FALSE=
29910fi
29911
cristy3ed852e2009-09-05 21:47:34 +000029912
29913
29914
29915
29916#
29917# Check for JBIG delegate library.
29918#
29919
29920
29921# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029922if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029923 withval=$with_jbig; with_jbig=$withval
29924else
29925 with_jbig='yes'
29926fi
29927
29928
29929have_jbig='no'
29930JBIG_LIBS=''
29931if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029932 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29933$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029936 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29937$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029938 failed=0
29939 passed=0
cristy8b350f62009-11-15 23:12:43 +000029940 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029941if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029942 passed=`expr $passed + 1`
29943else
29944 failed=`expr $failed + 1`
29945fi
29946
29947
cristy8b350f62009-11-15 23:12:43 +000029948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029949$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029950if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029951 $as_echo_n "(cached) " >&6
29952else
29953 ac_check_lib_save_LIBS=$LIBS
29954LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029956/* end confdefs.h. */
29957
29958/* Override any GCC internal prototype to avoid an error.
29959 Use char because int might match the return type of a GCC
29960 builtin and then its argument prototype would still apply. */
29961#ifdef __cplusplus
29962extern "C"
29963#endif
29964char jbg_dec_init ();
29965int
29966main ()
29967{
29968return jbg_dec_init ();
29969 ;
29970 return 0;
29971}
29972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029973if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029974 ac_cv_lib_jbig_jbg_dec_init=yes
29975else
cristy8b350f62009-11-15 23:12:43 +000029976 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029977fi
cristy8b350f62009-11-15 23:12:43 +000029978rm -f core conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029980LIBS=$ac_check_lib_save_LIBS
29981fi
cristy8b350f62009-11-15 23:12:43 +000029982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029983$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029984if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029985 passed=`expr $passed + 1`
29986else
29987 failed=`expr $failed + 1`
29988fi
29989
cristy8b350f62009-11-15 23:12:43 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991$as_echo_n "checking if JBIG package is complete... " >&6; }
29992 if test $passed -gt 0; then
29993 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029994 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29995$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029996 have_jbig='no (failed tests)'
29997 else
29998 JBIG_LIBS='-ljbig'
29999 LIBS="$JBIG_LIBS $LIBS"
30000
cristy8b350f62009-11-15 23:12:43 +000030001$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030002
cristy09b53e12011-10-14 12:47:22 +000030003 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30004$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030005 have_jbig='yes'
30006 fi
30007 else
cristy09b53e12011-10-14 12:47:22 +000030008 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30009$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030010 fi
30011fi
cristy73bd4a52010-10-05 11:24:23 +000030012 if test "$have_jbig" = 'yes'; then
30013 JBIG_DELEGATE_TRUE=
30014 JBIG_DELEGATE_FALSE='#'
30015else
30016 JBIG_DELEGATE_TRUE='#'
30017 JBIG_DELEGATE_FALSE=
30018fi
30019
cristy3ed852e2009-09-05 21:47:34 +000030020
30021
30022
30023#
30024# Check for JPEG delegate library.
30025#
30026
30027# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030028if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 withval=$with_jpeg; with_jpeg=$withval
30030else
30031 with_jpeg='yes'
30032fi
30033
30034
30035if test "$with_jpeg" != 'yes'; then
30036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30037fi
30038
30039have_jpeg='no'
30040JPEG_LIBS=''
30041if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030042 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30043$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030046 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30047$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030048 failed=0
30049 passed=0
cristy8b350f62009-11-15 23:12:43 +000030050 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030051if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030052 passed=`expr $passed + 1`
30053else
30054 failed=`expr $failed + 1`
30055fi
30056
30057
cristy8b350f62009-11-15 23:12:43 +000030058 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030059if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030060 passed=`expr $passed + 1`
30061else
30062 failed=`expr $failed + 1`
30063fi
30064
30065
cristy8b350f62009-11-15 23:12:43 +000030066 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030067if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030068 passed=`expr $passed + 1`
30069else
30070 failed=`expr $failed + 1`
30071fi
30072
30073
cristy8b350f62009-11-15 23:12:43 +000030074 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030075if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030076 passed=`expr $passed + 1`
30077else
30078 failed=`expr $failed + 1`
30079fi
30080
30081
cristy8b350f62009-11-15 23:12:43 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030084if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030085 $as_echo_n "(cached) " >&6
30086else
30087 ac_check_lib_save_LIBS=$LIBS
30088LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030090/* end confdefs.h. */
30091
30092/* Override any GCC internal prototype to avoid an error.
30093 Use char because int might match the return type of a GCC
30094 builtin and then its argument prototype would still apply. */
30095#ifdef __cplusplus
30096extern "C"
30097#endif
30098char jpeg_read_header ();
30099int
30100main ()
30101{
30102return jpeg_read_header ();
30103 ;
30104 return 0;
30105}
30106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030108 ac_cv_lib_jpeg_jpeg_read_header=yes
30109else
cristy8b350f62009-11-15 23:12:43 +000030110 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030111fi
cristy8b350f62009-11-15 23:12:43 +000030112rm -f core conftest.err conftest.$ac_objext \
30113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030114LIBS=$ac_check_lib_save_LIBS
30115fi
cristy8b350f62009-11-15 23:12:43 +000030116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030117$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030118if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 passed=`expr $passed + 1`
30120else
30121 failed=`expr $failed + 1`
30122fi
30123
30124
30125# Test for compatible JPEG library
30126if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 $as_echo_n "(cached) " >&6
30131else
cristy8b350f62009-11-15 23:12:43 +000030132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030133/* end confdefs.h. */
30134#include <stdio.h>
30135#include <stdlib.h>
30136#include <jpeglib.h>
30137
30138int
30139main ()
30140{
30141
30142#if JPEG_LIB_VERSION < 62
30143#error IJG JPEG library must be version 6b or newer!
30144#endif
30145return 0;
30146
30147 ;
30148 return 0;
30149}
30150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030151if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30153else
cristy8b350f62009-11-15 23:12:43 +000030154 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030155fi
cristy3ed852e2009-09-05 21:47:34 +000030156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30157fi
cristy8b350f62009-11-15 23:12:43 +000030158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030159$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30160fi
cristy8b350f62009-11-15 23:12:43 +000030161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo_n "checking if JPEG package is complete... " >&6; }
30163 if test $passed -gt 0; then
30164 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030165 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30166$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030167 have_jpeg='no (failed tests)'
30168 else
30169 JPEG_LIBS='-ljpeg'
30170 LIBS="$JPEG_LIBS $LIBS"
30171
cristy8b350f62009-11-15 23:12:43 +000030172$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030173
cristy09b53e12011-10-14 12:47:22 +000030174 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30175$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030176 have_jpeg='yes'
30177 fi
30178 else
cristy09b53e12011-10-14 12:47:22 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30180$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030181 fi
30182fi
cristy73bd4a52010-10-05 11:24:23 +000030183 if test "$have_jpeg" = 'yes'; then
30184 JPEG_DELEGATE_TRUE=
30185 JPEG_DELEGATE_FALSE='#'
30186else
30187 JPEG_DELEGATE_TRUE='#'
30188 JPEG_DELEGATE_FALSE=
30189fi
30190
cristy3ed852e2009-09-05 21:47:34 +000030191
30192
30193
30194#
30195# Check for JPEG Version 2 delegate library.
30196#
30197
30198# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030199if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030200 withval=$with_jp2; with_jp2=$withval
30201else
30202 with_jp2='yes'
30203fi
30204
30205
30206if test "$with_jp2" != 'yes'; then
30207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30208fi
30209
30210have_jp2='no'
30211JP2_LIBS=''
30212if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030213 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30214$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030217 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30218$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030219 failed=0
30220 passed=0
cristy8b350f62009-11-15 23:12:43 +000030221 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 +000030222if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030223 passed=`expr $passed + 1`
30224else
30225 failed=`expr $failed + 1`
30226fi
30227
30228
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030231if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030232 $as_echo_n "(cached) " >&6
30233else
30234 ac_check_lib_save_LIBS=$LIBS
30235LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030237/* end confdefs.h. */
30238
30239/* Override any GCC internal prototype to avoid an error.
30240 Use char because int might match the return type of a GCC
30241 builtin and then its argument prototype would still apply. */
30242#ifdef __cplusplus
30243extern "C"
30244#endif
30245char jas_stream_fopen ();
30246int
30247main ()
30248{
30249return jas_stream_fopen ();
30250 ;
30251 return 0;
30252}
30253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030254if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030255 ac_cv_lib_jasper_jas_stream_fopen=yes
30256else
cristy8b350f62009-11-15 23:12:43 +000030257 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030258fi
cristy8b350f62009-11-15 23:12:43 +000030259rm -f core conftest.err conftest.$ac_objext \
30260 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030261LIBS=$ac_check_lib_save_LIBS
30262fi
cristy8b350f62009-11-15 23:12:43 +000030263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030265if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030266 passed=`expr $passed + 1`
30267else
30268 failed=`expr $failed + 1`
30269fi
30270
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30273 if test $passed -gt 0; then
30274 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30276$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030277 have_jp2='no (failed tests)'
30278 else
30279 JP2_LIBS='-ljasper'
30280 LIBS="$JP2_LIBS $LIBS"
30281
cristy8b350f62009-11-15 23:12:43 +000030282$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030283
cristy09b53e12011-10-14 12:47:22 +000030284 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30285$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030286 have_jp2='yes'
30287 fi
30288 else
cristy09b53e12011-10-14 12:47:22 +000030289 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30290$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030291 fi
30292fi
cristy73bd4a52010-10-05 11:24:23 +000030293 if test "$have_jp2" = 'yes'; then
30294 JP2_DELEGATE_TRUE=
30295 JP2_DELEGATE_FALSE='#'
30296else
30297 JP2_DELEGATE_TRUE='#'
30298 JP2_DELEGATE_FALSE=
30299fi
30300
cristy3ed852e2009-09-05 21:47:34 +000030301
30302
30303
30304#
30305# Check for LCMS delegate library.
30306#
cristy71203402010-06-18 13:12:03 +000030307# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030308
30309# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030310if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030311 withval=$with_lcms; with_lcms=$withval
30312else
30313 with_lcms='yes'
30314fi
30315
cristy71203402010-06-18 13:12:03 +000030316if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030317 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30318fi
30319
cristy71203402010-06-18 13:12:03 +000030320# Disable LCMS2.
30321
30322# Check whether --with-lcms2 was given.
30323if test "${with_lcms2+set}" = set; then :
30324 withval=$with_lcms2; with_lcms2=$withval
30325else
30326 with_lcms2='yes'
30327fi
30328
30329if test "$with_lcms2" != 'yes' ; then
30330 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30331fi
30332
30333have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030334LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030335if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30337$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30339$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030340 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30341$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030342 failed=0
30343 passed=0
30344 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030345
30346 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030347 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030348if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030349 have_lcms_header='yes'
30350fi
30351
30352
30353 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030354
30355$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30356
cristy71203402010-06-18 13:12:03 +000030357 passed=`expr $passed + 1`
30358 fi
30359
30360 # Check for <lcms2/lcms2.h)
30361 if test "$have_lcms_header" != 'yes'; then
30362 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 +000030363if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030364 have_lcms_header='yes'
30365fi
30366
30367
cristy71203402010-06-18 13:12:03 +000030368 if test "$have_lcms_header" = 'yes'; then
30369 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030370
cristy71203402010-06-18 13:12:03 +000030371$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030372
cristy71203402010-06-18 13:12:03 +000030373 fi
cristyd09bcf92010-03-25 03:04:45 +000030374 fi
cristy71203402010-06-18 13:12:03 +000030375
30376 # Failed to find lcms header?
30377 if test "$have_lcms_header" != 'yes'; then
30378 failed=`expr $failed + 1`
30379 fi
30380
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30382$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030383if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030384 $as_echo_n "(cached) " >&6
30385else
30386 ac_check_lib_save_LIBS=$LIBS
30387LIBS="-llcms2 $LIBS"
30388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30389/* end confdefs.h. */
30390
30391/* Override any GCC internal prototype to avoid an error.
30392 Use char because int might match the return type of a GCC
30393 builtin and then its argument prototype would still apply. */
30394#ifdef __cplusplus
30395extern "C"
30396#endif
cristy71203402010-06-18 13:12:03 +000030397char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030398int
30399main ()
30400{
cristy71203402010-06-18 13:12:03 +000030401return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030402 ;
30403 return 0;
30404}
30405_ACEOF
30406if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030407 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030408else
cristy71203402010-06-18 13:12:03 +000030409 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030410fi
30411rm -f core conftest.err conftest.$ac_objext \
30412 conftest$ac_exeext conftest.$ac_ext
30413LIBS=$ac_check_lib_save_LIBS
30414fi
cristy71203402010-06-18 13:12:03 +000030415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30416$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030417if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030418 passed=`expr $passed + 1`
30419else
30420 failed=`expr $failed + 1`
30421fi
30422
cristy71203402010-06-18 13:12:03 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30424$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030425 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030426 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30428$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030429 have_lcms2='no (failed tests)'
30430 else
30431 LCMS_LIBS='-llcms2'
30432 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030433 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30434$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030435 have_lcms2='yes'
30436 fi
cristyd09bcf92010-03-25 03:04:45 +000030437 else
cristy09b53e12011-10-14 12:47:22 +000030438 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30439$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030440 fi
30441fi
30442
cristy71203402010-06-18 13:12:03 +000030443#
30444# Check for LCMS v1 (1.11 or later)
30445#
30446if test $have_lcms2 = 'yes'; then
30447 with_lcms='no'
30448fi
30449
30450have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030451if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30453$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30455$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30457$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030458 failed=0
30459 passed=0
30460 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030461
30462 # Check for <lcms.h>
30463 if test "$have_lcms_header" != 'yes'; then
30464 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030465if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030466 have_lcms_header='yes'
30467fi
30468
30469
cristy71203402010-06-18 13:12:03 +000030470 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030471 passed=`expr $passed + 1`
30472
cristy8b350f62009-11-15 23:12:43 +000030473$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030474
cristy71203402010-06-18 13:12:03 +000030475 fi
30476 fi
30477
30478 # Check for <lcms/lcms.h>
30479 if test "$have_lcms_header" != 'yes'; then
30480 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 +000030481if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030482 have_lcms_header='yes'
30483fi
30484
30485
cristy71203402010-06-18 13:12:03 +000030486 if test "$have_lcms_header" = 'yes'; then
30487 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030488
cristy8b350f62009-11-15 23:12:43 +000030489$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030490
cristy71203402010-06-18 13:12:03 +000030491 fi
cristy3ed852e2009-09-05 21:47:34 +000030492 fi
cristy71203402010-06-18 13:12:03 +000030493
30494 # Failed to find lcms header?
30495 if test "$have_lcms_header" != 'yes'; then
30496 failed=`expr $failed + 1`
30497 fi
30498
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30500$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030501if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030502 $as_echo_n "(cached) " >&6
30503else
30504 ac_check_lib_save_LIBS=$LIBS
30505LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030507/* end confdefs.h. */
30508
30509/* Override any GCC internal prototype to avoid an error.
30510 Use char because int might match the return type of a GCC
30511 builtin and then its argument prototype would still apply. */
30512#ifdef __cplusplus
30513extern "C"
30514#endif
cristy71203402010-06-18 13:12:03 +000030515char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030516int
30517main ()
30518{
cristy71203402010-06-18 13:12:03 +000030519return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030520 ;
30521 return 0;
30522}
30523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030524if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030525 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030526else
cristy71203402010-06-18 13:12:03 +000030527 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030528fi
cristy8b350f62009-11-15 23:12:43 +000030529rm -f core conftest.err conftest.$ac_objext \
30530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030531LIBS=$ac_check_lib_save_LIBS
30532fi
cristy71203402010-06-18 13:12:03 +000030533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30534$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030535if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030536 passed=`expr $passed + 1`
30537else
30538 failed=`expr $failed + 1`
30539fi
30540
cristy8b350f62009-11-15 23:12:43 +000030541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030542$as_echo_n "checking if LCMS package is complete... " >&6; }
30543 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030544 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30546$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030547 have_lcms='no (failed tests)'
30548 else
30549 LCMS_LIBS='-llcms'
30550 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30552$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030553 have_lcms='yes'
30554 fi
cristy3ed852e2009-09-05 21:47:34 +000030555 else
cristy09b53e12011-10-14 12:47:22 +000030556 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30557$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030558 fi
30559fi
cristy71203402010-06-18 13:12:03 +000030560
cristy73bd4a52010-10-05 11:24:23 +000030561 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30562 LCMS_DELEGATE_TRUE=
30563 LCMS_DELEGATE_FALSE='#'
30564else
30565 LCMS_DELEGATE_TRUE='#'
30566 LCMS_DELEGATE_FALSE=
30567fi
30568
cristy71203402010-06-18 13:12:03 +000030569if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30570
30571$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30572
30573fi
30574
cristy3ed852e2009-09-05 21:47:34 +000030575
30576
30577
30578#
30579# Check for the LQR (Liquid Rescale) delegate library.
30580#
30581
30582# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030583if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030584 withval=$with_lqr; with_lqr=$withval
30585else
30586 with_lqr='yes'
30587fi
30588
30589
30590if test "$with_lqr" != 'yes'; then
30591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30592fi
30593
30594have_lqr='no'
30595LQR_CFLAGS=""
30596LQR_LIBS=""
30597LQR_PKG=""
30598if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030599 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30600$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030601
30602pkg_failed=no
30603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30604$as_echo_n "checking for LQR... " >&6; }
30605
30606if test -n "$LQR_CFLAGS"; then
30607 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30608 elif test -n "$PKG_CONFIG"; then
30609 if test -n "$PKG_CONFIG" && \
30610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30611 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30612 ac_status=$?
30613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30614 test $ac_status = 0; }; then
30615 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30616else
30617 pkg_failed=yes
30618fi
30619 else
30620 pkg_failed=untried
30621fi
30622if test -n "$LQR_LIBS"; then
30623 pkg_cv_LQR_LIBS="$LQR_LIBS"
30624 elif test -n "$PKG_CONFIG"; then
30625 if test -n "$PKG_CONFIG" && \
30626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30627 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30628 ac_status=$?
30629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30630 test $ac_status = 0; }; then
30631 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30632else
30633 pkg_failed=yes
30634fi
30635 else
30636 pkg_failed=untried
30637fi
30638
30639
30640
30641if test $pkg_failed = yes; then
30642
30643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30644 _pkg_short_errors_supported=yes
30645else
30646 _pkg_short_errors_supported=no
30647fi
30648 if test $_pkg_short_errors_supported = yes; then
30649 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30650 else
30651 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30652 fi
30653 # Put the nasty error message in config.log where it belongs
30654 echo "$LQR_PKG_ERRORS" >&5
30655
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657$as_echo "no" >&6; }
30658 have_lqr=no
30659elif test $pkg_failed = untried; then
30660 have_lqr=no
30661else
30662 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30663 LQR_LIBS=$pkg_cv_LQR_LIBS
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30665$as_echo "yes" >&6; }
30666 have_lqr=yes
30667fi
cristy09b53e12011-10-14 12:47:22 +000030668 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30669$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030670fi
30671
30672if test "$have_lqr" = 'yes'; then
30673
cristy8b350f62009-11-15 23:12:43 +000030674$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030675
30676 CFLAGS="$LQR_CFLAGS $CFLAGS"
30677fi
30678
cristy73bd4a52010-10-05 11:24:23 +000030679 if test "$have_lqr" = 'yes'; then
30680 LQR_DELEGATE_TRUE=
30681 LQR_DELEGATE_FALSE='#'
30682else
30683 LQR_DELEGATE_TRUE='#'
30684 LQR_DELEGATE_FALSE=
30685fi
30686
cristy3ed852e2009-09-05 21:47:34 +000030687
30688
30689
30690
cristy81beccd2011-10-03 18:17:24 +000030691# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030692
30693# Check whether --with-lzma was given.
30694if test "${with_lzma+set}" = set; then :
30695 withval=$with_lzma; with_lzma=$withval
30696else
30697 with_lzma='yes'
30698fi
30699
cristy81beccd2011-10-03 18:17:24 +000030700if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30702fi
30703
cristyb94e5002011-11-14 13:20:10 +000030704LZMA_PKG=""
30705if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30707$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030708
30709pkg_failed=no
30710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030711$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030712
30713if test -n "$LZMA_CFLAGS"; then
30714 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30715 elif test -n "$PKG_CONFIG"; then
30716 if test -n "$PKG_CONFIG" && \
30717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30718 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30719 ac_status=$?
30720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30721 test $ac_status = 0; }; then
30722 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30723else
30724 pkg_failed=yes
30725fi
30726 else
30727 pkg_failed=untried
30728fi
30729if test -n "$LZMA_LIBS"; then
30730 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30731 elif test -n "$PKG_CONFIG"; then
30732 if test -n "$PKG_CONFIG" && \
30733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30734 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30735 ac_status=$?
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; then
30738 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30739else
30740 pkg_failed=yes
30741fi
30742 else
30743 pkg_failed=untried
30744fi
30745
30746
30747
30748if test $pkg_failed = yes; then
30749
30750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30751 _pkg_short_errors_supported=yes
30752else
30753 _pkg_short_errors_supported=no
30754fi
30755 if test $_pkg_short_errors_supported = yes; then
30756 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30757 else
30758 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30759 fi
30760 # Put the nasty error message in config.log where it belongs
30761 echo "$LZMA_PKG_ERRORS" >&5
30762
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764$as_echo "no" >&6; }
30765 have_lzma=no
30766elif test $pkg_failed = untried; then
30767 have_lzma=no
30768else
30769 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30770 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30772$as_echo "yes" >&6; }
30773 have_lzma=yes
30774fi
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030776$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030777fi
30778
cristyb94e5002011-11-14 13:20:10 +000030779if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030780
30781$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30782
cristyb94e5002011-11-14 13:20:10 +000030783 if test "$with_modules" = 'no'; then
30784 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030785 fi
cristyfbb0ef02010-12-19 02:32:11 +000030786fi
cristyb94e5002011-11-14 13:20:10 +000030787
cristyfbb0ef02010-12-19 02:32:11 +000030788 if test "$have_lzma" = 'yes'; then
30789 LZMA_DELEGATE_TRUE=
30790 LZMA_DELEGATE_FALSE='#'
30791else
30792 LZMA_DELEGATE_TRUE='#'
30793 LZMA_DELEGATE_FALSE=
30794fi
30795
30796
30797
30798
cristyb94e5002011-11-14 13:20:10 +000030799
cristy3ed852e2009-09-05 21:47:34 +000030800#
30801# Check for the OpenEXR delegate library.
30802#
30803
30804# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030805if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030806 withval=$with_openexr; with_openexr=$withval
30807else
30808 with_openexr='yes'
30809fi
30810
30811
30812if test "$with_openexr" != 'yes'; then
30813 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30814fi
30815
30816have_openexr='no'
30817OPENEXR_CFLAGS=""
30818OPENEXR_LIBS=""
30819OPENEXR_PKG=""
30820if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030821 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30822$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030823
30824pkg_failed=no
30825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30826$as_echo_n "checking for OPENEXR... " >&6; }
30827
30828if test -n "$OPENEXR_CFLAGS"; then
30829 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30830 elif test -n "$PKG_CONFIG"; then
30831 if test -n "$PKG_CONFIG" && \
30832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30833 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30834 ac_status=$?
30835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30836 test $ac_status = 0; }; then
30837 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30838else
30839 pkg_failed=yes
30840fi
30841 else
30842 pkg_failed=untried
30843fi
30844if test -n "$OPENEXR_LIBS"; then
30845 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30846 elif test -n "$PKG_CONFIG"; then
30847 if test -n "$PKG_CONFIG" && \
30848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30849 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30850 ac_status=$?
30851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30852 test $ac_status = 0; }; then
30853 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30854else
30855 pkg_failed=yes
30856fi
30857 else
30858 pkg_failed=untried
30859fi
30860
30861
30862
30863if test $pkg_failed = yes; then
30864
30865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30866 _pkg_short_errors_supported=yes
30867else
30868 _pkg_short_errors_supported=no
30869fi
30870 if test $_pkg_short_errors_supported = yes; then
30871 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30872 else
30873 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30874 fi
30875 # Put the nasty error message in config.log where it belongs
30876 echo "$OPENEXR_PKG_ERRORS" >&5
30877
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30879$as_echo "no" >&6; }
30880 have_openexr=no
30881elif test $pkg_failed = untried; then
30882 have_openexr=no
30883else
30884 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30885 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887$as_echo "yes" >&6; }
30888 have_openexr=yes
30889fi
cristy09b53e12011-10-14 12:47:22 +000030890 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30891$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030892fi
30893
30894if test "$have_openexr" = 'yes'; then
30895
cristy8b350f62009-11-15 23:12:43 +000030896$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030897
30898 if test "$with_modules" = 'no'; then
30899 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30900 fi
30901fi
30902
cristy73bd4a52010-10-05 11:24:23 +000030903 if test "$have_openexr" = 'yes'; then
30904 OPENEXR_DELEGATE_TRUE=
30905 OPENEXR_DELEGATE_FALSE='#'
30906else
30907 OPENEXR_DELEGATE_TRUE='#'
30908 OPENEXR_DELEGATE_FALSE=
30909fi
30910
cristy3ed852e2009-09-05 21:47:34 +000030911
30912
30913
30914
30915#
cristy41cbe8a2011-10-27 01:35:18 +000030916# Check for PANGO delegate library.
30917#
30918
30919# Check whether --with-pango was given.
30920if test "${with_pango+set}" = set; then :
30921 withval=$with_pango; with_pango=$withval
30922else
cristyfc3d0222012-02-07 15:05:57 +000030923 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030924fi
30925
30926
30927if test "$with_pango" != 'yes'; then
30928 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30929fi
30930
30931have_pango='no'
cristya054b762012-03-26 23:16:00 +000030932have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030933PANGO_CFLAGS=""
30934PANGO_LIBS=""
30935PANGO_PKG=""
30936if test "x$with_pango" = "xyes"; then
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30938$as_echo "-------------------------------------------------------------" >&6; }
30939
30940pkg_failed=no
30941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30942$as_echo_n "checking for PANGO... " >&6; }
30943
30944if test -n "$PANGO_CFLAGS"; then
30945 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30946 elif test -n "$PKG_CONFIG"; then
30947 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30949 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030950 ac_status=$?
30951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30952 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030953 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030954else
30955 pkg_failed=yes
30956fi
30957 else
30958 pkg_failed=untried
30959fi
30960if test -n "$PANGO_LIBS"; then
30961 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30962 elif test -n "$PKG_CONFIG"; then
30963 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30965 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030966 ac_status=$?
30967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30968 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030969 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030970else
30971 pkg_failed=yes
30972fi
30973 else
30974 pkg_failed=untried
30975fi
30976
30977
30978
30979if test $pkg_failed = yes; then
30980
30981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30982 _pkg_short_errors_supported=yes
30983else
30984 _pkg_short_errors_supported=no
30985fi
30986 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030987 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030988 else
cristya054b762012-03-26 23:16:00 +000030989 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030990 fi
30991 # Put the nasty error message in config.log where it belongs
30992 echo "$PANGO_PKG_ERRORS" >&5
30993
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30995$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030996 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030997elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030998 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030999else
31000 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31001 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31003$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031004 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031005fi
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31007$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031008
31009pkg_failed=no
31010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31011$as_echo_n "checking for PANGO... " >&6; }
31012
31013if test -n "$PANGO_CFLAGS"; then
31014 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31015 elif test -n "$PKG_CONFIG"; then
31016 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31018 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031019 ac_status=$?
31020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31021 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031022 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031023else
31024 pkg_failed=yes
31025fi
31026 else
31027 pkg_failed=untried
31028fi
31029if test -n "$PANGO_LIBS"; then
31030 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31031 elif test -n "$PKG_CONFIG"; then
31032 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31034 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031035 ac_status=$?
31036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31037 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031038 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031039else
31040 pkg_failed=yes
31041fi
31042 else
31043 pkg_failed=untried
31044fi
31045
31046
31047
31048if test $pkg_failed = yes; then
31049
31050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31051 _pkg_short_errors_supported=yes
31052else
31053 _pkg_short_errors_supported=no
31054fi
31055 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031056 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031057 else
cristy2542fc62011-12-06 17:50:25 +000031058 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031059 fi
31060 # Put the nasty error message in config.log where it belongs
31061 echo "$PANGO_PKG_ERRORS" >&5
31062
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064$as_echo "no" >&6; }
31065 have_pango=no
31066elif test $pkg_failed = untried; then
31067 have_pango=no
31068else
31069 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31070 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31072$as_echo "yes" >&6; }
31073 have_pango=yes
31074fi
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31076$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031077fi
31078
31079if test "$have_pango" = 'yes'; then
31080
31081$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31082
31083 if test "$with_modules" = 'no'; then
31084 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31085 fi
31086fi
31087
cristya054b762012-03-26 23:16:00 +000031088if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031089
cristya054b762012-03-26 23:16:00 +000031090$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031091
31092 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031093 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031094 fi
31095fi
31096
31097 if test "$have_pango" = 'yes'; then
31098 PANGO_DELEGATE_TRUE=
31099 PANGO_DELEGATE_FALSE='#'
31100else
31101 PANGO_DELEGATE_TRUE='#'
31102 PANGO_DELEGATE_FALSE=
31103fi
31104
cristya054b762012-03-26 23:16:00 +000031105 if test "$have_pangocairo" = 'yes'; then
31106 PANGOCAIRO_DELEGATE_TRUE=
31107 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031108else
cristya054b762012-03-26 23:16:00 +000031109 PANGOCAIRO_DELEGATE_TRUE='#'
31110 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031111fi
31112
31113
31114
31115
31116
31117#
cristy3ed852e2009-09-05 21:47:34 +000031118# Check for PNG delegate library.
31119#
31120
31121# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031122if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031123 withval=$with_png; with_png=$withval
31124else
31125 with_png='yes'
31126fi
31127
31128
31129if test "$with_png" != 'yes'; then
31130 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31131fi
31132
cristy81beccd2011-10-03 18:17:24 +000031133have_png='no'
31134PNG_LIBS=''
31135
31136if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031137 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31138$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31140$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031141 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31142$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031143 failed=0
31144 passed=0
31145 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31146if test "x$ac_cv_header_png_h" = xyes; then :
31147 passed=`expr $passed + 1`
31148else
31149 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031150fi
31151
cristy81beccd2011-10-03 18:17:24 +000031152
31153
31154 if test $passed -gt 0; then
31155 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031156 if test "$have_png" = 'no' ; then
31157 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031158 pnglib='png'
31159 else
31160 pnglib="png1${var}"
31161 fi
31162
31163# Test for compatible LIBPNG library
31164 failed=0
31165 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031166 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031167 if test "${pnglib}" != 'png' ; then
31168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31169$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31171/* end confdefs.h. */
31172#include <stdio.h>
31173#include <stdlib.h>
31174#include <png.h>
31175
31176int
31177main ()
31178{
31179
31180#if PNG_LIBPNG_VER_MINOR != ${var}
31181#error LIBPNG library must be version 1${var}!
31182Kaboom, Kaboom
31183#endif
31184return 0;
31185
31186 ;
31187 return 0;
31188}
31189_ACEOF
31190if ac_fn_c_try_compile "$LINENO"; then :
31191 ac_cv_libpng_ok='yes'
31192else
31193 ac_cv_libpng_ok='no'
31194fi
31195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31196 if test "$ac_cv_libpng_ok" = 'yes' ; then
31197 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031198 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31199$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031200 else
31201 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031202 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31203$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031204 fi
31205 else
31206 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031207 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31208$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031209 fi
31210 fi
31211
31212 if test $passed -gt 0 -a $failed -le 0; then
31213 if test "1${var}" = '15' ; then
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31215$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31216if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31217 $as_echo_n "(cached) " >&6
31218else
31219 ac_check_lib_save_LIBS=$LIBS
31220LIBS="-lpng15 $LIBS"
31221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31222/* end confdefs.h. */
31223
31224/* Override any GCC internal prototype to avoid an error.
31225 Use char because int might match the return type of a GCC
31226 builtin and then its argument prototype would still apply. */
31227#ifdef __cplusplus
31228extern "C"
31229#endif
31230char png_get_io_ptr ();
31231int
31232main ()
31233{
31234return png_get_io_ptr ();
31235 ;
31236 return 0;
31237}
31238_ACEOF
31239if ac_fn_c_try_link "$LINENO"; then :
31240 ac_cv_lib_png15_png_get_io_ptr=yes
31241else
31242 ac_cv_lib_png15_png_get_io_ptr=no
31243fi
31244rm -f core conftest.err conftest.$ac_objext \
31245 conftest$ac_exeext conftest.$ac_ext
31246LIBS=$ac_check_lib_save_LIBS
31247fi
31248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31249$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31250if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31251 passed=`expr $passed + 1`
31252else
31253 failed=`expr $failed + 1`
31254fi
31255
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31257$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31258if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31259 $as_echo_n "(cached) " >&6
31260else
31261 ac_check_lib_save_LIBS=$LIBS
31262LIBS="-lpng15 $LIBS"
31263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31264/* end confdefs.h. */
31265
31266/* Override any GCC internal prototype to avoid an error.
31267 Use char because int might match the return type of a GCC
31268 builtin and then its argument prototype would still apply. */
31269#ifdef __cplusplus
31270extern "C"
31271#endif
31272char png_longjmp ();
31273int
31274main ()
31275{
31276return png_longjmp ();
31277 ;
31278 return 0;
31279}
31280_ACEOF
31281if ac_fn_c_try_link "$LINENO"; then :
31282 ac_cv_lib_png15_png_longjmp=yes
31283else
31284 ac_cv_lib_png15_png_longjmp=no
31285fi
31286rm -f core conftest.err conftest.$ac_objext \
31287 conftest$ac_exeext conftest.$ac_ext
31288LIBS=$ac_check_lib_save_LIBS
31289fi
31290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31291$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31292if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31293 passed=`expr $passed + 1`
31294else
31295 failed=`expr $failed + 1`
31296fi
31297
31298 fi
31299 if test "1${var}" = '14' ; then
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31301$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31302if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31303 $as_echo_n "(cached) " >&6
31304else
31305 ac_check_lib_save_LIBS=$LIBS
31306LIBS="-lpng14 $LIBS"
31307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31308/* end confdefs.h. */
31309
31310/* Override any GCC internal prototype to avoid an error.
31311 Use char because int might match the return type of a GCC
31312 builtin and then its argument prototype would still apply. */
31313#ifdef __cplusplus
31314extern "C"
31315#endif
31316char png_get_io_ptr ();
31317int
31318main ()
31319{
31320return png_get_io_ptr ();
31321 ;
31322 return 0;
31323}
31324_ACEOF
31325if ac_fn_c_try_link "$LINENO"; then :
31326 ac_cv_lib_png14_png_get_io_ptr=yes
31327else
31328 ac_cv_lib_png14_png_get_io_ptr=no
31329fi
31330rm -f core conftest.err conftest.$ac_objext \
31331 conftest$ac_exeext conftest.$ac_ext
31332LIBS=$ac_check_lib_save_LIBS
31333fi
31334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31335$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31336if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31337 passed=`expr $passed + 1`
31338else
31339 failed=`expr $failed + 1`
31340fi
31341
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31343$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31344if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31345 $as_echo_n "(cached) " >&6
31346else
31347 ac_check_lib_save_LIBS=$LIBS
31348LIBS="-lpng14 $LIBS"
31349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31350/* end confdefs.h. */
31351
31352/* Override any GCC internal prototype to avoid an error.
31353 Use char because int might match the return type of a GCC
31354 builtin and then its argument prototype would still apply. */
31355#ifdef __cplusplus
31356extern "C"
31357#endif
31358char png_get_io_state ();
31359int
31360main ()
31361{
31362return png_get_io_state ();
31363 ;
31364 return 0;
31365}
31366_ACEOF
31367if ac_fn_c_try_link "$LINENO"; then :
31368 ac_cv_lib_png14_png_get_io_state=yes
31369else
31370 ac_cv_lib_png14_png_get_io_state=no
31371fi
31372rm -f core conftest.err conftest.$ac_objext \
31373 conftest$ac_exeext conftest.$ac_ext
31374LIBS=$ac_check_lib_save_LIBS
31375fi
31376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31377$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31378if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31379 passed=`expr $passed + 1`
31380else
31381 failed=`expr $failed + 1`
31382fi
31383
31384 fi
31385 if test "1${var}" = '12' ; then
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31387$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31388if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31389 $as_echo_n "(cached) " >&6
31390else
31391 ac_check_lib_save_LIBS=$LIBS
31392LIBS="-lpng12 $LIBS"
31393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31394/* end confdefs.h. */
31395
31396/* Override any GCC internal prototype to avoid an error.
31397 Use char because int might match the return type of a GCC
31398 builtin and then its argument prototype would still apply. */
31399#ifdef __cplusplus
31400extern "C"
31401#endif
31402char png_get_io_ptr ();
31403int
31404main ()
31405{
31406return png_get_io_ptr ();
31407 ;
31408 return 0;
31409}
31410_ACEOF
31411if ac_fn_c_try_link "$LINENO"; then :
31412 ac_cv_lib_png12_png_get_io_ptr=yes
31413else
31414 ac_cv_lib_png12_png_get_io_ptr=no
31415fi
31416rm -f core conftest.err conftest.$ac_objext \
31417 conftest$ac_exeext conftest.$ac_ext
31418LIBS=$ac_check_lib_save_LIBS
31419fi
31420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31421$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31422if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31423 passed=`expr $passed + 1`
31424else
31425 failed=`expr $failed + 1`
31426fi
31427
31428 fi
31429 if test "1${var}" = '1' ; then
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31431$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31432if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31433 $as_echo_n "(cached) " >&6
31434else
31435 ac_check_lib_save_LIBS=$LIBS
31436LIBS="-lpng $LIBS"
31437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438/* end confdefs.h. */
31439
31440/* Override any GCC internal prototype to avoid an error.
31441 Use char because int might match the return type of a GCC
31442 builtin and then its argument prototype would still apply. */
31443#ifdef __cplusplus
31444extern "C"
31445#endif
31446char png_get_io_ptr ();
31447int
31448main ()
31449{
31450return png_get_io_ptr ();
31451 ;
31452 return 0;
31453}
31454_ACEOF
31455if ac_fn_c_try_link "$LINENO"; then :
31456 ac_cv_lib_png_png_get_io_ptr=yes
31457else
31458 ac_cv_lib_png_png_get_io_ptr=no
31459fi
31460rm -f core conftest.err conftest.$ac_objext \
31461 conftest$ac_exeext conftest.$ac_ext
31462LIBS=$ac_check_lib_save_LIBS
31463fi
31464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31465$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31466if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31467 passed=`expr $passed + 1`
31468else
31469 failed=`expr $failed + 1`
31470fi
31471
31472 fi
31473 if test $passed -gt 0 -a $failed -le 0 ; then
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31475$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31476 if test $passed -gt 0 ; then
31477 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031478 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31479$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031480 have_png='no (failed tests)'
31481 else
31482 PNG_LIBS="-l${pnglib}"
31483 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031484
cristy8b350f62009-11-15 23:12:43 +000031485$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031486
cristy09b53e12011-10-14 12:47:22 +000031487 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31488$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031489 have_png='yes'
31490 fi
31491 fi
31492 fi
31493 fi
31494 fi
31495 done
31496 fi
cristy3ed852e2009-09-05 21:47:34 +000031497fi
cristy64877302011-08-23 19:10:31 +000031498
cristy73bd4a52010-10-05 11:24:23 +000031499 if test "$have_png" = 'yes'; then
31500 PNG_DELEGATE_TRUE=
31501 PNG_DELEGATE_FALSE='#'
31502else
31503 PNG_DELEGATE_TRUE='#'
31504 PNG_DELEGATE_FALSE=
31505fi
31506
cristy3ed852e2009-09-05 21:47:34 +000031507
cristy50d3f5c2011-09-10 20:09:06 +000031508
cristy3ed852e2009-09-05 21:47:34 +000031509
31510
31511#
31512# Check for RSVG delegate library.
31513#
31514
31515# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031516if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031517 withval=$with_rsvg; with_rsvg=$withval
31518else
cristyfc3d0222012-02-07 15:05:57 +000031519 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031520fi
31521
31522
31523if test "$with_rsvg" != 'yes'; then
31524 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31525fi
31526
31527have_rsvg='no'
31528have_cairo='no'
31529RSVG_CFLAGS=""
31530RSVG_LIBS=""
31531RSVG_PKG=""
31532if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031533 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31534$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031535
31536pkg_failed=no
31537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31538$as_echo_n "checking for RSVG... " >&6; }
31539
31540if test -n "$RSVG_CFLAGS"; then
31541 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31542 elif test -n "$PKG_CONFIG"; then
31543 if test -n "$PKG_CONFIG" && \
31544 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31545 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31546 ac_status=$?
31547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31548 test $ac_status = 0; }; then
31549 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31550else
31551 pkg_failed=yes
31552fi
31553 else
31554 pkg_failed=untried
31555fi
31556if test -n "$RSVG_LIBS"; then
31557 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31558 elif test -n "$PKG_CONFIG"; then
31559 if test -n "$PKG_CONFIG" && \
31560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31561 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31562 ac_status=$?
31563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31564 test $ac_status = 0; }; then
31565 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31566else
31567 pkg_failed=yes
31568fi
31569 else
31570 pkg_failed=untried
31571fi
31572
31573
31574
31575if test $pkg_failed = yes; then
31576
31577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31578 _pkg_short_errors_supported=yes
31579else
31580 _pkg_short_errors_supported=no
31581fi
31582 if test $_pkg_short_errors_supported = yes; then
31583 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31584 else
31585 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31586 fi
31587 # Put the nasty error message in config.log where it belongs
31588 echo "$RSVG_PKG_ERRORS" >&5
31589
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31591$as_echo "no" >&6; }
31592 have_rsvg=no
31593elif test $pkg_failed = untried; then
31594 have_rsvg=no
31595else
31596 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31597 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31599$as_echo "yes" >&6; }
31600 have_rsvg=yes
31601fi
cristy09b53e12011-10-14 12:47:22 +000031602 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31603$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031604
31605pkg_failed=no
31606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31607$as_echo_n "checking for CAIRO_SVG... " >&6; }
31608
31609if test -n "$CAIRO_SVG_CFLAGS"; then
31610 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31611 elif test -n "$PKG_CONFIG"; then
31612 if test -n "$PKG_CONFIG" && \
31613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31614 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31615 ac_status=$?
31616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31617 test $ac_status = 0; }; then
31618 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31619else
31620 pkg_failed=yes
31621fi
31622 else
31623 pkg_failed=untried
31624fi
31625if test -n "$CAIRO_SVG_LIBS"; then
31626 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31627 elif test -n "$PKG_CONFIG"; then
31628 if test -n "$PKG_CONFIG" && \
31629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31630 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31631 ac_status=$?
31632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31633 test $ac_status = 0; }; then
31634 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31635else
31636 pkg_failed=yes
31637fi
31638 else
31639 pkg_failed=untried
31640fi
31641
31642
31643
31644if test $pkg_failed = yes; then
31645
31646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31647 _pkg_short_errors_supported=yes
31648else
31649 _pkg_short_errors_supported=no
31650fi
31651 if test $_pkg_short_errors_supported = yes; then
31652 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31653 else
31654 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31655 fi
31656 # Put the nasty error message in config.log where it belongs
31657 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31658
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660$as_echo "no" >&6; }
31661 have_cairo=no
31662elif test $pkg_failed = untried; then
31663 have_cairo=no
31664else
31665 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31666 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31668$as_echo "yes" >&6; }
31669 have_cairo=yes
31670fi
cristy09b53e12011-10-14 12:47:22 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31672$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031673fi
31674
31675if test "$have_rsvg" = 'yes'; then
31676
cristy8b350f62009-11-15 23:12:43 +000031677$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031678
31679 if test "$with_modules" = 'no'; then
31680 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31681 fi
31682fi
31683
31684if test "$have_cairo" = 'yes'; then
31685
cristy8b350f62009-11-15 23:12:43 +000031686$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031687
31688 if test "$with_modules" = 'no'; then
31689 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31690 fi
31691fi
31692
cristy73bd4a52010-10-05 11:24:23 +000031693 if test "$have_rsvg" = 'yes'; then
31694 RSVG_DELEGATE_TRUE=
31695 RSVG_DELEGATE_FALSE='#'
31696else
31697 RSVG_DELEGATE_TRUE='#'
31698 RSVG_DELEGATE_FALSE=
31699fi
31700
31701 if test "$have_cairo" = 'yes'; then
31702 CAIRO_DELEGATE_TRUE=
31703 CAIRO_DELEGATE_FALSE='#'
31704else
31705 CAIRO_DELEGATE_TRUE='#'
31706 CAIRO_DELEGATE_FALSE=
31707fi
31708
cristy3ed852e2009-09-05 21:47:34 +000031709
31710
31711
31712
31713#
31714# Check for TIFF delegate library.
31715#
31716
31717# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031718if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031719 withval=$with_tiff; with_tiff=$withval
31720else
31721 with_tiff='yes'
31722fi
31723
31724
31725if test "$with_tiff" != 'yes'; then
31726 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31727fi
31728
31729have_tiff='no'
31730TIFF_LIBS=''
31731if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031732 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31733$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031736 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31737$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031738 failed=0
31739 passed=0
cristy8b350f62009-11-15 23:12:43 +000031740 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031741if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031742 passed=`expr $passed + 1`
31743else
31744 failed=`expr $failed + 1`
31745fi
31746
31747
cristy8b350f62009-11-15 23:12:43 +000031748 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031749if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031750 passed=`expr $passed + 1`
31751else
31752 failed=`expr $failed + 1`
31753fi
31754
31755
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031758if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031759 $as_echo_n "(cached) " >&6
31760else
31761 ac_check_lib_save_LIBS=$LIBS
31762LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031764/* end confdefs.h. */
31765
31766/* Override any GCC internal prototype to avoid an error.
31767 Use char because int might match the return type of a GCC
31768 builtin and then its argument prototype would still apply. */
31769#ifdef __cplusplus
31770extern "C"
31771#endif
31772char TIFFOpen ();
31773int
31774main ()
31775{
31776return TIFFOpen ();
31777 ;
31778 return 0;
31779}
31780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031781if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031782 ac_cv_lib_tiff_TIFFOpen=yes
31783else
cristy8b350f62009-11-15 23:12:43 +000031784 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031785fi
cristy8b350f62009-11-15 23:12:43 +000031786rm -f core conftest.err conftest.$ac_objext \
31787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031788LIBS=$ac_check_lib_save_LIBS
31789fi
cristy8b350f62009-11-15 23:12:43 +000031790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031791$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031792if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031793 passed=`expr $passed + 1`
31794else
31795 failed=`expr $failed + 1`
31796fi
31797
cristy8b350f62009-11-15 23:12:43 +000031798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031799$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031800if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031801 $as_echo_n "(cached) " >&6
31802else
31803 ac_check_lib_save_LIBS=$LIBS
31804LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031806/* end confdefs.h. */
31807
31808/* Override any GCC internal prototype to avoid an error.
31809 Use char because int might match the return type of a GCC
31810 builtin and then its argument prototype would still apply. */
31811#ifdef __cplusplus
31812extern "C"
31813#endif
31814char TIFFClientOpen ();
31815int
31816main ()
31817{
31818return TIFFClientOpen ();
31819 ;
31820 return 0;
31821}
31822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031823if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 ac_cv_lib_tiff_TIFFClientOpen=yes
31825else
cristy8b350f62009-11-15 23:12:43 +000031826 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031827fi
cristy8b350f62009-11-15 23:12:43 +000031828rm -f core conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031830LIBS=$ac_check_lib_save_LIBS
31831fi
cristy8b350f62009-11-15 23:12:43 +000031832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031834if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031835 passed=`expr $passed + 1`
31836else
31837 failed=`expr $failed + 1`
31838fi
31839
cristy8b350f62009-11-15 23:12:43 +000031840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031841$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031842if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031843 $as_echo_n "(cached) " >&6
31844else
31845 ac_check_lib_save_LIBS=$LIBS
31846LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031848/* end confdefs.h. */
31849
31850/* Override any GCC internal prototype to avoid an error.
31851 Use char because int might match the return type of a GCC
31852 builtin and then its argument prototype would still apply. */
31853#ifdef __cplusplus
31854extern "C"
31855#endif
31856char TIFFIsByteSwapped ();
31857int
31858main ()
31859{
31860return TIFFIsByteSwapped ();
31861 ;
31862 return 0;
31863}
31864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031866 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31867else
cristy8b350f62009-11-15 23:12:43 +000031868 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031869fi
cristy8b350f62009-11-15 23:12:43 +000031870rm -f core conftest.err conftest.$ac_objext \
31871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031872LIBS=$ac_check_lib_save_LIBS
31873fi
cristy8b350f62009-11-15 23:12:43 +000031874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031875$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031876if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031877 passed=`expr $passed + 1`
31878else
31879 failed=`expr $failed + 1`
31880fi
31881
cristy8b350f62009-11-15 23:12:43 +000031882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031884if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031885 $as_echo_n "(cached) " >&6
31886else
31887 ac_check_lib_save_LIBS=$LIBS
31888LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031890/* end confdefs.h. */
31891
31892/* Override any GCC internal prototype to avoid an error.
31893 Use char because int might match the return type of a GCC
31894 builtin and then its argument prototype would still apply. */
31895#ifdef __cplusplus
31896extern "C"
31897#endif
31898char TIFFReadRGBATile ();
31899int
31900main ()
31901{
31902return TIFFReadRGBATile ();
31903 ;
31904 return 0;
31905}
31906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31909else
cristy8b350f62009-11-15 23:12:43 +000031910 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031911fi
cristy8b350f62009-11-15 23:12:43 +000031912rm -f core conftest.err conftest.$ac_objext \
31913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031914LIBS=$ac_check_lib_save_LIBS
31915fi
cristy8b350f62009-11-15 23:12:43 +000031916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031917$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031918if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031919 passed=`expr $passed + 1`
31920else
31921 failed=`expr $failed + 1`
31922fi
31923
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031926if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 $as_echo_n "(cached) " >&6
31928else
31929 ac_check_lib_save_LIBS=$LIBS
31930LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031932/* end confdefs.h. */
31933
31934/* Override any GCC internal prototype to avoid an error.
31935 Use char because int might match the return type of a GCC
31936 builtin and then its argument prototype would still apply. */
31937#ifdef __cplusplus
31938extern "C"
31939#endif
31940char TIFFReadRGBAStrip ();
31941int
31942main ()
31943{
31944return TIFFReadRGBAStrip ();
31945 ;
31946 return 0;
31947}
31948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031950 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31951else
cristy8b350f62009-11-15 23:12:43 +000031952 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031953fi
cristy8b350f62009-11-15 23:12:43 +000031954rm -f core conftest.err conftest.$ac_objext \
31955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031956LIBS=$ac_check_lib_save_LIBS
31957fi
cristy8b350f62009-11-15 23:12:43 +000031958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031960if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031961 passed=`expr $passed + 1`
31962else
31963 failed=`expr $failed + 1`
31964fi
31965
cristy8b350f62009-11-15 23:12:43 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967$as_echo_n "checking if TIFF package is complete... " >&6; }
31968 if test $passed -gt 0; then
31969 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031970 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31971$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031972 have_tiff='no (failed tests)'
31973 else
31974 TIFF_LIBS='-ltiff'
31975 LIBS="$TIFF_LIBS $LIBS"
31976
cristy8b350f62009-11-15 23:12:43 +000031977$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031978
cristy09b53e12011-10-14 12:47:22 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31980$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031981 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031982 for ac_header in tiffconf.h
31983do :
31984 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031985if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031986 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031987#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031988_ACEOF
31989
31990fi
31991
31992done
31993
cristy8b350f62009-11-15 23:12:43 +000031994 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031995 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31996 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31997 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031998do :
31999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032001if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032002 cat >>confdefs.h <<_ACEOF
32003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32004_ACEOF
32005
32006fi
32007done
32008
32009 fi
32010 else
cristy09b53e12011-10-14 12:47:22 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32012$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032013 fi
32014fi
cristy73bd4a52010-10-05 11:24:23 +000032015 if test "$have_tiff" = 'yes'; then
32016 TIFF_DELEGATE_TRUE=
32017 TIFF_DELEGATE_FALSE='#'
32018else
32019 TIFF_DELEGATE_TRUE='#'
32020 TIFF_DELEGATE_FALSE=
32021fi
32022
cristy3ed852e2009-09-05 21:47:34 +000032023
32024
32025
32026#
cristyb1860752011-03-14 00:27:46 +000032027# Check for WEBP delegate library.
32028#
32029
32030# Check whether --with-webp was given.
32031if test "${with_webp+set}" = set; then :
32032 withval=$with_webp; with_webp=$withval
32033else
32034 with_webp='yes'
32035fi
32036
32037
32038if test "$with_webp" != 'yes'; then
32039 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32040fi
32041
32042have_webp='no'
32043WEBP_LIBS=''
32044if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32046$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32048$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32050$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032051 failed=0
32052 passed=0
32053 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32054if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32055 passed=`expr $passed + 1`
32056else
32057 failed=`expr $failed + 1`
32058fi
32059
32060
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32062$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32063if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32064 $as_echo_n "(cached) " >&6
32065else
32066 ac_check_lib_save_LIBS=$LIBS
32067LIBS="-lwebp $LIBS"
32068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32069/* end confdefs.h. */
32070
32071/* Override any GCC internal prototype to avoid an error.
32072 Use char because int might match the return type of a GCC
32073 builtin and then its argument prototype would still apply. */
32074#ifdef __cplusplus
32075extern "C"
32076#endif
32077char WebPDecodeRGB ();
32078int
32079main ()
32080{
32081return WebPDecodeRGB ();
32082 ;
32083 return 0;
32084}
32085_ACEOF
32086if ac_fn_c_try_link "$LINENO"; then :
32087 ac_cv_lib_webp_WebPDecodeRGB=yes
32088else
32089 ac_cv_lib_webp_WebPDecodeRGB=no
32090fi
32091rm -f core conftest.err conftest.$ac_objext \
32092 conftest$ac_exeext conftest.$ac_ext
32093LIBS=$ac_check_lib_save_LIBS
32094fi
32095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32096$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32097if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32098 passed=`expr $passed + 1`
32099else
32100 failed=`expr $failed + 1`
32101fi
32102
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32104$as_echo_n "checking if WEBP package is complete... " >&6; }
32105 if test $passed -gt 0; then
32106 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032107 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32108$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032109 have_webp='no (failed tests)'
32110 else
32111 WEBP_LIBS='-lwebp'
32112 LIBS="$WEBP_LIBS $LIBS"
32113
32114$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32115
cristy09b53e12011-10-14 12:47:22 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32117$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032118 have_webp='yes'
32119 fi
32120 else
cristy09b53e12011-10-14 12:47:22 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32122$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032123 fi
32124fi
32125 if test "$have_webp" = 'yes'; then
32126 WEBP_DELEGATE_TRUE=
32127 WEBP_DELEGATE_FALSE='#'
32128else
32129 WEBP_DELEGATE_TRUE='#'
32130 WEBP_DELEGATE_FALSE=
32131fi
32132
32133
32134
32135
32136#
cristy3ed852e2009-09-05 21:47:34 +000032137# Set Windows font directory.
32138#
32139
32140# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032141if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032142 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32143else
32144 with_windows_font_dir=''
32145fi
32146
32147if test "$with_windows_font_dir" != '' ; then
32148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32149fi
32150
32151
32152#
32153# Check for WMF delegate library.
32154#
32155
32156# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032157if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032158 withval=$with_wmf; with_wmf=$withval
32159else
cristyfc3d0222012-02-07 15:05:57 +000032160 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032161fi
32162
32163
32164if test "$with_wmf" != 'yes'; then
32165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32166fi
32167
32168have_wmf='no'
32169WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032170WMF_LIBS_DEPS=''
32171OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032172if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32174$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032176$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32178$as_echo "" >&6; }
32179 have_libwmf='no'
32180 have_libwmflite='no'
32181 have_libwmf_ipa_h='no'
32182
32183 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32184"
32185if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32186 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032187fi
32188
32189
cristy03f7cf92011-12-15 01:40:41 +000032190 if test "$have_libwmf_ipa_h" = 'yes'; then
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32192$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32193if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032194 $as_echo_n "(cached) " >&6
32195else
32196 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032197LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032199/* end confdefs.h. */
32200
32201/* Override any GCC internal prototype to avoid an error.
32202 Use char because int might match the return type of a GCC
32203 builtin and then its argument prototype would still apply. */
32204#ifdef __cplusplus
32205extern "C"
32206#endif
cristy03f7cf92011-12-15 01:40:41 +000032207char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032208int
32209main ()
32210{
cristy03f7cf92011-12-15 01:40:41 +000032211return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032212 ;
32213 return 0;
32214}
32215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032216if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032217 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032218else
cristy03f7cf92011-12-15 01:40:41 +000032219 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032220fi
cristy8b350f62009-11-15 23:12:43 +000032221rm -f core conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032223LIBS=$ac_check_lib_save_LIBS
32224fi
cristy03f7cf92011-12-15 01:40:41 +000032225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32226$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32227if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32228 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032229fi
32230
cristy03f7cf92011-12-15 01:40:41 +000032231 if test "$have_libwmflite" = 'yes'; then
32232
32233$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32234
32235 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032236 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032237 have_wmf='yes'
32238 else
32239 WMF_LIBS_DEPS=''
32240 WMF_CONFIG_LIBS=`libwmf-config --libs`
32241 for lib in xml2 expat freetype jpeg png z; do
32242 testlib="-l${lib}"
32243 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32244 done
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32246$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32247if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32248 $as_echo_n "(cached) " >&6
32249else
32250 ac_check_lib_save_LIBS=$LIBS
32251LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32253/* end confdefs.h. */
32254
32255/* Override any GCC internal prototype to avoid an error.
32256 Use char because int might match the return type of a GCC
32257 builtin and then its argument prototype would still apply. */
32258#ifdef __cplusplus
32259extern "C"
32260#endif
32261char wmf_api_create ();
32262int
32263main ()
32264{
32265return wmf_api_create ();
32266 ;
32267 return 0;
32268}
32269_ACEOF
32270if ac_fn_c_try_link "$LINENO"; then :
32271 ac_cv_lib_wmf_wmf_api_create=yes
32272else
32273 ac_cv_lib_wmf_wmf_api_create=no
32274fi
32275rm -f core conftest.err conftest.$ac_objext \
32276 conftest$ac_exeext conftest.$ac_ext
32277LIBS=$ac_check_lib_save_LIBS
32278fi
32279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32280$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32281if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32282 have_libwmf='yes'
32283fi
32284
32285 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032286
cristy8b350f62009-11-15 23:12:43 +000032287$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032288
cristy03f7cf92011-12-15 01:40:41 +000032289 WMF_LIBS='-lwmf'
32290 LIBS="$WMF_LIBS $LIBS"
32291 have_wmf='yes'
32292 else
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32294$as_echo "no -- some components failed test" >&6; }
32295 have_wmf='no (failed tests)'
32296 have_wmflite='no (failed tests)'
32297 LIBS="$OLIBS"
32298 WMF_LIBS=''
32299 fi
glennrp33e524b2011-08-24 17:41:57 +000032300 fi
cristy03f7cf92011-12-15 01:40:41 +000032301 fi
32302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32303$as_echo_n "checking if WMF package is complete... " >&6; }
32304 if test "$have_wmf" = 'yes'; then
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32306$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032307 else
cristy03f7cf92011-12-15 01:40:41 +000032308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32309$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032310 fi
cristy3ed852e2009-09-05 21:47:34 +000032311fi
cristy73bd4a52010-10-05 11:24:23 +000032312 if test "$have_wmf" = 'yes'; then
32313 WMF_DELEGATE_TRUE=
32314 WMF_DELEGATE_FALSE='#'
32315else
32316 WMF_DELEGATE_TRUE='#'
32317 WMF_DELEGATE_FALSE=
32318fi
32319
cristy3ed852e2009-09-05 21:47:34 +000032320
32321
32322
cristy81beccd2011-10-03 18:17:24 +000032323
32324
cristy3ed852e2009-09-05 21:47:34 +000032325#
32326# Check for XML delegate library.
32327#
32328
32329# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032330if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032331 withval=$with_xml; with_xml=$withval
32332else
cristyfc3d0222012-02-07 15:05:57 +000032333 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032334fi
32335
32336
cristy81beccd2011-10-03 18:17:24 +000032337if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32339fi
32340
cristy81beccd2011-10-03 18:17:24 +000032341have_xml='no'
32342XML_LIBS=''
32343if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32345$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32347$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32349$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032350 PERSIST_LDFLAGS=$LDFLAGS
32351 PERSIST_CPPFLAGS=$CPPFLAGS
32352 xml2_config=''
32353 # Extract the first word of "xml2-config", so it can be a program name with args.
32354set dummy xml2-config; ac_word=$2
32355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32356$as_echo_n "checking for $ac_word... " >&6; }
32357if ${ac_cv_path_xml2_config+:} false; then :
32358 $as_echo_n "(cached) " >&6
32359else
32360 case $xml2_config in
32361 [\\/]* | ?:[\\/]*)
32362 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32363 ;;
32364 *)
32365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32366for as_dir in $PATH
32367do
32368 IFS=$as_save_IFS
32369 test -z "$as_dir" && as_dir=.
32370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032372 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32374 break 2
32375 fi
32376done
32377 done
32378IFS=$as_save_IFS
32379
32380 ;;
32381esac
32382fi
32383xml2_config=$ac_cv_path_xml2_config
32384if test -n "$xml2_config"; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32386$as_echo "$xml2_config" >&6; }
32387else
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32389$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032390fi
32391
cristy81beccd2011-10-03 18:17:24 +000032392 if test -n "$xml2_config"; then
32393 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32394 # the shared library installed under /usr/lib, whereas the package
32395 # installs itself under $prefix/libxml and $prefix/lib.
32396 xml2_prefix=`xml2-config --prefix`
32397 if test -d "${xml2_prefix}/include/libxml2"; then
32398 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32399 fi
32400 if test "${xml2_prefix}" != '/usr'; then
32401 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32402 fi
32403 fi
32404 failed=0
32405 passed=0
32406 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32407if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32408 passed=`expr $passed + 1`
32409else
32410 failed=`expr $failed + 1`
32411fi
32412
32413
32414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32415$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32416if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32417 $as_echo_n "(cached) " >&6
32418else
32419 ac_check_lib_save_LIBS=$LIBS
32420LIBS="-lxml2 $LIBS"
32421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32422/* end confdefs.h. */
32423
32424/* Override any GCC internal prototype to avoid an error.
32425 Use char because int might match the return type of a GCC
32426 builtin and then its argument prototype would still apply. */
32427#ifdef __cplusplus
32428extern "C"
32429#endif
32430char xmlSAXVersion ();
32431int
32432main ()
32433{
32434return xmlSAXVersion ();
32435 ;
32436 return 0;
32437}
32438_ACEOF
32439if ac_fn_c_try_link "$LINENO"; then :
32440 ac_cv_lib_xml2_xmlSAXVersion=yes
32441else
32442 ac_cv_lib_xml2_xmlSAXVersion=no
32443fi
32444rm -f core conftest.err conftest.$ac_objext \
32445 conftest$ac_exeext conftest.$ac_ext
32446LIBS=$ac_check_lib_save_LIBS
32447fi
32448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32449$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32450if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32451 passed=`expr $passed + 1`
32452else
32453 failed=`expr $failed + 1`
32454fi
32455
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32457$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32458if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32459 $as_echo_n "(cached) " >&6
32460else
32461 ac_check_lib_save_LIBS=$LIBS
32462LIBS="-lxml2 $LIBS"
32463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32464/* end confdefs.h. */
32465
32466/* Override any GCC internal prototype to avoid an error.
32467 Use char because int might match the return type of a GCC
32468 builtin and then its argument prototype would still apply. */
32469#ifdef __cplusplus
32470extern "C"
32471#endif
32472char xmlParseChunk ();
32473int
32474main ()
32475{
32476return xmlParseChunk ();
32477 ;
32478 return 0;
32479}
32480_ACEOF
32481if ac_fn_c_try_link "$LINENO"; then :
32482 ac_cv_lib_xml2_xmlParseChunk=yes
32483else
32484 ac_cv_lib_xml2_xmlParseChunk=no
32485fi
32486rm -f core conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
32488LIBS=$ac_check_lib_save_LIBS
32489fi
32490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32491$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32492if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32493 passed=`expr $passed + 1`
32494else
32495 failed=`expr $failed + 1`
32496fi
32497
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32499$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32500if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32501 $as_echo_n "(cached) " >&6
32502else
32503 ac_check_lib_save_LIBS=$LIBS
32504LIBS="-lxml2 $LIBS"
32505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32506/* end confdefs.h. */
32507
32508/* Override any GCC internal prototype to avoid an error.
32509 Use char because int might match the return type of a GCC
32510 builtin and then its argument prototype would still apply. */
32511#ifdef __cplusplus
32512extern "C"
32513#endif
32514char xmlCreatePushParserCtxt ();
32515int
32516main ()
32517{
32518return xmlCreatePushParserCtxt ();
32519 ;
32520 return 0;
32521}
32522_ACEOF
32523if ac_fn_c_try_link "$LINENO"; then :
32524 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32525else
32526 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32527fi
32528rm -f core conftest.err conftest.$ac_objext \
32529 conftest$ac_exeext conftest.$ac_ext
32530LIBS=$ac_check_lib_save_LIBS
32531fi
32532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32533$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32534if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32535 passed=`expr $passed + 1`
32536else
32537 failed=`expr $failed + 1`
32538fi
32539
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32541$as_echo_n "checking if XML package is complete... " >&6; }
32542 if test $passed -gt 0; then
32543 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032544 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32545$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032546 have_xml='no (failed tests)'
32547 LDFLAGS="$PERSIST_LDFLAGS"
32548 CPPFLAGS="$PERSIST_CPPFLAGS"
32549 else
32550 XML_LIBS='-lxml2'
32551 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032552
cristy8b350f62009-11-15 23:12:43 +000032553$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032554
cristy09b53e12011-10-14 12:47:22 +000032555 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32556$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032557 have_xml='yes'
32558 fi
32559 else
cristy09b53e12011-10-14 12:47:22 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32561$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032562 fi
32563fi
cristy73bd4a52010-10-05 11:24:23 +000032564 if test "$have_xml" = 'yes'; then
32565 XML_DELEGATE_TRUE=
32566 XML_DELEGATE_FALSE='#'
32567else
32568 XML_DELEGATE_TRUE='#'
32569 XML_DELEGATE_FALSE=
32570fi
32571
cristy3ed852e2009-09-05 21:47:34 +000032572
32573
32574
32575# Substitute compiler name to build/link PerlMagick
32576#
32577
32578
32579#
32580# Configure install Paths
32581#
cristy7def36a2011-10-28 19:04:41 +000032582
cristy2a11bef2011-10-28 18:33:11 +000032583# Path to ImageMagick header files
32584INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032585INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32586DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032587case "${build_os}" in
32588 mingw* )
32589 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32590 ;;
32591esac
32592
32593cat >>confdefs.h <<_ACEOF
32594#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32595_ACEOF
32596
32597
cristy3ed852e2009-09-05 21:47:34 +000032598
32599# Subdirectory under lib to place ImageMagick lib files
32600LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32601
32602cat >>confdefs.h <<_ACEOF
32603#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32604_ACEOF
32605
32606
32607# Path to ImageMagick bin directory
32608EXECUTABLE_PATH="${BIN_DIR}"
32609DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32610case "${build_os}" in
32611 mingw* )
32612 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32613 ;;
32614esac
32615
32616cat >>confdefs.h <<_ACEOF
32617#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32618_ACEOF
32619
32620
32621
32622# Path to ImageMagick lib
32623LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32624DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32625case "${build_os}" in
32626 mingw* )
32627 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32628 ;;
32629esac
32630
32631cat >>confdefs.h <<_ACEOF
32632#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32633_ACEOF
32634
32635
32636
cristy3ed852e2009-09-05 21:47:34 +000032637#
32638# Subdirectory under lib to place ImageMagick coder module files
32639CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32640
32641cat >>confdefs.h <<_ACEOF
32642#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32643_ACEOF
32644
32645CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32646DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32647case "${build_os}" in
32648 mingw* )
32649 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32650 ;;
32651esac
32652
32653cat >>confdefs.h <<_ACEOF
32654#define CODER_PATH "$DEFINE_CODER_PATH"
32655_ACEOF
32656
32657
32658
32659#
32660# Subdirectory under lib to place ImageMagick filter module files
32661FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32662
32663cat >>confdefs.h <<_ACEOF
32664#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32665_ACEOF
32666
32667FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32668DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32669case "${build_os}" in
32670 mingw* )
32671 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32672 ;;
32673esac
32674
32675cat >>confdefs.h <<_ACEOF
32676#define FILTER_PATH "$DEFINE_FILTER_PATH"
32677_ACEOF
32678
32679
32680
32681#
32682# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032683DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032684DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32685DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032686case "${build_os}" in
32687 mingw* )
32688 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32689 ;;
32690esac
32691
32692cat >>confdefs.h <<_ACEOF
32693#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32694_ACEOF
32695
32696
32697
cristy2a11bef2011-10-28 18:33:11 +000032698# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032699CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032700
32701cat >>confdefs.h <<_ACEOF
32702#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32703_ACEOF
32704
cristy7def36a2011-10-28 19:04:41 +000032705CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032706DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32707case "${build_os}" in
32708 mingw* )
32709 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32710 ;;
32711esac
32712
32713cat >>confdefs.h <<_ACEOF
32714#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32715_ACEOF
32716
32717
32718
cristy2a11bef2011-10-28 18:33:11 +000032719# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032720SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032721
32722cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032723#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032724_ACEOF
32725
cristy670aa3c2011-11-03 00:54:00 +000032726SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032727DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032728case "${build_os}" in
32729 mingw* )
cristy4f820712011-04-01 12:35:43 +000032730 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032731 ;;
32732esac
32733
32734cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032735#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032736_ACEOF
32737
32738
32739
cristy408ebcd2011-11-14 01:36:57 +000032740# Subdirectory to place architecture-dependent configuration files
32741SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032742
32743cat >>confdefs.h <<_ACEOF
32744#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32745_ACEOF
32746
cristy408ebcd2011-11-14 01:36:57 +000032747SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32748DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032749case "${build_os}" in
32750 mingw* )
32751 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32752 ;;
32753esac
32754
32755cat >>confdefs.h <<_ACEOF
32756#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32757_ACEOF
32758
32759
32760
cristy3ed852e2009-09-05 21:47:34 +000032761#
32762# program_transform_name is formed for use in a Makefile, so create a
32763# modified version for use in a shell script.
32764configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32765
32766# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032767{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32768$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032770$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032771{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32772$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032773AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032774BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032775BZIPDelegateDefault='bzip2'
32776BrowseDelegateDefault='xdg-open'
32777CGMDecodeDelegateDefault='ralcgm'
32778CatDelegateDefault='cat'
32779DNGDecodeDelegateDefault='ufraw-batch'
32780GVCDecodeDelegateDefault='dot'
32781DVIDecodeDelegateDefault='dvips'
32782EchoDelegateDefault='echo'
32783EditorDelegateDefault='xterm'
32784FIGDecodeDelegateDefault='fig2dev'
32785ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32786DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32787MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32788GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032789HPGLDecodeDelegateDefault='hp2xx'
32790HTMLDecodeDelegateDefault='html2ps'
32791ILBMDecodeDelegateDefault='ilbmtoppm'
32792ILBMEncodeDelegateDefault='ppmtoilbm'
32793LPDelegateDefault='lp'
32794LPRDelegateDefault='lpr'
32795LZWDecodeDelegateDefault='uncompress'
32796LZWEncodeDelegateDefault='compress'
32797LaunchDelegateDefault='gimp'
32798MANDelegateDefault='groff'
32799MPEGDecodeDelegateDefault='ffmpeg'
32800MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032801MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032802MVDelegateDefault='mv'
32803PCLDelegateDefault='pcl6'
32804PGPDecodeDelegateDefault='pgpv'
32805POVDelegateDefault='povray'
32806if test "$native_win32_build" = 'yes'; then
32807 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032808elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032809 PSDelegateDefault='gsc'
32810else
32811 PSDelegateDefault='gs'
32812fi
32813RLEEncodeDelegateDefault='rawtorle'
32814RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032815RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032816SCANDecodeDelegateDefault='scanimage'
32817TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032818UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032819WMFDecodeDelegateDefault='wmf2eps'
32820WWWDecodeDelegateDefault='curl'
32821XPSDelegateDefault='gxps'
32822ZipDelegateDefault='gzip'
32823
32824# Search for delegates
32825# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32826set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032829if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032830 $as_echo_n "(cached) " >&6
32831else
32832 case $AutotraceDecodeDelegate in
32833 [\\/]* | ?:[\\/]*)
32834 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32835 ;;
32836 *)
32837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32838for as_dir in $PATH
32839do
32840 IFS=$as_save_IFS
32841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032844 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846 break 2
32847 fi
32848done
cristy8b350f62009-11-15 23:12:43 +000032849 done
cristy3ed852e2009-09-05 21:47:34 +000032850IFS=$as_save_IFS
32851
32852 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32853 ;;
32854esac
32855fi
32856AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32857if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032859$as_echo "$AutotraceDecodeDelegate" >&6; }
32860else
cristy8b350f62009-11-15 23:12:43 +000032861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032862$as_echo "no" >&6; }
32863fi
32864
32865
cristy3ed852e2009-09-05 21:47:34 +000032866# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32867set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032870if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032871 $as_echo_n "(cached) " >&6
32872else
32873 case $BlenderDecodeDelegate in
32874 [\\/]* | ?:[\\/]*)
32875 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32876 ;;
32877 *)
32878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32879for as_dir in $PATH
32880do
32881 IFS=$as_save_IFS
32882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032885 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887 break 2
32888 fi
32889done
cristy8b350f62009-11-15 23:12:43 +000032890 done
cristy3ed852e2009-09-05 21:47:34 +000032891IFS=$as_save_IFS
32892
32893 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32894 ;;
32895esac
32896fi
32897BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32898if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032900$as_echo "$BlenderDecodeDelegate" >&6; }
32901else
cristy8b350f62009-11-15 23:12:43 +000032902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032903$as_echo "no" >&6; }
32904fi
32905
32906
32907# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32908set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032911if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032912 $as_echo_n "(cached) " >&6
32913else
32914 case $BZIPDelegate in
32915 [\\/]* | ?:[\\/]*)
32916 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32917 ;;
32918 *)
32919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32920for as_dir in $PATH
32921do
32922 IFS=$as_save_IFS
32923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032926 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928 break 2
32929 fi
32930done
cristy8b350f62009-11-15 23:12:43 +000032931 done
cristy3ed852e2009-09-05 21:47:34 +000032932IFS=$as_save_IFS
32933
32934 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32935 ;;
32936esac
32937fi
32938BZIPDelegate=$ac_cv_path_BZIPDelegate
32939if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "$BZIPDelegate" >&6; }
32942else
cristy8b350f62009-11-15 23:12:43 +000032943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032944$as_echo "no" >&6; }
32945fi
32946
32947
32948# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32949set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032952if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032953 $as_echo_n "(cached) " >&6
32954else
32955 case $BrowseDelegate in
32956 [\\/]* | ?:[\\/]*)
32957 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32958 ;;
32959 *)
32960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32961for as_dir in $PATH
32962do
32963 IFS=$as_save_IFS
32964 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032967 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969 break 2
32970 fi
32971done
cristy8b350f62009-11-15 23:12:43 +000032972 done
cristy3ed852e2009-09-05 21:47:34 +000032973IFS=$as_save_IFS
32974
32975 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32976 ;;
32977esac
32978fi
32979BrowseDelegate=$ac_cv_path_BrowseDelegate
32980if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982$as_echo "$BrowseDelegate" >&6; }
32983else
cristy8b350f62009-11-15 23:12:43 +000032984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985$as_echo "no" >&6; }
32986fi
32987
32988
32989# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32990set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032993if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032994 $as_echo_n "(cached) " >&6
32995else
32996 case $CGMDecodeDelegate in
32997 [\\/]* | ?:[\\/]*)
32998 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32999 ;;
33000 *)
33001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33002for as_dir in $PATH
33003do
33004 IFS=$as_save_IFS
33005 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033006 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033008 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010 break 2
33011 fi
33012done
cristy8b350f62009-11-15 23:12:43 +000033013 done
cristy3ed852e2009-09-05 21:47:34 +000033014IFS=$as_save_IFS
33015
33016 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33017 ;;
33018esac
33019fi
33020CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33021if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023$as_echo "$CGMDecodeDelegate" >&6; }
33024else
cristy8b350f62009-11-15 23:12:43 +000033025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033026$as_echo "no" >&6; }
33027fi
33028
33029
33030# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33031set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033034if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033035 $as_echo_n "(cached) " >&6
33036else
33037 case $CatDelegate in
33038 [\\/]* | ?:[\\/]*)
33039 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33040 ;;
33041 *)
33042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33043for as_dir in $PATH
33044do
33045 IFS=$as_save_IFS
33046 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033049 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051 break 2
33052 fi
33053done
cristy8b350f62009-11-15 23:12:43 +000033054 done
cristy3ed852e2009-09-05 21:47:34 +000033055IFS=$as_save_IFS
33056
33057 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33058 ;;
33059esac
33060fi
33061CatDelegate=$ac_cv_path_CatDelegate
33062if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064$as_echo "$CatDelegate" >&6; }
33065else
cristy8b350f62009-11-15 23:12:43 +000033066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033067$as_echo "no" >&6; }
33068fi
33069
33070
33071# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33072set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033075if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033076 $as_echo_n "(cached) " >&6
33077else
33078 case $DNGDecodeDelegate in
33079 [\\/]* | ?:[\\/]*)
33080 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33081 ;;
33082 *)
33083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33084for as_dir in $PATH
33085do
33086 IFS=$as_save_IFS
33087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033090 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092 break 2
33093 fi
33094done
cristy8b350f62009-11-15 23:12:43 +000033095 done
cristy3ed852e2009-09-05 21:47:34 +000033096IFS=$as_save_IFS
33097
33098 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33099 ;;
33100esac
33101fi
33102DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33103if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105$as_echo "$DNGDecodeDelegate" >&6; }
33106else
cristy8b350f62009-11-15 23:12:43 +000033107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033108$as_echo "no" >&6; }
33109fi
33110
33111
33112# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33113set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033116if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033117 $as_echo_n "(cached) " >&6
33118else
33119 case $GVCDecodeDelegate in
33120 [\\/]* | ?:[\\/]*)
33121 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33122 ;;
33123 *)
33124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125for as_dir in $PATH
33126do
33127 IFS=$as_save_IFS
33128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033131 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133 break 2
33134 fi
33135done
cristy8b350f62009-11-15 23:12:43 +000033136 done
cristy3ed852e2009-09-05 21:47:34 +000033137IFS=$as_save_IFS
33138
33139 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33140 ;;
33141esac
33142fi
33143GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33144if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146$as_echo "$GVCDecodeDelegate" >&6; }
33147else
cristy8b350f62009-11-15 23:12:43 +000033148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149$as_echo "no" >&6; }
33150fi
33151
33152
33153# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33154set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033157if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033158 $as_echo_n "(cached) " >&6
33159else
33160 case $DVIDecodeDelegate in
33161 [\\/]* | ?:[\\/]*)
33162 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33163 ;;
33164 *)
33165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33166for as_dir in $PATH
33167do
33168 IFS=$as_save_IFS
33169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033172 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174 break 2
33175 fi
33176done
cristy8b350f62009-11-15 23:12:43 +000033177 done
cristy3ed852e2009-09-05 21:47:34 +000033178IFS=$as_save_IFS
33179
33180 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33181 ;;
33182esac
33183fi
33184DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33185if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187$as_echo "$DVIDecodeDelegate" >&6; }
33188else
cristy8b350f62009-11-15 23:12:43 +000033189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033190$as_echo "no" >&6; }
33191fi
33192
33193
33194# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33195set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033198if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033199 $as_echo_n "(cached) " >&6
33200else
33201 case $EchoDelegate in
33202 [\\/]* | ?:[\\/]*)
33203 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33204 ;;
33205 *)
33206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33207for as_dir in $PATH
33208do
33209 IFS=$as_save_IFS
33210 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033213 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215 break 2
33216 fi
33217done
cristy8b350f62009-11-15 23:12:43 +000033218 done
cristy3ed852e2009-09-05 21:47:34 +000033219IFS=$as_save_IFS
33220
33221 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33222 ;;
33223esac
33224fi
33225EchoDelegate=$ac_cv_path_EchoDelegate
33226if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "$EchoDelegate" >&6; }
33229else
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "no" >&6; }
33232fi
33233
33234
33235# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33236set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033239if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033240 $as_echo_n "(cached) " >&6
33241else
33242 case $EditorDelegate in
33243 [\\/]* | ?:[\\/]*)
33244 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33245 ;;
33246 *)
33247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33248for as_dir in $PATH
33249do
33250 IFS=$as_save_IFS
33251 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033252 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033254 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256 break 2
33257 fi
33258done
cristy8b350f62009-11-15 23:12:43 +000033259 done
cristy3ed852e2009-09-05 21:47:34 +000033260IFS=$as_save_IFS
33261
33262 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33263 ;;
33264esac
33265fi
33266EditorDelegate=$ac_cv_path_EditorDelegate
33267if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269$as_echo "$EditorDelegate" >&6; }
33270else
cristy8b350f62009-11-15 23:12:43 +000033271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033272$as_echo "no" >&6; }
33273fi
33274
33275
33276# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33277set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033280if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033281 $as_echo_n "(cached) " >&6
33282else
33283 case $FIGDecodeDelegate in
33284 [\\/]* | ?:[\\/]*)
33285 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33286 ;;
33287 *)
33288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33289for as_dir in $PATH
33290do
33291 IFS=$as_save_IFS
33292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033295 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297 break 2
33298 fi
33299done
cristy8b350f62009-11-15 23:12:43 +000033300 done
cristy3ed852e2009-09-05 21:47:34 +000033301IFS=$as_save_IFS
33302
33303 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33304 ;;
33305esac
33306fi
33307FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33308if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo "$FIGDecodeDelegate" >&6; }
33311else
cristy8b350f62009-11-15 23:12:43 +000033312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033313$as_echo "no" >&6; }
33314fi
33315
33316
33317# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33318set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033321if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033322 $as_echo_n "(cached) " >&6
33323else
33324 case $ConvertDelegate in
33325 [\\/]* | ?:[\\/]*)
33326 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33327 ;;
33328 *)
33329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33330for as_dir in $PATH
33331do
33332 IFS=$as_save_IFS
33333 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033334 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033336 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338 break 2
33339 fi
33340done
cristy8b350f62009-11-15 23:12:43 +000033341 done
cristy3ed852e2009-09-05 21:47:34 +000033342IFS=$as_save_IFS
33343
33344 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33345 ;;
33346esac
33347fi
33348ConvertDelegate=$ac_cv_path_ConvertDelegate
33349if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351$as_echo "$ConvertDelegate" >&6; }
33352else
cristy8b350f62009-11-15 23:12:43 +000033353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033354$as_echo "no" >&6; }
33355fi
33356
33357
33358# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33359set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033362if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033363 $as_echo_n "(cached) " >&6
33364else
33365 case $DisplayDelegate in
33366 [\\/]* | ?:[\\/]*)
33367 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33368 ;;
33369 *)
33370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33371for as_dir in $PATH
33372do
33373 IFS=$as_save_IFS
33374 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033377 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379 break 2
33380 fi
33381done
cristy8b350f62009-11-15 23:12:43 +000033382 done
cristy3ed852e2009-09-05 21:47:34 +000033383IFS=$as_save_IFS
33384
33385 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33386 ;;
33387esac
33388fi
33389DisplayDelegate=$ac_cv_path_DisplayDelegate
33390if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392$as_echo "$DisplayDelegate" >&6; }
33393else
cristy8b350f62009-11-15 23:12:43 +000033394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033395$as_echo "no" >&6; }
33396fi
33397
33398
33399# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33400set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033403if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033404 $as_echo_n "(cached) " >&6
33405else
33406 case $MogrifyDelegate in
33407 [\\/]* | ?:[\\/]*)
33408 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33409 ;;
33410 *)
33411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33412for as_dir in $PATH
33413do
33414 IFS=$as_save_IFS
33415 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033416 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033418 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420 break 2
33421 fi
33422done
cristy8b350f62009-11-15 23:12:43 +000033423 done
cristy3ed852e2009-09-05 21:47:34 +000033424IFS=$as_save_IFS
33425
33426 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33427 ;;
33428esac
33429fi
33430MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33431if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433$as_echo "$MogrifyDelegate" >&6; }
33434else
cristy8b350f62009-11-15 23:12:43 +000033435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033436$as_echo "no" >&6; }
33437fi
33438
33439
33440# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33441set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033444if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033445 $as_echo_n "(cached) " >&6
33446else
33447 case $GnuplotDecodeDelegate in
33448 [\\/]* | ?:[\\/]*)
33449 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33450 ;;
33451 *)
33452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33453for as_dir in $PATH
33454do
33455 IFS=$as_save_IFS
33456 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033457 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033459 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461 break 2
33462 fi
33463done
cristy8b350f62009-11-15 23:12:43 +000033464 done
cristy3ed852e2009-09-05 21:47:34 +000033465IFS=$as_save_IFS
33466
33467 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33468 ;;
33469esac
33470fi
33471GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33472if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474$as_echo "$GnuplotDecodeDelegate" >&6; }
33475else
cristy8b350f62009-11-15 23:12:43 +000033476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033477$as_echo "no" >&6; }
33478fi
33479
33480
cristy3ed852e2009-09-05 21:47:34 +000033481# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33482set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033485if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033486 $as_echo_n "(cached) " >&6
33487else
33488 case $HPGLDecodeDelegate in
33489 [\\/]* | ?:[\\/]*)
33490 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33491 ;;
33492 *)
33493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33494for as_dir in $PATH
33495do
33496 IFS=$as_save_IFS
33497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033500 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502 break 2
33503 fi
33504done
cristy8b350f62009-11-15 23:12:43 +000033505 done
cristy3ed852e2009-09-05 21:47:34 +000033506IFS=$as_save_IFS
33507
33508 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33509 ;;
33510esac
33511fi
33512HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33513if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515$as_echo "$HPGLDecodeDelegate" >&6; }
33516else
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "no" >&6; }
33519fi
33520
33521
33522# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33523set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033526if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033527 $as_echo_n "(cached) " >&6
33528else
33529 case $HTMLDecodeDelegate in
33530 [\\/]* | ?:[\\/]*)
33531 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33532 ;;
33533 *)
33534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33535for as_dir in $PATH
33536do
33537 IFS=$as_save_IFS
33538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033541 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543 break 2
33544 fi
33545done
cristy8b350f62009-11-15 23:12:43 +000033546 done
cristy3ed852e2009-09-05 21:47:34 +000033547IFS=$as_save_IFS
33548
33549 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33550 ;;
33551esac
33552fi
33553HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33554if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556$as_echo "$HTMLDecodeDelegate" >&6; }
33557else
cristy8b350f62009-11-15 23:12:43 +000033558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559$as_echo "no" >&6; }
33560fi
33561
33562
33563# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33564set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033567if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033568 $as_echo_n "(cached) " >&6
33569else
33570 case $ILBMDecodeDelegate in
33571 [\\/]* | ?:[\\/]*)
33572 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33573 ;;
33574 *)
33575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33576for as_dir in $PATH
33577do
33578 IFS=$as_save_IFS
33579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033582 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584 break 2
33585 fi
33586done
cristy8b350f62009-11-15 23:12:43 +000033587 done
cristy3ed852e2009-09-05 21:47:34 +000033588IFS=$as_save_IFS
33589
33590 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33591 ;;
33592esac
33593fi
33594ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33595if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033597$as_echo "$ILBMDecodeDelegate" >&6; }
33598else
cristy8b350f62009-11-15 23:12:43 +000033599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033600$as_echo "no" >&6; }
33601fi
33602
33603
33604# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33605set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033608if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033609 $as_echo_n "(cached) " >&6
33610else
33611 case $ILBMEncodeDelegate in
33612 [\\/]* | ?:[\\/]*)
33613 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33614 ;;
33615 *)
33616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33617for as_dir in $PATH
33618do
33619 IFS=$as_save_IFS
33620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033623 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625 break 2
33626 fi
33627done
cristy8b350f62009-11-15 23:12:43 +000033628 done
cristy3ed852e2009-09-05 21:47:34 +000033629IFS=$as_save_IFS
33630
33631 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33632 ;;
33633esac
33634fi
33635ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33636if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo "$ILBMEncodeDelegate" >&6; }
33639else
cristy8b350f62009-11-15 23:12:43 +000033640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641$as_echo "no" >&6; }
33642fi
33643
33644
33645# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33646set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033649if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033650 $as_echo_n "(cached) " >&6
33651else
33652 case $LPDelegate in
33653 [\\/]* | ?:[\\/]*)
33654 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33655 ;;
33656 *)
33657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33658for as_dir in $PATH
33659do
33660 IFS=$as_save_IFS
33661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033664 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666 break 2
33667 fi
33668done
cristy8b350f62009-11-15 23:12:43 +000033669 done
cristy3ed852e2009-09-05 21:47:34 +000033670IFS=$as_save_IFS
33671
33672 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33673 ;;
33674esac
33675fi
33676LPDelegate=$ac_cv_path_LPDelegate
33677if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679$as_echo "$LPDelegate" >&6; }
33680else
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo "no" >&6; }
33683fi
33684
33685
33686# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33687set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033690if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033691 $as_echo_n "(cached) " >&6
33692else
33693 case $LPRDelegate in
33694 [\\/]* | ?:[\\/]*)
33695 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33696 ;;
33697 *)
33698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33699for as_dir in $PATH
33700do
33701 IFS=$as_save_IFS
33702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033705 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707 break 2
33708 fi
33709done
cristy8b350f62009-11-15 23:12:43 +000033710 done
cristy3ed852e2009-09-05 21:47:34 +000033711IFS=$as_save_IFS
33712
33713 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33714 ;;
33715esac
33716fi
33717LPRDelegate=$ac_cv_path_LPRDelegate
33718if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720$as_echo "$LPRDelegate" >&6; }
33721else
cristy8b350f62009-11-15 23:12:43 +000033722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723$as_echo "no" >&6; }
33724fi
33725
33726
33727# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33728set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033731if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033732 $as_echo_n "(cached) " >&6
33733else
33734 case $LZWDecodeDelegate in
33735 [\\/]* | ?:[\\/]*)
33736 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33737 ;;
33738 *)
33739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33740for as_dir in $PATH
33741do
33742 IFS=$as_save_IFS
33743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033746 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748 break 2
33749 fi
33750done
cristy8b350f62009-11-15 23:12:43 +000033751 done
cristy3ed852e2009-09-05 21:47:34 +000033752IFS=$as_save_IFS
33753
33754 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33755 ;;
33756esac
33757fi
33758LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33759if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761$as_echo "$LZWDecodeDelegate" >&6; }
33762else
cristy8b350f62009-11-15 23:12:43 +000033763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033764$as_echo "no" >&6; }
33765fi
33766
33767
33768# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33769set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033772if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033773 $as_echo_n "(cached) " >&6
33774else
33775 case $LZWEncodeDelegate in
33776 [\\/]* | ?:[\\/]*)
33777 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33778 ;;
33779 *)
33780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33781for as_dir in $PATH
33782do
33783 IFS=$as_save_IFS
33784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033787 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789 break 2
33790 fi
33791done
cristy8b350f62009-11-15 23:12:43 +000033792 done
cristy3ed852e2009-09-05 21:47:34 +000033793IFS=$as_save_IFS
33794
33795 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33796 ;;
33797esac
33798fi
33799LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33800if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802$as_echo "$LZWEncodeDelegate" >&6; }
33803else
cristy8b350f62009-11-15 23:12:43 +000033804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805$as_echo "no" >&6; }
33806fi
33807
33808
33809# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33810set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033813if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033814 $as_echo_n "(cached) " >&6
33815else
33816 case $LaunchDelegate in
33817 [\\/]* | ?:[\\/]*)
33818 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33819 ;;
33820 *)
33821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33822for as_dir in $PATH
33823do
33824 IFS=$as_save_IFS
33825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033828 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830 break 2
33831 fi
33832done
cristy8b350f62009-11-15 23:12:43 +000033833 done
cristy3ed852e2009-09-05 21:47:34 +000033834IFS=$as_save_IFS
33835
33836 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33837 ;;
33838esac
33839fi
33840LaunchDelegate=$ac_cv_path_LaunchDelegate
33841if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843$as_echo "$LaunchDelegate" >&6; }
33844else
cristy8b350f62009-11-15 23:12:43 +000033845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846$as_echo "no" >&6; }
33847fi
33848
33849
33850# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33851set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033854if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033855 $as_echo_n "(cached) " >&6
33856else
33857 case $MANDelegate in
33858 [\\/]* | ?:[\\/]*)
33859 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33860 ;;
33861 *)
33862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33863for as_dir in $PATH
33864do
33865 IFS=$as_save_IFS
33866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033869 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871 break 2
33872 fi
33873done
cristy8b350f62009-11-15 23:12:43 +000033874 done
cristy3ed852e2009-09-05 21:47:34 +000033875IFS=$as_save_IFS
33876
33877 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33878 ;;
33879esac
33880fi
33881MANDelegate=$ac_cv_path_MANDelegate
33882if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884$as_echo "$MANDelegate" >&6; }
33885else
cristy8b350f62009-11-15 23:12:43 +000033886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887$as_echo "no" >&6; }
33888fi
33889
33890
33891# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33892set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033895if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033896 $as_echo_n "(cached) " >&6
33897else
33898 case $MPEGDecodeDelegate in
33899 [\\/]* | ?:[\\/]*)
33900 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33901 ;;
33902 *)
33903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33904for as_dir in $PATH
33905do
33906 IFS=$as_save_IFS
33907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033910 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912 break 2
33913 fi
33914done
cristy8b350f62009-11-15 23:12:43 +000033915 done
cristy3ed852e2009-09-05 21:47:34 +000033916IFS=$as_save_IFS
33917
33918 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33919 ;;
33920esac
33921fi
33922MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33923if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo "$MPEGDecodeDelegate" >&6; }
33926else
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "no" >&6; }
33929fi
33930
33931
33932# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33933set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033936if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033937 $as_echo_n "(cached) " >&6
33938else
33939 case $MPEGEncodeDelegate in
33940 [\\/]* | ?:[\\/]*)
33941 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33942 ;;
33943 *)
33944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33945for as_dir in $PATH
33946do
33947 IFS=$as_save_IFS
33948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033951 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953 break 2
33954 fi
33955done
cristy8b350f62009-11-15 23:12:43 +000033956 done
cristy3ed852e2009-09-05 21:47:34 +000033957IFS=$as_save_IFS
33958
33959 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33960 ;;
33961esac
33962fi
33963MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33964if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966$as_echo "$MPEGEncodeDelegate" >&6; }
33967else
cristy8b350f62009-11-15 23:12:43 +000033968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033969$as_echo "no" >&6; }
33970fi
33971
33972
cristy935c86e2010-06-05 23:50:07 +000033973# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33974set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033977if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033978 $as_echo_n "(cached) " >&6
33979else
33980 case $MrSIDDecodeDelegate in
33981 [\\/]* | ?:[\\/]*)
33982 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33983 ;;
33984 *)
33985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33986for as_dir in $PATH
33987do
33988 IFS=$as_save_IFS
33989 test -z "$as_dir" && as_dir=.
33990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033992 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33994 break 2
33995 fi
33996done
33997 done
33998IFS=$as_save_IFS
33999
34000 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34001 ;;
34002esac
34003fi
34004MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34005if test -n "$MrSIDDecodeDelegate"; then
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34007$as_echo "$MrSIDDecodeDelegate" >&6; }
34008else
34009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34010$as_echo "no" >&6; }
34011fi
34012
34013
cristy3ed852e2009-09-05 21:47:34 +000034014# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34015set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034017$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034018if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034019 $as_echo_n "(cached) " >&6
34020else
34021 case $MVDelegate in
34022 [\\/]* | ?:[\\/]*)
34023 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34024 ;;
34025 *)
34026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34027for as_dir in $PATH
34028do
34029 IFS=$as_save_IFS
34030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034033 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034035 break 2
34036 fi
34037done
cristy8b350f62009-11-15 23:12:43 +000034038 done
cristy3ed852e2009-09-05 21:47:34 +000034039IFS=$as_save_IFS
34040
34041 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34042 ;;
34043esac
34044fi
34045MVDelegate=$ac_cv_path_MVDelegate
34046if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034048$as_echo "$MVDelegate" >&6; }
34049else
cristy8b350f62009-11-15 23:12:43 +000034050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034051$as_echo "no" >&6; }
34052fi
34053
34054
34055# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34056set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034059if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034060 $as_echo_n "(cached) " >&6
34061else
34062 case $PCLDelegate in
34063 [\\/]* | ?:[\\/]*)
34064 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34065 ;;
34066 *)
34067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34068for as_dir in $PATH
34069do
34070 IFS=$as_save_IFS
34071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034074 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076 break 2
34077 fi
34078done
cristy8b350f62009-11-15 23:12:43 +000034079 done
cristy3ed852e2009-09-05 21:47:34 +000034080IFS=$as_save_IFS
34081
34082 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34083 ;;
34084esac
34085fi
34086PCLDelegate=$ac_cv_path_PCLDelegate
34087if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089$as_echo "$PCLDelegate" >&6; }
34090else
cristy8b350f62009-11-15 23:12:43 +000034091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034092$as_echo "no" >&6; }
34093fi
34094
34095
34096# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34097set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034099$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034100if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034101 $as_echo_n "(cached) " >&6
34102else
34103 case $PGPDecodeDelegate in
34104 [\\/]* | ?:[\\/]*)
34105 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34106 ;;
34107 *)
34108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34109for as_dir in $PATH
34110do
34111 IFS=$as_save_IFS
34112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034115 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117 break 2
34118 fi
34119done
cristy8b350f62009-11-15 23:12:43 +000034120 done
cristy3ed852e2009-09-05 21:47:34 +000034121IFS=$as_save_IFS
34122
34123 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34124 ;;
34125esac
34126fi
34127PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34128if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034130$as_echo "$PGPDecodeDelegate" >&6; }
34131else
cristy8b350f62009-11-15 23:12:43 +000034132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "no" >&6; }
34134fi
34135
34136
34137# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34138set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034141if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034142 $as_echo_n "(cached) " >&6
34143else
34144 case $POVDelegate in
34145 [\\/]* | ?:[\\/]*)
34146 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34147 ;;
34148 *)
34149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34150for as_dir in $PATH
34151do
34152 IFS=$as_save_IFS
34153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034156 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158 break 2
34159 fi
34160done
cristy8b350f62009-11-15 23:12:43 +000034161 done
cristy3ed852e2009-09-05 21:47:34 +000034162IFS=$as_save_IFS
34163
34164 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34165 ;;
34166esac
34167fi
34168POVDelegate=$ac_cv_path_POVDelegate
34169if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo "$POVDelegate" >&6; }
34172else
cristy8b350f62009-11-15 23:12:43 +000034173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034174$as_echo "no" >&6; }
34175fi
34176
34177
34178for ac_prog in gsx gsc "$PSDelegateDefault"
34179do
34180 # Extract the first word of "$ac_prog", so it can be a program name with args.
34181set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034184if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034185 $as_echo_n "(cached) " >&6
34186else
34187 case $PSDelegate in
34188 [\\/]* | ?:[\\/]*)
34189 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34190 ;;
34191 *)
34192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34193for as_dir in $PATH
34194do
34195 IFS=$as_save_IFS
34196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034199 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201 break 2
34202 fi
34203done
cristy8b350f62009-11-15 23:12:43 +000034204 done
cristy3ed852e2009-09-05 21:47:34 +000034205IFS=$as_save_IFS
34206
34207 ;;
34208esac
34209fi
34210PSDelegate=$ac_cv_path_PSDelegate
34211if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034213$as_echo "$PSDelegate" >&6; }
34214else
cristy8b350f62009-11-15 23:12:43 +000034215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216$as_echo "no" >&6; }
34217fi
34218
34219
34220 test -n "$PSDelegate" && break
34221done
34222test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34223
34224# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34225set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034228if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034229 $as_echo_n "(cached) " >&6
34230else
34231 case $RLEEncodeDelegate in
34232 [\\/]* | ?:[\\/]*)
34233 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34234 ;;
34235 *)
34236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34237for as_dir in $PATH
34238do
34239 IFS=$as_save_IFS
34240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034243 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245 break 2
34246 fi
34247done
cristy8b350f62009-11-15 23:12:43 +000034248 done
cristy3ed852e2009-09-05 21:47:34 +000034249IFS=$as_save_IFS
34250
34251 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34252 ;;
34253esac
34254fi
34255RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34256if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034258$as_echo "$RLEEncodeDelegate" >&6; }
34259else
cristy8b350f62009-11-15 23:12:43 +000034260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261$as_echo "no" >&6; }
34262fi
34263
34264
34265# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34266set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034269if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034270 $as_echo_n "(cached) " >&6
34271else
34272 case $RMDelegate in
34273 [\\/]* | ?:[\\/]*)
34274 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34275 ;;
34276 *)
34277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34278for as_dir in $PATH
34279do
34280 IFS=$as_save_IFS
34281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034284 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034286 break 2
34287 fi
34288done
cristy8b350f62009-11-15 23:12:43 +000034289 done
cristy3ed852e2009-09-05 21:47:34 +000034290IFS=$as_save_IFS
34291
34292 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34293 ;;
34294esac
34295fi
34296RMDelegate=$ac_cv_path_RMDelegate
34297if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo "$RMDelegate" >&6; }
34300else
cristy8b350f62009-11-15 23:12:43 +000034301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034302$as_echo "no" >&6; }
34303fi
34304
34305
cristy4689cf02010-02-17 21:15:45 +000034306# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34307set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034310if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034311 $as_echo_n "(cached) " >&6
34312else
34313 case $RSVGDecodeDelegate in
34314 [\\/]* | ?:[\\/]*)
34315 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34316 ;;
34317 *)
34318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34319for as_dir in $PATH
34320do
34321 IFS=$as_save_IFS
34322 test -z "$as_dir" && as_dir=.
34323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034325 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34327 break 2
34328 fi
34329done
34330 done
34331IFS=$as_save_IFS
34332
34333 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34334 ;;
34335esac
34336fi
34337RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34338if test -n "$RSVGDecodeDelegate"; then
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34340$as_echo "$RSVGDecodeDelegate" >&6; }
34341else
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34343$as_echo "no" >&6; }
34344fi
34345
34346
cristy3ed852e2009-09-05 21:47:34 +000034347# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34348set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034351if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034352 $as_echo_n "(cached) " >&6
34353else
34354 case $SCANDecodeDelegate in
34355 [\\/]* | ?:[\\/]*)
34356 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34357 ;;
34358 *)
34359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34360for as_dir in $PATH
34361do
34362 IFS=$as_save_IFS
34363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034366 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034368 break 2
34369 fi
34370done
cristy8b350f62009-11-15 23:12:43 +000034371 done
cristy3ed852e2009-09-05 21:47:34 +000034372IFS=$as_save_IFS
34373
34374 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34375 ;;
34376esac
34377fi
34378SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34379if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo "$SCANDecodeDelegate" >&6; }
34382else
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo "no" >&6; }
34385fi
34386
34387
34388# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34389set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034392if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034393 $as_echo_n "(cached) " >&6
34394else
34395 case $TXTDelegate in
34396 [\\/]* | ?:[\\/]*)
34397 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34398 ;;
34399 *)
34400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34401for as_dir in $PATH
34402do
34403 IFS=$as_save_IFS
34404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034407 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034409 break 2
34410 fi
34411done
cristy8b350f62009-11-15 23:12:43 +000034412 done
cristy3ed852e2009-09-05 21:47:34 +000034413IFS=$as_save_IFS
34414
34415 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34416 ;;
34417esac
34418fi
34419TXTDelegate=$ac_cv_path_TXTDelegate
34420if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "$TXTDelegate" >&6; }
34423else
cristy8b350f62009-11-15 23:12:43 +000034424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034425$as_echo "no" >&6; }
34426fi
34427
34428
cristy5ac9ac82010-07-29 13:24:24 +000034429# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34430set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034433if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034434 $as_echo_n "(cached) " >&6
34435else
34436 case $UniconvertorDelegate in
34437 [\\/]* | ?:[\\/]*)
34438 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34439 ;;
34440 *)
34441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34442for as_dir in $PATH
34443do
34444 IFS=$as_save_IFS
34445 test -z "$as_dir" && as_dir=.
34446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034448 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34450 break 2
34451 fi
34452done
34453 done
34454IFS=$as_save_IFS
34455
34456 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34457 ;;
34458esac
34459fi
34460UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34461if test -n "$UniconvertorDelegate"; then
34462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34463$as_echo "$UniconvertorDelegate" >&6; }
34464else
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34466$as_echo "no" >&6; }
34467fi
34468
34469
cristy3ed852e2009-09-05 21:47:34 +000034470# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34471set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034474if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034475 $as_echo_n "(cached) " >&6
34476else
34477 case $WMFDecodeDelegate in
34478 [\\/]* | ?:[\\/]*)
34479 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34480 ;;
34481 *)
34482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34483for as_dir in $PATH
34484do
34485 IFS=$as_save_IFS
34486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034489 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034491 break 2
34492 fi
34493done
cristy8b350f62009-11-15 23:12:43 +000034494 done
cristy3ed852e2009-09-05 21:47:34 +000034495IFS=$as_save_IFS
34496
34497 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34498 ;;
34499esac
34500fi
34501WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34502if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504$as_echo "$WMFDecodeDelegate" >&6; }
34505else
cristy8b350f62009-11-15 23:12:43 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo "no" >&6; }
34508fi
34509
34510
34511# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34512set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034515if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034516 $as_echo_n "(cached) " >&6
34517else
34518 case $WWWDecodeDelegate in
34519 [\\/]* | ?:[\\/]*)
34520 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34521 ;;
34522 *)
34523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34524for as_dir in $PATH
34525do
34526 IFS=$as_save_IFS
34527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034530 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034532 break 2
34533 fi
34534done
cristy8b350f62009-11-15 23:12:43 +000034535 done
cristy3ed852e2009-09-05 21:47:34 +000034536IFS=$as_save_IFS
34537
34538 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34539 ;;
34540esac
34541fi
34542WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34543if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545$as_echo "$WWWDecodeDelegate" >&6; }
34546else
cristy8b350f62009-11-15 23:12:43 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548$as_echo "no" >&6; }
34549fi
34550
34551
34552# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34553set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034555$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034556if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034557 $as_echo_n "(cached) " >&6
34558else
34559 case $XPSDelegate in
34560 [\\/]* | ?:[\\/]*)
34561 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34562 ;;
34563 *)
34564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34565for as_dir in $PATH
34566do
34567 IFS=$as_save_IFS
34568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034571 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034573 break 2
34574 fi
34575done
cristy8b350f62009-11-15 23:12:43 +000034576 done
cristy3ed852e2009-09-05 21:47:34 +000034577IFS=$as_save_IFS
34578
34579 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34580 ;;
34581esac
34582fi
34583XPSDelegate=$ac_cv_path_XPSDelegate
34584if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034586$as_echo "$XPSDelegate" >&6; }
34587else
cristy8b350f62009-11-15 23:12:43 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589$as_echo "no" >&6; }
34590fi
34591
34592
34593# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34594set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034597if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034598 $as_echo_n "(cached) " >&6
34599else
34600 case $ZipDelegate in
34601 [\\/]* | ?:[\\/]*)
34602 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34603 ;;
34604 *)
34605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34606for as_dir in $PATH
34607do
34608 IFS=$as_save_IFS
34609 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034610 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034612 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614 break 2
34615 fi
34616done
cristy8b350f62009-11-15 23:12:43 +000034617 done
cristy3ed852e2009-09-05 21:47:34 +000034618IFS=$as_save_IFS
34619
34620 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34621 ;;
34622esac
34623fi
34624ZipDelegate=$ac_cv_path_ZipDelegate
34625if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627$as_echo "$ZipDelegate" >&6; }
34628else
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo "no" >&6; }
34631fi
34632
34633
34634
34635# Prefer lpr to lp; lp needs options tacked on.
34636if test "$LPRDelegate" != no; then
34637 PrintDelegate="$LPRDelegate"
34638else
34639 PrintDelegate="$LPDelegate -c -s"
34640fi
34641
34642
34643# Installed ImageMagick utiltity paths
34644ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34645DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34646MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34647
34648# Set delegate booleans
34649have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34650have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34651have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34652have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34653have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034654have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034655have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34656have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034657have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34658have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34659
34660#
34661# Test for font directories
34662#
34663type_include_files=''
34664
cristy430a7312010-01-21 20:44:04 +000034665# Dejavu fonts.
34666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34667$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34668dejavu_font_dir=''
34669if test "${with_dejavu_font_dir}" != 'default'; then
34670 dejavu_font_dir="${with_dejavu_font_dir}/"
34671else
34672 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34673 if test -f "${font_dir}DejaVuSerif.ttf"; then
34674 dejavu_font_dir="${font_dir}"
34675 break 1
34676 fi
34677 done
34678fi
34679if test "${dejavu_font_dir}x" != 'x'; then
34680 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034681 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34682$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034683else
cristy09b53e12011-10-14 12:47:22 +000034684 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34685$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034686fi
34687
34688
cristy3ed852e2009-09-05 21:47:34 +000034689# Windows
34690windows_font_dir=''
34691if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34692 windows_font_dir="${with_windows_font_dir}/"
34693fi
cristy430a7312010-01-21 20:44:04 +000034694if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034695 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34696 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34697 fi
34698 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34699 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34700 fi
34701 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34702 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34703 fi
34704fi
cristy430a7312010-01-21 20:44:04 +000034705if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034706 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34707fi
34708
34709
34710# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034712$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34713ghostscript_font_dir=''
34714if test "${with_gs_font_dir}" != 'default'; then
34715 ghostscript_font_dir="${with_gs_font_dir}/"
34716else
34717 if test "${native_win32_build}" = 'yes'; then
34718 # Native Windows Build
34719 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34720 if test -f "${font_dir}a010013l.pfb"; then
34721 ghostscript_font_dir="$font_dir"
34722 break 1
34723 fi
34724 done
34725 if test "${PSDelegate}" != 'gswin32c'; then
34726 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34727 fi
34728 else
34729 # Linux / Mac OS X / Unix Build
34730 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
34731 if test -f "${font_dir}a010013l.pfb"; then
34732 ghostscript_font_dir="${font_dir}"
34733 break 1
34734 fi
34735 done
34736 if test "${ghostscript_font_dir}x" = 'x'; then
34737 if test "$PSDelegate" != 'gs'; then
34738 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34739 fi
34740 fi
34741 fi
34742fi
34743if test "${ghostscript_font_dir}x" != 'x'; then
34744 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34746$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034747else
cristy09b53e12011-10-14 12:47:22 +000034748 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34749$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034750fi
34751
34752case "${build_os}" in
34753 mingw* )
34754 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34755 ;;
34756esac
34757
34758
34759
34760#
34761# Handle case where user doesn't want frozen paths
34762#
34763if test "$with_frozenpaths" != 'yes'; then
34764 # Re-set delegate definitions to default (no paths)
34765 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034766 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34767 BZIPDelegate="$BZIPDelegateDefault"
34768 BrowseDelegate="$BrowseDelegateDefault"
34769 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34770 CatDelegate="$CatDelegateDefault"
34771 ConvertDelegate="$ConvertDelegateDefault"
34772 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34773 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34774 EchoDelegate="$EchoDelegateDefault"
34775 EditorDelegate="$EditorDelegateDefault"
34776 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34777 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34778 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34779 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34780 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34781 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34782 LPDelegate="$LPDelegateDefault"
34783 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34784 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34785 LaunchDelegate="$LaunchDelegateDefault"
34786 MANDelegate="$MANDelegateDefault"
34787 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34788 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034789 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034790 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34791 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034792 PCLDelegate="$PCLDelegateDefault"
34793 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34794 POVDelegate="$POVDelegateDefault"
34795 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034796 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34797 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034798 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034799 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34800 ShowImageDelegate="$ShowImageDelegateDefault"
34801 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034802 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034803 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34804 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34805 XPSDelegate="$XPSDelegateDefault"
34806 ZipDelegate="$ZipDelegateDefault"
34807fi
34808
34809# Delegate substitutions
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852#
34853# RPM support.
34854#
34855RPM=''
34856for ac_prog in gnutar gtar tar
34857do
34858 # Extract the first word of "$ac_prog", so it can be a program name with args.
34859set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034861$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034862if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034863 $as_echo_n "(cached) " >&6
34864else
34865 if test -n "$TAR"; then
34866 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34867else
34868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34869for as_dir in $PATH
34870do
34871 IFS=$as_save_IFS
34872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034875 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034877 break 2
34878 fi
34879done
cristy8b350f62009-11-15 23:12:43 +000034880 done
cristy3ed852e2009-09-05 21:47:34 +000034881IFS=$as_save_IFS
34882
34883fi
34884fi
34885TAR=$ac_cv_prog_TAR
34886if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034888$as_echo "$TAR" >&6; }
34889else
cristy8b350f62009-11-15 23:12:43 +000034890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034891$as_echo "no" >&6; }
34892fi
34893
34894
34895 test -n "$TAR" && break
34896done
34897
34898for ac_prog in perl
34899do
34900 # Extract the first word of "$ac_prog", so it can be a program name with args.
34901set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034904if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034905 $as_echo_n "(cached) " >&6
34906else
34907 if test -n "$PERL"; then
34908 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34909else
34910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34911for as_dir in $PATH
34912do
34913 IFS=$as_save_IFS
34914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034917 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034919 break 2
34920 fi
34921done
cristy8b350f62009-11-15 23:12:43 +000034922 done
cristy3ed852e2009-09-05 21:47:34 +000034923IFS=$as_save_IFS
34924
34925fi
34926fi
34927PERL=$ac_cv_prog_PERL
34928if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034930$as_echo "$PERL" >&6; }
34931else
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo "no" >&6; }
34934fi
34935
34936
34937 test -n "$PERL" && break
34938done
34939
34940for ac_prog in rpmbuild rpm
34941do
34942 # Extract the first word of "$ac_prog", so it can be a program name with args.
34943set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034945$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034946if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034947 $as_echo_n "(cached) " >&6
34948else
34949 if test -n "$RPM"; then
34950 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34951else
34952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34953for as_dir in $PATH
34954do
34955 IFS=$as_save_IFS
34956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034959 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961 break 2
34962 fi
34963done
cristy8b350f62009-11-15 23:12:43 +000034964 done
cristy3ed852e2009-09-05 21:47:34 +000034965IFS=$as_save_IFS
34966
34967fi
34968fi
34969RPM=$ac_cv_prog_RPM
34970if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034972$as_echo "$RPM" >&6; }
34973else
cristy8b350f62009-11-15 23:12:43 +000034974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034975$as_echo "no" >&6; }
34976fi
34977
34978
34979 test -n "$RPM" && break
34980done
34981
34982
cristy73bd4a52010-10-05 11:24:23 +000034983ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34984
34985
34986AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34987
34988
34989AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34990
34991
34992AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34993
34994
34995 if test "x$RPM" != "x" ; then
34996 RPM_DELEGATE_TRUE=
34997 RPM_DELEGATE_FALSE='#'
34998else
34999 RPM_DELEGATE_TRUE='#'
35000 RPM_DELEGATE_FALSE=
35001fi
35002
cristy3ed852e2009-09-05 21:47:34 +000035003
35004#
35005# 7ZIP support (http://p7zip.sourceforge.net/)
35006#
35007P7ZIP=''
35008for ac_prog in 7za
35009do
35010 # Extract the first word of "$ac_prog", so it can be a program name with args.
35011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035014if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035015 $as_echo_n "(cached) " >&6
35016else
35017 if test -n "$P7ZIP"; then
35018 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35019else
35020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35021for as_dir in $PATH
35022do
35023 IFS=$as_save_IFS
35024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035027 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035029 break 2
35030 fi
35031done
cristy8b350f62009-11-15 23:12:43 +000035032 done
cristy3ed852e2009-09-05 21:47:34 +000035033IFS=$as_save_IFS
35034
35035fi
35036fi
35037P7ZIP=$ac_cv_prog_P7ZIP
35038if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035040$as_echo "$P7ZIP" >&6; }
35041else
cristy8b350f62009-11-15 23:12:43 +000035042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo "no" >&6; }
35044fi
35045
35046
35047 test -n "$P7ZIP" && break
35048done
35049
35050
cristy73bd4a52010-10-05 11:24:23 +000035051 if test "x$P7ZIP" != "x" ; then
35052 P7ZIP_DELEGATE_TRUE=
35053 P7ZIP_DELEGATE_FALSE='#'
35054else
35055 P7ZIP_DELEGATE_TRUE='#'
35056 P7ZIP_DELEGATE_FALSE=
35057fi
35058
cristy3ed852e2009-09-05 21:47:34 +000035059
35060#
35061# ZIP support (http://www.info-zip.org/Zip.html)
35062#
35063ZIP=''
35064for ac_prog in zip
35065do
35066 # Extract the first word of "$ac_prog", so it can be a program name with args.
35067set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035070if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035071 $as_echo_n "(cached) " >&6
35072else
35073 if test -n "$ZIP"; then
35074 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35075else
35076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35077for as_dir in $PATH
35078do
35079 IFS=$as_save_IFS
35080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035083 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035085 break 2
35086 fi
35087done
cristy8b350f62009-11-15 23:12:43 +000035088 done
cristy3ed852e2009-09-05 21:47:34 +000035089IFS=$as_save_IFS
35090
35091fi
35092fi
35093ZIP=$ac_cv_prog_ZIP
35094if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035096$as_echo "$ZIP" >&6; }
35097else
cristy8b350f62009-11-15 23:12:43 +000035098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035099$as_echo "no" >&6; }
35100fi
35101
35102
35103 test -n "$ZIP" && break
35104done
35105
35106
cristy73bd4a52010-10-05 11:24:23 +000035107 if test "x$ZIP" != "x" ; then
35108 ZIP_DELEGATE_TRUE=
35109 ZIP_DELEGATE_FALSE='#'
35110else
35111 ZIP_DELEGATE_TRUE='#'
35112 ZIP_DELEGATE_FALSE=
35113fi
35114
cristy3ed852e2009-09-05 21:47:34 +000035115
35116#
35117# GhostPCL related configuration.
35118#
35119PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035120PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035121PCLMonoDevice=pbmraw
35122if test -z "$PCLVersion"; then
35123 PCLVersion='unknown'
35124fi
35125if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035126 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35127$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035130 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35131$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035132 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035134$as_echo_n "checking for pcl color device... " >&6; }
35135 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35136 :
35137 else
35138 PCLColorDevice=ppmraw
35139 fi
cristy09b53e12011-10-14 12:47:22 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35141$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035142
35143 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035145$as_echo_n "checking for pcl CMYK device... " >&6; }
35146 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35147 :
35148 else
35149 PCLCMYKDevice=$PCLColorDevice
35150 fi
cristy09b53e12011-10-14 12:47:22 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35152$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035153
35154 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035156$as_echo_n "checking for pcl mono device... " >&6; }
35157 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35158 :
35159 else
35160 PCLMonoDevice=$PCLColorDevice
35161 fi
cristy09b53e12011-10-14 12:47:22 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35163$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035164fi
35165
35166
35167
35168
35169
35170
35171#
35172# GhostXPS related configuration.
35173#
35174XPSColorDevice=ppmraw
35175XPSCMYKDevice=bmpsep8
35176XPSMonoDevice=pbmraw
35177if test -z "$XPSVersion"; then
35178 XPSVersion='unknown'
35179fi
35180if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35182$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035185 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35186$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035187 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035189$as_echo_n "checking for xps color device... " >&6; }
35190 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35191 :
35192 else
35193 XPSColorDevice=ppmraw
35194 fi
cristy09b53e12011-10-14 12:47:22 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35196$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035197
35198 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for xps CMYK device... " >&6; }
35201 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35202 :
35203 else
35204 XPSCMYKDevice=$XPSColorDevice
35205 fi
cristy09b53e12011-10-14 12:47:22 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35207$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035208
35209 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211$as_echo_n "checking for xps mono device... " >&6; }
35212 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35213 :
35214 else
35215 XPSMonoDevice=$XPSColorDevice
35216 fi
cristy09b53e12011-10-14 12:47:22 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35218$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035219fi
35220
35221
35222
35223
35224
35225
35226#
35227# Ghostscript related configuration.
35228#
cristya97426c2011-02-04 01:41:27 +000035229GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035230GSColorDevice=pnmraw
35231GSCMYKDevice=pam
35232GSMonoDevice=pbmraw
35233GSPDFDevice=pdfwrite
35234GSPSDevice=pswrite
35235GSEPSDevice=epswrite
35236GSVersion='unknown'
35237if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035238 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35239$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035241$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035242 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35243$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035245$as_echo_n "checking for Ghostscript version... " >&6; }
35246 if GSVersion=`$PSDelegate --version`; then
35247 :
35248 else
35249 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35250 fi
cristy09b53e12011-10-14 12:47:22 +000035251 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35252$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035253
35254 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035256$as_echo_n "checking for gs alpha device... " >&6; }
35257 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35258 :
35259 else
35260 GSAlphaDevice=pnmraw
35261 fi
cristy09b53e12011-10-14 12:47:22 +000035262 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35263$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035264
35265 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo_n "checking for gs color device... " >&6; }
35268 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35269 :
35270 else
35271 GSColorDevice=pnmraw
35272 fi
cristy09b53e12011-10-14 12:47:22 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35274$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035275
35276 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035278$as_echo_n "checking for gs CMYK device... " >&6; }
35279 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35280 :
35281 else
35282 GSCMYKDevice=bmpsep8
35283 fi
cristy09b53e12011-10-14 12:47:22 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35285$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035286
35287 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035289$as_echo_n "checking for gs mono device... " >&6; }
35290 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35291 :
35292 else
35293 GSMonoDevice=$GSColorDevice
35294 fi
cristy09b53e12011-10-14 12:47:22 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35296$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035297
35298 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035300$as_echo_n "checking for gs PDF writing device... " >&6; }
35301 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35302 :
35303 else
35304 GSPDFDevice=nodevice
35305 fi
cristy09b53e12011-10-14 12:47:22 +000035306 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35307$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035308
35309 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035311$as_echo_n "checking for gs PS writing device... " >&6; }
35312 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35313 :
35314 else
35315 GSPSDevice=nodevice
35316 fi
cristy09b53e12011-10-14 12:47:22 +000035317 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35318$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035319
35320 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035322$as_echo_n "checking for gs EPS writing device... " >&6; }
35323 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35324 :
35325 else
35326 GSEPSDevice=nodevice
35327 fi
cristy09b53e12011-10-14 12:47:22 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35329$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035330fi
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341#
35342# PerlMagick-related configuration
35343#
35344
35345# Look for PERL if PerlMagick requested
35346# If name/path of desired PERL interpreter is specified, look for that one first
35347have_perl='no'
35348if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35350$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035352$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035353 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35354$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035355 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035357$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035358if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035359 $as_echo_n "(cached) " >&6
35360else
35361 ac_cv_path_PERL="$with_perl"
35362fi
cristy8b350f62009-11-15 23:12:43 +000035363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035364$as_echo "$ac_cv_path_PERL" >&6; };
35365 PERL=$ac_cv_path_PERL
35366 have_perl="$ac_cv_path_PERL"
35367 else
35368 for ac_prog in perl perl5
35369do
35370 # Extract the first word of "$ac_prog", so it can be a program name with args.
35371set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035374if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035375 $as_echo_n "(cached) " >&6
35376else
35377 case $PERL in
35378 [\\/]* | ?:[\\/]*)
35379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35380 ;;
35381 *)
35382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35383for as_dir in $PATH
35384do
35385 IFS=$as_save_IFS
35386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035391 break 2
35392 fi
35393done
cristy8b350f62009-11-15 23:12:43 +000035394 done
cristy3ed852e2009-09-05 21:47:34 +000035395IFS=$as_save_IFS
35396
35397 ;;
35398esac
35399fi
35400PERL=$ac_cv_path_PERL
35401if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035403$as_echo "$PERL" >&6; }
35404else
cristy8b350f62009-11-15 23:12:43 +000035405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035406$as_echo "no" >&6; }
35407fi
35408
35409
35410 test -n "$PERL" && break
35411done
35412 if test "$ac_cv_path_PERL"; then
35413 have_perl="$ac_cv_path_PERL"
35414 fi
35415 fi
35416fi
35417
cristy949301e2010-01-06 01:38:40 +000035418if test "$with_perl" != 'yes' ; then
35419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35420fi
35421
35422PERL_SUPPORTS_DESTDIR='no'
35423
cristy3ed852e2009-09-05 21:47:34 +000035424with_perl_static='no'
35425with_perl_dynamic='no'
35426if test "$have_perl" != 'no'; then
35427 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35428 with_perl_static='yes'
35429 fi
35430 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35431 with_perl_dynamic='yes'
35432 fi
35433 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035434
35435
35436
35437
35438 if test -n "$PERL"; then :
35439
35440 ax_perl_version="5.8.1"
35441
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35443$as_echo_n "checking for perl version... " >&6; }
35444
35445 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35446
35447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35448$as_echo "$perl_version" >&6; }
35449
35450 PERL_VERSION=$perl_version
35451
35452
35453
35454
35455
35456 # Used to indicate true or false condition
35457 ax_compare_version=false
35458
35459 # Convert the two version strings to be compared into a format that
35460 # allows a simple string comparison. The end result is that a version
35461 # string of the form 1.12.5-r617 will be converted to the form
35462 # 0001001200050617. In other words, each number is zero padded to four
35463 # digits, and non digits are removed.
35464
35465 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35466 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35467 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35468 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35469 -e 's/[^0-9]//g'`
35470
35471
35472 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35473 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35474 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35475 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35476 -e 's/[^0-9]//g'`
35477
35478
35479 ax_compare_version=`echo "x$ax_compare_version_A
35480x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35481
35482
35483
35484 if test "$ax_compare_version" = "true" ; then
35485
35486 :
35487 PERL_SUPPORTS_DESTDIR='yes'
35488
35489 else
35490 :
35491 PERL_SUPPORTS_DESTDIR='no'
35492
35493 fi
35494
35495
35496else
35497
35498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35499$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35500 PERL_SUPPORTS_DESTDIR='no'
35501
cristy3ed852e2009-09-05 21:47:34 +000035502fi
cristy73bd4a52010-10-05 11:24:23 +000035503
35504fi
35505 if test "$have_perl" != 'no'; then
35506 WITH_PERL_TRUE=
35507 WITH_PERL_FALSE='#'
35508else
35509 WITH_PERL_TRUE='#'
35510 WITH_PERL_FALSE=
35511fi
35512
35513 if test $with_perl_static = 'yes'; then
35514 WITH_PERL_STATIC_TRUE=
35515 WITH_PERL_STATIC_FALSE='#'
35516else
35517 WITH_PERL_STATIC_TRUE='#'
35518 WITH_PERL_STATIC_FALSE=
35519fi
35520
35521 if test $with_perl_dynamic = 'yes'; then
35522 WITH_PERL_DYNAMIC_TRUE=
35523 WITH_PERL_DYNAMIC_FALSE='#'
35524else
35525 WITH_PERL_DYNAMIC_TRUE='#'
35526 WITH_PERL_DYNAMIC_FALSE=
35527fi
35528
cristy3ed852e2009-09-05 21:47:34 +000035529
35530
35531# Determine path to pick up MagickCore library from for use with building PerlMagick
35532MAGICKCORE_PATH="${LIB_DIR}"
35533if test $with_perl_static = 'yes'; then
35534 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35535 libtool_objdir=$objdir
35536
35537 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035538 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035539fi
35540
35541
35542# Create a simple string containing format names for all delegate libraries
35543DELEGATES=''
35544if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35545if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35546if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35547if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35548if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35549if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35550if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35551if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35552if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35553if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35554if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35555if test "$have_jpeg" = 'yes'; then
35556 DELEGATES="$DELEGATES jpeg";
35557 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35558fi
35559if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035560if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035561if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35562if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035563if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035564if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35565if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035566if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035567if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35568if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35569if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35570if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35571if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35572if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35573if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35574
35575
35576
35577#
35578# Handle special compiler flags
35579#
35580
35581# Add '-p' if prof source profiling support enabled
35582if test "$enable_prof" = 'yes'; then
35583 CFLAGS="-p $CFLAGS"
35584 CXXFLAGS="-p $CXXFLAGS"
35585 LDFLAGS="-p $LDFLAGS"
35586fi
35587
35588# Add '-pg' if gprof source profiling support enabled
35589if test "$enable_gprof" = 'yes'; then
35590 CFLAGS="-pg $CFLAGS"
35591 CXXFLAGS="-pg $CXXFLAGS"
35592 LDFLAGS="-pg $LDFLAGS"
35593fi
35594
35595# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35596# This is a gcc-specific feature
35597if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035599$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035600if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035601 $as_echo_n "(cached) " >&6
35602else
35603 ac_check_lib_save_LIBS=$LIBS
35604LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035606/* end confdefs.h. */
35607
35608/* Override any GCC internal prototype to avoid an error.
35609 Use char because int might match the return type of a GCC
35610 builtin and then its argument prototype would still apply. */
35611#ifdef __cplusplus
35612extern "C"
35613#endif
35614char _gcov_init ();
35615int
35616main ()
35617{
35618return _gcov_init ();
35619 ;
35620 return 0;
35621}
35622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035623if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035624 ac_cv_lib_gcov__gcov_init=yes
35625else
cristy8b350f62009-11-15 23:12:43 +000035626 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035627fi
cristy8b350f62009-11-15 23:12:43 +000035628rm -f core conftest.err conftest.$ac_objext \
35629 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035630LIBS=$ac_check_lib_save_LIBS
35631fi
cristy8b350f62009-11-15 23:12:43 +000035632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035633$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035634if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035635 cat >>confdefs.h <<_ACEOF
35636#define HAVE_LIBGCOV 1
35637_ACEOF
35638
35639 LIBS="-lgcov $LIBS"
35640
35641fi
35642
cristy8b350f62009-11-15 23:12:43 +000035643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035644$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035645if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035646 $as_echo_n "(cached) " >&6
35647else
35648 ac_check_lib_save_LIBS=$LIBS
35649LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035651/* end confdefs.h. */
35652
35653/* Override any GCC internal prototype to avoid an error.
35654 Use char because int might match the return type of a GCC
35655 builtin and then its argument prototype would still apply. */
35656#ifdef __cplusplus
35657extern "C"
35658#endif
35659char __gcov_init ();
35660int
35661main ()
35662{
35663return __gcov_init ();
35664 ;
35665 return 0;
35666}
35667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035669 ac_cv_lib_gcov___gcov_init=yes
35670else
cristy8b350f62009-11-15 23:12:43 +000035671 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035672fi
cristy8b350f62009-11-15 23:12:43 +000035673rm -f core conftest.err conftest.$ac_objext \
35674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035675LIBS=$ac_check_lib_save_LIBS
35676fi
cristy8b350f62009-11-15 23:12:43 +000035677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035678$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035679if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035680 cat >>confdefs.h <<_ACEOF
35681#define HAVE_LIBGCOV 1
35682_ACEOF
35683
35684 LIBS="-lgcov $LIBS"
35685
35686fi
35687
35688 case "$target_os" in
35689 darwin*)
35690 OSX_GCOV_LDFLAG="-Wl,-single_module"
35691 ;;
35692 *)
35693 OSX_GCOV_LDFLAG=""
35694 ;;
35695 esac
35696
35697 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35698 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35699 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35700fi
35701
35702#
35703# Build library dependency list for libMagickCore
35704#
35705
35706MAGICK_LIBLTDL='' # Libltdl for build
35707MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35708MAGICK_LTDLDEPS='' # extra libltdl dependencies
35709if test "$with_ltdl" != 'no'
35710then
35711 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35712 MAGICK_API_LIBLTDL='-lltdl'
35713 fi
35714 MAGICK_LIBLTDL=${LIBLTDL}
35715 MAGICK_LTDLDEPS=${LTDLDEPS}
35716fi
35717
35718
35719
35720if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035721 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035722else
cristy41cbe8a2011-10-27 01:35:18 +000035723 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 $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035724fi
35725
35726
35727#
35728# Remove extraneous spaces from output variables (asthetic)
35729#
35730X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35731X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35732X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35733X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35734
35735CC=`echo $CC | sed -e 's/ */ /g'`
35736CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35737CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35738CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35739DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35740DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35741LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35742TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35743MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35744#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35745
35746# Pass only user-provided LIBS as "global" libraries
35747LIBS=$USER_LIBS
35748
35749#AC_SUBST(CPPFLAGS)
35750
35751#AC_SUBST(LDFLAGS)
35752#AC_SUBST(X_PRE_LIBS)
35753#AC_SUBST(X_LIBS)
35754#AC_SUBST(X_EXTRA_LIBS)
35755
35756MAGICK_CFLAGS=$CFLAGS
35757MAGICK_CXXFLAGS="$CXXFLAGS"
35758MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35759MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35760MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35761MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35762
35763
35764
35765
35766
35767
35768
35769
cristyfd9dcd42010-08-08 18:07:02 +000035770
cristy3ed852e2009-09-05 21:47:34 +000035771# Set configured scripts to executable.
35772ac_config_commands="$ac_config_commands default"
35773
35774ac_config_commands="$ac_config_commands MagickCore-config.in"
35775
cristy3ed852e2009-09-05 21:47:34 +000035776ac_config_commands="$ac_config_commands MagickWand-config.in"
35777
cristy3ed852e2009-09-05 21:47:34 +000035778ac_config_commands="$ac_config_commands Magick++-config.in"
35779
35780ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35781
35782
cristy09b53e12011-10-14 12:47:22 +000035783{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35784$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35785{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35786$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035787cat >confcache <<\_ACEOF
35788# This file is a shell script that caches the results of configure
35789# tests run on this system so they can be shared between configure
35790# scripts and configure runs, see configure's option --config-cache.
35791# It is not useful on other systems. If it contains results you don't
35792# want to keep, you may remove or edit it.
35793#
35794# config.status only pays attention to the cache file if you give it
35795# the --recheck option to rerun configure.
35796#
35797# `ac_cv_env_foo' variables (set or unset) will be overridden when
35798# loading this file, other *unset* `ac_cv_foo' will be assigned the
35799# following values.
35800
35801_ACEOF
35802
35803# The following way of writing the cache mishandles newlines in values,
35804# but we know of no workaround that is simple, portable, and efficient.
35805# So, we kill variables containing newlines.
35806# Ultrix sh set writes to stderr and can't be redirected directly,
35807# and sets the high bit in the cache file unless we assign to the vars.
35808(
35809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35810 eval ac_val=\$$ac_var
35811 case $ac_val in #(
35812 *${as_nl}*)
35813 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035815$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35816 esac
35817 case $ac_var in #(
35818 _ | IFS | as_nl) ;; #(
35819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035820 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035821 esac ;;
35822 esac
35823 done
35824
35825 (set) 2>&1 |
35826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35827 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035828 # `set' does not quote correctly, so add quotes: double-quote
35829 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035830 sed -n \
35831 "s/'/'\\\\''/g;
35832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35833 ;; #(
35834 *)
35835 # `set' quotes correctly as required by POSIX, so do not add quotes.
35836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35837 ;;
35838 esac |
35839 sort
35840) |
35841 sed '
35842 /^ac_cv_env_/b end
35843 t clear
35844 :clear
35845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35846 t end
35847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35848 :end' >>confcache
35849if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35850 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035851 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035853$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035854 if test ! -f "$cache_file" || test -h "$cache_file"; then
35855 cat confcache >"$cache_file"
35856 else
35857 case $cache_file in #(
35858 */* | ?:*)
35859 mv -f confcache "$cache_file"$$ &&
35860 mv -f "$cache_file"$$ "$cache_file" ;; #(
35861 *)
35862 mv -f confcache "$cache_file" ;;
35863 esac
35864 fi
35865 fi
cristy3ed852e2009-09-05 21:47:34 +000035866 else
cristy8b350f62009-11-15 23:12:43 +000035867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035868$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35869 fi
35870fi
35871rm -f confcache
35872
35873test "x$prefix" = xNONE && prefix=$ac_default_prefix
35874# Let make expand exec_prefix.
35875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35876
35877DEFS=-DHAVE_CONFIG_H
35878
35879ac_libobjs=
35880ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035881U=
cristy3ed852e2009-09-05 21:47:34 +000035882for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35883 # 1. Remove the extension, and $U if already installed.
35884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35887 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035890done
35891LIBOBJS=$ac_libobjs
35892
35893LTLIBOBJS=$ac_ltlibobjs
35894
35895
cristy73bd4a52010-10-05 11:24:23 +000035896 if test -n "$EXEEXT"; then
35897 am__EXEEXT_TRUE=
35898 am__EXEEXT_FALSE='#'
35899else
35900 am__EXEEXT_TRUE='#'
35901 am__EXEEXT_FALSE=
35902fi
cristy3ed852e2009-09-05 21:47:34 +000035903
cristy73bd4a52010-10-05 11:24:23 +000035904if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035905 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035906Usually this means the macro was only invoked conditionally." "$LINENO" 5
35907fi
35908if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035909 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035910Usually this means the macro was only invoked conditionally." "$LINENO" 5
35911fi
35912if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035913 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035914Usually this means the macro was only invoked conditionally." "$LINENO" 5
35915fi
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 "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035921 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035922Usually this means the macro was only invoked conditionally." "$LINENO" 5
35923fi
35924if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035925 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035926Usually this means the macro was only invoked conditionally." "$LINENO" 5
35927fi
35928if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035929 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035930Usually this means the macro was only invoked conditionally." "$LINENO" 5
35931fi
35932if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035933 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035934Usually this means the macro was only invoked conditionally." "$LINENO" 5
35935fi
cristy73bd4a52010-10-05 11:24:23 +000035936if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035937 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035938Usually this means the macro was only invoked conditionally." "$LINENO" 5
35939fi
35940if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035941 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035942Usually this means the macro was only invoked conditionally." "$LINENO" 5
35943fi
35944LT_CONFIG_H=config/config.h
35945
35946 _ltdl_libobjs=
35947 _ltdl_ltlibobjs=
35948 if test -n "$_LT_LIBOBJS"; then
35949 # Remove the extension.
35950 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35951 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35952 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35953 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35954 done
35955 fi
35956 ltdl_LIBOBJS=$_ltdl_libobjs
35957
35958 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35959
35960
35961if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035962 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
35965if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
35973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035974 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
cristy71d8c202012-03-20 17:05:01 +000035977if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35978 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
cristy73bd4a52010-10-05 11:24:23 +000035981
35982if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035983 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035984Usually this means the macro was only invoked conditionally." "$LINENO" 5
35985fi
35986if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035988Usually this means the macro was only invoked conditionally." "$LINENO" 5
35989fi
35990if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035991 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035992Usually this means the macro was only invoked conditionally." "$LINENO" 5
35993fi
35994if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035995 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035996Usually this means the macro was only invoked conditionally." "$LINENO" 5
35997fi
35998if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
36002if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036003 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036007 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
36010if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036011 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036012Usually this means the macro was only invoked conditionally." "$LINENO" 5
36013fi
36014if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036015 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036016Usually this means the macro was only invoked conditionally." "$LINENO" 5
36017fi
36018if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036019 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
36022if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036023 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
36026if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036027 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036028Usually this means the macro was only invoked conditionally." "$LINENO" 5
36029fi
36030if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036032Usually this means the macro was only invoked conditionally." "$LINENO" 5
36033fi
36034if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036036Usually this means the macro was only invoked conditionally." "$LINENO" 5
36037fi
36038if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036040Usually this means the macro was only invoked conditionally." "$LINENO" 5
36041fi
36042if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036044Usually this means the macro was only invoked conditionally." "$LINENO" 5
36045fi
36046if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036048Usually this means the macro was only invoked conditionally." "$LINENO" 5
36049fi
36050if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036052Usually this means the macro was only invoked conditionally." "$LINENO" 5
36053fi
36054if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036056Usually this means the macro was only invoked conditionally." "$LINENO" 5
36057fi
36058if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
cristyfbb0ef02010-12-19 02:32:11 +000036062if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36063 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
cristy73bd4a52010-10-05 11:24:23 +000036066if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
cristy41cbe8a2011-10-27 01:35:18 +000036070if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36071 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
cristya054b762012-03-26 23:16:00 +000036074if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36075 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
cristy73bd4a52010-10-05 11:24:23 +000036078if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
36082if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036083 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
36086if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036087 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
36090if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036091 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
cristyb1860752011-03-14 00:27:46 +000036094if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36095 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36096Usually this means the macro was only invoked conditionally." "$LINENO" 5
36097fi
cristy73bd4a52010-10-05 11:24:23 +000036098if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036099 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036100Usually this means the macro was only invoked conditionally." "$LINENO" 5
36101fi
36102if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036103 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036104Usually this means the macro was only invoked conditionally." "$LINENO" 5
36105fi
36106if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036107 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036108Usually this means the macro was only invoked conditionally." "$LINENO" 5
36109fi
36110if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036111 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036112Usually this means the macro was only invoked conditionally." "$LINENO" 5
36113fi
36114if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036115 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036116Usually this means the macro was only invoked conditionally." "$LINENO" 5
36117fi
36118if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036119 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036120Usually this means the macro was only invoked conditionally." "$LINENO" 5
36121fi
36122if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036123 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036124Usually this means the macro was only invoked conditionally." "$LINENO" 5
36125fi
36126if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036127 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036128Usually this means the macro was only invoked conditionally." "$LINENO" 5
36129fi
cristy3ed852e2009-09-05 21:47:34 +000036130
cristyda16f162011-02-19 23:52:17 +000036131: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036132ac_write_fail=0
36133ac_clean_files_save=$ac_clean_files
36134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036135{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036136$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036137as_write_fail=0
36138cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036139#! $SHELL
36140# Generated by $as_me.
36141# Run this file to recreate the current configuration.
36142# Compiler output produced by configure, useful for debugging
36143# configure, is in config.log if it exists.
36144
36145debug=false
36146ac_cs_recheck=false
36147ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036148
cristy8b350f62009-11-15 23:12:43 +000036149SHELL=\${CONFIG_SHELL-$SHELL}
36150export SHELL
36151_ASEOF
36152cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36153## -------------------- ##
36154## M4sh Initialization. ##
36155## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036156
36157# Be more Bourne compatible
36158DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036159if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036160 emulate sh
36161 NULLCMD=:
36162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36163 # is contrary to our usage. Disable this feature.
36164 alias -g '${1+"$@"}'='"$@"'
36165 setopt NO_GLOB_SUBST
36166else
cristy8b350f62009-11-15 23:12:43 +000036167 case `(set -o) 2>/dev/null` in #(
36168 *posix*) :
36169 set -o posix ;; #(
36170 *) :
36171 ;;
cristy3ed852e2009-09-05 21:47:34 +000036172esac
cristy3ed852e2009-09-05 21:47:34 +000036173fi
36174
36175
cristy3ed852e2009-09-05 21:47:34 +000036176as_nl='
36177'
36178export as_nl
36179# Printing a long string crashes Solaris 7 /usr/bin/printf.
36180as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036183# Prefer a ksh shell builtin over an external printf program on Solaris,
36184# but without wasting forks for bash or zsh.
36185if test -z "$BASH_VERSION$ZSH_VERSION" \
36186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36187 as_echo='print -r --'
36188 as_echo_n='print -rn --'
36189elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036190 as_echo='printf %s\n'
36191 as_echo_n='printf %s'
36192else
36193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36195 as_echo_n='/usr/ucb/echo -n'
36196 else
36197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36198 as_echo_n_body='eval
36199 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036200 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036201 *"$as_nl"*)
36202 expr "X$arg" : "X\\(.*\\)$as_nl";
36203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36204 esac;
36205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36206 '
36207 export as_echo_n_body
36208 as_echo_n='sh -c $as_echo_n_body as_echo'
36209 fi
36210 export as_echo_body
36211 as_echo='sh -c $as_echo_body as_echo'
36212fi
36213
36214# The user is always right.
36215if test "${PATH_SEPARATOR+set}" != set; then
36216 PATH_SEPARATOR=:
36217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36219 PATH_SEPARATOR=';'
36220 }
36221fi
36222
cristy3ed852e2009-09-05 21:47:34 +000036223
36224# IFS
36225# We need space, tab and new line, in precisely that order. Quoting is
36226# there to prevent editors from complaining about space-tab.
36227# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36228# splitting by setting IFS to empty value.)
36229IFS=" "" $as_nl"
36230
36231# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036232as_myself=
cristy8b350f62009-11-15 23:12:43 +000036233case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036234 *[\\/]* ) as_myself=$0 ;;
36235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36236for as_dir in $PATH
36237do
36238 IFS=$as_save_IFS
36239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36241 done
cristy3ed852e2009-09-05 21:47:34 +000036242IFS=$as_save_IFS
36243
36244 ;;
36245esac
36246# We did not find ourselves, most probably we were run as `sh COMMAND'
36247# in which case we are not to be found in the path.
36248if test "x$as_myself" = x; then
36249 as_myself=$0
36250fi
36251if test ! -f "$as_myself"; then
36252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036253 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036254fi
36255
cristy8b350f62009-11-15 23:12:43 +000036256# Unset variables that we do not need and which cause bugs (e.g. in
36257# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36258# suppresses any "Segmentation fault" message there. '((' could
36259# trigger a bug in pdksh 5.2.14.
36260for as_var in BASH_ENV ENV MAIL MAILPATH
36261do eval test x\${$as_var+set} = xset \
36262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036263done
36264PS1='$ '
36265PS2='> '
36266PS4='+ '
36267
36268# NLS nuisances.
36269LC_ALL=C
36270export LC_ALL
36271LANGUAGE=C
36272export LANGUAGE
36273
cristy8b350f62009-11-15 23:12:43 +000036274# CDPATH.
36275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36276
36277
cristy98dddb52010-11-04 00:30:15 +000036278# as_fn_error STATUS ERROR [LINENO LOG_FD]
36279# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036280# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36281# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036282# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036283as_fn_error ()
36284{
cristy98dddb52010-11-04 00:30:15 +000036285 as_status=$1; test $as_status -eq 0 && as_status=1
36286 if test "$4"; then
36287 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036289 fi
cristy98dddb52010-11-04 00:30:15 +000036290 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036291 as_fn_exit $as_status
36292} # as_fn_error
36293
36294
36295# as_fn_set_status STATUS
36296# -----------------------
36297# Set $? to STATUS, without forking.
36298as_fn_set_status ()
36299{
36300 return $1
36301} # as_fn_set_status
36302
36303# as_fn_exit STATUS
36304# -----------------
36305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36306as_fn_exit ()
36307{
36308 set +e
36309 as_fn_set_status $1
36310 exit $1
36311} # as_fn_exit
36312
36313# as_fn_unset VAR
36314# ---------------
36315# Portably unset VAR.
36316as_fn_unset ()
36317{
36318 { eval $1=; unset $1;}
36319}
36320as_unset=as_fn_unset
36321# as_fn_append VAR VALUE
36322# ----------------------
36323# Append the text in VALUE to the end of the definition contained in VAR. Take
36324# advantage of any shell optimizations that allow amortized linear growth over
36325# repeated appends, instead of the typical quadratic growth present in naive
36326# implementations.
36327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36328 eval 'as_fn_append ()
36329 {
36330 eval $1+=\$2
36331 }'
36332else
36333 as_fn_append ()
36334 {
36335 eval $1=\$$1\$2
36336 }
36337fi # as_fn_append
36338
36339# as_fn_arith ARG...
36340# ------------------
36341# Perform arithmetic evaluation on the ARGs, and store the result in the
36342# global $as_val. Take advantage of shells that can avoid forks. The arguments
36343# must be portable across $(()) and expr.
36344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36345 eval 'as_fn_arith ()
36346 {
36347 as_val=$(( $* ))
36348 }'
36349else
36350 as_fn_arith ()
36351 {
36352 as_val=`expr "$@" || test $? -eq 1`
36353 }
36354fi # as_fn_arith
36355
36356
cristy3ed852e2009-09-05 21:47:34 +000036357if expr a : '\(a\)' >/dev/null 2>&1 &&
36358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36359 as_expr=expr
36360else
36361 as_expr=false
36362fi
36363
36364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36365 as_basename=basename
36366else
36367 as_basename=false
36368fi
36369
cristy8b350f62009-11-15 23:12:43 +000036370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36371 as_dirname=dirname
36372else
36373 as_dirname=false
36374fi
cristy3ed852e2009-09-05 21:47:34 +000036375
cristy3ed852e2009-09-05 21:47:34 +000036376as_me=`$as_basename -- "$0" ||
36377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36378 X"$0" : 'X\(//\)$' \| \
36379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36380$as_echo X/"$0" |
36381 sed '/^.*\/\([^/][^/]*\)\/*$/{
36382 s//\1/
36383 q
36384 }
36385 /^X\/\(\/\/\)$/{
36386 s//\1/
36387 q
36388 }
36389 /^X\/\(\/\).*/{
36390 s//\1/
36391 q
36392 }
36393 s/.*/./; q'`
36394
cristy8b350f62009-11-15 23:12:43 +000036395# Avoid depending upon Character Ranges.
36396as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36398as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36399as_cr_digits='0123456789'
36400as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036401
36402ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036403case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036404-n*)
cristy8b350f62009-11-15 23:12:43 +000036405 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036407 xy) ECHO_C='\c';;
36408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36409 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036410 esac;;
36411*)
36412 ECHO_N='-n';;
36413esac
cristy3ed852e2009-09-05 21:47:34 +000036414
36415rm -f conf$$ conf$$.exe conf$$.file
36416if test -d conf$$.dir; then
36417 rm -f conf$$.dir/conf$$.file
36418else
36419 rm -f conf$$.dir
36420 mkdir conf$$.dir 2>/dev/null
36421fi
36422if (echo >conf$$.file) 2>/dev/null; then
36423 if ln -s conf$$.file conf$$ 2>/dev/null; then
36424 as_ln_s='ln -s'
36425 # ... but there are two gotchas:
36426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036428 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036430 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036431 elif ln conf$$.file conf$$ 2>/dev/null; then
36432 as_ln_s=ln
36433 else
cristy14fefe52012-05-21 00:59:18 +000036434 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036435 fi
36436else
cristy14fefe52012-05-21 00:59:18 +000036437 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036438fi
36439rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36440rmdir conf$$.dir 2>/dev/null
36441
cristy8b350f62009-11-15 23:12:43 +000036442
36443# as_fn_mkdir_p
36444# -------------
36445# Create "$as_dir" as a directory, including parents if necessary.
36446as_fn_mkdir_p ()
36447{
36448
36449 case $as_dir in #(
36450 -*) as_dir=./$as_dir;;
36451 esac
36452 test -d "$as_dir" || eval $as_mkdir_p || {
36453 as_dirs=
36454 while :; do
36455 case $as_dir in #(
36456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36457 *) as_qdir=$as_dir;;
36458 esac
36459 as_dirs="'$as_qdir' $as_dirs"
36460 as_dir=`$as_dirname -- "$as_dir" ||
36461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36462 X"$as_dir" : 'X\(//\)[^/]' \| \
36463 X"$as_dir" : 'X\(//\)$' \| \
36464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36465$as_echo X"$as_dir" |
36466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36467 s//\1/
36468 q
36469 }
36470 /^X\(\/\/\)[^/].*/{
36471 s//\1/
36472 q
36473 }
36474 /^X\(\/\/\)$/{
36475 s//\1/
36476 q
36477 }
36478 /^X\(\/\).*/{
36479 s//\1/
36480 q
36481 }
36482 s/.*/./; q'`
36483 test -d "$as_dir" && break
36484 done
36485 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036486 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036487
36488
36489} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036490if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036491 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036492else
36493 test -d ./-p && rmdir ./-p
36494 as_mkdir_p=false
36495fi
36496
cristy14fefe52012-05-21 00:59:18 +000036497
36498# as_fn_executable_p FILE
36499# -----------------------
36500# Test if FILE is an executable regular file.
36501as_fn_executable_p ()
36502{
36503 test -f "$1" && test -x "$1"
36504} # as_fn_executable_p
36505as_test_x='test -x'
36506as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036507
36508# Sed expression to map a string onto a valid CPP name.
36509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36510
36511# Sed expression to map a string onto a valid variable name.
36512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36513
36514
36515exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036516## ----------------------------------- ##
36517## Main body of $CONFIG_STATUS script. ##
36518## ----------------------------------- ##
36519_ASEOF
36520test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036521
cristy8b350f62009-11-15 23:12:43 +000036522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36523# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036524# report actual input values of CONFIG_FILES etc. instead of their
36525# values after options handling.
36526ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036527This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036528generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036529
36530 CONFIG_FILES = $CONFIG_FILES
36531 CONFIG_HEADERS = $CONFIG_HEADERS
36532 CONFIG_LINKS = $CONFIG_LINKS
36533 CONFIG_COMMANDS = $CONFIG_COMMANDS
36534 $ $0 $@
36535
36536on `(hostname || uname -n) 2>/dev/null | sed 1q`
36537"
36538
36539_ACEOF
36540
36541case $ac_config_files in *"
36542"*) set x $ac_config_files; shift; ac_config_files=$*;;
36543esac
36544
36545case $ac_config_headers in *"
36546"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36547esac
36548
36549
36550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36551# Files that config.status was made for.
36552config_files="$ac_config_files"
36553config_headers="$ac_config_headers"
36554config_commands="$ac_config_commands"
36555
36556_ACEOF
36557
36558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36559ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036560\`$as_me' instantiates files and other configuration actions
36561from templates according to the current configuration. Unless the files
36562and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036563
cristy8b350f62009-11-15 23:12:43 +000036564Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036565
36566 -h, --help print this help, then exit
36567 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036568 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036569 -q, --quiet, --silent
36570 do not print progress messages
36571 -d, --debug don't remove temporary files
36572 --recheck update $as_me by reconfiguring in the same conditions
36573 --file=FILE[:TEMPLATE]
36574 instantiate the configuration file FILE
36575 --header=FILE[:TEMPLATE]
36576 instantiate the configuration header FILE
36577
36578Configuration files:
36579$config_files
36580
36581Configuration headers:
36582$config_headers
36583
36584Configuration commands:
36585$config_commands
36586
cristy8b350f62009-11-15 23:12:43 +000036587Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036588
36589_ACEOF
36590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036591ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036592ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036593ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036594configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036595 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036596
cristy14fefe52012-05-21 00:59:18 +000036597Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036598This config.status script is free software; the Free Software Foundation
36599gives unlimited permission to copy, distribute and modify it."
36600
36601ac_pwd='$ac_pwd'
36602srcdir='$srcdir'
36603INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036604MKDIR_P='$MKDIR_P'
36605AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036606test -n "\$AWK" || AWK=awk
36607_ACEOF
36608
36609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36610# The default lists apply if the user does not specify any file.
36611ac_need_defaults=:
36612while test $# != 0
36613do
36614 case $1 in
cristyda16f162011-02-19 23:52:17 +000036615 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36618 ac_shift=:
36619 ;;
cristyda16f162011-02-19 23:52:17 +000036620 --*=)
36621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36622 ac_optarg=
36623 ac_shift=:
36624 ;;
cristy3ed852e2009-09-05 21:47:34 +000036625 *)
36626 ac_option=$1
36627 ac_optarg=$2
36628 ac_shift=shift
36629 ;;
36630 esac
36631
36632 case $ac_option in
36633 # Handling of the options.
36634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36635 ac_cs_recheck=: ;;
36636 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36637 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036638 --config | --confi | --conf | --con | --co | --c )
36639 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036640 --debug | --debu | --deb | --de | --d | -d )
36641 debug=: ;;
36642 --file | --fil | --fi | --f )
36643 $ac_shift
36644 case $ac_optarg in
36645 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036646 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036647 esac
cristy8b350f62009-11-15 23:12:43 +000036648 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036649 ac_need_defaults=false;;
36650 --header | --heade | --head | --hea )
36651 $ac_shift
36652 case $ac_optarg in
36653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36654 esac
cristy8b350f62009-11-15 23:12:43 +000036655 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036656 ac_need_defaults=false;;
36657 --he | --h)
36658 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036659 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036660Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036661 --help | --hel | -h )
36662 $as_echo "$ac_cs_usage"; exit ;;
36663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36664 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36665 ac_cs_silent=: ;;
36666
36667 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036668 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036669Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036670
cristy8b350f62009-11-15 23:12:43 +000036671 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036672 ac_need_defaults=false ;;
36673
36674 esac
36675 shift
36676done
36677
36678ac_configure_extra_args=
36679
36680if $ac_cs_silent; then
36681 exec 6>/dev/null
36682 ac_configure_extra_args="$ac_configure_extra_args --silent"
36683fi
36684
36685_ACEOF
36686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36687if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036688 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036689 shift
36690 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36691 CONFIG_SHELL='$SHELL'
36692 export CONFIG_SHELL
36693 exec "\$@"
36694fi
36695
36696_ACEOF
36697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36698exec 5>>config.log
36699{
36700 echo
36701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36702## Running $as_me. ##
36703_ASBOX
36704 $as_echo "$ac_log"
36705} >&5
36706
36707_ACEOF
36708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036709#
36710# INIT-COMMANDS
36711#
36712PACKAGE="$PACKAGE"
36713AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36714
36715
36716# The HP-UX ksh and POSIX shell print the target directory to stdout
36717# if CDPATH is set.
36718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36719
36720sed_quote_subst='$sed_quote_subst'
36721double_quote_subst='$double_quote_subst'
36722delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036723SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36724Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36725GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36726EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36727FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36728SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36729ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36730LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36731macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36732macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36733AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36734DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36735OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36736enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36737enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36738pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36739enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036740PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036741host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36742host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36743host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36744build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36745build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36746build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36747NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36748LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36749max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36750ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36751exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36752lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36753lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36754lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036755lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36756lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036757reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36758reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36759deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36760file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036761file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36762want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36763sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036764AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36765AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036766archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036767STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36768RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36769old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36770old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36771old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36772lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36773CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36774CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36775compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36776GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36777lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36778lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36779lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36780lt_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 +000036781nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36782lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036783objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36784MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36785lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036786lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036787lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036788lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36789lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36790need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036791MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036792DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36793NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36794LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36795OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36796OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36797libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36798shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36799extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36800archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36801enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36802export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36803whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36804compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36805old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36806old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36807archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36808archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36809module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36810module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36811with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36812allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36813no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36814hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036815hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36816hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36817hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36818hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36819hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36820hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36821inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36822link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036823always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36824export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36825exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36826include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36827prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036828postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036829file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36830variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36831need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36832need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36833version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36834runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36835shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36836shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36837libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36838library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36839soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36840install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36841postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36842postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36843finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36844finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36845hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36846sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36847sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36848hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36849enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36850enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36851enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36852old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36853striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36854compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36855predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36856postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36857predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36858postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36859compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36860LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36861reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36862reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36863old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36864compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36865GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36866lt_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 +000036867lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036868lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036869lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36870lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36871archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36872enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36873export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36874whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36875compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36876old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36877old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36878archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36879archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36880module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36881module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36882with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36883allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36884no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36885hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036886hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36887hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36888hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36889hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36890hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36891hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36892inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36893link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036894always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36895export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36896exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36897include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36898prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036899postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036900file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36901hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36902compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36903predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36904postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36905predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36906postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36907compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036908
36909LTCC='$LTCC'
36910LTCFLAGS='$LTCFLAGS'
36911compiler='$compiler_DEFAULT'
36912
cristy0c60a692010-11-04 01:09:47 +000036913# A function that is used when there is no print builtin or printf.
36914func_fallback_echo ()
36915{
36916 eval 'cat <<_LTECHO_EOF
36917\$1
36918_LTECHO_EOF'
36919}
36920
cristy73bd4a52010-10-05 11:24:23 +000036921# Quote evaled strings.
36922for var in SED \
36923GREP \
36924EGREP \
36925FGREP \
cristy0c60a692010-11-04 01:09:47 +000036926SHELL \
36927ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036928LD \
cristy0c60a692010-11-04 01:09:47 +000036929AS \
36930DLLTOOL \
36931OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036932PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036933NM \
36934LN_S \
36935lt_SP2NL \
36936lt_NL2SP \
36937reload_flag \
36938deplibs_check_method \
36939file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036940file_magic_glob \
36941want_nocaseglob \
36942sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036943AR \
36944AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036945archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036946STRIP \
36947RANLIB \
36948CC \
36949CFLAGS \
36950compiler \
36951lt_cv_sys_global_symbol_pipe \
36952lt_cv_sys_global_symbol_to_cdecl \
36953lt_cv_sys_global_symbol_to_c_name_address \
36954lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036955nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036956lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036957lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036958lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036959lt_prog_compiler_static \
36960lt_cv_prog_compiler_c_o \
36961need_locks \
cristyda16f162011-02-19 23:52:17 +000036962MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036963DSYMUTIL \
36964NMEDIT \
36965LIPO \
36966OTOOL \
36967OTOOL64 \
36968shrext_cmds \
36969export_dynamic_flag_spec \
36970whole_archive_flag_spec \
36971compiler_needs_object \
36972with_gnu_ld \
36973allow_undefined_flag \
36974no_undefined_flag \
36975hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036976hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036977exclude_expsyms \
36978include_expsyms \
36979file_list_spec \
36980variables_saved_for_relink \
36981libname_spec \
36982library_names_spec \
36983soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036984install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036985finish_eval \
36986old_striplib \
36987striplib \
36988compiler_lib_search_dirs \
36989predep_objects \
36990postdep_objects \
36991predeps \
36992postdeps \
36993compiler_lib_search_path \
36994LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036995reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036996compiler_CXX \
36997lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036998lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036999lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037000lt_prog_compiler_static_CXX \
37001lt_cv_prog_compiler_c_o_CXX \
37002export_dynamic_flag_spec_CXX \
37003whole_archive_flag_spec_CXX \
37004compiler_needs_object_CXX \
37005with_gnu_ld_CXX \
37006allow_undefined_flag_CXX \
37007no_undefined_flag_CXX \
37008hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037009hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037010exclude_expsyms_CXX \
37011include_expsyms_CXX \
37012file_list_spec_CXX \
37013compiler_lib_search_dirs_CXX \
37014predep_objects_CXX \
37015postdep_objects_CXX \
37016predeps_CXX \
37017postdeps_CXX \
37018compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037020 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037022 ;;
37023 *)
37024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37025 ;;
37026 esac
37027done
37028
37029# Double-quote double-evaled strings.
37030for var in reload_cmds \
37031old_postinstall_cmds \
37032old_postuninstall_cmds \
37033old_archive_cmds \
37034extract_expsyms_cmds \
37035old_archive_from_new_cmds \
37036old_archive_from_expsyms_cmds \
37037archive_cmds \
37038archive_expsym_cmds \
37039module_cmds \
37040module_expsym_cmds \
37041export_symbols_cmds \
37042prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037043postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037044postinstall_cmds \
37045postuninstall_cmds \
37046finish_cmds \
37047sys_lib_search_path_spec \
37048sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037049reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037050old_archive_cmds_CXX \
37051old_archive_from_new_cmds_CXX \
37052old_archive_from_expsyms_cmds_CXX \
37053archive_cmds_CXX \
37054archive_expsym_cmds_CXX \
37055module_cmds_CXX \
37056module_expsym_cmds_CXX \
37057export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037058prelink_cmds_CXX \
37059postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037060 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037061 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037063 ;;
37064 *)
37065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37066 ;;
37067 esac
37068done
37069
cristy73bd4a52010-10-05 11:24:23 +000037070ac_aux_dir='$ac_aux_dir'
37071xsi_shell='$xsi_shell'
37072lt_shell_append='$lt_shell_append'
37073
37074# See if we are running on zsh, and set the options which allow our
37075# commands through without removal of \ escapes INIT.
37076if test -n "\${ZSH_VERSION+set}" ; then
37077 setopt NO_GLOB_SUBST
37078fi
37079
37080
37081 PACKAGE='$PACKAGE'
37082 VERSION='$VERSION'
37083 TIMESTAMP='$TIMESTAMP'
37084 RM='$RM'
37085 ofile='$ofile'
37086
37087
37088
37089
37090
37091
cristy3ed852e2009-09-05 21:47:34 +000037092_ACEOF
37093
37094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37095
37096# Handling of arguments.
37097for ac_config_target in $ac_config_targets
37098do
37099 case $ac_config_target in
37100 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037101 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037102 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37103 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37104 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37105 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37106 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037107 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037108 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37109 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37110 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37111 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37112 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037113 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037114 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37115 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037116 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37117 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37118 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037119 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37120 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37121 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37122 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37123 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37124 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37125 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37126 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37127 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37128 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37129 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37130 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37131 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37132 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37133 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37134 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37135 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037136 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37137 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37139 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037140 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37141 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037142 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037143 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37144 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37145
cristy98dddb52010-11-04 00:30:15 +000037146 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037147 esac
37148done
37149
37150
37151# If the user did not use the arguments to specify the items to instantiate,
37152# then the envvar interface is used. Set only those that are not.
37153# We use the long form for the default assignment because of an extremely
37154# bizarre bug on SunOS 4.1.3.
37155if $ac_need_defaults; then
37156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37159fi
37160
37161# Have a temporary directory for convenience. Make it in the build tree
37162# simply because there is no reason against having it here, and in addition,
37163# creating and moving files from /tmp can sometimes cause problems.
37164# Hook for its removal unless debugging.
37165# Note that there is a small window in which the directory will not be cleaned:
37166# after its creation but before its name has been assigned to `$tmp'.
37167$debug ||
37168{
cristyda16f162011-02-19 23:52:17 +000037169 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037170 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037171 : "${ac_tmp:=$tmp}"
37172 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037173' 0
cristy8b350f62009-11-15 23:12:43 +000037174 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037175}
37176# Create a (secure) tmp directory for tmp files.
37177
37178{
37179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037180 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037181} ||
37182{
37183 tmp=./conf$$-$RANDOM
37184 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037185} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037186ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037187
37188# Set up the scripts for CONFIG_FILES section.
37189# No need to generate them if there are no CONFIG_FILES.
37190# This happens for instance with `./config.status config.h'.
37191if test -n "$CONFIG_FILES"; then
37192
37193
cristy8b350f62009-11-15 23:12:43 +000037194ac_cr=`echo X | tr X '\015'`
37195# On cygwin, bash can eat \r inside `` if the user requested igncr.
37196# But we know of no other shell where ac_cr would be empty at this
37197# point, so we can use a bashism as a fallback.
37198if test "x$ac_cr" = x; then
37199 eval ac_cr=\$\'\\r\'
37200fi
cristy3ed852e2009-09-05 21:47:34 +000037201ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37202if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037203 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037204else
37205 ac_cs_awk_cr=$ac_cr
37206fi
37207
cristyda16f162011-02-19 23:52:17 +000037208echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037209_ACEOF
37210
37211
37212{
37213 echo "cat >conf$$subs.awk <<_ACEOF" &&
37214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37215 echo "_ACEOF"
37216} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37218ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037219ac_delim='%!_!# '
37220for ac_last_try in false false false false false :; do
37221 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037223
37224 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37225 if test $ac_delim_n = $ac_delim_num; then
37226 break
37227 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037229 else
37230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37231 fi
37232done
37233rm -f conf$$subs.sh
37234
37235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037236cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037237_ACEOF
37238sed -n '
37239h
37240s/^/S["/; s/!.*/"]=/
37241p
37242g
37243s/^[^!]*!//
37244:repl
37245t repl
37246s/'"$ac_delim"'$//
37247t delim
37248:nl
37249h
cristycd4c5312009-11-22 01:19:08 +000037250s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037251t more1
37252s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37253p
37254n
37255b repl
37256:more1
37257s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37258p
37259g
37260s/.\{148\}//
37261t nl
37262:delim
37263h
cristycd4c5312009-11-22 01:19:08 +000037264s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037265t more2
37266s/["\\]/\\&/g; s/^/"/; s/$/"/
37267p
37268b
37269:more2
37270s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37271p
37272g
37273s/.\{148\}//
37274t delim
37275' <conf$$subs.awk | sed '
37276/^[^""]/{
37277 N
37278 s/\n//
37279}
37280' >>$CONFIG_STATUS || ac_write_fail=1
37281rm -f conf$$subs.awk
37282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37283_ACAWK
cristyda16f162011-02-19 23:52:17 +000037284cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037285 for (key in S) S_is_set[key] = 1
37286 FS = ""
37287
37288}
37289{
37290 line = $ 0
37291 nfields = split(line, field, "@")
37292 substed = 0
37293 len = length(field[1])
37294 for (i = 2; i < nfields; i++) {
37295 key = field[i]
37296 keylen = length(key)
37297 if (S_is_set[key]) {
37298 value = S[key]
37299 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37300 len += length(value) + length(field[++i])
37301 substed = 1
37302 } else
37303 len += 1 + keylen
37304 }
37305
37306 print line
37307}
37308
37309_ACAWK
37310_ACEOF
37311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37312if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37313 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37314else
37315 cat
cristyda16f162011-02-19 23:52:17 +000037316fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037317 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037318_ACEOF
37319
cristy98dddb52010-11-04 00:30:15 +000037320# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37321# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037322# trailing colons and then remove the whole line if VPATH becomes empty
37323# (actually we leave an empty line to preserve line numbers).
37324if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037325 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37326h
37327s///
37328s/^/:/
37329s/[ ]*$/:/
37330s/:\$(srcdir):/:/g
37331s/:\${srcdir}:/:/g
37332s/:@srcdir@:/:/g
37333s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037334s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037335x
37336s/\(=[ ]*\).*/\1/
37337G
37338s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037339s/^[^=]*=[ ]*$//
37340}'
37341fi
37342
37343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37344fi # test -n "$CONFIG_FILES"
37345
37346# Set up the scripts for CONFIG_HEADERS section.
37347# No need to generate them if there are no CONFIG_HEADERS.
37348# This happens for instance with `./config.status Makefile'.
37349if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037350cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037351BEGIN {
37352_ACEOF
37353
37354# Transform confdefs.h into an awk script `defines.awk', embedded as
37355# here-document in config.status, that substitutes the proper values into
37356# config.h.in to produce config.h.
37357
37358# Create a delimiter string that does not exist in confdefs.h, to ease
37359# handling of long lines.
37360ac_delim='%!_!# '
37361for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037362 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37363 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037364 break
37365 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037366 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037367 else
37368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37369 fi
37370done
37371
37372# For the awk script, D is an array of macro values keyed by name,
37373# likewise P contains macro parameters if any. Preserve backslash
37374# newline sequences.
37375
37376ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37377sed -n '
37378s/.\{148\}/&'"$ac_delim"'/g
37379t rset
37380:rset
37381s/^[ ]*#[ ]*define[ ][ ]*/ /
37382t def
37383d
37384:def
37385s/\\$//
37386t bsnl
37387s/["\\]/\\&/g
37388s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37389D["\1"]=" \3"/p
37390s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37391d
37392:bsnl
37393s/["\\]/\\&/g
37394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37395D["\1"]=" \3\\\\\\n"\\/p
37396t cont
37397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37398t cont
37399d
37400:cont
37401n
37402s/.\{148\}/&'"$ac_delim"'/g
37403t clear
37404:clear
37405s/\\$//
37406t bsnlc
37407s/["\\]/\\&/g; s/^/"/; s/$/"/p
37408d
37409:bsnlc
37410s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37411b cont
37412' <confdefs.h | sed '
37413s/'"$ac_delim"'/"\\\
37414"/g' >>$CONFIG_STATUS || ac_write_fail=1
37415
37416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37417 for (key in D) D_is_set[key] = 1
37418 FS = ""
37419}
37420/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37421 line = \$ 0
37422 split(line, arg, " ")
37423 if (arg[1] == "#") {
37424 defundef = arg[2]
37425 mac1 = arg[3]
37426 } else {
37427 defundef = substr(arg[1], 2)
37428 mac1 = arg[2]
37429 }
37430 split(mac1, mac2, "(") #)
37431 macro = mac2[1]
37432 prefix = substr(line, 1, index(line, defundef) - 1)
37433 if (D_is_set[macro]) {
37434 # Preserve the white space surrounding the "#".
37435 print prefix "define", macro P[macro] D[macro]
37436 next
37437 } else {
37438 # Replace #undef with comments. This is necessary, for example,
37439 # in the case of _POSIX_SOURCE, which is predefined and required
37440 # on some systems where configure will not decide to define it.
37441 if (defundef == "undef") {
37442 print "/*", prefix defundef, macro, "*/"
37443 next
37444 }
37445 }
37446}
37447{ print }
37448_ACAWK
37449_ACEOF
37450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037451 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037452fi # test -n "$CONFIG_HEADERS"
37453
37454
37455eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37456shift
37457for ac_tag
37458do
37459 case $ac_tag in
37460 :[FHLC]) ac_mode=$ac_tag; continue;;
37461 esac
37462 case $ac_mode$ac_tag in
37463 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037464 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037465 :[FH]-) ac_tag=-:-;;
37466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37467 esac
37468 ac_save_IFS=$IFS
37469 IFS=:
37470 set x $ac_tag
37471 IFS=$ac_save_IFS
37472 shift
37473 ac_file=$1
37474 shift
37475
37476 case $ac_mode in
37477 :L) ac_source=$1;;
37478 :[FH])
37479 ac_file_inputs=
37480 for ac_f
37481 do
37482 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037483 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037484 *) # Look for the file first in the build tree, then in the source tree
37485 # (if the path is not absolute). The absolute path cannot be DOS-style,
37486 # because $ac_f cannot contain `:'.
37487 test -f "$ac_f" ||
37488 case $ac_f in
37489 [\\/$]*) false;;
37490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37491 esac ||
cristy98dddb52010-11-04 00:30:15 +000037492 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037493 esac
37494 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037495 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037496 done
37497
37498 # Let's still pretend it is `configure' which instantiates (i.e., don't
37499 # use $as_me), people would be surprised to read:
37500 # /* config.h. Generated by config.status. */
37501 configure_input='Generated from '`
37502 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37503 `' by configure.'
37504 if test x"$ac_file" != x-; then
37505 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037507$as_echo "$as_me: creating $ac_file" >&6;}
37508 fi
37509 # Neutralize special characters interpreted by sed in replacement strings.
37510 case $configure_input in #(
37511 *\&* | *\|* | *\\* )
37512 ac_sed_conf_input=`$as_echo "$configure_input" |
37513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37514 *) ac_sed_conf_input=$configure_input;;
37515 esac
37516
37517 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037518 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037520 esac
37521 ;;
37522 esac
37523
37524 ac_dir=`$as_dirname -- "$ac_file" ||
37525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37526 X"$ac_file" : 'X\(//\)[^/]' \| \
37527 X"$ac_file" : 'X\(//\)$' \| \
37528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37529$as_echo X"$ac_file" |
37530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37531 s//\1/
37532 q
37533 }
37534 /^X\(\/\/\)[^/].*/{
37535 s//\1/
37536 q
37537 }
37538 /^X\(\/\/\)$/{
37539 s//\1/
37540 q
37541 }
37542 /^X\(\/\).*/{
37543 s//\1/
37544 q
37545 }
37546 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037547 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037548 ac_builddir=.
37549
37550case "$ac_dir" in
37551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37552*)
37553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37554 # A ".." for each directory in $ac_dir_suffix.
37555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37556 case $ac_top_builddir_sub in
37557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37559 esac ;;
37560esac
37561ac_abs_top_builddir=$ac_pwd
37562ac_abs_builddir=$ac_pwd$ac_dir_suffix
37563# for backward compatibility:
37564ac_top_builddir=$ac_top_build_prefix
37565
37566case $srcdir in
37567 .) # We are building in place.
37568 ac_srcdir=.
37569 ac_top_srcdir=$ac_top_builddir_sub
37570 ac_abs_top_srcdir=$ac_pwd ;;
37571 [\\/]* | ?:[\\/]* ) # Absolute name.
37572 ac_srcdir=$srcdir$ac_dir_suffix;
37573 ac_top_srcdir=$srcdir
37574 ac_abs_top_srcdir=$srcdir ;;
37575 *) # Relative name.
37576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37577 ac_top_srcdir=$ac_top_build_prefix$srcdir
37578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37579esac
37580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37581
37582
37583 case $ac_mode in
37584 :F)
37585 #
37586 # CONFIG_FILE
37587 #
37588
37589 case $INSTALL in
37590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37592 esac
cristy73bd4a52010-10-05 11:24:23 +000037593 ac_MKDIR_P=$MKDIR_P
37594 case $MKDIR_P in
37595 [\\/$]* | ?:[\\/]* ) ;;
37596 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37597 esac
cristy3ed852e2009-09-05 21:47:34 +000037598_ACEOF
37599
37600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37601# If the template does not know about datarootdir, expand it.
37602# FIXME: This hack should be removed a few years after 2.60.
37603ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037604ac_sed_dataroot='
37605/datarootdir/ {
37606 p
37607 q
37608}
37609/@datadir@/p
37610/@docdir@/p
37611/@infodir@/p
37612/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037613/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037614case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37615*datarootdir*) ac_datarootdir_seen=yes;;
37616*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037618$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37619_ACEOF
37620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37621 ac_datarootdir_hack='
37622 s&@datadir@&$datadir&g
37623 s&@docdir@&$docdir&g
37624 s&@infodir@&$infodir&g
37625 s&@localedir@&$localedir&g
37626 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037627 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037628esac
37629_ACEOF
37630
37631# Neutralize VPATH when `$srcdir' = `.'.
37632# Shell code in configure.ac might set extrasub.
37633# FIXME: do we really want to maintain this feature?
37634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37635ac_sed_extra="$ac_vpsub
37636$extrasub
37637_ACEOF
37638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37639:t
37640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37641s|@configure_input@|$ac_sed_conf_input|;t t
37642s&@top_builddir@&$ac_top_builddir_sub&;t t
37643s&@top_build_prefix@&$ac_top_build_prefix&;t t
37644s&@srcdir@&$ac_srcdir&;t t
37645s&@abs_srcdir@&$ac_abs_srcdir&;t t
37646s&@top_srcdir@&$ac_top_srcdir&;t t
37647s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37648s&@builddir@&$ac_builddir&;t t
37649s&@abs_builddir@&$ac_abs_builddir&;t t
37650s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37651s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037652s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037653$ac_datarootdir_hack
37654"
cristyda16f162011-02-19 23:52:17 +000037655eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37656 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037657
37658test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037659 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37661 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037663which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037664$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037665which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037666
cristyda16f162011-02-19 23:52:17 +000037667 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037668 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037669 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37670 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037671 esac \
cristy98dddb52010-11-04 00:30:15 +000037672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037673 ;;
37674 :H)
37675 #
37676 # CONFIG_HEADER
37677 #
37678 if test x"$ac_file" != x-; then
37679 {
37680 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37682 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037684 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037685 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037686$as_echo "$as_me: $ac_file is unchanged" >&6;}
37687 else
37688 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037689 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037691 fi
37692 else
37693 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037694 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037695 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037696 fi
cristy73bd4a52010-10-05 11:24:23 +000037697# Compute "$ac_file"'s index in $config_headers.
37698_am_arg="$ac_file"
37699_am_stamp_count=1
37700for _am_header in $config_headers :; do
37701 case $_am_header in
37702 $_am_arg | $_am_arg:* )
37703 break ;;
37704 * )
37705 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37706 esac
37707done
37708echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37709$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37710 X"$_am_arg" : 'X\(//\)[^/]' \| \
37711 X"$_am_arg" : 'X\(//\)$' \| \
37712 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37713$as_echo X"$_am_arg" |
37714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37715 s//\1/
37716 q
37717 }
37718 /^X\(\/\/\)[^/].*/{
37719 s//\1/
37720 q
37721 }
37722 /^X\(\/\/\)$/{
37723 s//\1/
37724 q
37725 }
37726 /^X\(\/\).*/{
37727 s//\1/
37728 q
37729 }
37730 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037731 ;;
37732
cristy8b350f62009-11-15 23:12:43 +000037733 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037734$as_echo "$as_me: executing $ac_file commands" >&6;}
37735 ;;
37736 esac
37737
37738
37739 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037740 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037741ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37742ac_prefix_conf_PKG=`echo MagickCore`
37743ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37744ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37745ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37746if test ".$ac_prefix_conf_INP" = "."; then
37747 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37748 case "$ac_file" in
37749 *.h) ac_prefix_conf_INP=$ac_file ;;
37750 *)
37751 esac
37752 test ".$ac_prefix_conf_INP" != "." && break
37753 done
37754fi
37755if test ".$ac_prefix_conf_INP" = "."; then
37756 case "$ac_prefix_conf_OUT" in
37757 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37758 ;;
37759 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37760 ;;
37761 *) ac_prefix_conf_INP=config.h
37762 ;;
37763 esac
37764fi
37765if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037766 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037767else
37768 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37769 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37770 fi fi
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37772$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37773 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037774 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37775 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37776 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37777 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37778 $as_echo "#endif/" >> conftest.prefix
37779 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37780 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37781 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037782 # now executing _script on _DEF input to create _OUT output file
37783 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37784 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37785 echo ' ' >>$tmp/pconfig.h
37786 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37787
37788 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37789 echo ' ' >>$tmp/pconfig.h
37790 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37791 echo "#endif" >>$tmp/pconfig.h
37792 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37794$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37795 else
37796 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37797$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37798 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37799 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37800 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37801$as_echo X"$ac_prefix_conf_OUT" |
37802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37803 s//\1/
37804 q
37805 }
37806 /^X\(\/\/\)[^/].*/{
37807 s//\1/
37808 q
37809 }
37810 /^X\(\/\/\)$/{
37811 s//\1/
37812 q
37813 }
37814 /^X\(\/\).*/{
37815 s//\1/
37816 q
37817 }
37818 s/.*/./; q'`
37819 as_dir="$ac_dir"; as_fn_mkdir_p
37820 rm -f "$ac_prefix_conf_OUT"
37821 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37822 fi
37823 cp conftest.prefix _configs.sed
37824 else
cristy98dddb52010-11-04 00:30:15 +000037825 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 +000037826 fi
37827 rm -f conftest.*
37828fi
37829 ;;
37830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37831 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37832 # are listed without --file. Let's play safe and only enable the eval
37833 # if we detect the quoting.
37834 case $CONFIG_FILES in
37835 *\'*) eval set x "$CONFIG_FILES" ;;
37836 *) set x $CONFIG_FILES ;;
37837 esac
37838 shift
37839 for mf
37840 do
37841 # Strip MF so we end up with the name of the file.
37842 mf=`echo "$mf" | sed -e 's/:.*$//'`
37843 # Check whether this is an Automake generated Makefile or not.
37844 # We used to match only the files named `Makefile.in', but
37845 # some people rename them; so instead we look at the file content.
37846 # Grep'ing the first line is not enough: some people post-process
37847 # each Makefile.in and add a new line on top of each file to say so.
37848 # Grep'ing the whole file is not good either: AIX grep has a line
37849 # limit of 2048, but all sed's we know have understand at least 4000.
37850 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37851 dirpart=`$as_dirname -- "$mf" ||
37852$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37853 X"$mf" : 'X\(//\)[^/]' \| \
37854 X"$mf" : 'X\(//\)$' \| \
37855 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37856$as_echo X"$mf" |
37857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37858 s//\1/
37859 q
37860 }
37861 /^X\(\/\/\)[^/].*/{
37862 s//\1/
37863 q
37864 }
37865 /^X\(\/\/\)$/{
37866 s//\1/
37867 q
37868 }
37869 /^X\(\/\).*/{
37870 s//\1/
37871 q
37872 }
37873 s/.*/./; q'`
37874 else
37875 continue
37876 fi
37877 # Extract the definition of DEPDIR, am__include, and am__quote
37878 # from the Makefile without running `make'.
37879 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37880 test -z "$DEPDIR" && continue
37881 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37882 test -z "am__include" && continue
37883 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37884 # When using ansi2knr, U may be empty or an underscore; expand it
37885 U=`sed -n 's/^U = //p' < "$mf"`
37886 # Find all dependency output files, they are included files with
37887 # $(DEPDIR) in their names. We invoke sed twice because it is the
37888 # simplest approach to changing $(DEPDIR) to its actual value in the
37889 # expansion.
37890 for file in `sed -n "
37891 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37892 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37893 # Make sure the directory exists.
37894 test -f "$dirpart/$file" && continue
37895 fdir=`$as_dirname -- "$file" ||
37896$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37897 X"$file" : 'X\(//\)[^/]' \| \
37898 X"$file" : 'X\(//\)$' \| \
37899 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37900$as_echo X"$file" |
37901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37902 s//\1/
37903 q
37904 }
37905 /^X\(\/\/\)[^/].*/{
37906 s//\1/
37907 q
37908 }
37909 /^X\(\/\/\)$/{
37910 s//\1/
37911 q
37912 }
37913 /^X\(\/\).*/{
37914 s//\1/
37915 q
37916 }
37917 s/.*/./; q'`
37918 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37919 # echo "creating $dirpart/$file"
37920 echo '# dummy' > "$dirpart/$file"
37921 done
37922 done
37923}
37924 ;;
37925 "libtool":C)
37926
37927 # See if we are running on zsh, and set the options which allow our
37928 # commands through without removal of \ escapes.
37929 if test -n "${ZSH_VERSION+set}" ; then
37930 setopt NO_GLOB_SUBST
37931 fi
37932
37933 cfgfile="${ofile}T"
37934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37935 $RM "$cfgfile"
37936
37937 cat <<_LT_EOF >> "$cfgfile"
37938#! $SHELL
37939
37940# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37941# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37943# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37944#
37945# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037946# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37947# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037948# Written by Gordon Matzigkeit, 1996
37949#
37950# This file is part of GNU Libtool.
37951#
37952# GNU Libtool is free software; you can redistribute it and/or
37953# modify it under the terms of the GNU General Public License as
37954# published by the Free Software Foundation; either version 2 of
37955# the License, or (at your option) any later version.
37956#
37957# As a special exception to the GNU General Public License,
37958# if you distribute this file as part of a program or library that
37959# is built using GNU Libtool, you may include this file under the
37960# same distribution terms that you use for the rest of that program.
37961#
37962# GNU Libtool is distributed in the hope that it will be useful,
37963# but WITHOUT ANY WARRANTY; without even the implied warranty of
37964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37965# GNU General Public License for more details.
37966#
37967# You should have received a copy of the GNU General Public License
37968# along with GNU Libtool; see the file COPYING. If not, a copy
37969# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37970# obtained by writing to the Free Software Foundation, Inc.,
37971# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37972
37973
37974# The names of the tagged configurations supported by this script.
37975available_tags="CXX "
37976
37977# ### BEGIN LIBTOOL CONFIG
37978
37979# A sed program that does not truncate output.
37980SED=$lt_SED
37981
37982# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37983Xsed="\$SED -e 1s/^X//"
37984
37985# A grep program that handles long lines.
37986GREP=$lt_GREP
37987
37988# An ERE matcher.
37989EGREP=$lt_EGREP
37990
37991# A literal string matcher.
37992FGREP=$lt_FGREP
37993
cristy0c60a692010-11-04 01:09:47 +000037994# Shell to use when invoking shell scripts.
37995SHELL=$lt_SHELL
37996
37997# An echo program that protects backslashes.
37998ECHO=$lt_ECHO
37999
cristy73bd4a52010-10-05 11:24:23 +000038000# Which release of libtool.m4 was used?
38001macro_version=$macro_version
38002macro_revision=$macro_revision
38003
38004# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038005AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038006
38007# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038008DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038009
38010# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038011OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038012
38013# Whether or not to build shared libraries.
38014build_libtool_libs=$enable_shared
38015
38016# Whether or not to build static libraries.
38017build_old_libs=$enable_static
38018
38019# What type of objects to build.
38020pic_mode=$pic_mode
38021
38022# Whether or not to optimize for fast installation.
38023fast_install=$enable_fast_install
38024
cristy99bd5232011-12-07 14:38:20 +000038025# The PATH separator for the build system.
38026PATH_SEPARATOR=$lt_PATH_SEPARATOR
38027
cristy73bd4a52010-10-05 11:24:23 +000038028# The host system.
38029host_alias=$host_alias
38030host=$host
38031host_os=$host_os
38032
38033# The build system.
38034build_alias=$build_alias
38035build=$build
38036build_os=$build_os
38037
38038# A BSD- or MS-compatible name lister.
38039NM=$lt_NM
38040
38041# Whether we need soft or hard links.
38042LN_S=$lt_LN_S
38043
38044# What is the maximum length of a command?
38045max_cmd_len=$max_cmd_len
38046
38047# Object file suffix (normally "o").
38048objext=$ac_objext
38049
38050# Executable file suffix (normally "").
38051exeext=$exeext
38052
38053# whether the shell understands "unset".
38054lt_unset=$lt_unset
38055
38056# turn spaces into newlines.
38057SP2NL=$lt_lt_SP2NL
38058
38059# turn newlines into spaces.
38060NL2SP=$lt_lt_NL2SP
38061
cristyda16f162011-02-19 23:52:17 +000038062# convert \$build file names to \$host format.
38063to_host_file_cmd=$lt_cv_to_host_file_cmd
38064
38065# convert \$build files to toolchain format.
38066to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38067
cristy73bd4a52010-10-05 11:24:23 +000038068# Method to check whether dependent libraries are shared objects.
38069deplibs_check_method=$lt_deplibs_check_method
38070
cristyda16f162011-02-19 23:52:17 +000038071# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038072file_magic_cmd=$lt_file_magic_cmd
38073
cristyda16f162011-02-19 23:52:17 +000038074# How to find potential files when deplibs_check_method = "file_magic".
38075file_magic_glob=$lt_file_magic_glob
38076
38077# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38078want_nocaseglob=$lt_want_nocaseglob
38079
38080# Command to associate shared and link libraries.
38081sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38082
cristy73bd4a52010-10-05 11:24:23 +000038083# The archiver.
38084AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038085
38086# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038087AR_FLAGS=$lt_AR_FLAGS
38088
cristyda16f162011-02-19 23:52:17 +000038089# How to feed a file listing to the archiver.
38090archiver_list_spec=$lt_archiver_list_spec
38091
cristy73bd4a52010-10-05 11:24:23 +000038092# A symbol stripping program.
38093STRIP=$lt_STRIP
38094
38095# Commands used to install an old-style archive.
38096RANLIB=$lt_RANLIB
38097old_postinstall_cmds=$lt_old_postinstall_cmds
38098old_postuninstall_cmds=$lt_old_postuninstall_cmds
38099
cristy0c60a692010-11-04 01:09:47 +000038100# Whether to use a lock for old archive extraction.
38101lock_old_archive_extraction=$lock_old_archive_extraction
38102
cristy73bd4a52010-10-05 11:24:23 +000038103# A C compiler.
38104LTCC=$lt_CC
38105
38106# LTCC compiler flags.
38107LTCFLAGS=$lt_CFLAGS
38108
38109# Take the output of nm and produce a listing of raw symbols and C names.
38110global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38111
38112# Transform the output of nm in a proper C declaration.
38113global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38114
38115# Transform the output of nm in a C name address pair.
38116global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38117
38118# Transform the output of nm in a C name address pair when lib prefix is needed.
38119global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38120
cristyda16f162011-02-19 23:52:17 +000038121# Specify filename containing input files for \$NM.
38122nm_file_list_spec=$lt_nm_file_list_spec
38123
38124# The root where to search for dependent libraries,and in which our libraries should be installed.
38125lt_sysroot=$lt_sysroot
38126
cristy73bd4a52010-10-05 11:24:23 +000038127# The name of the directory that contains temporary libtool files.
38128objdir=$objdir
38129
cristy73bd4a52010-10-05 11:24:23 +000038130# Used to examine libraries when file_magic_cmd begins with "file".
38131MAGIC_CMD=$MAGIC_CMD
38132
38133# Must we lock files when doing compilation?
38134need_locks=$lt_need_locks
38135
cristyda16f162011-02-19 23:52:17 +000038136# Manifest tool.
38137MANIFEST_TOOL=$lt_MANIFEST_TOOL
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38140DSYMUTIL=$lt_DSYMUTIL
38141
38142# Tool to change global to local symbols on Mac OS X.
38143NMEDIT=$lt_NMEDIT
38144
38145# Tool to manipulate fat objects and archives on Mac OS X.
38146LIPO=$lt_LIPO
38147
38148# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38149OTOOL=$lt_OTOOL
38150
38151# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38152OTOOL64=$lt_OTOOL64
38153
38154# Old archive suffix (normally "a").
38155libext=$libext
38156
38157# Shared library suffix (normally ".so").
38158shrext_cmds=$lt_shrext_cmds
38159
38160# The commands to extract the exported symbol list from a shared archive.
38161extract_expsyms_cmds=$lt_extract_expsyms_cmds
38162
38163# Variables whose values should be saved in libtool wrapper scripts and
38164# restored at link time.
38165variables_saved_for_relink=$lt_variables_saved_for_relink
38166
38167# Do we need the "lib" prefix for modules?
38168need_lib_prefix=$need_lib_prefix
38169
38170# Do we need a version for libraries?
38171need_version=$need_version
38172
38173# Library versioning type.
38174version_type=$version_type
38175
38176# Shared library runtime path variable.
38177runpath_var=$runpath_var
38178
38179# Shared library path variable.
38180shlibpath_var=$shlibpath_var
38181
38182# Is shlibpath searched before the hard-coded library search path?
38183shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38184
38185# Format of library name prefix.
38186libname_spec=$lt_libname_spec
38187
38188# List of archive names. First name is the real one, the rest are links.
38189# The last name is the one that the linker finds with -lNAME
38190library_names_spec=$lt_library_names_spec
38191
38192# The coded name of the library, if different from the real name.
38193soname_spec=$lt_soname_spec
38194
cristy0c60a692010-11-04 01:09:47 +000038195# Permission mode override for installation of shared libraries.
38196install_override_mode=$lt_install_override_mode
38197
cristy73bd4a52010-10-05 11:24:23 +000038198# Command to use after installation of a shared archive.
38199postinstall_cmds=$lt_postinstall_cmds
38200
38201# Command to use after uninstallation of a shared archive.
38202postuninstall_cmds=$lt_postuninstall_cmds
38203
38204# Commands used to finish a libtool library installation in a directory.
38205finish_cmds=$lt_finish_cmds
38206
38207# As "finish_cmds", except a single script fragment to be evaled but
38208# not shown.
38209finish_eval=$lt_finish_eval
38210
38211# Whether we should hardcode library paths into libraries.
38212hardcode_into_libs=$hardcode_into_libs
38213
38214# Compile-time system search path for libraries.
38215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38216
38217# Run-time system search path for libraries.
38218sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38219
38220# Whether dlopen is supported.
38221dlopen_support=$enable_dlopen
38222
38223# Whether dlopen of programs is supported.
38224dlopen_self=$enable_dlopen_self
38225
38226# Whether dlopen of statically linked programs is supported.
38227dlopen_self_static=$enable_dlopen_self_static
38228
38229# Commands to strip libraries.
38230old_striplib=$lt_old_striplib
38231striplib=$lt_striplib
38232
38233
38234# The linker used to build libraries.
38235LD=$lt_LD
38236
cristy0c60a692010-11-04 01:09:47 +000038237# How to create reloadable object files.
38238reload_flag=$lt_reload_flag
38239reload_cmds=$lt_reload_cmds
38240
cristy73bd4a52010-10-05 11:24:23 +000038241# Commands used to build an old-style archive.
38242old_archive_cmds=$lt_old_archive_cmds
38243
38244# A language specific compiler.
38245CC=$lt_compiler
38246
38247# Is the compiler the GNU compiler?
38248with_gcc=$GCC
38249
38250# Compiler flag to turn off builtin functions.
38251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38252
cristy73bd4a52010-10-05 11:24:23 +000038253# Additional compiler flags for building library objects.
38254pic_flag=$lt_lt_prog_compiler_pic
38255
cristyda16f162011-02-19 23:52:17 +000038256# How to pass a linker flag through the compiler.
38257wl=$lt_lt_prog_compiler_wl
38258
cristy73bd4a52010-10-05 11:24:23 +000038259# Compiler flag to prevent dynamic linking.
38260link_static_flag=$lt_lt_prog_compiler_static
38261
38262# Does compiler simultaneously support -c and -o options?
38263compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38264
38265# Whether or not to add -lc for building shared libraries.
38266build_libtool_need_lc=$archive_cmds_need_lc
38267
38268# Whether or not to disallow shared libs when runtime libs are static.
38269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38270
38271# Compiler flag to allow reflexive dlopens.
38272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38273
38274# Compiler flag to generate shared objects directly from archives.
38275whole_archive_flag_spec=$lt_whole_archive_flag_spec
38276
38277# Whether the compiler copes with passing no objects directly.
38278compiler_needs_object=$lt_compiler_needs_object
38279
38280# Create an old-style archive from a shared archive.
38281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38282
38283# Create a temporary old-style archive to link instead of a shared archive.
38284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38285
38286# Commands used to build a shared archive.
38287archive_cmds=$lt_archive_cmds
38288archive_expsym_cmds=$lt_archive_expsym_cmds
38289
38290# Commands used to build a loadable module if different from building
38291# a shared archive.
38292module_cmds=$lt_module_cmds
38293module_expsym_cmds=$lt_module_expsym_cmds
38294
38295# Whether we are building with GNU ld or not.
38296with_gnu_ld=$lt_with_gnu_ld
38297
38298# Flag that allows shared libraries with undefined symbols to be built.
38299allow_undefined_flag=$lt_allow_undefined_flag
38300
38301# Flag that enforces no undefined symbols.
38302no_undefined_flag=$lt_no_undefined_flag
38303
38304# Flag to hardcode \$libdir into a binary during linking.
38305# This must work even if \$libdir does not exist
38306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38307
cristy73bd4a52010-10-05 11:24:23 +000038308# Whether we need a single "-rpath" flag with a separated argument.
38309hardcode_libdir_separator=$lt_hardcode_libdir_separator
38310
38311# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38312# DIR into the resulting binary.
38313hardcode_direct=$hardcode_direct
38314
38315# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38316# DIR into the resulting binary and the resulting library dependency is
38317# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38318# library is relocated.
38319hardcode_direct_absolute=$hardcode_direct_absolute
38320
38321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38322# into the resulting binary.
38323hardcode_minus_L=$hardcode_minus_L
38324
38325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38326# into the resulting binary.
38327hardcode_shlibpath_var=$hardcode_shlibpath_var
38328
38329# Set to "yes" if building a shared library automatically hardcodes DIR
38330# into the library and all subsequent libraries and executables linked
38331# against it.
38332hardcode_automatic=$hardcode_automatic
38333
38334# Set to yes if linker adds runtime paths of dependent libraries
38335# to runtime path list.
38336inherit_rpath=$inherit_rpath
38337
38338# Whether libtool must link a program against all its dependency libraries.
38339link_all_deplibs=$link_all_deplibs
38340
cristy73bd4a52010-10-05 11:24:23 +000038341# Set to "yes" if exported symbols are required.
38342always_export_symbols=$always_export_symbols
38343
38344# The commands to list exported symbols.
38345export_symbols_cmds=$lt_export_symbols_cmds
38346
38347# Symbols that should not be listed in the preloaded symbols.
38348exclude_expsyms=$lt_exclude_expsyms
38349
38350# Symbols that must always be exported.
38351include_expsyms=$lt_include_expsyms
38352
38353# Commands necessary for linking programs (against libraries) with templates.
38354prelink_cmds=$lt_prelink_cmds
38355
cristyda16f162011-02-19 23:52:17 +000038356# Commands necessary for finishing linking programs.
38357postlink_cmds=$lt_postlink_cmds
38358
cristy73bd4a52010-10-05 11:24:23 +000038359# Specify filename containing input files.
38360file_list_spec=$lt_file_list_spec
38361
38362# How to hardcode a shared library path into an executable.
38363hardcode_action=$hardcode_action
38364
38365# The directories searched by this compiler when creating a shared library.
38366compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38367
38368# Dependencies to place before and after the objects being linked to
38369# create a shared library.
38370predep_objects=$lt_predep_objects
38371postdep_objects=$lt_postdep_objects
38372predeps=$lt_predeps
38373postdeps=$lt_postdeps
38374
38375# The library search path used internally by the compiler when linking
38376# a shared library.
38377compiler_lib_search_path=$lt_compiler_lib_search_path
38378
38379# ### END LIBTOOL CONFIG
38380
38381_LT_EOF
38382
38383 case $host_os in
38384 aix3*)
38385 cat <<\_LT_EOF >> "$cfgfile"
38386# AIX sometimes has problems with the GCC collect2 program. For some
38387# reason, if we set the COLLECT_NAMES environment variable, the problems
38388# vanish in a puff of smoke.
38389if test "X${COLLECT_NAMES+set}" != Xset; then
38390 COLLECT_NAMES=
38391 export COLLECT_NAMES
38392fi
38393_LT_EOF
38394 ;;
38395 esac
38396
38397
38398ltmain="$ac_aux_dir/ltmain.sh"
38399
38400
38401 # We use sed instead of cat because bash on DJGPP gets confused if
38402 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38403 # text mode, it properly converts lines to CR/LF. This bash problem
38404 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038405 sed '$q' "$ltmain" >> "$cfgfile" \
38406 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038407
cristyda16f162011-02-19 23:52:17 +000038408 if test x"$xsi_shell" = xyes; then
38409 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38410func_dirname ()\
38411{\
38412\ case ${1} in\
38413\ */*) func_dirname_result="${1%/*}${2}" ;;\
38414\ * ) func_dirname_result="${3}" ;;\
38415\ esac\
38416} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38417 && mv -f "$cfgfile.tmp" "$cfgfile" \
38418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38419test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038420
38421
cristyda16f162011-02-19 23:52:17 +000038422 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38423func_basename ()\
38424{\
38425\ func_basename_result="${1##*/}"\
38426} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38427 && mv -f "$cfgfile.tmp" "$cfgfile" \
38428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38429test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038430
38431
cristyda16f162011-02-19 23:52:17 +000038432 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38433func_dirname_and_basename ()\
38434{\
38435\ case ${1} in\
38436\ */*) func_dirname_result="${1%/*}${2}" ;;\
38437\ * ) func_dirname_result="${3}" ;;\
38438\ esac\
38439\ func_basename_result="${1##*/}"\
38440} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38441 && mv -f "$cfgfile.tmp" "$cfgfile" \
38442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38443test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038444
cristyda16f162011-02-19 23:52:17 +000038445
38446 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38447func_stripname ()\
38448{\
38449\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38450\ # positional parameters, so assign one to ordinary parameter first.\
38451\ func_stripname_result=${3}\
38452\ func_stripname_result=${func_stripname_result#"${1}"}\
38453\ func_stripname_result=${func_stripname_result%"${2}"}\
38454} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38455 && mv -f "$cfgfile.tmp" "$cfgfile" \
38456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38457test 0 -eq $? || _lt_function_replace_fail=:
38458
38459
38460 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38461func_split_long_opt ()\
38462{\
38463\ func_split_long_opt_name=${1%%=*}\
38464\ func_split_long_opt_arg=${1#*=}\
38465} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38466 && mv -f "$cfgfile.tmp" "$cfgfile" \
38467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38468test 0 -eq $? || _lt_function_replace_fail=:
38469
38470
38471 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38472func_split_short_opt ()\
38473{\
38474\ func_split_short_opt_arg=${1#??}\
38475\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38476} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38477 && mv -f "$cfgfile.tmp" "$cfgfile" \
38478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38479test 0 -eq $? || _lt_function_replace_fail=:
38480
38481
38482 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38483func_lo2o ()\
38484{\
38485\ case ${1} in\
38486\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38487\ *) func_lo2o_result=${1} ;;\
38488\ esac\
38489} # Extended-shell func_lo2o 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 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38496func_xform ()\
38497{\
38498 func_xform_result=${1%.*}.lo\
38499} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38500 && mv -f "$cfgfile.tmp" "$cfgfile" \
38501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38502test 0 -eq $? || _lt_function_replace_fail=:
38503
38504
38505 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38506func_arith ()\
38507{\
38508 func_arith_result=$(( $* ))\
38509} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38510 && mv -f "$cfgfile.tmp" "$cfgfile" \
38511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38512test 0 -eq $? || _lt_function_replace_fail=:
38513
38514
38515 sed -e '/^func_len ()$/,/^} # func_len /c\
38516func_len ()\
38517{\
38518 func_len_result=${#1}\
38519} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38520 && mv -f "$cfgfile.tmp" "$cfgfile" \
38521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38522test 0 -eq $? || _lt_function_replace_fail=:
38523
38524fi
38525
38526if test x"$lt_shell_append" = xyes; then
38527 sed -e '/^func_append ()$/,/^} # func_append /c\
38528func_append ()\
38529{\
38530 eval "${1}+=\\${2}"\
38531} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38532 && mv -f "$cfgfile.tmp" "$cfgfile" \
38533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38534test 0 -eq $? || _lt_function_replace_fail=:
38535
38536
38537 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38538func_append_quoted ()\
38539{\
38540\ func_quote_for_eval "${2}"\
38541\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38542} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38543 && mv -f "$cfgfile.tmp" "$cfgfile" \
38544 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38545test 0 -eq $? || _lt_function_replace_fail=:
38546
38547
38548 # Save a `func_append' function call where possible by direct use of '+='
38549 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38550 && mv -f "$cfgfile.tmp" "$cfgfile" \
38551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38552 test 0 -eq $? || _lt_function_replace_fail=:
38553else
38554 # Save a `func_append' function call even when '+=' is not available
38555 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38556 && mv -f "$cfgfile.tmp" "$cfgfile" \
38557 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38558 test 0 -eq $? || _lt_function_replace_fail=:
38559fi
38560
38561if test x"$_lt_function_replace_fail" = x":"; then
38562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38563$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38564fi
38565
38566
38567 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038568 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38569 chmod +x "$ofile"
38570
38571
38572 cat <<_LT_EOF >> "$ofile"
38573
38574# ### BEGIN LIBTOOL TAG CONFIG: CXX
38575
38576# The linker used to build libraries.
38577LD=$lt_LD_CXX
38578
cristy0c60a692010-11-04 01:09:47 +000038579# How to create reloadable object files.
38580reload_flag=$lt_reload_flag_CXX
38581reload_cmds=$lt_reload_cmds_CXX
38582
cristy73bd4a52010-10-05 11:24:23 +000038583# Commands used to build an old-style archive.
38584old_archive_cmds=$lt_old_archive_cmds_CXX
38585
38586# A language specific compiler.
38587CC=$lt_compiler_CXX
38588
38589# Is the compiler the GNU compiler?
38590with_gcc=$GCC_CXX
38591
38592# Compiler flag to turn off builtin functions.
38593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38594
cristy73bd4a52010-10-05 11:24:23 +000038595# Additional compiler flags for building library objects.
38596pic_flag=$lt_lt_prog_compiler_pic_CXX
38597
cristyda16f162011-02-19 23:52:17 +000038598# How to pass a linker flag through the compiler.
38599wl=$lt_lt_prog_compiler_wl_CXX
38600
cristy73bd4a52010-10-05 11:24:23 +000038601# Compiler flag to prevent dynamic linking.
38602link_static_flag=$lt_lt_prog_compiler_static_CXX
38603
38604# Does compiler simultaneously support -c and -o options?
38605compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38606
38607# Whether or not to add -lc for building shared libraries.
38608build_libtool_need_lc=$archive_cmds_need_lc_CXX
38609
38610# Whether or not to disallow shared libs when runtime libs are static.
38611allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38612
38613# Compiler flag to allow reflexive dlopens.
38614export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38615
38616# Compiler flag to generate shared objects directly from archives.
38617whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38618
38619# Whether the compiler copes with passing no objects directly.
38620compiler_needs_object=$lt_compiler_needs_object_CXX
38621
38622# Create an old-style archive from a shared archive.
38623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38624
38625# Create a temporary old-style archive to link instead of a shared archive.
38626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38627
38628# Commands used to build a shared archive.
38629archive_cmds=$lt_archive_cmds_CXX
38630archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38631
38632# Commands used to build a loadable module if different from building
38633# a shared archive.
38634module_cmds=$lt_module_cmds_CXX
38635module_expsym_cmds=$lt_module_expsym_cmds_CXX
38636
38637# Whether we are building with GNU ld or not.
38638with_gnu_ld=$lt_with_gnu_ld_CXX
38639
38640# Flag that allows shared libraries with undefined symbols to be built.
38641allow_undefined_flag=$lt_allow_undefined_flag_CXX
38642
38643# Flag that enforces no undefined symbols.
38644no_undefined_flag=$lt_no_undefined_flag_CXX
38645
38646# Flag to hardcode \$libdir into a binary during linking.
38647# This must work even if \$libdir does not exist
38648hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38649
cristy73bd4a52010-10-05 11:24:23 +000038650# Whether we need a single "-rpath" flag with a separated argument.
38651hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38652
38653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38654# DIR into the resulting binary.
38655hardcode_direct=$hardcode_direct_CXX
38656
38657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38658# DIR into the resulting binary and the resulting library dependency is
38659# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38660# library is relocated.
38661hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38662
38663# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38664# into the resulting binary.
38665hardcode_minus_L=$hardcode_minus_L_CXX
38666
38667# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38668# into the resulting binary.
38669hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38670
38671# Set to "yes" if building a shared library automatically hardcodes DIR
38672# into the library and all subsequent libraries and executables linked
38673# against it.
38674hardcode_automatic=$hardcode_automatic_CXX
38675
38676# Set to yes if linker adds runtime paths of dependent libraries
38677# to runtime path list.
38678inherit_rpath=$inherit_rpath_CXX
38679
38680# Whether libtool must link a program against all its dependency libraries.
38681link_all_deplibs=$link_all_deplibs_CXX
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# Set to "yes" if exported symbols are required.
38684always_export_symbols=$always_export_symbols_CXX
38685
38686# The commands to list exported symbols.
38687export_symbols_cmds=$lt_export_symbols_cmds_CXX
38688
38689# Symbols that should not be listed in the preloaded symbols.
38690exclude_expsyms=$lt_exclude_expsyms_CXX
38691
38692# Symbols that must always be exported.
38693include_expsyms=$lt_include_expsyms_CXX
38694
38695# Commands necessary for linking programs (against libraries) with templates.
38696prelink_cmds=$lt_prelink_cmds_CXX
38697
cristyda16f162011-02-19 23:52:17 +000038698# Commands necessary for finishing linking programs.
38699postlink_cmds=$lt_postlink_cmds_CXX
38700
cristy73bd4a52010-10-05 11:24:23 +000038701# Specify filename containing input files.
38702file_list_spec=$lt_file_list_spec_CXX
38703
38704# How to hardcode a shared library path into an executable.
38705hardcode_action=$hardcode_action_CXX
38706
38707# The directories searched by this compiler when creating a shared library.
38708compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38709
38710# Dependencies to place before and after the objects being linked to
38711# create a shared library.
38712predep_objects=$lt_predep_objects_CXX
38713postdep_objects=$lt_postdep_objects_CXX
38714predeps=$lt_predeps_CXX
38715postdeps=$lt_postdeps_CXX
38716
38717# The library search path used internally by the compiler when linking
38718# a shared library.
38719compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38720
38721# ### END LIBTOOL TAG CONFIG: CXX
38722_LT_EOF
38723
38724 ;;
cristy4c08aed2011-07-01 19:47:50 +000038725 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038726 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038727 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38728 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38729
38730 esac
38731done # for ac_tag
38732
38733
cristy8b350f62009-11-15 23:12:43 +000038734as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038735_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038736ac_clean_files=$ac_clean_files_save
38737
38738test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038739 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038740
38741
38742# configure is writing to config.log, and then calls config.status.
38743# config.status does its own redirection, appending to config.log.
38744# Unfortunately, on DOS this fails, as config.log is still kept open
38745# by configure, so config.status won't be able to write to it; its
38746# output is simply discarded. So we exec the FD to /dev/null,
38747# effectively closing config.log, so it can be properly (re)opened and
38748# appended to by config.status. When coming back to configure, we
38749# need to make the FD available again.
38750if test "$no_create" != yes; then
38751 ac_cs_success=:
38752 ac_config_status_args=
38753 test "$silent" = yes &&
38754 ac_config_status_args="$ac_config_status_args --quiet"
38755 exec 5>/dev/null
38756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38757 exec 5>>config.log
38758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38759 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038760 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038761fi
38762if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038764$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38765fi
38766
38767
38768rm -f magick-version
38769
cristy430a7312010-01-21 20:44:04 +000038770result_dejavu_font_dir='none'
38771if test "${dejavu_font_dir}x" != 'x'; then
38772 result_dejavu_font_dir=$dejavu_font_dir
38773fi
38774
cristy3ed852e2009-09-05 21:47:34 +000038775result_ghostscript_font_dir='none'
38776if test "${ghostscript_font_dir}x" != 'x'; then
38777 result_ghostscript_font_dir=$ghostscript_font_dir
38778fi
38779
38780result_windows_font_dir='none'
38781if test "${windows_font_dir}x" != 'x'; then
38782 result_windows_font_dir=${windows_font_dir}
38783fi
38784
cristy09b53e12011-10-14 12:47:22 +000038785{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038786ImageMagick is configured as follows. Please verify that this configuration
38787matches your expectations.
38788
38789Host system type: $host
38790Build system type: $build
38791
38792 Option Value
38793-------------------------------------------------------------------------------
38794Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38795Static libraries --enable-static=$enable_static $libtool_build_static_libs
38796Module support --with-modules=$with_modules $with_modules
38797GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38798Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38799High Dynamic Range Imagery
38800 --enable-hdri=$enable_hdri $enable_hdri
38801
38802Delegate Configuration:
38803BZLIB --with-bzlib=$with_bzlib $have_bzlib
38804Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038805Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038806DJVU --with-djvu=$with_djvu $have_djvu
38807DPS --with-dps=$with_dps $have_dps
38808FFTW --with-fftw=$with_fftw $have_fftw
38809FlashPIX --with-fpx=$with_fpx $have_fpx
38810FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38811FreeType --with-freetype=$with_freetype $have_freetype
38812GhostPCL None $PCLDelegate ($PCLVersion)
38813GhostXPS None $XPSDelegate ($XPSVersion)
38814Ghostscript None $PSDelegate ($GSVersion)
38815Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38816Ghostscript lib --with-gslib=$with_gslib $have_gslib
38817Graphviz --with-gvc=$with_gvc $have_gvc
38818JBIG --with-jbig=$with_jbig $have_jbig
38819JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38820JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038821LCMS v1 --with-lcms=$with_lcms $have_lcms
38822LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038823LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038824LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038825Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38826OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038827PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038828PERL --with-perl=$with_perl $have_perl
38829PNG --with-png=$with_png $have_png
38830RSVG --with-rsvg=$with_rsvg $have_rsvg
38831TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038832WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038833Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38834WMF --with-wmf=$with_wmf $have_wmf
38835X11 --with-x=$with_x $have_x
38836XML --with-xml=$with_xml $have_xml
38837ZLIB --with-zlib=$with_zlib $have_zlib
38838
38839X11 Configuration:
38840 X_CFLAGS = $X_CFLAGS
38841 X_PRE_LIBS = $X_PRE_LIBS
38842 X_LIBS = $X_LIBS
38843 X_EXTRA_LIBS = $X_EXTRA_LIBS
38844
38845Options used to compile and link:
38846 PREFIX = $PREFIX_DIR
38847 EXEC-PREFIX = $EXEC_PREFIX_DIR
38848 VERSION = $PACKAGE_VERSION
38849 CC = $CC
38850 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038851 CPPFLAGS = $MAGICK_CPPFLAGS
38852 PCFLAGS = $MAGICK_PCFLAGS
38853 DEFS = $DEFS
38854 LDFLAGS = $LDFLAGS
38855 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38856 LIBS = $MAGICK_LIBS
38857 CXX = $CXX
38858 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038859 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038860" >&5
cristy09b53e12011-10-14 12:47:22 +000038861$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038862ImageMagick is configured as follows. Please verify that this configuration
38863matches your expectations.
38864
38865Host system type: $host
38866Build system type: $build
38867
38868 Option Value
38869-------------------------------------------------------------------------------
38870Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38871Static libraries --enable-static=$enable_static $libtool_build_static_libs
38872Module support --with-modules=$with_modules $with_modules
38873GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38874Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38875High Dynamic Range Imagery
38876 --enable-hdri=$enable_hdri $enable_hdri
38877
38878Delegate Configuration:
38879BZLIB --with-bzlib=$with_bzlib $have_bzlib
38880Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038881Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038882DJVU --with-djvu=$with_djvu $have_djvu
38883DPS --with-dps=$with_dps $have_dps
38884FFTW --with-fftw=$with_fftw $have_fftw
38885FlashPIX --with-fpx=$with_fpx $have_fpx
38886FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38887FreeType --with-freetype=$with_freetype $have_freetype
38888GhostPCL None $PCLDelegate ($PCLVersion)
38889GhostXPS None $XPSDelegate ($XPSVersion)
38890Ghostscript None $PSDelegate ($GSVersion)
38891Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38892Ghostscript lib --with-gslib=$with_gslib $have_gslib
38893Graphviz --with-gvc=$with_gvc $have_gvc
38894JBIG --with-jbig=$with_jbig $have_jbig
38895JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38896JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038897LCMS v1 --with-lcms=$with_lcms $have_lcms
38898LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038899LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038900LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038901Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38902OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038903PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038904PERL --with-perl=$with_perl $have_perl
38905PNG --with-png=$with_png $have_png
38906RSVG --with-rsvg=$with_rsvg $have_rsvg
38907TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038908WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038909Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38910WMF --with-wmf=$with_wmf $have_wmf
38911X11 --with-x=$with_x $have_x
38912XML --with-xml=$with_xml $have_xml
38913ZLIB --with-zlib=$with_zlib $have_zlib
38914
38915X11 Configuration:
38916 X_CFLAGS = $X_CFLAGS
38917 X_PRE_LIBS = $X_PRE_LIBS
38918 X_LIBS = $X_LIBS
38919 X_EXTRA_LIBS = $X_EXTRA_LIBS
38920
38921Options used to compile and link:
38922 PREFIX = $PREFIX_DIR
38923 EXEC-PREFIX = $EXEC_PREFIX_DIR
38924 VERSION = $PACKAGE_VERSION
38925 CC = $CC
38926 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038927 CPPFLAGS = $MAGICK_CPPFLAGS
38928 PCFLAGS = $MAGICK_PCFLAGS
38929 DEFS = $DEFS
38930 LDFLAGS = $LDFLAGS
38931 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38932 LIBS = $MAGICK_LIBS
38933 CXX = $CXX
38934 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038935 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038936" >&6;}