blob: 94ef5ed298f25e74d8b7e60a401d0c55aa6965a6 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000714JXREncodeDelegate
715JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716ILBMEncodeDelegate
717ILBMDecodeDelegate
718HTMLDecodeDelegate
719HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720GnuplotDecodeDelegate
721MogrifyDelegate
722DisplayDelegate
723ConvertDelegate
724FIGDecodeDelegate
725EditorDelegate
726EchoDelegate
727DVIDecodeDelegate
728GVCDecodeDelegate
729DNGDecodeDelegate
730CatDelegate
731CGMDecodeDelegate
732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000795LZMA_DELEGATE_FALSE
796LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000797LZMA_LIBS
798LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000799LQR_DELEGATE_FALSE
800LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801LQR_LIBS
802LQR_CFLAGS
803LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804LCMS_DELEGATE_FALSE
805LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JP2_DELEGATE_FALSE
808JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810JPEG_DELEGATE_FALSE
811JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JBIG_DELEGATE_FALSE
814JBIG_DELEGATE_TRUE
815GVC_DELEGATE_FALSE
816GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817GVC_LIBS
818GVC_CFLAGS
819GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820GS_DELEGATE_FALSE
821GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000822FREETYPE_DELEGATE_FALSE
823FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000824FREETYPE_LIBS
825FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000826FONTCONFIG_DELEGATE_FALSE
827FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828FONTCONFIG_LIBS
829FONTCONFIG_CFLAGS
830FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831FPX_DELEGATE_FALSE
832FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834FFTW_DELEGATE_FALSE
835FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837DJVU_DELEGATE_FALSE
838DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840DPS_DELEGATE_FALSE
841DPS_DELEGATE_TRUE
842AUTOTRACE_DELEGATE_FALSE
843AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844AUTOTRACE_LIBS
845AUTOTRACE_CFLAGS
846LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000849ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000850ZLIB_DELEGATE_FALSE
851ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852XEXT_LIBS
853X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854X11_DELEGATE_FALSE
855X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856X_EXTRA_LIBS
857X_LIBS
858X_PRE_LIBS
859X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000860XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000861BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000862BZLIB_DELEGATE_FALSE
863BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000864CCMALLOCDelegate
865UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866HasUMEM_FALSE
867HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868THREAD_LIBS
869GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_MAGICK_PLUS_PLUS_FALSE
871WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000873MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000874POW_LIB
875LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000876UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000877UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000880UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000881UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000882INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000883INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000886INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000887INT32_T
888UINT16_T
889INT16_T
890UINT8_T
891INT8_T
892LIBRARY_EXTRA_CPPFLAGS
893MODULE_EXTRA_CPPFLAGS
894LIBSTDCLDFLAGS
895PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000896MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000897MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000898QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000899LEGACY_SUPPORT_FALSE
900LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000904MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000905WITH_MODULES_FALSE
906WITH_MODULES_TRUE
907WITH_SHARED_LIBS_FALSE
908WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000910CXXCPP
911OTOOL64
912OTOOL
913LIPO
914NMEDIT
915DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000916MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000917RANLIB
cristyda16f162011-02-19 23:52:17 +0000918ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000919AR
920NM
921ac_ct_DUMPBIN
922DUMPBIN
923LIBTOOL
924OBJDUMP
925DLLTOOL
926AS
cristy3ed852e2009-09-05 21:47:34 +0000927LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000928CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000929CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000930OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000931PTHREAD_CFLAGS
932PTHREAD_LIBS
933PTHREAD_CC
934ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000935pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000936SHAREARCH_DIR
937INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000938WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000939USING_CL_FALSE
940USING_CL_TRUE
941CYGWIN_BUILD_FALSE
942CYGWIN_BUILD_TRUE
943WIN32_NATIVE_BUILD_FALSE
944WIN32_NATIVE_BUILD_TRUE
945WINGDI32_DELEGATE_FALSE
946WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000947GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000948HAVE_LD_VERSION_SCRIPT_FALSE
949HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000950PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000951PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000952LN_S
cristy3ed852e2009-09-05 21:47:34 +0000953LD
cristy73bd4a52010-10-05 11:24:23 +0000954FGREP
955SED
956am__fastdepCXX_FALSE
957am__fastdepCXX_TRUE
958CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000959ac_ct_CXX
960CXXFLAGS
961CXX
cristya0b81c32010-01-22 02:54:33 +0000962EGREP
963GREP
964CPP
cristy73bd4a52010-10-05 11:24:23 +0000965am__fastdepCC_FALSE
966am__fastdepCC_TRUE
967CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000968am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000969AMDEPBACKSLASH
970AMDEP_FALSE
971AMDEP_TRUE
972am__quote
973am__include
974DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000975OBJEXT
976EXEEXT
977ac_ct_CC
978CPPFLAGS
979LDFLAGS
980CFLAGS
981CC
982DIRSEP
983MAGICK_FILTER_MODULE_PATH
984MAGICK_CONFIGURE_BUILD_PATH
985MAGICK_CONFIGURE_SRC_PATH
986MAGICK_CODER_MODULE_PATH
987MAN_DIR
988INFO_DIR
989PERSISTINCLUDE_DIR
990INCLUDE_DIR
991LIB_DIR
992LOCALSTATE_DIR
993SHAREDSTATE_DIR
994SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000995DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000996DATA_DIR
997LIBEXEC_DIR
998SBIN_DIR
999BIN_DIR
1000EXEC_PREFIX_DIR
1001PREFIX_DIR
1002CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001003MAGICKPP_LIB_VERSION_TEXT
1004MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001005MAGICK_LIB_VERSION_NUMBER
1006MAGICK_LIB_VERSION_TEXT
1007MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001008AM_BACKSLASH
1009AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001010AM_DEFAULT_V
1011AM_V
cristy73bd4a52010-10-05 11:24:23 +00001012am__untar
1013am__tar
1014AMTAR
1015am__leading_dot
1016SET_MAKE
1017AWK
1018mkdir_p
1019MKDIR_P
1020INSTALL_STRIP_PROGRAM
1021STRIP
1022install_sh
1023MAKEINFO
1024AUTOHEADER
1025AUTOMAKE
1026AUTOCONF
1027ACLOCAL
1028VERSION
1029PACKAGE
1030CYGPATH_W
1031am__isrc
1032INSTALL_DATA
1033INSTALL_SCRIPT
1034INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001035PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001036PACKAGE_RELEASE_DATE
1037PACKAGE_LIB_VERSION_NUMBER
1038PACKAGE_LIB_VERSION
1039PACKAGE_CHANGE_DATE
1040PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001041PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001042MAGICKPP_LIBRARY_VERSION_INFO
1043MAGICKPP_LIBRARY_CURRENT_MIN
1044MAGICKPP_LIBRARY_AGE
1045MAGICKPP_LIBRARY_REVISION
1046MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001047MAGICK_LIBRARY_VERSION_INFO
1048MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001049MAGICK_LIBRARY_AGE
1050MAGICK_LIBRARY_REVISION
1051MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001052MAGICK_SVN_REVISION
1053MAGICK_VERSION
1054MAGICK_PATCHLEVEL_VERSION
1055MAGICK_MICRO_VERSION
1056MAGICK_MINOR_VERSION
1057MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001058MAGICK_TARGET_OS
1059MAGICK_TARGET_VENDOR
1060MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001061target_os
1062target_vendor
1063target_cpu
1064target
1065host_os
1066host_vendor
1067host_cpu
1068host
1069build_os
1070build_vendor
1071build_cpu
1072build
1073CONFIGURE_ARGS
1074DISTCHECK_CONFIG_FLAGS
1075target_alias
1076host_alias
1077build_alias
1078LIBS
1079ECHO_T
1080ECHO_N
1081ECHO_C
1082DEFS
1083mandir
1084localedir
1085libdir
1086psdir
1087pdfdir
1088dvidir
1089htmldir
1090infodir
1091docdir
1092oldincludedir
1093includedir
1094localstatedir
1095sharedstatedir
1096sysconfdir
1097datadir
1098datarootdir
1099libexecdir
1100sbindir
1101bindir
1102program_transform_name
1103prefix
1104exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001105PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001106PACKAGE_BUGREPORT
1107PACKAGE_STRING
1108PACKAGE_VERSION
1109PACKAGE_TARNAME
1110PACKAGE_NAME
1111PATH_SEPARATOR
1112SHELL'
1113ac_subst_files=''
1114ac_user_opts='
1115enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001116enable_silent_rules
1117enable_dependency_tracking
1118with_gnu_ld
1119with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001120with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001121enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001122enable_bounds_checking
1123enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001124with_includearch_dir
1125with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001126with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001127with_threads
1128enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001129enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001130enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001131enable_shared
1132enable_static
1133with_pic
1134enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001135with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001136enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001137with_modules
1138enable_delegate_build
1139enable_deprecated
1140enable_installed
1141enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001142enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001143enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001144enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001145enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001146enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001147enable_ccmalloc
1148enable_efence
1149enable_prof
1150enable_gprof
1151enable_gcov
1152with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001153enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001154with_quantum_depth
1155with_cache
1156with_frozenpaths
1157with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001158with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001159with_perl
1160with_perl_options
1161with_umem
1162with_libstdc
1163with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001164with_x
cristy3ed852e2009-09-05 21:47:34 +00001165with_zlib
1166with_autotrace
1167with_dps
1168with_djvu
cristy430a7312010-01-21 20:44:04 +00001169with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001170with_fftw
1171with_fpx
1172with_fontconfig
1173with_freetype
1174with_gslib
1175with_fontpath
1176with_gs_font_dir
1177with_gvc
1178with_jbig
1179with_jpeg
1180with_jp2
1181with_lcms
cristy71203402010-06-18 13:12:03 +00001182with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001183with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001184with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001185with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001186with_pango
cristy3ed852e2009-09-05 21:47:34 +00001187with_png
1188with_rsvg
1189with_tiff
cristyb1860752011-03-14 00:27:46 +00001190with_webp
cristy3ed852e2009-09-05 21:47:34 +00001191with_windows_font_dir
1192with_wmf
1193with_xml
1194'
1195 ac_precious_vars='build_alias
1196host_alias
1197target_alias
1198CC
1199CFLAGS
1200LDFLAGS
1201LIBS
1202CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001203CPP
cristy3ed852e2009-09-05 21:47:34 +00001204CXX
1205CXXFLAGS
1206CCC
cristy73bd4a52010-10-05 11:24:23 +00001207PKG_CONFIG
1208CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001209XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001210AUTOTRACE_CFLAGS
1211AUTOTRACE_LIBS
1212FONTCONFIG_CFLAGS
1213FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001214FREETYPE_CFLAGS
1215FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216GVC_CFLAGS
1217GVC_LIBS
1218LQR_CFLAGS
1219LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001220LZMA_CFLAGS
1221LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001222OPENEXR_CFLAGS
1223OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001224PANGO_CFLAGS
1225PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001226RSVG_CFLAGS
1227RSVG_LIBS
1228CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001229CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001230
1231
1232# Initialize some variables set by options.
1233ac_init_help=
1234ac_init_version=false
1235ac_unrecognized_opts=
1236ac_unrecognized_sep=
1237# The variables have the same names as the options, with
1238# dashes changed to underlines.
1239cache_file=/dev/null
1240exec_prefix=NONE
1241no_create=
1242no_recursion=
1243prefix=NONE
1244program_prefix=NONE
1245program_suffix=NONE
1246program_transform_name=s,x,x,
1247silent=
1248site=
1249srcdir=
1250verbose=
1251x_includes=NONE
1252x_libraries=NONE
1253
1254# Installation directory options.
1255# These are left unexpanded so users can "make install exec_prefix=/foo"
1256# and all the variables that are supposed to be based on exec_prefix
1257# by default will actually change.
1258# Use braces instead of parens because sh, perl, etc. also accept them.
1259# (The list follows the same order as the GNU Coding Standards.)
1260bindir='${exec_prefix}/bin'
1261sbindir='${exec_prefix}/sbin'
1262libexecdir='${exec_prefix}/libexec'
1263datarootdir='${prefix}/share'
1264datadir='${datarootdir}'
1265sysconfdir='${prefix}/etc'
1266sharedstatedir='${prefix}/com'
1267localstatedir='${prefix}/var'
1268includedir='${prefix}/include'
1269oldincludedir='/usr/include'
1270docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1271infodir='${datarootdir}/info'
1272htmldir='${docdir}'
1273dvidir='${docdir}'
1274pdfdir='${docdir}'
1275psdir='${docdir}'
1276libdir='${exec_prefix}/lib'
1277localedir='${datarootdir}/locale'
1278mandir='${datarootdir}/man'
1279
1280ac_prev=
1281ac_dashdash=
1282for ac_option
1283do
1284 # If the previous option needs an argument, assign it.
1285 if test -n "$ac_prev"; then
1286 eval $ac_prev=\$ac_option
1287 ac_prev=
1288 continue
1289 fi
1290
1291 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001292 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1293 *=) ac_optarg= ;;
1294 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001295 esac
1296
1297 # Accept the important Cygnus configure options, so we can diagnose typos.
1298
1299 case $ac_dashdash$ac_option in
1300 --)
1301 ac_dashdash=yes ;;
1302
1303 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1304 ac_prev=bindir ;;
1305 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1306 bindir=$ac_optarg ;;
1307
1308 -build | --build | --buil | --bui | --bu)
1309 ac_prev=build_alias ;;
1310 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1311 build_alias=$ac_optarg ;;
1312
1313 -cache-file | --cache-file | --cache-fil | --cache-fi \
1314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1315 ac_prev=cache_file ;;
1316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1318 cache_file=$ac_optarg ;;
1319
1320 --config-cache | -C)
1321 cache_file=config.cache ;;
1322
1323 -datadir | --datadir | --datadi | --datad)
1324 ac_prev=datadir ;;
1325 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1326 datadir=$ac_optarg ;;
1327
1328 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1329 | --dataroo | --dataro | --datar)
1330 ac_prev=datarootdir ;;
1331 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1332 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1333 datarootdir=$ac_optarg ;;
1334
1335 -disable-* | --disable-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001339 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344"enable_$ac_useropt"
1345"*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval enable_$ac_useropt=no ;;
1350
1351 -docdir | --docdir | --docdi | --doc | --do)
1352 ac_prev=docdir ;;
1353 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1354 docdir=$ac_optarg ;;
1355
1356 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1357 ac_prev=dvidir ;;
1358 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1359 dvidir=$ac_optarg ;;
1360
1361 -enable-* | --enable-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001365 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1369 *"
1370"enable_$ac_useropt"
1371"*) ;;
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1374 esac
1375 eval enable_$ac_useropt=\$ac_optarg ;;
1376
1377 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1378 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1379 | --exec | --exe | --ex)
1380 ac_prev=exec_prefix ;;
1381 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1382 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1383 | --exec=* | --exe=* | --ex=*)
1384 exec_prefix=$ac_optarg ;;
1385
1386 -gas | --gas | --ga | --g)
1387 # Obsolete; use --with-gas.
1388 with_gas=yes ;;
1389
1390 -help | --help | --hel | --he | -h)
1391 ac_init_help=long ;;
1392 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1393 ac_init_help=recursive ;;
1394 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1395 ac_init_help=short ;;
1396
1397 -host | --host | --hos | --ho)
1398 ac_prev=host_alias ;;
1399 -host=* | --host=* | --hos=* | --ho=*)
1400 host_alias=$ac_optarg ;;
1401
1402 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1403 ac_prev=htmldir ;;
1404 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1405 | --ht=*)
1406 htmldir=$ac_optarg ;;
1407
1408 -includedir | --includedir | --includedi | --included | --include \
1409 | --includ | --inclu | --incl | --inc)
1410 ac_prev=includedir ;;
1411 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1412 | --includ=* | --inclu=* | --incl=* | --inc=*)
1413 includedir=$ac_optarg ;;
1414
1415 -infodir | --infodir | --infodi | --infod | --info | --inf)
1416 ac_prev=infodir ;;
1417 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1418 infodir=$ac_optarg ;;
1419
1420 -libdir | --libdir | --libdi | --libd)
1421 ac_prev=libdir ;;
1422 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1423 libdir=$ac_optarg ;;
1424
1425 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1426 | --libexe | --libex | --libe)
1427 ac_prev=libexecdir ;;
1428 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1429 | --libexe=* | --libex=* | --libe=*)
1430 libexecdir=$ac_optarg ;;
1431
1432 -localedir | --localedir | --localedi | --localed | --locale)
1433 ac_prev=localedir ;;
1434 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1435 localedir=$ac_optarg ;;
1436
1437 -localstatedir | --localstatedir | --localstatedi | --localstated \
1438 | --localstate | --localstat | --localsta | --localst | --locals)
1439 ac_prev=localstatedir ;;
1440 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1441 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1442 localstatedir=$ac_optarg ;;
1443
1444 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1445 ac_prev=mandir ;;
1446 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1447 mandir=$ac_optarg ;;
1448
1449 -nfp | --nfp | --nf)
1450 # Obsolete; use --without-fp.
1451 with_fp=no ;;
1452
1453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1454 | --no-cr | --no-c | -n)
1455 no_create=yes ;;
1456
1457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1459 no_recursion=yes ;;
1460
1461 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1462 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1463 | --oldin | --oldi | --old | --ol | --o)
1464 ac_prev=oldincludedir ;;
1465 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1466 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1467 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1468 oldincludedir=$ac_optarg ;;
1469
1470 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1471 ac_prev=prefix ;;
1472 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1473 prefix=$ac_optarg ;;
1474
1475 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1476 | --program-pre | --program-pr | --program-p)
1477 ac_prev=program_prefix ;;
1478 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1479 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1480 program_prefix=$ac_optarg ;;
1481
1482 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1483 | --program-suf | --program-su | --program-s)
1484 ac_prev=program_suffix ;;
1485 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1486 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1487 program_suffix=$ac_optarg ;;
1488
1489 -program-transform-name | --program-transform-name \
1490 | --program-transform-nam | --program-transform-na \
1491 | --program-transform-n | --program-transform- \
1492 | --program-transform | --program-transfor \
1493 | --program-transfo | --program-transf \
1494 | --program-trans | --program-tran \
1495 | --progr-tra | --program-tr | --program-t)
1496 ac_prev=program_transform_name ;;
1497 -program-transform-name=* | --program-transform-name=* \
1498 | --program-transform-nam=* | --program-transform-na=* \
1499 | --program-transform-n=* | --program-transform-=* \
1500 | --program-transform=* | --program-transfor=* \
1501 | --program-transfo=* | --program-transf=* \
1502 | --program-trans=* | --program-tran=* \
1503 | --progr-tra=* | --program-tr=* | --program-t=*)
1504 program_transform_name=$ac_optarg ;;
1505
1506 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1507 ac_prev=pdfdir ;;
1508 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1509 pdfdir=$ac_optarg ;;
1510
1511 -psdir | --psdir | --psdi | --psd | --ps)
1512 ac_prev=psdir ;;
1513 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1514 psdir=$ac_optarg ;;
1515
1516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1517 | -silent | --silent | --silen | --sile | --sil)
1518 silent=yes ;;
1519
1520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1521 ac_prev=sbindir ;;
1522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1523 | --sbi=* | --sb=*)
1524 sbindir=$ac_optarg ;;
1525
1526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1528 | --sharedst | --shareds | --shared | --share | --shar \
1529 | --sha | --sh)
1530 ac_prev=sharedstatedir ;;
1531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1534 | --sha=* | --sh=*)
1535 sharedstatedir=$ac_optarg ;;
1536
1537 -site | --site | --sit)
1538 ac_prev=site ;;
1539 -site=* | --site=* | --sit=*)
1540 site=$ac_optarg ;;
1541
1542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1543 ac_prev=srcdir ;;
1544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1545 srcdir=$ac_optarg ;;
1546
1547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1548 | --syscon | --sysco | --sysc | --sys | --sy)
1549 ac_prev=sysconfdir ;;
1550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1552 sysconfdir=$ac_optarg ;;
1553
1554 -target | --target | --targe | --targ | --tar | --ta | --t)
1555 ac_prev=target_alias ;;
1556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1557 target_alias=$ac_optarg ;;
1558
1559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1560 verbose=yes ;;
1561
1562 -version | --version | --versio | --versi | --vers | -V)
1563 ac_init_version=: ;;
1564
1565 -with-* | --with-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001569 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=\$ac_optarg ;;
1580
1581 -without-* | --without-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001585 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=no ;;
1596
1597 --x)
1598 # Obsolete; use --with-x.
1599 with_x=yes ;;
1600
1601 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1602 | --x-incl | --x-inc | --x-in | --x-i)
1603 ac_prev=x_includes ;;
1604 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1605 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1606 x_includes=$ac_optarg ;;
1607
1608 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1609 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1610 ac_prev=x_libraries ;;
1611 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1612 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1613 x_libraries=$ac_optarg ;;
1614
cristy98dddb52010-11-04 00:30:15 +00001615 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1616Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001617 ;;
1618
1619 *=*)
1620 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1621 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001622 case $ac_envvar in #(
1623 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001624 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001625 esac
cristy3ed852e2009-09-05 21:47:34 +00001626 eval $ac_envvar=\$ac_optarg
1627 export $ac_envvar ;;
1628
1629 *)
1630 # FIXME: should be removed in autoconf 3.0.
1631 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1632 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1633 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001634 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001635 ;;
1636
1637 esac
1638done
1639
1640if test -n "$ac_prev"; then
1641 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001643fi
1644
1645if test -n "$ac_unrecognized_opts"; then
1646 case $enable_option_checking in
1647 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001648 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001649 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650 esac
1651fi
1652
1653# Check all directory arguments for consistency.
1654for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1655 datadir sysconfdir sharedstatedir localstatedir includedir \
1656 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1657 libdir localedir mandir
1658do
1659 eval ac_val=\$$ac_var
1660 # Remove trailing slashes.
1661 case $ac_val in
1662 */ )
1663 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1664 eval $ac_var=\$ac_val;;
1665 esac
1666 # Be sure to have absolute directory names.
1667 case $ac_val in
1668 [\\/$]* | ?:[\\/]* ) continue;;
1669 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1670 esac
cristy98dddb52010-11-04 00:30:15 +00001671 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001672done
1673
1674# There might be people who depend on the old broken behavior: `$host'
1675# used to hold the argument of --host etc.
1676# FIXME: To remove some day.
1677build=$build_alias
1678host=$host_alias
1679target=$target_alias
1680
1681# FIXME: To remove some day.
1682if test "x$host_alias" != x; then
1683 if test "x$build_alias" = x; then
1684 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001685 elif test "x$build_alias" != "x$host_alias"; then
1686 cross_compiling=yes
1687 fi
1688fi
1689
1690ac_tool_prefix=
1691test -n "$host_alias" && ac_tool_prefix=$host_alias-
1692
1693test "$silent" = yes && exec 6>/dev/null
1694
1695
1696ac_pwd=`pwd` && test -n "$ac_pwd" &&
1697ac_ls_di=`ls -di .` &&
1698ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001699 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001700test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001701 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001702
1703
1704# Find the source files, if location was not specified.
1705if test -z "$srcdir"; then
1706 ac_srcdir_defaulted=yes
1707 # Try the directory containing this script, then the parent directory.
1708 ac_confdir=`$as_dirname -- "$as_myself" ||
1709$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1710 X"$as_myself" : 'X\(//\)[^/]' \| \
1711 X"$as_myself" : 'X\(//\)$' \| \
1712 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1713$as_echo X"$as_myself" |
1714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)[^/].*/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)$/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\).*/{
1727 s//\1/
1728 q
1729 }
1730 s/.*/./; q'`
1731 srcdir=$ac_confdir
1732 if test ! -r "$srcdir/$ac_unique_file"; then
1733 srcdir=..
1734 fi
1735else
1736 ac_srcdir_defaulted=no
1737fi
1738if test ! -r "$srcdir/$ac_unique_file"; then
1739 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001740 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001741fi
1742ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1743ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001744 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001745 pwd)`
1746# When building in place, set srcdir=.
1747if test "$ac_abs_confdir" = "$ac_pwd"; then
1748 srcdir=.
1749fi
1750# Remove unnecessary trailing slashes from srcdir.
1751# Double slashes in file names in object file debugging info
1752# mess up M-x gdb in Emacs.
1753case $srcdir in
1754*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1755esac
1756for ac_var in $ac_precious_vars; do
1757 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1758 eval ac_env_${ac_var}_value=\$${ac_var}
1759 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761done
1762
1763#
1764# Report the --help message.
1765#
1766if test "$ac_init_help" = "long"; then
1767 # Omit some internal or obsolete options to make the list less imposing.
1768 # This message is too long to be a string in the A/UX 3.1 sh.
1769 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001770\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001771
1772Usage: $0 [OPTION]... [VAR=VALUE]...
1773
1774To assign environment variables (e.g., CC, CFLAGS...), specify them as
1775VAR=VALUE. See below for descriptions of some of the useful variables.
1776
1777Defaults for the options are specified in brackets.
1778
1779Configuration:
1780 -h, --help display this help and exit
1781 --help=short display options specific to this package
1782 --help=recursive display the short help of all the included packages
1783 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001784 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001785 --cache-file=FILE cache test results in FILE [disabled]
1786 -C, --config-cache alias for \`--cache-file=config.cache'
1787 -n, --no-create do not create output files
1788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1789
1790Installation directories:
1791 --prefix=PREFIX install architecture-independent files in PREFIX
1792 [$ac_default_prefix]
1793 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1794 [PREFIX]
1795
1796By default, \`make install' will install all the files in
1797\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1798an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1799for instance \`--prefix=\$HOME'.
1800
1801For better control, use the options below.
1802
1803Fine tuning of the installation directories:
1804 --bindir=DIR user executables [EPREFIX/bin]
1805 --sbindir=DIR system admin executables [EPREFIX/sbin]
1806 --libexecdir=DIR program executables [EPREFIX/libexec]
1807 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1808 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1809 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1810 --libdir=DIR object code libraries [EPREFIX/lib]
1811 --includedir=DIR C header files [PREFIX/include]
1812 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1813 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1814 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1815 --infodir=DIR info documentation [DATAROOTDIR/info]
1816 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1817 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001818 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001819 --htmldir=DIR html documentation [DOCDIR]
1820 --dvidir=DIR dvi documentation [DOCDIR]
1821 --pdfdir=DIR pdf documentation [DOCDIR]
1822 --psdir=DIR ps documentation [DOCDIR]
1823_ACEOF
1824
1825 cat <<\_ACEOF
1826
cristy73bd4a52010-10-05 11:24:23 +00001827Program names:
1828 --program-prefix=PREFIX prepend PREFIX to installed program names
1829 --program-suffix=SUFFIX append SUFFIX to installed program names
1830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1831
cristy3ed852e2009-09-05 21:47:34 +00001832X features:
1833 --x-includes=DIR X include files are in DIR
1834 --x-libraries=DIR X library files are in DIR
1835
1836System types:
1837 --build=BUILD configure for building on BUILD [guessed]
1838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1839 --target=TARGET configure for building compilers for TARGET [HOST]
1840_ACEOF
1841fi
1842
1843if test -n "$ac_init_help"; then
1844 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001845 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001846 esac
1847 cat <<\_ACEOF
1848
1849Optional Features:
1850 --disable-option-checking ignore unrecognized --enable/--with options
1851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001853 --enable-silent-rules less verbose build output (undo: "make V=1")
1854 --disable-silent-rules verbose build output (undo: "make V=0")
1855 --enable-dependency-tracking
1856 do not reject slow dependency extractors
1857 --disable-dependency-tracking
1858 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001859 --enable-ld-version-script
1860 enable linker version script (default is enabled
1861 when possible)
cristya3824692012-03-30 17:22:07 +00001862 --enable-bounds-checking
1863 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001864 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001865 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001866 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001867 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001868 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001869 --enable-shared[=PKGS] build shared libraries [default=yes]
1870 --enable-static[=PKGS] build static libraries [default=yes]
1871 --enable-fast-install[=PKGS]
1872 optimize for fast installation [default=yes]
1873 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001874 --enable-delegate-build look for delegate libraries in build directory
1875 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001876 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-installed Formally install ImageMagick under PREFIX
1878 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001879 --enable-zero-configuration
1880 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001881 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001882 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001883 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001884 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001885 --enable-maintainer-mode
1886 enable make rules and dependencies not useful (and
1887 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001888 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001889 --enable-ccmalloc enable 'ccmalloc' memory debug support
1890 --enable-efence enable 'efence' memory debug support
1891 --enable-prof enable 'prof' profiling support
1892 --enable-gprof enable 'gprof' profiling support
1893 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001894 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001895 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001896
1897Optional Packages:
1898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001901 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001902 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1903 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001904 --includearch-dir=DIR ARCH specific include directory
1905 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001906 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001908 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001909 both]
cristyda16f162011-02-19 23:52:17 +00001910 --with-sysroot=DIR Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001912 --with-modules enable building dynamically loadable modules
1913 --with-method-prefix=PREFIX
1914 prefix MagickCore API methods
1915 --with-quantum-depth=DEPTH
1916 number of bits in a pixel quantum (default 16)
1917 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1918 memory)
1919 --with-frozenpaths freeze delegate paths
1920 --without-magick-plus-plus
1921 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001922 --with-package-release-name=NAME
1923 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-perl enable build/install of PerlMagick
1925 --with-perl-options=OPTIONS
1926 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001927 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001928 --with-umem enable umem memory allocation library support
1929 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1930 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001931 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-zlib disable ZLIB support
1933 --with-autotrace enable autotrace support
1934 --without-dps disable Display Postscript support
1935 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001936 --with-dejavu-font-dir=DIR
1937 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001938 --without-fftw disable FFTW support
1939 --without-fpx disable FlashPIX support
1940 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001941 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001942 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001943 --with-fontpath=DIR prepend to default font search path
1944 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001945 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-jbig disable JBIG support
1947 --without-jpeg disable JPEG support
1948 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001949 --without-lcms disable lcms (v1.1X) support
1950 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001951 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001952 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001953 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001954 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001956 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001958 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-windows-font-dir=DIR
1960 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001961 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-xml disable XML support
1963
1964Some influential environment variables:
1965 CC C compiler command
1966 CFLAGS C compiler flags
1967 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1968 nonstandard directory <lib dir>
1969 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001970 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001971 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001972 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001973 CXX C++ compiler command
1974 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001975 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001976 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001977 XMKMF Path to xmkmf, Makefile generator for X Window System
1978 AUTOTRACE_CFLAGS
1979 C compiler flags for AUTOTRACE, overriding pkg-config
1980 AUTOTRACE_LIBS
1981 linker flags for AUTOTRACE, overriding pkg-config
1982 FONTCONFIG_CFLAGS
1983 C compiler flags for FONTCONFIG, overriding pkg-config
1984 FONTCONFIG_LIBS
1985 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001986 FREETYPE_CFLAGS
1987 C compiler flags for FREETYPE, overriding pkg-config
1988 FREETYPE_LIBS
1989 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001990 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1991 GVC_LIBS linker flags for GVC, overriding pkg-config
1992 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1993 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001994 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1995 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001996 OPENEXR_CFLAGS
1997 C compiler flags for OPENEXR, overriding pkg-config
1998 OPENEXR_LIBS
1999 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002000 PANGO_CFLAGS
2001 C compiler flags for PANGO, overriding pkg-config
2002 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2004 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2005 CAIRO_SVG_CFLAGS
2006 C compiler flags for CAIRO_SVG, overriding pkg-config
2007 CAIRO_SVG_LIBS
2008 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002009
2010Use these variables to override the choices made by `configure' or to help
2011it to find libraries and programs with nonstandard names/locations.
2012
2013Report bugs to <http://www.imagemagick.org>.
2014_ACEOF
2015ac_status=$?
2016fi
2017
2018if test "$ac_init_help" = "recursive"; then
2019 # If there are subdirs, report their specific --help.
2020 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021 test -d "$ac_dir" ||
2022 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023 continue
2024 ac_builddir=.
2025
2026case "$ac_dir" in
2027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028*)
2029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030 # A ".." for each directory in $ac_dir_suffix.
2031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032 case $ac_top_builddir_sub in
2033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035 esac ;;
2036esac
2037ac_abs_top_builddir=$ac_pwd
2038ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039# for backward compatibility:
2040ac_top_builddir=$ac_top_build_prefix
2041
2042case $srcdir in
2043 .) # We are building in place.
2044 ac_srcdir=.
2045 ac_top_srcdir=$ac_top_builddir_sub
2046 ac_abs_top_srcdir=$ac_pwd ;;
2047 [\\/]* | ?:[\\/]* ) # Absolute name.
2048 ac_srcdir=$srcdir$ac_dir_suffix;
2049 ac_top_srcdir=$srcdir
2050 ac_abs_top_srcdir=$srcdir ;;
2051 *) # Relative name.
2052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053 ac_top_srcdir=$ac_top_build_prefix$srcdir
2054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055esac
2056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2057
2058 cd "$ac_dir" || { ac_status=$?; continue; }
2059 # Check for guested configure.
2060 if test -f "$ac_srcdir/configure.gnu"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063 elif test -f "$ac_srcdir/configure"; then
2064 echo &&
2065 $SHELL "$ac_srcdir/configure" --help=recursive
2066 else
2067 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068 fi || ac_status=$?
2069 cd "$ac_pwd" || { ac_status=$?; break; }
2070 done
2071fi
2072
2073test -n "$ac_init_help" && exit $ac_status
2074if $ac_init_version; then
2075 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002076ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002077generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002078
cristy14fefe52012-05-21 00:59:18 +00002079Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002080This configure script is free software; the Free Software Foundation
2081gives unlimited permission to copy, distribute and modify it.
2082_ACEOF
2083 exit
2084fi
cristy8b350f62009-11-15 23:12:43 +00002085
2086## ------------------------ ##
2087## Autoconf initialization. ##
2088## ------------------------ ##
2089
2090# ac_fn_c_try_compile LINENO
2091# --------------------------
2092# Try to compile conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_compile ()
2094{
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext
2097 if { { ac_try="$ac_compile"
2098case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101esac
2102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103$as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_compile") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2110 fi
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_c_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest.$ac_objext; then :
2116 ac_retval=0
2117else
2118 $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=1
2122fi
cristyda16f162011-02-19 23:52:17 +00002123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002124 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002125
2126} # ac_fn_c_try_compile
2127
cristy95646052009-11-28 23:05:30 +00002128# ac_fn_c_try_cpp LINENO
2129# ----------------------
2130# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_c_try_cpp ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138esac
2139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140$as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2147 fi
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002149 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158 ac_retval=1
2159fi
cristyda16f162011-02-19 23:52:17 +00002160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002161 as_fn_set_status $ac_retval
2162
2163} # ac_fn_c_try_cpp
2164
cristy8b350f62009-11-15 23:12:43 +00002165# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166# -------------------------------------------------------
2167# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168# the include files in INCLUDES and setting the cache variable VAR
2169# accordingly.
2170ac_fn_c_check_header_mongrel ()
2171{
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002173 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002176if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002177 $as_echo_n "(cached) " >&6
2178fi
2179eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182else
2183 # Is the header compilable?
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185$as_echo_n "checking $2 usability... " >&6; }
2186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h. */
2188$4
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_header_compiler=yes
2193else
2194 ac_header_compiler=no
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198$as_echo "$ac_header_compiler" >&6; }
2199
2200# Is the header present?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202$as_echo_n "checking $2 presence... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205#include <$2>
2206_ACEOF
2207if ac_fn_c_try_cpp "$LINENO"; then :
2208 ac_header_preproc=yes
2209else
2210 ac_header_preproc=no
2211fi
cristyda16f162011-02-19 23:52:17 +00002212rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214$as_echo "$ac_header_preproc" >&6; }
2215
2216# So? What about this header?
2217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218 yes:no: )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223 ;;
2224 no:yes:* )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2228$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2232$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002235( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002236## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002237## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002238 ) | sed "s/^/$as_me: WARNING: /" >&2
2239 ;;
2240esac
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002243if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002244 $as_echo_n "(cached) " >&6
2245else
2246 eval "$3=\$ac_header_compiler"
2247fi
2248eval ac_res=\$$3
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250$as_echo "$ac_res" >&6; }
2251fi
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_mongrel
2255
2256# ac_fn_c_try_run LINENO
2257# ----------------------
2258# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2259# that executables *can* be run.
2260ac_fn_c_try_run ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 if { { ac_try="$ac_link"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_link") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2274 { { case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279$as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; }; }; then :
2284 ac_retval=0
2285else
2286 $as_echo "$as_me: program exited with status $ac_status" >&5
2287 $as_echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290 ac_retval=$ac_status
2291fi
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002294 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002295
2296} # ac_fn_c_try_run
2297
2298# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2299# -------------------------------------------------------
2300# Tests whether HEADER exists and can be compiled using the include files in
2301# INCLUDES, setting the cache variable VAR accordingly.
2302ac_fn_c_check_header_compile ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002307if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002308 $as_echo_n "(cached) " >&6
2309else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313#include <$2>
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316 eval "$3=yes"
2317else
2318 eval "$3=no"
2319fi
2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002326
2327} # ac_fn_c_check_header_compile
2328
cristya0b81c32010-01-22 02:54:33 +00002329# ac_fn_cxx_try_compile LINENO
2330# ----------------------------
2331# Try to compile conftest.$ac_ext, and return whether this succeeded.
2332ac_fn_cxx_try_compile ()
2333{
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 rm -f conftest.$ac_objext
2336 if { { ac_try="$ac_compile"
2337case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340esac
2341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342$as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_compile") 2>conftest.err
2344 ac_status=$?
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2349 fi
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } && {
2352 test -z "$ac_cxx_werror_flag" ||
2353 test ! -s conftest.err
2354 } && test -s conftest.$ac_objext; then :
2355 ac_retval=0
2356else
2357 $as_echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 ac_retval=1
2361fi
cristyda16f162011-02-19 23:52:17 +00002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002363 as_fn_set_status $ac_retval
2364
2365} # ac_fn_cxx_try_compile
2366
cristy8b350f62009-11-15 23:12:43 +00002367# ac_fn_c_try_link LINENO
2368# -----------------------
2369# Try to link conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_c_try_link ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 rm -f conftest.$ac_objext conftest$ac_exeext
2374 if { { ac_try="$ac_link"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_link") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2387 fi
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && {
2390 test -z "$ac_c_werror_flag" ||
2391 test ! -s conftest.err
2392 } && test -s conftest$ac_exeext && {
2393 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002394 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002395 }; then :
2396 ac_retval=0
2397else
2398 $as_echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 ac_retval=1
2402fi
2403 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2404 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2405 # interfere with the next link command; also delete a directory that is
2406 # left behind by Apple's compiler. We do this before executing the actions.
2407 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002409 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002410
2411} # ac_fn_c_try_link
2412
cristy73bd4a52010-10-05 11:24:23 +00002413# ac_fn_c_check_func LINENO FUNC VAR
2414# ----------------------------------
2415# Tests whether FUNC exists, setting the cache variable VAR accordingly
2416ac_fn_c_check_func ()
2417{
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002421if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002422 $as_echo_n "(cached) " >&6
2423else
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2428#define $2 innocuous_$2
2429
2430/* System header to define __stub macros and hopefully few prototypes,
2431 which can conflict with char $2 (); below.
2432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2433 <limits.h> exists even on freestanding compilers. */
2434
2435#ifdef __STDC__
2436# include <limits.h>
2437#else
2438# include <assert.h>
2439#endif
2440
2441#undef $2
2442
2443/* Override any GCC internal prototype to avoid an error.
2444 Use char because int might match the return type of a GCC
2445 builtin and then its argument prototype would still apply. */
2446#ifdef __cplusplus
2447extern "C"
2448#endif
2449char $2 ();
2450/* The GNU C library defines this for functions which it implements
2451 to always fail with ENOSYS. Some functions are actually named
2452 something starting with __ and the normal name is an alias. */
2453#if defined __stub_$2 || defined __stub___$2
2454choke me
2455#endif
2456
2457int
2458main ()
2459{
2460return $2 ();
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465if ac_fn_c_try_link "$LINENO"; then :
2466 eval "$3=yes"
2467else
2468 eval "$3=no"
2469fi
2470rm -f core conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2472fi
2473eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002477
2478} # ac_fn_c_check_func
2479
2480# ac_fn_cxx_try_cpp LINENO
2481# ------------------------
2482# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2483ac_fn_cxx_try_cpp ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { { ac_try="$ac_cpp conftest.$ac_ext"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
2491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492$as_echo "$ac_try_echo"; } >&5
2493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2494 ac_status=$?
2495 if test -s conftest.err; then
2496 grep -v '^ *+' conftest.err >conftest.er1
2497 cat conftest.er1 >&5
2498 mv -f conftest.er1 conftest.err
2499 fi
2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002501 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2503 test ! -s conftest.err
2504 }; then :
2505 ac_retval=0
2506else
2507 $as_echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 ac_retval=1
2511fi
cristyda16f162011-02-19 23:52:17 +00002512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002513 as_fn_set_status $ac_retval
2514
2515} # ac_fn_cxx_try_cpp
2516
2517# ac_fn_cxx_try_link LINENO
2518# -------------------------
2519# Try to link conftest.$ac_ext, and return whether this succeeded.
2520ac_fn_cxx_try_link ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 rm -f conftest.$ac_objext conftest$ac_exeext
2524 if { { ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530$as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_link") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } && {
2540 test -z "$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest$ac_exeext && {
2543 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002544 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002545 }; then :
2546 ac_retval=0
2547else
2548 $as_echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_retval=1
2552fi
2553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2555 # interfere with the next link command; also delete a directory that is
2556 # left behind by Apple's compiler. We do this before executing the actions.
2557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002559 as_fn_set_status $ac_retval
2560
2561} # ac_fn_cxx_try_link
2562
cristy8b350f62009-11-15 23:12:43 +00002563# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2564# -------------------------------------------
2565# Tests whether TYPE exists after having included INCLUDES, setting cache
2566# variable VAR accordingly.
2567ac_fn_c_check_type ()
2568{
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002572if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002573 $as_echo_n "(cached) " >&6
2574else
2575 eval "$3=no"
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h. */
2578$4
2579int
2580main ()
2581{
2582if (sizeof ($2))
2583 return 0;
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$4
2592int
2593main ()
2594{
2595if (sizeof (($2)))
2596 return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604 eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002614
2615} # ac_fn_c_check_type
2616
cristy92703d82010-04-26 00:18:18 +00002617# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2618# ----------------------------------------------------
2619# Tries to find if the field MEMBER exists in type AGGR, after including
2620# INCLUDES, setting cache variable VAR accordingly.
2621ac_fn_c_check_member ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2625$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002626if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002627 $as_echo_n "(cached) " >&6
2628else
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631$5
2632int
2633main ()
2634{
2635static $2 ac_aggr;
2636if (ac_aggr.$3)
2637return 0;
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642if ac_fn_c_try_compile "$LINENO"; then :
2643 eval "$4=yes"
2644else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$5
2648int
2649main ()
2650{
2651static $2 ac_aggr;
2652if (sizeof ac_aggr.$3)
2653return 0;
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 eval "$4=yes"
2660else
2661 eval "$4=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666fi
2667eval ac_res=\$$4
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002671
2672} # ac_fn_c_check_member
2673
cristy5eef09f2012-10-16 12:08:28 +00002674# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2675# ---------------------------------------------
2676# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2677# accordingly.
2678ac_fn_c_check_decl ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 as_decl_name=`echo $2|sed 's/ *(.*//'`
2682 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2684$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2685if eval \${$3+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689/* end confdefs.h. */
2690$4
2691int
2692main ()
2693{
2694#ifndef $as_decl_name
2695#ifdef __cplusplus
2696 (void) $as_decl_use;
2697#else
2698 (void) $as_decl_name;
2699#endif
2700#endif
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706if ac_fn_c_try_compile "$LINENO"; then :
2707 eval "$3=yes"
2708else
2709 eval "$3=no"
2710fi
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi
2713eval ac_res=\$$3
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715$as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717
2718} # ac_fn_c_check_decl
2719
cristy501c8042011-05-26 17:46:28 +00002720# ac_fn_c_find_intX_t LINENO BITS VAR
2721# -----------------------------------
2722# Finds a signed integer type with width BITS, setting cache variable VAR
2723# accordingly.
2724ac_fn_c_find_intX_t ()
2725{
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2728$as_echo_n "checking for int$2_t... " >&6; }
2729if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731else
2732 eval "$3=no"
2733 # Order is important - never check a type that is potentially smaller
2734 # than half of the expected target width.
2735 for ac_type in int$2_t 'int' 'long int' \
2736 'long long int' 'short int' 'signed char'; do
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 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002745test_array [0] = 0;
2746return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h. */
2755$ac_includes_default
2756 enum { N = $2 / 2 - 1 };
2757int
2758main ()
2759{
2760static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2761 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002762test_array [0] = 0;
2763return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770
2771else
2772 case $ac_type in #(
2773 int$2_t) :
2774 eval "$3=yes" ;; #(
2775 *) :
2776 eval "$3=\$ac_type" ;;
2777esac
2778fi
2779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 if eval test \"x\$"$3"\" = x"no"; then :
2783
2784else
2785 break
2786fi
2787 done
2788fi
2789eval ac_res=\$$3
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2791$as_echo "$ac_res" >&6; }
2792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2793
2794} # ac_fn_c_find_intX_t
2795
2796# ac_fn_c_find_uintX_t LINENO BITS VAR
2797# ------------------------------------
2798# Finds an unsigned integer type with width BITS, setting cache variable VAR
2799# accordingly.
2800ac_fn_c_find_uintX_t ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2804$as_echo_n "checking for uint$2_t... " >&6; }
2805if eval \${$3+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807else
2808 eval "$3=no"
2809 # Order is important - never check a type that is potentially smaller
2810 # than half of the expected target width.
2811 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2812 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814/* end confdefs.h. */
2815$ac_includes_default
2816int
2817main ()
2818{
2819static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002820test_array [0] = 0;
2821return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 case $ac_type in #(
2829 uint$2_t) :
2830 eval "$3=yes" ;; #(
2831 *) :
2832 eval "$3=\$ac_type" ;;
2833esac
2834fi
2835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 if eval test \"x\$"$3"\" = x"no"; then :
2837
2838else
2839 break
2840fi
2841 done
2842fi
2843eval ac_res=\$$3
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2845$as_echo "$ac_res" >&6; }
2846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2847
2848} # ac_fn_c_find_uintX_t
2849
cristy8b350f62009-11-15 23:12:43 +00002850# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2851# --------------------------------------------
2852# Tries to find the compile-time value of EXPR in a program that includes
2853# INCLUDES, setting VAR accordingly. Returns whether the value could be
2854# computed
2855ac_fn_c_compute_int ()
2856{
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 if test "$cross_compiling" = yes; then
2859 # Depending upon the size, compute the lo and hi bounds.
2860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002867test_array [0] = 0;
2868return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002869
2870 ;
2871 return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_lo=0 ac_mid=0
2876 while :; do
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002884test_array [0] = 0;
2885return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002886
2887 ;
2888 return 0;
2889}
2890_ACEOF
2891if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_hi=$ac_mid; break
2893else
2894 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2895 if test $ac_lo -le $ac_mid; then
2896 ac_lo= ac_hi=
2897 break
2898 fi
2899 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2900fi
2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 done
2903else
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905/* end confdefs.h. */
2906$4
2907int
2908main ()
2909{
2910static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002911test_array [0] = 0;
2912return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919 ac_hi=-1 ac_mid=-1
2920 while :; do
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$4
2924int
2925main ()
2926{
2927static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002928test_array [0] = 0;
2929return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_lo=$ac_mid; break
2937else
2938 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2939 if test $ac_mid -le $ac_hi; then
2940 ac_lo= ac_hi=
2941 break
2942 fi
2943 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2944fi
2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 done
2947else
2948 ac_lo= ac_hi=
2949fi
2950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953# Binary search between lo and hi bounds.
2954while test "x$ac_lo" != "x$ac_hi"; do
2955 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
2958$4
2959int
2960main ()
2961{
2962static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002963test_array [0] = 0;
2964return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_hi=$ac_mid
2972else
2973 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2974fi
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976done
2977case $ac_lo in #((
2978?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2979'') ac_retval=1 ;;
2980esac
2981 else
2982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h. */
2984$4
2985static long int longval () { return $2; }
2986static unsigned long int ulongval () { return $2; }
2987#include <stdio.h>
2988#include <stdlib.h>
2989int
2990main ()
2991{
2992
2993 FILE *f = fopen ("conftest.val", "w");
2994 if (! f)
2995 return 1;
2996 if (($2) < 0)
2997 {
2998 long int i = longval ();
2999 if (i != ($2))
3000 return 1;
3001 fprintf (f, "%ld", i);
3002 }
3003 else
3004 {
3005 unsigned long int i = ulongval ();
3006 if (i != ($2))
3007 return 1;
3008 fprintf (f, "%lu", i);
3009 }
3010 /* Do not output a trailing newline, as this causes \r\n confusion
3011 on some platforms. */
3012 return ferror (f) || fclose (f) != 0;
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018if ac_fn_c_try_run "$LINENO"; then :
3019 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3020else
3021 ac_retval=1
3022fi
3023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3024 conftest.$ac_objext conftest.beam conftest.$ac_ext
3025rm -f conftest.val
3026
3027 fi
cristyda16f162011-02-19 23:52:17 +00003028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003029 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003030
3031} # ac_fn_c_compute_int
3032
3033# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3034# ---------------------------------------------------------
3035# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3036# the include files in INCLUDES and setting the cache variable VAR
3037# accordingly.
3038ac_fn_cxx_check_header_mongrel ()
3039{
3040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003041 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3043$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003044if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003045 $as_echo_n "(cached) " >&6
3046fi
3047eval ac_res=\$$3
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3049$as_echo "$ac_res" >&6; }
3050else
3051 # Is the header compilable?
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3053$as_echo_n "checking $2 usability... " >&6; }
3054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
3056$4
3057#include <$2>
3058_ACEOF
3059if ac_fn_cxx_try_compile "$LINENO"; then :
3060 ac_header_compiler=yes
3061else
3062 ac_header_compiler=no
3063fi
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3066$as_echo "$ac_header_compiler" >&6; }
3067
3068# Is the header present?
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3070$as_echo_n "checking $2 presence... " >&6; }
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073#include <$2>
3074_ACEOF
3075if ac_fn_cxx_try_cpp "$LINENO"; then :
3076 ac_header_preproc=yes
3077else
3078 ac_header_preproc=no
3079fi
cristyda16f162011-02-19 23:52:17 +00003080rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3082$as_echo "$ac_header_preproc" >&6; }
3083
3084# So? What about this header?
3085case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3086 yes:no: )
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3088$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3091 ;;
3092 no:yes:* )
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3094$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3096$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3098$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3100$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003103( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003104## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003105## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003106 ) | sed "s/^/$as_me: WARNING: /" >&2
3107 ;;
3108esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3110$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003111if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003112 $as_echo_n "(cached) " >&6
3113else
3114 eval "$3=\$ac_header_compiler"
3115fi
3116eval ac_res=\$$3
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3118$as_echo "$ac_res" >&6; }
3119fi
cristyda16f162011-02-19 23:52:17 +00003120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003121
3122} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003123cat >config.log <<_ACEOF
3124This file contains any messages produced by compilers while
3125running configure, to aid debugging if configure makes a mistake.
3126
cristy29eb34e2011-10-16 00:46:08 +00003127It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003128generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003129
3130 $ $0 $@
3131
3132_ACEOF
3133exec 5>>config.log
3134{
3135cat <<_ASUNAME
3136## --------- ##
3137## Platform. ##
3138## --------- ##
3139
3140hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3141uname -m = `(uname -m) 2>/dev/null || echo unknown`
3142uname -r = `(uname -r) 2>/dev/null || echo unknown`
3143uname -s = `(uname -s) 2>/dev/null || echo unknown`
3144uname -v = `(uname -v) 2>/dev/null || echo unknown`
3145
3146/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3147/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3148
3149/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3150/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3151/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3152/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3153/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3154/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3155/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3156
3157_ASUNAME
3158
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003164 $as_echo "PATH: $as_dir"
3165 done
cristy3ed852e2009-09-05 21:47:34 +00003166IFS=$as_save_IFS
3167
3168} >&5
3169
3170cat >&5 <<_ACEOF
3171
3172
3173## ----------- ##
3174## Core tests. ##
3175## ----------- ##
3176
3177_ACEOF
3178
3179
3180# Keep a trace of the command line.
3181# Strip out --no-create and --no-recursion so they do not pile up.
3182# Strip out --silent because we don't want to record it for future runs.
3183# Also quote any args containing shell meta-characters.
3184# Make two passes to allow for proper duplicate-argument suppression.
3185ac_configure_args=
3186ac_configure_args0=
3187ac_configure_args1=
3188ac_must_keep_next=false
3189for ac_pass in 1 2
3190do
3191 for ac_arg
3192 do
3193 case $ac_arg in
3194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3196 | -silent | --silent | --silen | --sile | --sil)
3197 continue ;;
3198 *\'*)
3199 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3200 esac
3201 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003202 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003203 2)
cristy8b350f62009-11-15 23:12:43 +00003204 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003205 if test $ac_must_keep_next = true; then
3206 ac_must_keep_next=false # Got value, back to normal.
3207 else
3208 case $ac_arg in
3209 *=* | --config-cache | -C | -disable-* | --disable-* \
3210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3212 | -with-* | --with-* | -without-* | --without-* | --x)
3213 case "$ac_configure_args0 " in
3214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3215 esac
3216 ;;
3217 -* ) ac_must_keep_next=true ;;
3218 esac
3219 fi
cristy8b350f62009-11-15 23:12:43 +00003220 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003221 ;;
3222 esac
3223 done
3224done
cristy8b350f62009-11-15 23:12:43 +00003225{ ac_configure_args0=; unset ac_configure_args0;}
3226{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003227
3228# When interrupted or exit'd, cleanup temporary files, and complete
3229# config.log. We remove comments because anyway the quotes in there
3230# would cause problems or look ugly.
3231# WARNING: Use '\'' to represent an apostrophe within the trap.
3232# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3233trap 'exit_status=$?
3234 # Save into config.log some information that might help in debugging.
3235 {
3236 echo
3237
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 # The following way of writing the cache mishandles newlines in values,
3243(
3244 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3245 eval ac_val=\$$ac_var
3246 case $ac_val in #(
3247 *${as_nl}*)
3248 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3251 esac
3252 case $ac_var in #(
3253 _ | IFS | as_nl) ;; #(
3254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003255 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003256 esac ;;
3257 esac
3258 done
3259 (set) 2>&1 |
3260 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3261 *${as_nl}ac_space=\ *)
3262 sed -n \
3263 "s/'\''/'\''\\\\'\'''\''/g;
3264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3265 ;; #(
3266 *)
3267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3268 ;;
3269 esac |
3270 sort
3271)
3272 echo
3273
cristy98dddb52010-11-04 00:30:15 +00003274 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003275## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003276## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003277 echo
3278 for ac_var in $ac_subst_vars
3279 do
3280 eval ac_val=\$$ac_var
3281 case $ac_val in
3282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3283 esac
3284 $as_echo "$ac_var='\''$ac_val'\''"
3285 done | sort
3286 echo
3287
3288 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003289 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003290## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003291## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003292 echo
3293 for ac_var in $ac_subst_files
3294 do
3295 eval ac_val=\$$ac_var
3296 case $ac_val in
3297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298 esac
3299 $as_echo "$ac_var='\''$ac_val'\''"
3300 done | sort
3301 echo
3302 fi
3303
3304 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003305 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003307## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003308 echo
3309 cat confdefs.h
3310 echo
3311 fi
3312 test "$ac_signal" != 0 &&
3313 $as_echo "$as_me: caught signal $ac_signal"
3314 $as_echo "$as_me: exit $exit_status"
3315 } >&5
3316 rm -f core *.core core.conftest.* &&
3317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3318 exit $exit_status
3319' 0
3320for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003322done
3323ac_signal=0
3324
3325# confdefs.h avoids OS command line length limits that DEFS can exceed.
3326rm -f -r conftest* confdefs.h
3327
cristy8b350f62009-11-15 23:12:43 +00003328$as_echo "/* confdefs.h */" > confdefs.h
3329
cristy3ed852e2009-09-05 21:47:34 +00003330# Predefined preprocessor variables.
3331
3332cat >>confdefs.h <<_ACEOF
3333#define PACKAGE_NAME "$PACKAGE_NAME"
3334_ACEOF
3335
cristy3ed852e2009-09-05 21:47:34 +00003336cat >>confdefs.h <<_ACEOF
3337#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3338_ACEOF
3339
cristy3ed852e2009-09-05 21:47:34 +00003340cat >>confdefs.h <<_ACEOF
3341#define PACKAGE_VERSION "$PACKAGE_VERSION"
3342_ACEOF
3343
cristy3ed852e2009-09-05 21:47:34 +00003344cat >>confdefs.h <<_ACEOF
3345#define PACKAGE_STRING "$PACKAGE_STRING"
3346_ACEOF
3347
cristy3ed852e2009-09-05 21:47:34 +00003348cat >>confdefs.h <<_ACEOF
3349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3350_ACEOF
3351
cristy8b350f62009-11-15 23:12:43 +00003352cat >>confdefs.h <<_ACEOF
3353#define PACKAGE_URL "$PACKAGE_URL"
3354_ACEOF
3355
cristy3ed852e2009-09-05 21:47:34 +00003356
3357# Let the site file select an alternate cache file if it wants to.
3358# Prefer an explicitly selected file to automatically selected ones.
3359ac_site_file1=NONE
3360ac_site_file2=NONE
3361if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003362 # We do not want a PATH search for config.site.
3363 case $CONFIG_SITE in #((
3364 -*) ac_site_file1=./$CONFIG_SITE;;
3365 */*) ac_site_file1=$CONFIG_SITE;;
3366 *) ac_site_file1=./$CONFIG_SITE;;
3367 esac
cristy3ed852e2009-09-05 21:47:34 +00003368elif test "x$prefix" != xNONE; then
3369 ac_site_file1=$prefix/share/config.site
3370 ac_site_file2=$prefix/etc/config.site
3371else
3372 ac_site_file1=$ac_default_prefix/share/config.site
3373 ac_site_file2=$ac_default_prefix/etc/config.site
3374fi
3375for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3376do
3377 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003378 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3381 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003382 . "$ac_site_file" \
3383 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385as_fn_error $? "failed to load site script $ac_site_file
3386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003387 fi
3388done
3389
3390if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003391 # Some versions of bash will fail to source /dev/null (special files
3392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: loading cache $cache_file" >&6;}
3396 case $cache_file in
3397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3398 *) . "./$cache_file";;
3399 esac
3400 fi
3401else
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: creating cache $cache_file" >&6;}
3404 >$cache_file
3405fi
3406
cristycd4c5312009-11-22 01:19:08 +00003407as_fn_append ac_header_list " stdlib.h"
3408as_fn_append ac_header_list " unistd.h"
3409as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003410# Check that the precious variables saved in the cache have kept the same
3411# value.
3412ac_cache_corrupted=false
3413for ac_var in $ac_precious_vars; do
3414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415 eval ac_new_set=\$ac_env_${ac_var}_set
3416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417 eval ac_new_val=\$ac_env_${ac_var}_value
3418 case $ac_old_set,$ac_new_set in
3419 set,)
cristy8b350f62009-11-15 23:12:43 +00003420 { $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 +00003421$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422 ac_cache_corrupted=: ;;
3423 ,set)
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426 ac_cache_corrupted=: ;;
3427 ,);;
3428 *)
3429 if test "x$ac_old_val" != "x$ac_new_val"; then
3430 # differences in whitespace do not lead to failure.
3431 ac_old_val_w=`echo x $ac_old_val`
3432 ac_new_val_w=`echo x $ac_new_val`
3433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436 ac_cache_corrupted=:
3437 else
cristy8b350f62009-11-15 23:12:43 +00003438 { $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 +00003439$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440 eval $ac_var=\$ac_old_val
3441 fi
cristy8b350f62009-11-15 23:12:43 +00003442 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003443$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003444 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003445$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3446 fi;;
3447 esac
3448 # Pass precious variables to config.status.
3449 if test "$ac_new_set" = set; then
3450 case $ac_new_val in
3451 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452 *) ac_arg=$ac_var=$ac_new_val ;;
3453 esac
3454 case " $ac_configure_args " in
3455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003457 esac
3458 fi
3459done
3460if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003466fi
cristy8b350f62009-11-15 23:12:43 +00003467## -------------------- ##
3468## Main body of script. ##
3469## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003470
3471ac_ext=c
3472ac_cpp='$CPP $CPPFLAGS'
3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478
3479ac_aux_dir=
3480for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003481 if test -f "$ac_dir/install-sh"; then
3482 ac_aux_dir=$ac_dir
3483 ac_install_sh="$ac_aux_dir/install-sh -c"
3484 break
3485 elif test -f "$ac_dir/install.sh"; then
3486 ac_aux_dir=$ac_dir
3487 ac_install_sh="$ac_aux_dir/install.sh -c"
3488 break
3489 elif test -f "$ac_dir/shtool"; then
3490 ac_aux_dir=$ac_dir
3491 ac_install_sh="$ac_aux_dir/shtool install -c"
3492 break
3493 fi
cristy3ed852e2009-09-05 21:47:34 +00003494done
3495if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003496 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003497fi
3498
3499# These three variables are undocumented and unsupported,
3500# and are intended to be withdrawn in a future Autoconf release.
3501# They can cause serious problems if a builder's source tree is in a directory
3502# whose full name contains unusual characters.
3503ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3504ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3505ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3506
3507
3508
3509
3510ac_config_headers="$ac_config_headers config/config.h"
3511
cristy24fc1fe2010-10-23 21:13:01 +00003512
cristy01ff9f32012-12-01 18:15:29 +00003513ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003514
cristy8d0ff762013-03-10 20:33:28 +00003515ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003516
3517
3518#
3519# Save initial user-tunable values
3520#
3521USER_LIBS=$LIBS
3522for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3523 eval isset=\${$var+set}
3524 if test "$isset" = 'set'; then
3525 eval val=$`echo $var`
3526 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3527 fi
3528done
3529
3530
3531CONFIGURE_ARGS="$0 ${ac_configure_args}"
3532
3533
3534# Source file containing package/library versioning information.
3535. ${srcdir}/version.sh
3536
cristy15a88782010-01-31 23:24:49 +00003537echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003541
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003544if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 ac_build_alias=$build_alias
3548test "x$ac_build_alias" = x &&
3549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3550test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_build" >&6; }
3558case $ac_cv_build in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562build=$ac_cv_build
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_build
3565shift
3566build_cpu=$1
3567build_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571build_os=$*
3572IFS=$ac_save_IFS
3573case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$host_alias" = x; then
3582 ac_cv_host=$ac_cv_build
3583else
3584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_host" >&6; }
3591case $ac_cv_host in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595host=$ac_cv_host
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_host
3598shift
3599host_cpu=$1
3600host_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604host_os=$*
3605IFS=$ac_save_IFS
3606case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3607
3608
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003611if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003612 $as_echo_n "(cached) " >&6
3613else
3614 if test "x$target_alias" = x; then
3615 ac_cv_target=$ac_cv_host
3616else
3617 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003619fi
3620
3621fi
cristy8b350f62009-11-15 23:12:43 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003623$as_echo "$ac_cv_target" >&6; }
3624case $ac_cv_target in
3625*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003626*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003627esac
3628target=$ac_cv_target
3629ac_save_IFS=$IFS; IFS='-'
3630set x $ac_cv_target
3631shift
3632target_cpu=$1
3633target_vendor=$2
3634shift; shift
3635# Remember, the first character of IFS is used to create $*,
3636# except with old shells:
3637target_os=$*
3638IFS=$ac_save_IFS
3639case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3640
3641
3642# The aliases save the names the user supplied, while $host etc.
3643# will get canonicalized.
3644test -n "$target_alias" &&
3645 test "$program_prefix$program_suffix$program_transform_name" = \
3646 NONENONEs,x,x, &&
3647 program_prefix=${target_alias}-
3648
cristy837d6dc2010-02-27 01:16:57 +00003649
3650
3651
cristy8be34142012-06-17 14:07:18 +00003652
cristy19615b82011-04-13 20:02:01 +00003653MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003654
3655
cristy27d53d62012-07-29 23:30:07 +00003656cat >>confdefs.h <<_ACEOF
3657#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3658_ACEOF
3659
3660
cristy19615b82011-04-13 20:02:01 +00003661MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003662
3663
cristy27d53d62012-07-29 23:30:07 +00003664cat >>confdefs.h <<_ACEOF
3665#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3666_ACEOF
3667
3668
cristy19615b82011-04-13 20:02:01 +00003669MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003670
3671
cristy27d53d62012-07-29 23:30:07 +00003672cat >>confdefs.h <<_ACEOF
3673#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3674_ACEOF
3675
3676
cristy37442762013-02-10 21:07:23 +00003677
3678# Substitute versioning
3679MAGICK_MAJOR_VERSION=7
3680
3681MAGICK_MINOR_VERSION=0
3682
3683MAGICK_MICRO_VERSION=0
3684
3685MAGICK_PATCHLEVEL_VERSION=0
3686
3687MAGICK_VERSION=7.0.0-0
3688
cristy5ed9c6e2013-07-14 21:20:31 +00003689MAGICK_SVN_REVISION=12671:12693M
cristy37442762013-02-10 21:07:23 +00003690
3691
cristy3ed852e2009-09-05 21:47:34 +00003692# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003693MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3694
3695MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3696
cristy37442762013-02-10 21:07:23 +00003697
cristy5ed9c6e2013-07-14 21:20:31 +00003698MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3699
3700MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3701
3702
cristyd694ca32011-03-27 21:42:54 +00003703
cristy3ed852e2009-09-05 21:47:34 +00003704# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3706$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003707# Reject unsafe characters in $srcdir or the absolute working directory
3708# name. Accept space and tab only in the latter.
3709am_lf='
3710'
3711case `pwd` in
3712 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003714esac
3715case $srcdir in
3716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003718esac
cristy3ed852e2009-09-05 21:47:34 +00003719
cristyc0890a62012-07-19 00:18:20 +00003720# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003721# arguments. Must try -L first in case configure is actually a
3722# symlink; some systems play weird games with the mod time of symlinks
3723# (eg FreeBSD returns the mod time of the symlink's containing
3724# directory).
3725if (
cristyc0890a62012-07-19 00:18:20 +00003726 am_has_slept=no
3727 for am_try in 1 2; do
3728 echo "timestamp, slept: $am_has_slept" > conftest.file
3729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3730 if test "$*" = "X"; then
3731 # -L didn't work.
3732 set X `ls -t "$srcdir/configure" conftest.file`
3733 fi
3734 if test "$*" != "X $srcdir/configure conftest.file" \
3735 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003736
cristyc0890a62012-07-19 00:18:20 +00003737 # If neither matched, then we have a broken ls. This can happen
3738 # if, for instance, CONFIG_SHELL is bash and it inherits a
3739 # broken ls alias from the environment. This has actually
3740 # happened. Such a system could not be considered "sane".
3741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3742 alias in your environment" "$LINENO" 5
3743 fi
3744 if test "$2" = conftest.file || test $am_try -eq 2; then
3745 break
3746 fi
3747 # Just in case.
3748 sleep 1
3749 am_has_slept=yes
3750 done
cristy73bd4a52010-10-05 11:24:23 +00003751 test "$2" = conftest.file
3752 )
3753then
3754 # Ok.
3755 :
3756else
cristy98dddb52010-11-04 00:30:15 +00003757 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003758Check your system clock" "$LINENO" 5
3759fi
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003762# If we didn't sleep, we still need to ensure time stamps of config.status and
3763# generated files are strictly newer.
3764am_sleep_pid=
3765if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3766 ( sleep 1 ) &
3767 am_sleep_pid=$!
3768fi
cristy73bd4a52010-10-05 11:24:23 +00003769
cristyc0890a62012-07-19 00:18:20 +00003770rm -f conftest.file
3771
3772
cristy58d34aa2013-01-24 15:11:54 +00003773am__api_version='1.13'
cristy73bd4a52010-10-05 11:24:23 +00003774
3775# Find a good install program. We prefer a C program (faster),
3776# so one script is as good as another. But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# OS/2's system install, which has a completely different semantic
3787# ./install, which can be erroneously created by make from ./install.sh.
3788# Reject install programs that cannot install multiple files.
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790$as_echo_n "checking for a BSD-compatible install... " >&6; }
3791if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003792if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003793 $as_echo_n "(cached) " >&6
3794else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in #((
3802 ./ | .// | /[cC]/* | \
3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805 /usr/ucb/* ) ;;
3806 *)
3807 # OSF1 and SCO ODT 3.0 have their own names for install.
3808 # Don't use installbsd from OSF since it installs stuff as root
3809 # by default.
3810 for ac_prog in ginstall scoinst install; do
3811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003812 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003813 if test $ac_prog = install &&
3814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # AIX install. It has an incompatible calling convention.
3816 :
3817 elif test $ac_prog = install &&
3818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819 # program-specific install script used by HP pwplus--don't use.
3820 :
3821 else
3822 rm -rf conftest.one conftest.two conftest.dir
3823 echo one > conftest.one
3824 echo two > conftest.two
3825 mkdir conftest.dir
3826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827 test -s conftest.one && test -s conftest.two &&
3828 test -s conftest.dir/conftest.one &&
3829 test -s conftest.dir/conftest.two
3830 then
3831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832 break 3
3833 fi
3834 fi
3835 fi
3836 done
3837 done
3838 ;;
3839esac
3840
3841 done
3842IFS=$as_save_IFS
3843
3844rm -rf conftest.one conftest.two conftest.dir
3845
3846fi
3847 if test "${ac_cv_path_install+set}" = set; then
3848 INSTALL=$ac_cv_path_install
3849 else
3850 # As a last resort, use the slow shell script. Don't cache a
3851 # value for INSTALL within a source directory, because that will
3852 # break other packages using the cache if that directory is
3853 # removed, or if the value is a relative name.
3854 INSTALL=$ac_install_sh
3855 fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858$as_echo "$INSTALL" >&6; }
3859
3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861# It thinks the first close brace ends the variable substitution.
3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868test "$program_prefix" != NONE &&
3869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3870# Use a double $ so make ignores it.
3871test "$program_suffix" != NONE &&
3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3873# Double any \ or $.
3874# By default was `s,x,x', remove it if useless.
3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3877
3878# expand $ac_aux_dir to an absolute path
3879am_aux_dir=`cd $ac_aux_dir && pwd`
3880
3881if test x"${MISSING+set}" != xset; then
3882 case $am_aux_dir in
3883 *\ * | *\ *)
3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3885 *)
3886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3887 esac
3888fi
3889# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003890if eval "$MISSING --is-lightweight"; then
3891 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003892else
3893 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003896fi
3897
3898if test x"${install_sh}" != xset; then
3899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3902 *)
3903 install_sh="\${SHELL} $am_aux_dir/install-sh"
3904 esac
3905fi
3906
cristyc0890a62012-07-19 00:18:20 +00003907# Installed binaries are usually stripped using 'strip' when the user
3908# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003909# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003910# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003911if test "$cross_compiling" != no; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003917if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940STRIP=$ac_cv_prog_STRIP
3941if test -n "$STRIP"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3943$as_echo "$STRIP" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_STRIP"; then
3952 ac_ct_STRIP=$STRIP
3953 # Extract the first word of "strip", so it can be a program name with args.
3954set dummy strip; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_STRIP"; then
3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003970 ac_cv_prog_ac_ct_STRIP="strip"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981if test -n "$ac_ct_STRIP"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3983$as_echo "$ac_ct_STRIP" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_STRIP" = x; then
3990 STRIP=":"
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 STRIP=$ac_ct_STRIP
3999 fi
4000else
4001 STRIP="$ac_cv_prog_STRIP"
4002fi
4003
4004fi
4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4009if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004010 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in mkdir gmkdir; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4022 'mkdir (GNU coreutils) '* | \
4023 'mkdir (coreutils) '* | \
4024 'mkdir (fileutils) '4.1*)
4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4026 break 3;;
4027 esac
4028 done
4029 done
4030 done
4031IFS=$as_save_IFS
4032
4033fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test "${ac_cv_path_mkdir+set}" = set; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for MKDIR_P within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 MKDIR_P="$ac_install_sh -d"
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4047$as_echo "$MKDIR_P" >&6; }
4048
cristy73bd4a52010-10-05 11:24:23 +00004049for ac_prog in gawk mawk nawk awk
4050do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004055if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004056 $as_echo_n "(cached) " >&6
4057else
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004068 ac_cv_prog_AWK="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078AWK=$ac_cv_prog_AWK
4079if test -n "$AWK"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4081$as_echo "$AWK" >&6; }
4082else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088 test -n "$AWK" && break
4089done
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4093set x ${MAKE-make}
4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004096 $as_echo_n "(cached) " >&6
4097else
4098 cat >conftest.make <<\_ACEOF
4099SHELL = /bin/sh
4100all:
4101 @echo '@@@%%%=$(MAKE)=@@@%%%'
4102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004104case `${MAKE-make} -f conftest.make 2>/dev/null` in
4105 *@@@%%%=?*=@@@%%%*)
4106 eval ac_cv_prog_make_${ac_make}_set=yes;;
4107 *)
4108 eval ac_cv_prog_make_${ac_make}_set=no;;
4109esac
4110rm -f conftest.make
4111fi
4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
4115 SET_MAKE=
4116else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119 SET_MAKE="MAKE=${MAKE-make}"
4120fi
4121
4122rm -rf .tst 2>/dev/null
4123mkdir .tst 2>/dev/null
4124if test -d .tst; then
4125 am__leading_dot=.
4126else
4127 am__leading_dot=_
4128fi
4129rmdir .tst 2>/dev/null
4130
cristya448bd22011-10-14 12:38:13 +00004131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133 enableval=$enable_silent_rules;
4134fi
4135
cristyc0890a62012-07-19 00:18:20 +00004136case $enable_silent_rules in # (((
4137 yes) AM_DEFAULT_VERBOSITY=0;;
4138 no) AM_DEFAULT_VERBOSITY=1;;
4139 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004140esac
cristyc3fb77b2012-02-06 01:49:41 +00004141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152 @$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154 am_cv_make_support_nested_variables=yes
4155else
4156 am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162 AM_V='$(V)'
4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165 AM_V=$AM_DEFAULT_VERBOSITY
4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
cristya448bd22011-10-14 12:38:13 +00004168AM_BACKSLASH='\'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172 # is not polluted with repeated "-I."
4173 am__isrc=' -I$(srcdir)'
4174 # test to see if srcdir already configured
4175 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004177 fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182 if (cygpath --version) >/dev/null 2>/dev/null; then
4183 CYGPATH_W='cygpath -w'
4184 else
4185 CYGPATH_W=echo
4186 fi
4187fi
4188
4189
4190# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004191 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004192 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004193
4194
cristya448bd22011-10-14 12:38:13 +00004195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
cristy73bd4a52010-10-05 11:24:23 +00004204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
cristyc0890a62012-07-19 00:18:20 +00004220# For better backward compatibility. To be removed once Automake 1.9.x
4221# dies out for good. For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
cristy73bd4a52010-10-05 11:24:23 +00004226# We need awk for the "check" target. The system "awk" is bad on
4227# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004228# Always define AMTAR for backward compatibility. Yes, it's still used
4229# in the wild :-( We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004231
cristye69bdbe2013-05-03 21:40:44 +00004232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar pax cpio none'
4235
cristyc3fb77b2012-02-06 01:49:41 +00004236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004237
4238
4239
4240
4241
cristy3ed852e2009-09-05 21:47:34 +00004242
cristye69bdbe2013-05-03 21:40:44 +00004243
cristy3ed852e2009-09-05 21:47:34 +00004244# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004245# Check whether --enable-silent-rules was given.
4246if test "${enable_silent_rules+set}" = set; then :
4247 enableval=$enable_silent_rules;
4248fi
4249
cristyc0890a62012-07-19 00:18:20 +00004250case $enable_silent_rules in # (((
4251 yes) AM_DEFAULT_VERBOSITY=0;;
4252 no) AM_DEFAULT_VERBOSITY=1;;
4253 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004254esac
cristyc3fb77b2012-02-06 01:49:41 +00004255am_make=${MAKE-make}
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258if ${am_cv_make_support_nested_variables+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if $as_echo 'TRUE=$(BAR$(V))
4262BAR0=false
4263BAR1=true
4264V=1
4265am__doit:
4266 @$(TRUE)
4267.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268 am_cv_make_support_nested_variables=yes
4269else
4270 am_cv_make_support_nested_variables=no
4271fi
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274$as_echo "$am_cv_make_support_nested_variables" >&6; }
4275if test $am_cv_make_support_nested_variables = yes; then
4276 AM_V='$(V)'
4277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278else
4279 AM_V=$AM_DEFAULT_VERBOSITY
4280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281fi
cristy73bd4a52010-10-05 11:24:23 +00004282AM_BACKSLASH='\'
4283
cristy3ed852e2009-09-05 21:47:34 +00004284
cristy5ed9c6e2013-07-14 21:20:31 +00004285# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004286MAGICK_LIB_VERSION="0x"
4287if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4288 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4289fi
4290MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4291if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4292 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4293fi
4294MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4295if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4296 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4297fi
4298MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4299
4300
4301# Definition used to define MagickLibVersionText in version.h
4302MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4303
4304
4305# Definition used to define MagickLibVersionNumber in version.h
4306MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4307
4308
cristy5ed9c6e2013-07-14 21:20:31 +00004309MAGICKPP_LIB_VERSION="0x"
4310if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4311 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4312fi
4313MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4314if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4315 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4316fi
4317MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4318if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4319 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4320fi
4321MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4322
4323
4324# Definition used to define MagickLibVersionText in version.h
4325MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4326
4327
4328# Definition used to define MagickLibVersionNumber in version.h
4329MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4330
4331
4332
4333
cristy3ed852e2009-09-05 21:47:34 +00004334# Regenerate config.status if ChangeLog or version.sh is updated.
4335CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4336
4337
4338PERLMAINCC=$CC
4339
4340MAGICK_CFLAGS=''
4341MAGICK_CPPFLAGS=$CPPFLAGS_USER
4342MAGICK_PCFLAGS=$CPPFLAGS_USER
4343MAGICK_LDFLAGS=''
4344MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004345MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004346
4347#
4348# Evaluate shell variable equivalents to Makefile directory variables
4349#
4350if test "x$prefix" = xNONE; then
4351 prefix=$ac_default_prefix
4352fi
4353# Let make expand exec_prefix.
4354if test "x$exec_prefix" = xNONE; then
4355 exec_prefix='${prefix}'
4356fi
4357
4358#
4359eval "eval PREFIX_DIR=${prefix}"
4360
4361eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4362
4363eval "eval BIN_DIR=$bindir"
4364
4365eval "eval SBIN_DIR=$sbindir"
4366
4367eval "eval LIBEXEC_DIR=$libexecdir"
4368
4369eval "eval DATA_DIR=$datadir"
4370
cristy4e65ec22012-04-08 01:33:27 +00004371eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004372
cristy3ed852e2009-09-05 21:47:34 +00004373eval "eval SYSCONF_DIR=$sysconfdir"
4374
4375eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4376
4377eval "eval LOCALSTATE_DIR=$localstatedir"
4378
4379eval "eval LIB_DIR=$libdir"
4380
4381eval "eval INCLUDE_DIR=$includedir"
4382
4383eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4384
4385eval "eval INFO_DIR=$infodir"
4386
4387eval "eval MAN_DIR=$mandir"
4388
4389
4390# Get full paths to source and build directories
4391srcdirfull="`cd $srcdir && pwd`"
4392builddir="`pwd`"
4393
4394#
4395# Compute variables useful for running uninstalled software.
4396#
4397MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4398MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4399MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4400MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4401DIRSEP=':'
4402case "${build_os}" in
4403 mingw* )
4404 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4405 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4406 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4407 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4408 DIRSEP=';'
4409 ;;
4410esac
4411case "${host_os}" in
4412 mingw* )
4413 DIRSEP=';'
4414 ;;
4415esac
4416
4417
4418
4419
4420
4421
cristya0b81c32010-01-22 02:54:33 +00004422
4423#
4424# Enable OS features.
4425#
cristy73bd4a52010-10-05 11:24:23 +00004426DEPDIR="${am__leading_dot}deps"
4427
4428ac_config_commands="$ac_config_commands depfiles"
4429
4430
4431am_make=${MAKE-make}
4432cat > confinc << 'END'
4433am__doit:
4434 @echo this is the am__doit target
4435.PHONY: am__doit
4436END
4437# If we don't find an include directive, just comment out the code.
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4439$as_echo_n "checking for style of include used by $am_make... " >&6; }
4440am__include="#"
4441am__quote=
4442_am_result=none
4443# First try GNU make style include.
4444echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004445# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004446case `$am_make -s -f confmf 2> /dev/null` in #(
4447*the\ am__doit\ target*)
4448 am__include=include
4449 am__quote=
4450 _am_result=GNU
4451 ;;
4452esac
4453# Now try BSD make style include.
4454if test "$am__include" = "#"; then
4455 echo '.include "confinc"' > confmf
4456 case `$am_make -s -f confmf 2> /dev/null` in #(
4457 *the\ am__doit\ target*)
4458 am__include=.include
4459 am__quote="\""
4460 _am_result=BSD
4461 ;;
4462 esac
4463fi
4464
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4467$as_echo "$_am_result" >&6; }
4468rm -f confinc confmf
4469
4470# Check whether --enable-dependency-tracking was given.
4471if test "${enable_dependency_tracking+set}" = set; then :
4472 enableval=$enable_dependency_tracking;
4473fi
4474
4475if test "x$enable_dependency_tracking" != xno; then
4476 am_depcomp="$ac_aux_dir/depcomp"
4477 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004478 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004479fi
4480 if test "x$enable_dependency_tracking" != xno; then
4481 AMDEP_TRUE=
4482 AMDEP_FALSE='#'
4483else
4484 AMDEP_TRUE='#'
4485 AMDEP_FALSE=
4486fi
4487
4488
cristy3ed852e2009-09-05 21:47:34 +00004489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4496set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004499if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC="$CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 break 2
4515 fi
4516done
cristy8b350f62009-11-15 23:12:43 +00004517 done
cristy3ed852e2009-09-05 21:47:34 +00004518IFS=$as_save_IFS
4519
4520fi
4521fi
4522CC=$ac_cv_prog_CC
4523if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$CC" >&6; }
4526else
cristy8b350f62009-11-15 23:12:43 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "gcc", so it can be a program name with args.
4536set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004539if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004540 $as_echo_n "(cached) " >&6
4541else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544else
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 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554 break 2
4555 fi
4556done
cristy8b350f62009-11-15 23:12:43 +00004557 done
cristy3ed852e2009-09-05 21:47:34 +00004558IFS=$as_save_IFS
4559
4560fi
4561fi
4562ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004565$as_echo "$ac_ct_CC" >&6; }
4566else
cristy8b350f62009-11-15 23:12:43 +00004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004568$as_echo "no" >&6; }
4569fi
4570
4571 if test "x$ac_ct_CC" = x; then
4572 CC=""
4573 else
4574 case $cross_compiling:$ac_tool_warned in
4575yes:)
cristy8b350f62009-11-15 23:12:43 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4578ac_tool_warned=yes ;;
4579esac
4580 CC=$ac_ct_CC
4581 fi
4582else
4583 CC="$ac_cv_prog_CC"
4584fi
4585
4586if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004592if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004593 $as_echo_n "(cached) " >&6
4594else
4595 if test -n "$CC"; then
4596 ac_cv_prog_CC="$CC" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004605 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607 break 2
4608 fi
4609done
cristy8b350f62009-11-15 23:12:43 +00004610 done
cristy3ed852e2009-09-05 21:47:34 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615CC=$ac_cv_prog_CC
4616if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo "$CC" >&6; }
4619else
cristy8b350f62009-11-15 23:12:43 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004621$as_echo "no" >&6; }
4622fi
4623
4624
4625 fi
4626fi
4627if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004632if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652 break 2
4653 fi
4654done
cristy8b350f62009-11-15 23:12:43 +00004655 done
cristy3ed852e2009-09-05 21:47:34 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_CC
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set CC to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "$CC" >&6; }
4676else
cristy8b350f62009-11-15 23:12:43 +00004677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "no" >&6; }
4679fi
4680
4681
4682fi
4683if test -z "$CC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in cl.exe
4686 do
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004691if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$CC"; then
4695 ac_cv_prog_CC="$CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706 break 2
4707 fi
4708done
cristy8b350f62009-11-15 23:12:43 +00004709 done
cristy3ed852e2009-09-05 21:47:34 +00004710IFS=$as_save_IFS
4711
4712fi
4713fi
4714CC=$ac_cv_prog_CC
4715if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$CC" >&6; }
4718else
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "no" >&6; }
4721fi
4722
4723
4724 test -n "$CC" && break
4725 done
4726fi
4727if test -z "$CC"; then
4728 ac_ct_CC=$CC
4729 for ac_prog in cl.exe
4730do
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004734$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004735if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004736 $as_echo_n "(cached) " >&6
4737else
4738 if test -n "$ac_ct_CC"; then
4739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004748 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004750 break 2
4751 fi
4752done
cristy8b350f62009-11-15 23:12:43 +00004753 done
cristy3ed852e2009-09-05 21:47:34 +00004754IFS=$as_save_IFS
4755
4756fi
4757fi
4758ac_ct_CC=$ac_cv_prog_ac_ct_CC
4759if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo "$ac_ct_CC" >&6; }
4762else
cristy8b350f62009-11-15 23:12:43 +00004763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764$as_echo "no" >&6; }
4765fi
4766
4767
4768 test -n "$ac_ct_CC" && break
4769done
4770
4771 if test "x$ac_ct_CC" = x; then
4772 CC=""
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775yes:)
cristy8b350f62009-11-15 23:12:43 +00004776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778ac_tool_warned=yes ;;
4779esac
4780 CC=$ac_ct_CC
4781 fi
4782fi
4783
4784fi
4785
4786
cristy8b350f62009-11-15 23:12:43 +00004787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004789as_fn_error $? "no acceptable C compiler found in \$PATH
4790See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004791
4792# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004794set X $ac_compile
4795ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004796for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
cristy8b350f62009-11-15 23:12:43 +00004802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004805 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004806 if test -s conftest.err; then
4807 sed '10a\
4808... rest of stderr output deleted ...
4809 10q' conftest.err >conftest.er1
4810 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004811 fi
cristycd4c5312009-11-22 01:19:08 +00004812 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4815done
cristy3ed852e2009-09-05 21:47:34 +00004816
cristy8b350f62009-11-15 23:12:43 +00004817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004818/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004819
cristy3ed852e2009-09-05 21:47:34 +00004820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004830# Try to create an executable without -o first, disregard a.out.
4831# It will help us diagnose broken compilers, and finding out an intuition
4832# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4834$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4836
4837# The possible output files:
4838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4839
4840ac_rmfiles=
4841for ac_file in $ac_files
4842do
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4846 esac
4847done
4848rm -f $ac_rmfiles
4849
cristy8b350f62009-11-15 23:12:43 +00004850if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
cristy8b350f62009-11-15 23:12:43 +00004855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004857 (eval "$ac_link_default") 2>&5
4858 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4863# in a Makefile. We should not override ac_cv_exeext if it was cached,
4864# so that the user can short-circuit this test for compilers unknown to
4865# Autoconf.
4866for ac_file in $ac_files ''
4867do
4868 test -f "$ac_file" || continue
4869 case $ac_file in
4870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4871 ;;
4872 [ab].out )
4873 # We found the default executable, but exeext='' is most
4874 # certainly right.
4875 break;;
4876 *.* )
cristy8b350f62009-11-15 23:12:43 +00004877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004878 then :; else
4879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4880 fi
4881 # We set ac_cv_exeext here because the later test for it is not
4882 # safe: cross compilers may not add the suffix if given an `-o'
4883 # argument, so we may need to know it at that point already.
4884 # Even if this section looks crufty: it has the advantage of
4885 # actually working.
4886 break;;
4887 * )
4888 break;;
4889 esac
4890done
4891test "$ac_cv_exeext" = no && ac_cv_exeext=
4892
4893else
4894 ac_file=''
4895fi
cristy8b350f62009-11-15 23:12:43 +00004896if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898$as_echo "no" >&6; }
4899$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004900sed 's/^/| /' conftest.$ac_ext >&5
4901
cristy8b350f62009-11-15 23:12:43 +00004902{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004904as_fn_error 77 "C compiler cannot create executables
4905See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004906else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004909fi
cristycd4c5312009-11-22 01:19:08 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4911$as_echo_n "checking for C compiler default output file name... " >&6; }
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4913$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004914ac_exeext=$ac_cv_exeext
4915
cristycd4c5312009-11-22 01:19:08 +00004916rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004917ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004919$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004920if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004921case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
cristy8b350f62009-11-15 23:12:43 +00004925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004927 (eval "$ac_link") 2>&5
4928 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4933# work properly (i.e., refer to `conftest.exe'), while it won't with
4934# `rm'.
4935for ac_file in conftest.exe conftest conftest.*; do
4936 test -f "$ac_file" || continue
4937 case $ac_file in
4938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4940 break;;
4941 * ) break;;
4942 esac
4943done
4944else
cristy8b350f62009-11-15 23:12:43 +00004945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004947as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4948See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004949fi
cristycd4c5312009-11-22 01:19:08 +00004950rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_cv_exeext" >&6; }
4953
4954rm -f conftest.$ac_ext
4955EXEEXT=$ac_cv_exeext
4956ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
4959#include <stdio.h>
4960int
4961main ()
4962{
4963FILE *f = fopen ("conftest.out", "w");
4964 return ferror (f) || fclose (f) != 0;
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970ac_clean_files="$ac_clean_files conftest.out"
4971# Check that the compiler produces executables we can run. If not, either
4972# the compiler is broken, or we cross compile.
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4974$as_echo_n "checking whether we are cross compiling... " >&6; }
4975if test "$cross_compiling" != yes; then
4976 { { ac_try="$ac_link"
4977case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980esac
4981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982$as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_link") 2>&5
4984 ac_status=$?
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }
4987 if { ac_try='./conftest$ac_cv_exeext'
4988 { { case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4993$as_echo "$ac_try_echo"; } >&5
4994 (eval "$ac_try") 2>&5
4995 ac_status=$?
4996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4997 test $ac_status = 0; }; }; then
4998 cross_compiling=no
4999 else
5000 if test "$cross_compiling" = maybe; then
5001 cross_compiling=yes
5002 else
5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005005as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005006If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005007See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005008 fi
5009 fi
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5012$as_echo "$cross_compiling" >&6; }
5013
5014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5015ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005018if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005019 $as_echo_n "(cached) " >&6
5020else
cristy8b350f62009-11-15 23:12:43 +00005021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005022/* end confdefs.h. */
5023
5024int
5025main ()
5026{
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005033if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
cristy8b350f62009-11-15 23:12:43 +00005038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5039$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005040 (eval "$ac_compile") 2>&5
5041 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5043 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005044 for ac_file in conftest.o conftest.obj conftest.*; do
5045 test -f "$ac_file" || continue;
5046 case $ac_file in
5047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5049 break;;
5050 esac
5051done
5052else
5053 $as_echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
cristy8b350f62009-11-15 23:12:43 +00005056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005058as_fn_error $? "cannot compute suffix of object files: cannot compile
5059See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005060fi
cristy3ed852e2009-09-05 21:47:34 +00005061rm -f conftest.$ac_cv_objext conftest.$ac_ext
5062fi
cristy8b350f62009-11-15 23:12:43 +00005063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005064$as_echo "$ac_cv_objext" >&6; }
5065OBJEXT=$ac_cv_objext
5066ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005070 $as_echo_n "(cached) " >&6
5071else
cristy8b350f62009-11-15 23:12:43 +00005072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005073/* end confdefs.h. */
5074
5075int
5076main ()
5077{
5078#ifndef __GNUC__
5079 choke me
5080#endif
5081
5082 ;
5083 return 0;
5084}
5085_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005086if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005087 ac_compiler_gnu=yes
5088else
cristy8b350f62009-11-15 23:12:43 +00005089 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005090fi
cristy3ed852e2009-09-05 21:47:34 +00005091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092ac_cv_c_compiler_gnu=$ac_compiler_gnu
5093
5094fi
cristy8b350f62009-11-15 23:12:43 +00005095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005096$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5097if test $ac_compiler_gnu = yes; then
5098 GCC=yes
5099else
5100 GCC=
5101fi
5102ac_test_CFLAGS=${CFLAGS+set}
5103ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005106if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005107 $as_echo_n "(cached) " >&6
5108else
5109 ac_save_c_werror_flag=$ac_c_werror_flag
5110 ac_c_werror_flag=yes
5111 ac_cv_prog_cc_g=no
5112 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005114/* end confdefs.h. */
5115
5116int
5117main ()
5118{
5119
5120 ;
5121 return 0;
5122}
5123_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005124if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005125 ac_cv_prog_cc_g=yes
5126else
cristy8b350f62009-11-15 23:12:43 +00005127 CFLAGS=""
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
5130
5131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005140
cristy8b350f62009-11-15 23:12:43 +00005141else
5142 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005143 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005145/* end confdefs.h. */
5146
5147int
5148main ()
5149{
5150
5151 ;
5152 return 0;
5153}
5154_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005156 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005157fi
cristy3ed852e2009-09-05 21:47:34 +00005158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159fi
cristy3ed852e2009-09-05 21:47:34 +00005160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161fi
cristy3ed852e2009-09-05 21:47:34 +00005162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 ac_c_werror_flag=$ac_save_c_werror_flag
5164fi
cristy8b350f62009-11-15 23:12:43 +00005165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005166$as_echo "$ac_cv_prog_cc_g" >&6; }
5167if test "$ac_test_CFLAGS" = set; then
5168 CFLAGS=$ac_save_CFLAGS
5169elif test $ac_cv_prog_cc_g = yes; then
5170 if test "$GCC" = yes; then
5171 CFLAGS="-g -O2"
5172 else
5173 CFLAGS="-g"
5174 fi
5175else
5176 if test "$GCC" = yes; then
5177 CFLAGS="-O2"
5178 else
5179 CFLAGS=
5180 fi
5181fi
cristy8b350f62009-11-15 23:12:43 +00005182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005183$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005184if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005185 $as_echo_n "(cached) " >&6
5186else
5187 ac_cv_prog_cc_c89=no
5188ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005190/* end confdefs.h. */
5191#include <stdarg.h>
5192#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005193struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5195struct buf { int x; };
5196FILE * (*rcsopen) (struct buf *, struct stat *, int);
5197static char *e (p, i)
5198 char **p;
5199 int i;
5200{
5201 return p[i];
5202}
5203static char *f (char * (*g) (char **, int), char **p, ...)
5204{
5205 char *s;
5206 va_list v;
5207 va_start (v,p);
5208 s = g (p, va_arg (v,int));
5209 va_end (v);
5210 return s;
5211}
5212
5213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5214 function prototypes and stuff, but not '\xHH' hex character constants.
5215 These don't provoke an error unfortunately, instead are silently treated
5216 as 'x'. The following induces an error, until -std is added to get
5217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5218 array size at least. It's necessary to write '\x00'==0 to get something
5219 that's true only with -std. */
5220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5221
5222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5223 inside strings and character constants. */
5224#define FOO(x) 'x'
5225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5226
5227int test (int i, double x);
5228struct s1 {int (*f) (int a);};
5229struct s2 {int (*f) (double a);};
5230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5231int argc;
5232char **argv;
5233int
5234main ()
5235{
5236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5243do
5244 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005245 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005246 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005247fi
cristy3ed852e2009-09-05 21:47:34 +00005248rm -f core conftest.err conftest.$ac_objext
5249 test "x$ac_cv_prog_cc_c89" != "xno" && break
5250done
5251rm -f conftest.$ac_ext
5252CC=$ac_save_CC
5253
5254fi
5255# AC_CACHE_VAL
5256case "x$ac_cv_prog_cc_c89" in
5257 x)
cristy8b350f62009-11-15 23:12:43 +00005258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo "none needed" >&6; } ;;
5260 xno)
cristy8b350f62009-11-15 23:12:43 +00005261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005262$as_echo "unsupported" >&6; } ;;
5263 *)
5264 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267esac
cristy8b350f62009-11-15 23:12:43 +00005268if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005269
cristy8b350f62009-11-15 23:12:43 +00005270fi
cristy3ed852e2009-09-05 21:47:34 +00005271
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005277
cristy73bd4a52010-10-05 11:24:23 +00005278depcc="$CC" am_compiler_list=
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5281$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005282if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005283 $as_echo_n "(cached) " >&6
5284else
5285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286 # We make a subdir and do the tests there. Otherwise we can end up
5287 # making bogus files that we don't know about and never remove. For
5288 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005289 # making a dummy file named 'D' -- because '-MD' means "put the output
5290 # in D".
cristy7247bba2012-02-05 16:37:27 +00005291 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005292 mkdir conftest.dir
5293 # Copy depcomp to subdir because otherwise we won't find it if we're
5294 # using a relative directory.
5295 cp "$am_depcomp" conftest.dir
5296 cd conftest.dir
5297 # We will build objects and dependencies in a subdirectory because
5298 # it helps to detect inapplicable dependency modes. For instance
5299 # both Tru64's cc and ICC support -MD to output dependencies as a
5300 # side effect of compilation, but ICC will put the dependencies in
5301 # the current directory while Tru64 will put them in the object
5302 # directory.
5303 mkdir sub
5304
5305 am_cv_CC_dependencies_compiler_type=none
5306 if test "$am_compiler_list" = ""; then
5307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5308 fi
5309 am__universal=false
5310 case " $depcc " in #(
5311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5312 esac
5313
5314 for depmode in $am_compiler_list; do
5315 # Setup a source with many dependencies, because some compilers
5316 # like to wrap large dependency lists on column 80 (with \), and
5317 # we should not choose a depcomp mode which is confused by this.
5318 #
5319 # We need to recreate these files for each test, as the compiler may
5320 # overwrite some of them when testing with obscure command lines.
5321 # This happens at least with the AIX C compiler.
5322 : > sub/conftest.c
5323 for i in 1 2 3 4 5 6; do
5324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005325 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5326 # Solaris 10 /bin/sh.
5327 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005328 done
5329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5330
cristyc0890a62012-07-19 00:18:20 +00005331 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005332 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005333 # handle '-M -o', and we need to detect this. Also, some Intel
5334 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005335 am__obj=sub/conftest.${OBJEXT-o}
5336 am__minus_obj="-o $am__obj"
5337 case $depmode in
5338 gcc)
5339 # This depmode causes a compiler race in universal mode.
5340 test "$am__universal" = false || continue
5341 ;;
5342 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005343 # After this tag, mechanisms are not by side-effect, so they'll
5344 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005345 if test "x$enable_dependency_tracking" = xyes; then
5346 continue
5347 else
5348 break
5349 fi
5350 ;;
cristy7247bba2012-02-05 16:37:27 +00005351 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005352 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005353 # not run yet. These depmodes are late enough in the game, and
5354 # so weak that their functioning should not be impacted.
5355 am__obj=conftest.${OBJEXT-o}
5356 am__minus_obj=
5357 ;;
5358 none) break ;;
5359 esac
5360 if depmode=$depmode \
5361 source=sub/conftest.c object=$am__obj \
5362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5364 >/dev/null 2>conftest.err &&
5365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5369 # icc doesn't choke on unknown options, it will just issue warnings
5370 # or remarks (even with -Werror). So we grep stderr for any message
5371 # that says an option was ignored or not supported.
5372 # When given -MP, icc 7.0 and 7.1 complain thusly:
5373 # icc: Command line warning: ignoring option '-M'; no argument required
5374 # The diagnosis changed in icc 8.0:
5375 # icc: Command line remark: option '-MP' not supported
5376 if (grep 'ignoring option' conftest.err ||
5377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5378 am_cv_CC_dependencies_compiler_type=$depmode
5379 break
5380 fi
5381 fi
5382 done
5383
5384 cd ..
5385 rm -rf conftest.dir
5386else
5387 am_cv_CC_dependencies_compiler_type=none
5388fi
5389
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5394
5395 if
5396 test "x$enable_dependency_tracking" != xno \
5397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5398 am__fastdepCC_TRUE=
5399 am__fastdepCC_FALSE='#'
5400else
5401 am__fastdepCC_TRUE='#'
5402 am__fastdepCC_FALSE=
5403fi
5404
5405
cristy3ed852e2009-09-05 21:47:34 +00005406
cristya0b81c32010-01-22 02:54:33 +00005407ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5413$as_echo_n "checking how to run the C preprocessor... " >&6; }
5414# On Suns, sometimes $CPP names a directory.
5415if test -n "$CPP" && test -d "$CPP"; then
5416 CPP=
5417fi
5418if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005419 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005420 $as_echo_n "(cached) " >&6
5421else
5422 # Double quotes because CPP needs to be expanded
5423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5424 do
5425 ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#ifdef __STDC__
5437# include <limits.h>
5438#else
5439# include <assert.h>
5440#endif
5441 Syntax error
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445else
5446 # Broken: fails on valid input.
5447continue
5448fi
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459continue
5460else
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005469rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005470if $ac_preproc_ok; then :
5471 break
5472fi
5473
5474 done
5475 ac_cv_prog_CPP=$CPP
5476
5477fi
5478 CPP=$ac_cv_prog_CPP
5479else
5480 ac_cv_prog_CPP=$CPP
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5483$as_echo "$CPP" >&6; }
5484ac_preproc_ok=false
5485for ac_c_preproc_warn_flag in '' yes
5486do
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#ifdef __STDC__
5496# include <limits.h>
5497#else
5498# include <assert.h>
5499#endif
5500 Syntax error
5501_ACEOF
5502if ac_fn_c_try_cpp "$LINENO"; then :
5503
5504else
5505 # Broken: fails on valid input.
5506continue
5507fi
cristyda16f162011-02-19 23:52:17 +00005508rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h. */
5514#include <ac_nonexistent.h>
5515_ACEOF
5516if ac_fn_c_try_cpp "$LINENO"; then :
5517 # Broken: success on invalid input.
5518continue
5519else
5520 # Passes both tests.
5521ac_preproc_ok=:
5522break
5523fi
cristyda16f162011-02-19 23:52:17 +00005524rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005525
5526done
5527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005528rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005529if $ac_preproc_ok; then :
5530
5531else
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005534as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5535See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005536fi
5537
5538ac_ext=c
5539ac_cpp='$CPP $CPPFLAGS'
5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5546$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005547if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005548 $as_echo_n "(cached) " >&6
5549else
5550 if test -z "$GREP"; then
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005561 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005562# Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564case `"$ac_path_GREP" --version 2>&1` in
5565*GNU*)
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567*)
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5571 do
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5583 fi
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588esac
5589
5590 $ac_path_GREP_found && break 3
5591 done
5592 done
5593 done
5594IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005596 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005597 fi
5598else
5599 ac_cv_path_GREP=$GREP
5600fi
5601
5602fi
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5604$as_echo "$ac_cv_path_GREP" >&6; }
5605 GREP="$ac_cv_path_GREP"
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5609$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005610if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005611 $as_echo_n "(cached) " >&6
5612else
5613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5614 then ac_cv_path_EGREP="$GREP -E"
5615 else
5616 if test -z "$EGREP"; then
5617 ac_path_EGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in egrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005627 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005628# Check for GNU ac_path_EGREP and select it if it is found.
5629 # Check for GNU $ac_path_EGREP
5630case `"$ac_path_EGREP" --version 2>&1` in
5631*GNU*)
5632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633*)
5634 ac_count=0
5635 $as_echo_n 0123456789 >"conftest.in"
5636 while :
5637 do
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 $as_echo 'EGREP' >> "conftest.nl"
5642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 as_fn_arith $ac_count + 1 && ac_count=$as_val
5645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_EGREP="$ac_path_EGREP"
5648 ac_path_EGREP_max=$ac_count
5649 fi
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5652 done
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654esac
5655
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5659 done
5660IFS=$as_save_IFS
5661 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005662 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005663 fi
5664else
5665 ac_cv_path_EGREP=$EGREP
5666fi
5667
5668 fi
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5671$as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5673
5674
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005677if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005678 $as_echo_n "(cached) " >&6
5679else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h. */
5682#include <stdlib.h>
5683#include <stdarg.h>
5684#include <string.h>
5685#include <float.h>
5686
5687int
5688main ()
5689{
5690
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697else
5698 ac_cv_header_stdc=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706#include <string.h>
5707
5708_ACEOF
5709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5711
5712else
5713 ac_cv_header_stdc=no
5714fi
5715rm -f conftest*
5716
5717fi
5718
5719if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723#include <stdlib.h>
5724
5725_ACEOF
5726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5728
5729else
5730 ac_cv_header_stdc=no
5731fi
5732rm -f conftest*
5733
5734fi
5735
5736if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5739 :
5740else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h. */
5743#include <ctype.h>
5744#include <stdlib.h>
5745#if ((' ' & 0x0FF) == 0x020)
5746# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748#else
5749# define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754#endif
5755
5756#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757int
5758main ()
5759{
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_run "$LINENO"; then :
5769
5770else
5771 ac_cv_header_stdc=no
5772fi
5773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5775fi
5776
5777fi
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780$as_echo "$ac_cv_header_stdc" >&6; }
5781if test $ac_cv_header_stdc = yes; then
5782
5783$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5784
5785fi
5786
5787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5793"
cristy98dddb52010-11-04 00:30:15 +00005794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005795 cat >>confdefs.h <<_ACEOF
5796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797_ACEOF
5798
5799fi
5800
5801done
5802
5803
5804
5805 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 +00005806if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005807 MINIX=yes
5808else
5809 MINIX=
5810fi
5811
5812
5813 if test "$MINIX" = yes; then
5814
5815$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5816
5817
5818$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5819
5820
5821$as_echo "#define _MINIX 1" >>confdefs.h
5822
5823 fi
5824
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5827$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005828if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005829 $as_echo_n "(cached) " >&6
5830else
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833
cristy14fefe52012-05-21 00:59:18 +00005834# define __EXTENSIONS__ 1
5835 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005836int
5837main ()
5838{
5839
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845 ac_cv_safe_to_define___extensions__=yes
5846else
5847 ac_cv_safe_to_define___extensions__=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5852$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5853 test $ac_cv_safe_to_define___extensions__ = yes &&
5854 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5855
5856 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5857
5858 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5859
5860 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5861
5862 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5863
5864
5865
5866# Check for programs
5867ac_ext=c
5868ac_cpp='$CPP $CPPFLAGS'
5869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}gcc; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$CC"; then
5881 ac_cv_prog_CC="$CC" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900CC=$ac_cv_prog_CC
5901if test -n "$CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5903$as_echo "$CC" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910fi
5911if test -z "$ac_cv_prog_CC"; then
5912 ac_ct_CC=$CC
5913 # Extract the first word of "gcc", so it can be a program name with args.
5914set dummy gcc; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005917if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005918 $as_echo_n "(cached) " >&6
5919else
5920 if test -n "$ac_ct_CC"; then
5921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5922else
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 ac_cv_prog_ac_ct_CC="gcc"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935 done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_CC=$ac_cv_prog_ac_ct_CC
5941if test -n "$ac_ct_CC"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5943$as_echo "$ac_ct_CC" >&6; }
5944else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949 if test "x$ac_ct_CC" = x; then
5950 CC=""
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 CC=$ac_ct_CC
5959 fi
5960else
5961 CC="$ac_cv_prog_CC"
5962fi
5963
5964if test -z "$CC"; then
5965 if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5967set dummy ${ac_tool_prefix}cc; ac_word=$2
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005970if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005971 $as_echo_n "(cached) " >&6
5972else
5973 if test -n "$CC"; then
5974 ac_cv_prog_CC="$CC" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005983 ac_cv_prog_CC="${ac_tool_prefix}cc"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988 done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993CC=$ac_cv_prog_CC
5994if test -n "$CC"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5996$as_echo "$CC" >&6; }
5997else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002
6003 fi
6004fi
6005if test -z "$CC"; then
6006 # Extract the first word of "cc", so it can be a program name with args.
6007set dummy cc; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015else
6016 ac_prog_rejected=no
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6025 ac_prog_rejected=yes
6026 continue
6027 fi
6028 ac_cv_prog_CC="cc"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036if test $ac_prog_rejected = yes; then
6037 # We found a bogon in the path, so make sure we never use it.
6038 set dummy $ac_cv_prog_CC
6039 shift
6040 if test $# != 0; then
6041 # We chose a different compiler from the bogus one.
6042 # However, it has the same basename, so the bogon will be chosen
6043 # first if we set CC to just the basename; use the full file name.
6044 shift
6045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6046 fi
6047fi
6048fi
6049fi
6050CC=$ac_cv_prog_CC
6051if test -n "$CC"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6053$as_echo "$CC" >&6; }
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060fi
6061if test -z "$CC"; then
6062 if test -n "$ac_tool_prefix"; then
6063 for ac_prog in cl.exe
6064 do
6065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006069if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006070 $as_echo_n "(cached) " >&6
6071else
6072 if test -n "$CC"; then
6073 ac_cv_prog_CC="$CC" # Let the user override the test.
6074else
6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076for as_dir in $PATH
6077do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006082 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086done
6087 done
6088IFS=$as_save_IFS
6089
6090fi
6091fi
6092CC=$ac_cv_prog_CC
6093if test -n "$CC"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6095$as_echo "$CC" >&6; }
6096else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098$as_echo "no" >&6; }
6099fi
6100
6101
6102 test -n "$CC" && break
6103 done
6104fi
6105if test -z "$CC"; then
6106 ac_ct_CC=$CC
6107 for ac_prog in cl.exe
6108do
6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
6110set dummy $ac_prog; ac_word=$2
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006113if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$ac_ct_CC"; then
6117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006126 ac_cv_prog_ac_ct_CC="$ac_prog"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131 done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136ac_ct_CC=$ac_cv_prog_ac_ct_CC
6137if test -n "$ac_ct_CC"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6139$as_echo "$ac_ct_CC" >&6; }
6140else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146 test -n "$ac_ct_CC" && break
6147done
6148
6149 if test "x$ac_ct_CC" = x; then
6150 CC=""
6151 else
6152 case $cross_compiling:$ac_tool_warned in
6153yes:)
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156ac_tool_warned=yes ;;
6157esac
6158 CC=$ac_ct_CC
6159 fi
6160fi
6161
6162fi
6163
6164
6165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006167as_fn_error $? "no acceptable C compiler found in \$PATH
6168See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006169
6170# Provide some information about the compiler.
6171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6172set X $ac_compile
6173ac_compiler=$2
6174for ac_option in --version -v -V -qversion; do
6175 { { ac_try="$ac_compiler $ac_option >&5"
6176case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179esac
6180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6181$as_echo "$ac_try_echo"; } >&5
6182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6183 ac_status=$?
6184 if test -s conftest.err; then
6185 sed '10a\
6186... rest of stderr output deleted ...
6187 10q' conftest.err >conftest.er1
6188 cat conftest.er1 >&5
6189 fi
6190 rm -f conftest.er1 conftest.err
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }
6193done
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6196$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006197if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006198 $as_echo_n "(cached) " >&6
6199else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */
6202
6203int
6204main ()
6205{
6206#ifndef __GNUC__
6207 choke me
6208#endif
6209
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_compiler_gnu=yes
6216else
6217 ac_compiler_gnu=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220ac_cv_c_compiler_gnu=$ac_compiler_gnu
6221
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6224$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6225if test $ac_compiler_gnu = yes; then
6226 GCC=yes
6227else
6228 GCC=
6229fi
6230ac_test_CFLAGS=${CFLAGS+set}
6231ac_save_CFLAGS=$CFLAGS
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6233$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006234if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006235 $as_echo_n "(cached) " >&6
6236else
6237 ac_save_c_werror_flag=$ac_c_werror_flag
6238 ac_c_werror_flag=yes
6239 ac_cv_prog_cc_g=no
6240 CFLAGS="-g"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243
6244int
6245main ()
6246{
6247
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_prog_cc_g=yes
6254else
6255 CFLAGS=""
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h. */
6258
6259int
6260main ()
6261{
6262
6263 ;
6264 return 0;
6265}
6266_ACEOF
6267if ac_fn_c_try_compile "$LINENO"; then :
6268
6269else
6270 ac_c_werror_flag=$ac_save_c_werror_flag
6271 CFLAGS="-g"
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h. */
6274
6275int
6276main ()
6277{
6278
6279 ;
6280 return 0;
6281}
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284 ac_cv_prog_cc_g=yes
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_c_werror_flag=$ac_save_c_werror_flag
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6294$as_echo "$ac_cv_prog_cc_g" >&6; }
6295if test "$ac_test_CFLAGS" = set; then
6296 CFLAGS=$ac_save_CFLAGS
6297elif test $ac_cv_prog_cc_g = yes; then
6298 if test "$GCC" = yes; then
6299 CFLAGS="-g -O2"
6300 else
6301 CFLAGS="-g"
6302 fi
6303else
6304 if test "$GCC" = yes; then
6305 CFLAGS="-O2"
6306 else
6307 CFLAGS=
6308 fi
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6311$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006312if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006313 $as_echo_n "(cached) " >&6
6314else
6315 ac_cv_prog_cc_c89=no
6316ac_save_CC=$CC
6317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319#include <stdarg.h>
6320#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006321struct stat;
cristya0b81c32010-01-22 02:54:33 +00006322/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6323struct buf { int x; };
6324FILE * (*rcsopen) (struct buf *, struct stat *, int);
6325static char *e (p, i)
6326 char **p;
6327 int i;
6328{
6329 return p[i];
6330}
6331static char *f (char * (*g) (char **, int), char **p, ...)
6332{
6333 char *s;
6334 va_list v;
6335 va_start (v,p);
6336 s = g (p, va_arg (v,int));
6337 va_end (v);
6338 return s;
6339}
6340
6341/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6342 function prototypes and stuff, but not '\xHH' hex character constants.
6343 These don't provoke an error unfortunately, instead are silently treated
6344 as 'x'. The following induces an error, until -std is added to get
6345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6346 array size at least. It's necessary to write '\x00'==0 to get something
6347 that's true only with -std. */
6348int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6349
6350/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6351 inside strings and character constants. */
6352#define FOO(x) 'x'
6353int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6354
6355int test (int i, double x);
6356struct s1 {int (*f) (int a);};
6357struct s2 {int (*f) (double a);};
6358int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6359int argc;
6360char **argv;
6361int
6362main ()
6363{
6364return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6371do
6372 CC="$ac_save_CC $ac_arg"
6373 if ac_fn_c_try_compile "$LINENO"; then :
6374 ac_cv_prog_cc_c89=$ac_arg
6375fi
6376rm -f core conftest.err conftest.$ac_objext
6377 test "x$ac_cv_prog_cc_c89" != "xno" && break
6378done
6379rm -f conftest.$ac_ext
6380CC=$ac_save_CC
6381
6382fi
6383# AC_CACHE_VAL
6384case "x$ac_cv_prog_cc_c89" in
6385 x)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6387$as_echo "none needed" >&6; } ;;
6388 xno)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6390$as_echo "unsupported" >&6; } ;;
6391 *)
6392 CC="$CC $ac_cv_prog_cc_c89"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6394$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6395esac
6396if test "x$ac_cv_prog_cc_c89" != xno; then :
6397
6398fi
6399
6400ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
cristy73bd4a52010-10-05 11:24:23 +00006406depcc="$CC" am_compiler_list=
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6409$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006410if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006411 $as_echo_n "(cached) " >&6
6412else
6413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6414 # We make a subdir and do the tests there. Otherwise we can end up
6415 # making bogus files that we don't know about and never remove. For
6416 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006417 # making a dummy file named 'D' -- because '-MD' means "put the output
6418 # in D".
cristy7247bba2012-02-05 16:37:27 +00006419 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006420 mkdir conftest.dir
6421 # Copy depcomp to subdir because otherwise we won't find it if we're
6422 # using a relative directory.
6423 cp "$am_depcomp" conftest.dir
6424 cd conftest.dir
6425 # We will build objects and dependencies in a subdirectory because
6426 # it helps to detect inapplicable dependency modes. For instance
6427 # both Tru64's cc and ICC support -MD to output dependencies as a
6428 # side effect of compilation, but ICC will put the dependencies in
6429 # the current directory while Tru64 will put them in the object
6430 # directory.
6431 mkdir sub
6432
6433 am_cv_CC_dependencies_compiler_type=none
6434 if test "$am_compiler_list" = ""; then
6435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6436 fi
6437 am__universal=false
6438 case " $depcc " in #(
6439 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6440 esac
6441
6442 for depmode in $am_compiler_list; do
6443 # Setup a source with many dependencies, because some compilers
6444 # like to wrap large dependency lists on column 80 (with \), and
6445 # we should not choose a depcomp mode which is confused by this.
6446 #
6447 # We need to recreate these files for each test, as the compiler may
6448 # overwrite some of them when testing with obscure command lines.
6449 # This happens at least with the AIX C compiler.
6450 : > sub/conftest.c
6451 for i in 1 2 3 4 5 6; do
6452 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006453 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6454 # Solaris 10 /bin/sh.
6455 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006456 done
6457 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6458
cristyc0890a62012-07-19 00:18:20 +00006459 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006460 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006461 # handle '-M -o', and we need to detect this. Also, some Intel
6462 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006463 am__obj=sub/conftest.${OBJEXT-o}
6464 am__minus_obj="-o $am__obj"
6465 case $depmode in
6466 gcc)
6467 # This depmode causes a compiler race in universal mode.
6468 test "$am__universal" = false || continue
6469 ;;
6470 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006471 # After this tag, mechanisms are not by side-effect, so they'll
6472 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006473 if test "x$enable_dependency_tracking" = xyes; then
6474 continue
6475 else
6476 break
6477 fi
6478 ;;
cristy7247bba2012-02-05 16:37:27 +00006479 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006480 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006481 # not run yet. These depmodes are late enough in the game, and
6482 # so weak that their functioning should not be impacted.
6483 am__obj=conftest.${OBJEXT-o}
6484 am__minus_obj=
6485 ;;
6486 none) break ;;
6487 esac
6488 if depmode=$depmode \
6489 source=sub/conftest.c object=$am__obj \
6490 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6491 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6492 >/dev/null 2>conftest.err &&
6493 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6494 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6495 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6496 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6497 # icc doesn't choke on unknown options, it will just issue warnings
6498 # or remarks (even with -Werror). So we grep stderr for any message
6499 # that says an option was ignored or not supported.
6500 # When given -MP, icc 7.0 and 7.1 complain thusly:
6501 # icc: Command line warning: ignoring option '-M'; no argument required
6502 # The diagnosis changed in icc 8.0:
6503 # icc: Command line remark: option '-MP' not supported
6504 if (grep 'ignoring option' conftest.err ||
6505 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6506 am_cv_CC_dependencies_compiler_type=$depmode
6507 break
6508 fi
6509 fi
6510 done
6511
6512 cd ..
6513 rm -rf conftest.dir
6514else
6515 am_cv_CC_dependencies_compiler_type=none
6516fi
6517
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6520$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6521CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6522
6523 if
6524 test "x$enable_dependency_tracking" != xno \
6525 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6526 am__fastdepCC_TRUE=
6527 am__fastdepCC_FALSE='#'
6528else
6529 am__fastdepCC_TRUE='#'
6530 am__fastdepCC_FALSE=
6531fi
6532
6533
cristy95646052009-11-28 23:05:30 +00006534ac_ext=cpp
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6539if test -z "$CXX"; then
6540 if test -n "$CCC"; then
6541 CXX=$CCC
6542 else
6543 if test -n "$ac_tool_prefix"; then
6544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6545 do
6546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006550if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$CXX"; then
6554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568 done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573CXX=$ac_cv_prog_CXX
6574if test -n "$CXX"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6576$as_echo "$CXX" >&6; }
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583 test -n "$CXX" && break
6584 done
6585fi
6586if test -z "$CXX"; then
6587 ac_ct_CXX=$CXX
6588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6589do
6590 # Extract the first word of "$ac_prog", so it can be a program name with args.
6591set dummy $ac_prog; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 if test -n "$ac_ct_CXX"; then
6598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006607 ac_cv_prog_ac_ct_CXX="$ac_prog"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6618if test -n "$ac_ct_CXX"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6620$as_echo "$ac_ct_CXX" >&6; }
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627 test -n "$ac_ct_CXX" && break
6628done
6629
6630 if test "x$ac_ct_CXX" = x; then
6631 CXX="g++"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634yes:)
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637ac_tool_warned=yes ;;
6638esac
6639 CXX=$ac_ct_CXX
6640 fi
6641fi
6642
6643 fi
6644fi
6645# Provide some information about the compiler.
6646$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6647set X $ac_compile
6648ac_compiler=$2
6649for ac_option in --version -v -V -qversion; do
6650 { { ac_try="$ac_compiler $ac_option >&5"
6651case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6656$as_echo "$ac_try_echo"; } >&5
6657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6658 ac_status=$?
6659 if test -s conftest.err; then
6660 sed '10a\
6661... rest of stderr output deleted ...
6662 10q' conftest.err >conftest.er1
6663 cat conftest.er1 >&5
6664 fi
6665 rm -f conftest.er1 conftest.err
6666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668done
6669
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6671$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006672if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006673 $as_echo_n "(cached) " >&6
6674else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681#ifndef __GNUC__
6682 choke me
6683#endif
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689if ac_fn_cxx_try_compile "$LINENO"; then :
6690 ac_compiler_gnu=yes
6691else
6692 ac_compiler_gnu=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6696
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6699$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6700if test $ac_compiler_gnu = yes; then
6701 GXX=yes
6702else
6703 GXX=
6704fi
6705ac_test_CXXFLAGS=${CXXFLAGS+set}
6706ac_save_CXXFLAGS=$CXXFLAGS
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6708$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006709if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006710 $as_echo_n "(cached) " >&6
6711else
6712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6713 ac_cxx_werror_flag=yes
6714 ac_cv_prog_cxx_g=no
6715 CXXFLAGS="-g"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h. */
6718
6719int
6720main ()
6721{
6722
6723 ;
6724 return 0;
6725}
6726_ACEOF
6727if ac_fn_cxx_try_compile "$LINENO"; then :
6728 ac_cv_prog_cxx_g=yes
6729else
6730 CXXFLAGS=""
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h. */
6733
6734int
6735main ()
6736{
6737
6738 ;
6739 return 0;
6740}
6741_ACEOF
6742if ac_fn_cxx_try_compile "$LINENO"; then :
6743
6744else
6745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6746 CXXFLAGS="-g"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749
6750int
6751main ()
6752{
6753
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758if ac_fn_cxx_try_compile "$LINENO"; then :
6759 ac_cv_prog_cxx_g=yes
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6767fi
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6769$as_echo "$ac_cv_prog_cxx_g" >&6; }
6770if test "$ac_test_CXXFLAGS" = set; then
6771 CXXFLAGS=$ac_save_CXXFLAGS
6772elif test $ac_cv_prog_cxx_g = yes; then
6773 if test "$GXX" = yes; then
6774 CXXFLAGS="-g -O2"
6775 else
6776 CXXFLAGS="-g"
6777 fi
6778else
6779 if test "$GXX" = yes; then
6780 CXXFLAGS="-O2"
6781 else
6782 CXXFLAGS=
6783 fi
6784fi
6785ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
cristy73bd4a52010-10-05 11:24:23 +00006791depcc="$CXX" am_compiler_list=
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6794$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006795if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006796 $as_echo_n "(cached) " >&6
6797else
6798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6799 # We make a subdir and do the tests there. Otherwise we can end up
6800 # making bogus files that we don't know about and never remove. For
6801 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006802 # making a dummy file named 'D' -- because '-MD' means "put the output
6803 # in D".
cristy7247bba2012-02-05 16:37:27 +00006804 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006805 mkdir conftest.dir
6806 # Copy depcomp to subdir because otherwise we won't find it if we're
6807 # using a relative directory.
6808 cp "$am_depcomp" conftest.dir
6809 cd conftest.dir
6810 # We will build objects and dependencies in a subdirectory because
6811 # it helps to detect inapplicable dependency modes. For instance
6812 # both Tru64's cc and ICC support -MD to output dependencies as a
6813 # side effect of compilation, but ICC will put the dependencies in
6814 # the current directory while Tru64 will put them in the object
6815 # directory.
6816 mkdir sub
6817
6818 am_cv_CXX_dependencies_compiler_type=none
6819 if test "$am_compiler_list" = ""; then
6820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6821 fi
6822 am__universal=false
6823 case " $depcc " in #(
6824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6825 esac
6826
6827 for depmode in $am_compiler_list; do
6828 # Setup a source with many dependencies, because some compilers
6829 # like to wrap large dependency lists on column 80 (with \), and
6830 # we should not choose a depcomp mode which is confused by this.
6831 #
6832 # We need to recreate these files for each test, as the compiler may
6833 # overwrite some of them when testing with obscure command lines.
6834 # This happens at least with the AIX C compiler.
6835 : > sub/conftest.c
6836 for i in 1 2 3 4 5 6; do
6837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6839 # Solaris 10 /bin/sh.
6840 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006841 done
6842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6843
cristyc0890a62012-07-19 00:18:20 +00006844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006845 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006846 # handle '-M -o', and we need to detect this. Also, some Intel
6847 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006848 am__obj=sub/conftest.${OBJEXT-o}
6849 am__minus_obj="-o $am__obj"
6850 case $depmode in
6851 gcc)
6852 # This depmode causes a compiler race in universal mode.
6853 test "$am__universal" = false || continue
6854 ;;
6855 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006856 # After this tag, mechanisms are not by side-effect, so they'll
6857 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006858 if test "x$enable_dependency_tracking" = xyes; then
6859 continue
6860 else
6861 break
6862 fi
6863 ;;
cristy7247bba2012-02-05 16:37:27 +00006864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006865 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006866 # not run yet. These depmodes are late enough in the game, and
6867 # so weak that their functioning should not be impacted.
6868 am__obj=conftest.${OBJEXT-o}
6869 am__minus_obj=
6870 ;;
6871 none) break ;;
6872 esac
6873 if depmode=$depmode \
6874 source=sub/conftest.c object=$am__obj \
6875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6877 >/dev/null 2>conftest.err &&
6878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6882 # icc doesn't choke on unknown options, it will just issue warnings
6883 # or remarks (even with -Werror). So we grep stderr for any message
6884 # that says an option was ignored or not supported.
6885 # When given -MP, icc 7.0 and 7.1 complain thusly:
6886 # icc: Command line warning: ignoring option '-M'; no argument required
6887 # The diagnosis changed in icc 8.0:
6888 # icc: Command line remark: option '-MP' not supported
6889 if (grep 'ignoring option' conftest.err ||
6890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6891 am_cv_CXX_dependencies_compiler_type=$depmode
6892 break
6893 fi
6894 fi
6895 done
6896
6897 cd ..
6898 rm -rf conftest.dir
6899else
6900 am_cv_CXX_dependencies_compiler_type=none
6901fi
6902
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6905$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6906CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6907
6908 if
6909 test "x$enable_dependency_tracking" != xno \
6910 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6911 am__fastdepCXX_TRUE=
6912 am__fastdepCXX_FALSE='#'
6913else
6914 am__fastdepCXX_TRUE='#'
6915 am__fastdepCXX_FALSE=
6916fi
6917
6918
cristy8b350f62009-11-15 23:12:43 +00006919 case $ac_cv_prog_cc_stdc in #(
6920 no) :
6921 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6922 *) :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006924$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006925if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 $as_echo_n "(cached) " >&6
6927else
6928 ac_cv_prog_cc_c99=no
6929ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006931/* end confdefs.h. */
6932#include <stdarg.h>
6933#include <stdbool.h>
6934#include <stdlib.h>
6935#include <wchar.h>
6936#include <stdio.h>
6937
6938// Check varargs macros. These examples are taken from C99 6.10.3.5.
6939#define debug(...) fprintf (stderr, __VA_ARGS__)
6940#define showlist(...) puts (#__VA_ARGS__)
6941#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6942static void
6943test_varargs_macros (void)
6944{
6945 int x = 1234;
6946 int y = 5678;
6947 debug ("Flag");
6948 debug ("X = %d\n", x);
6949 showlist (The first, second, and third items.);
6950 report (x>y, "x is %d but y is %d", x, y);
6951}
6952
6953// Check long long types.
6954#define BIG64 18446744073709551615ull
6955#define BIG32 4294967295ul
6956#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6957#if !BIG_OK
6958 your preprocessor is broken;
6959#endif
6960#if BIG_OK
6961#else
6962 your preprocessor is broken;
6963#endif
6964static long long int bignum = -9223372036854775807LL;
6965static unsigned long long int ubignum = BIG64;
6966
6967struct incomplete_array
6968{
6969 int datasize;
6970 double data[];
6971};
6972
6973struct named_init {
6974 int number;
6975 const wchar_t *name;
6976 double average;
6977};
6978
6979typedef const char *ccp;
6980
6981static inline int
6982test_restrict (ccp restrict text)
6983{
6984 // See if C++-style comments work.
6985 // Iterate through items via the restricted pointer.
6986 // Also check for declarations in for loops.
6987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6988 continue;
6989 return 0;
6990}
6991
6992// Check varargs and va_copy.
6993static void
6994test_varargs (const char *format, ...)
6995{
6996 va_list args;
6997 va_start (args, format);
6998 va_list args_copy;
6999 va_copy (args_copy, args);
7000
7001 const char *str;
7002 int number;
7003 float fnumber;
7004
7005 while (*format)
7006 {
7007 switch (*format++)
7008 {
7009 case 's': // string
7010 str = va_arg (args_copy, const char *);
7011 break;
7012 case 'd': // int
7013 number = va_arg (args_copy, int);
7014 break;
7015 case 'f': // float
7016 fnumber = va_arg (args_copy, double);
7017 break;
7018 default:
7019 break;
7020 }
7021 }
7022 va_end (args_copy);
7023 va_end (args);
7024}
7025
7026int
7027main ()
7028{
7029
7030 // Check bool.
7031 _Bool success = false;
7032
7033 // Check restrict.
7034 if (test_restrict ("String literal") == 0)
7035 success = true;
7036 char *restrict newvar = "Another string";
7037
7038 // Check varargs.
7039 test_varargs ("s, d' f .", "string", 65, 34.234);
7040 test_varargs_macros ();
7041
7042 // Check flexible array members.
7043 struct incomplete_array *ia =
7044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7045 ia->datasize = 10;
7046 for (int i = 0; i < ia->datasize; ++i)
7047 ia->data[i] = i * 1.234;
7048
7049 // Check named initializers.
7050 struct named_init ni = {
7051 .number = 34,
7052 .name = L"Test wide string",
7053 .average = 543.34343,
7054 };
7055
7056 ni.number = 58;
7057
7058 int dynamic_array[ni.number];
7059 dynamic_array[ni.number - 1] = 543;
7060
7061 // work around unused variable warnings
7062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7063 || dynamic_array[ni.number - 1] != 543);
7064
7065 ;
7066 return 0;
7067}
7068_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007069for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007070do
7071 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007072 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007074fi
cristy3ed852e2009-09-05 21:47:34 +00007075rm -f core conftest.err conftest.$ac_objext
7076 test "x$ac_cv_prog_cc_c99" != "xno" && break
7077done
7078rm -f conftest.$ac_ext
7079CC=$ac_save_CC
7080
7081fi
7082# AC_CACHE_VAL
7083case "x$ac_cv_prog_cc_c99" in
7084 x)
cristy8b350f62009-11-15 23:12:43 +00007085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "none needed" >&6; } ;;
7087 xno)
cristy8b350f62009-11-15 23:12:43 +00007088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo "unsupported" >&6; } ;;
7090 *)
7091 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7094esac
cristy8b350f62009-11-15 23:12:43 +00007095if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7097else
cristy8b350f62009-11-15 23:12:43 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007099$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007100if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 ac_cv_prog_cc_c89=no
7104ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007106/* end confdefs.h. */
7107#include <stdarg.h>
7108#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007109struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007110/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7111struct buf { int x; };
7112FILE * (*rcsopen) (struct buf *, struct stat *, int);
7113static char *e (p, i)
7114 char **p;
7115 int i;
7116{
7117 return p[i];
7118}
7119static char *f (char * (*g) (char **, int), char **p, ...)
7120{
7121 char *s;
7122 va_list v;
7123 va_start (v,p);
7124 s = g (p, va_arg (v,int));
7125 va_end (v);
7126 return s;
7127}
7128
7129/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7130 function prototypes and stuff, but not '\xHH' hex character constants.
7131 These don't provoke an error unfortunately, instead are silently treated
7132 as 'x'. The following induces an error, until -std is added to get
7133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7134 array size at least. It's necessary to write '\x00'==0 to get something
7135 that's true only with -std. */
7136int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7137
7138/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7139 inside strings and character constants. */
7140#define FOO(x) 'x'
7141int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7142
7143int test (int i, double x);
7144struct s1 {int (*f) (int a);};
7145struct s2 {int (*f) (double a);};
7146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7147int argc;
7148char **argv;
7149int
7150main ()
7151{
7152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7159do
7160 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007161 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007163fi
cristy3ed852e2009-09-05 21:47:34 +00007164rm -f core conftest.err conftest.$ac_objext
7165 test "x$ac_cv_prog_cc_c89" != "xno" && break
7166done
7167rm -f conftest.$ac_ext
7168CC=$ac_save_CC
7169
7170fi
7171# AC_CACHE_VAL
7172case "x$ac_cv_prog_cc_c89" in
7173 x)
cristy8b350f62009-11-15 23:12:43 +00007174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007175$as_echo "none needed" >&6; } ;;
7176 xno)
cristy8b350f62009-11-15 23:12:43 +00007177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007178$as_echo "unsupported" >&6; } ;;
7179 *)
7180 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7183esac
cristy8b350f62009-11-15 23:12:43 +00007184if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7186else
7187 ac_cv_prog_cc_stdc=no
7188fi
7189
cristy3ed852e2009-09-05 21:47:34 +00007190fi
cristy3ed852e2009-09-05 21:47:34 +00007191 ;;
7192esac
cristy8b350f62009-11-15 23:12:43 +00007193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007194$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007195 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007196 $as_echo_n "(cached) " >&6
7197fi
7198
cristy8b350f62009-11-15 23:12:43 +00007199 case $ac_cv_prog_cc_stdc in #(
7200 no) :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7202$as_echo "unsupported" >&6; } ;; #(
7203 '') :
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205$as_echo "none needed" >&6; } ;; #(
7206 *) :
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007208$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7209esac
7210
cristy3ed852e2009-09-05 21:47:34 +00007211ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007217$as_echo_n "checking how to run the C preprocessor... " >&6; }
7218# On Suns, sometimes $CPP names a directory.
7219if test -n "$CPP" && test -d "$CPP"; then
7220 CPP=
7221fi
7222if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007223 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 # Double quotes because CPP needs to be expanded
7227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7228 do
7229 ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007247if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248
cristy8b350f62009-11-15 23:12:43 +00007249else
cristy3ed852e2009-09-05 21:47:34 +00007250 # Broken: fails on valid input.
7251continue
7252fi
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: success on invalid input.
7263continue
7264else
cristy3ed852e2009-09-05 21:47:34 +00007265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007273rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007274if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007275 break
7276fi
7277
7278 done
7279 ac_cv_prog_CPP=$CPP
7280
7281fi
7282 CPP=$ac_cv_prog_CPP
7283else
7284 ac_cv_prog_CPP=$CPP
7285fi
cristy8b350f62009-11-15 23:12:43 +00007286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007287$as_echo "$CPP" >&6; }
7288ac_preproc_ok=false
7289for ac_c_preproc_warn_flag in '' yes
7290do
7291 # Use a header file that comes with gcc, so configuring glibc
7292 # with a fresh cross-compiler works.
7293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 # <limits.h> exists even on freestanding compilers.
7295 # On the NeXT, cc -E runs the code through the compiler's parser,
7296 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007298/* end confdefs.h. */
7299#ifdef __STDC__
7300# include <limits.h>
7301#else
7302# include <assert.h>
7303#endif
7304 Syntax error
7305_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007306if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007307
cristy8b350f62009-11-15 23:12:43 +00007308else
cristy3ed852e2009-09-05 21:47:34 +00007309 # Broken: fails on valid input.
7310continue
7311fi
cristyda16f162011-02-19 23:52:17 +00007312rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007313
7314 # OK, works on sane cases. Now check whether nonexistent headers
7315 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007317/* end confdefs.h. */
7318#include <ac_nonexistent.h>
7319_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007320if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007321 # Broken: success on invalid input.
7322continue
7323else
cristy3ed852e2009-09-05 21:47:34 +00007324 # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
cristyda16f162011-02-19 23:52:17 +00007328rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007329
7330done
7331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007332rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007333if $ac_preproc_ok; then :
7334
cristy3ed852e2009-09-05 21:47:34 +00007335else
cristy8b350f62009-11-15 23:12:43 +00007336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007338as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7339See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007340fi
7341
7342ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
cristy73bd4a52010-10-05 11:24:23 +00007348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7349$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007350if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007351 $as_echo_n "(cached) " >&6
7352else
7353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7354 for ac_i in 1 2 3 4 5 6 7; do
7355 ac_script="$ac_script$as_nl$ac_script"
7356 done
7357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7358 { ac_script=; unset ac_script;}
7359 if test -z "$SED"; then
7360 ac_path_SED_found=false
7361 # Loop through the user's path and test for each of PROGNAME-LIST
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_prog in sed gsed; do
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007370 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007371# Check for GNU ac_path_SED and select it if it is found.
7372 # Check for GNU $ac_path_SED
7373case `"$ac_path_SED" --version 2>&1` in
7374*GNU*)
7375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7376*)
7377 ac_count=0
7378 $as_echo_n 0123456789 >"conftest.in"
7379 while :
7380 do
7381 cat "conftest.in" "conftest.in" >"conftest.tmp"
7382 mv "conftest.tmp" "conftest.in"
7383 cp "conftest.in" "conftest.nl"
7384 $as_echo '' >> "conftest.nl"
7385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7387 as_fn_arith $ac_count + 1 && ac_count=$as_val
7388 if test $ac_count -gt ${ac_path_SED_max-0}; then
7389 # Best one so far, save it but keep looking for a better one
7390 ac_cv_path_SED="$ac_path_SED"
7391 ac_path_SED_max=$ac_count
7392 fi
7393 # 10*(2^10) chars as input seems more than enough
7394 test $ac_count -gt 10 && break
7395 done
7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7397esac
7398
7399 $ac_path_SED_found && break 3
7400 done
7401 done
7402 done
7403IFS=$as_save_IFS
7404 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007405 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007406 fi
7407else
7408 ac_cv_path_SED=$SED
7409fi
7410
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7413$as_echo "$ac_cv_path_SED" >&6; }
7414 SED="$ac_cv_path_SED"
7415 rm -f conftest.sed
7416
7417test -z "$SED" && SED=sed
7418Xsed="$SED -e 1s/^X//"
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7431$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007432if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007433 $as_echo_n "(cached) " >&6
7434else
7435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7436 then ac_cv_path_FGREP="$GREP -F"
7437 else
7438 if test -z "$FGREP"; then
7439 ac_path_FGREP_found=false
7440 # Loop through the user's path and test for each of PROGNAME-LIST
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_prog in fgrep; do
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007449 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007450# Check for GNU ac_path_FGREP and select it if it is found.
7451 # Check for GNU $ac_path_FGREP
7452case `"$ac_path_FGREP" --version 2>&1` in
7453*GNU*)
7454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7455*)
7456 ac_count=0
7457 $as_echo_n 0123456789 >"conftest.in"
7458 while :
7459 do
7460 cat "conftest.in" "conftest.in" >"conftest.tmp"
7461 mv "conftest.tmp" "conftest.in"
7462 cp "conftest.in" "conftest.nl"
7463 $as_echo 'FGREP' >> "conftest.nl"
7464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7466 as_fn_arith $ac_count + 1 && ac_count=$as_val
7467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7468 # Best one so far, save it but keep looking for a better one
7469 ac_cv_path_FGREP="$ac_path_FGREP"
7470 ac_path_FGREP_max=$ac_count
7471 fi
7472 # 10*(2^10) chars as input seems more than enough
7473 test $ac_count -gt 10 && break
7474 done
7475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476esac
7477
7478 $ac_path_FGREP_found && break 3
7479 done
7480 done
7481 done
7482IFS=$as_save_IFS
7483 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007485 fi
7486else
7487 ac_cv_path_FGREP=$FGREP
7488fi
7489
7490 fi
7491fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7493$as_echo "$ac_cv_path_FGREP" >&6; }
7494 FGREP="$ac_cv_path_FGREP"
7495
7496
7497test -z "$GREP" && GREP=grep
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
cristy0c60a692010-11-04 01:09:47 +00007515ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7517ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7518
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7520$as_echo_n "checking how to print strings... " >&6; }
7521# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007522if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007523 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7524 ECHO='print -r --'
7525elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7526 ECHO='printf %s\n'
7527else
7528 # Use this function as a fallback that always works.
7529 func_fallback_echo ()
7530 {
7531 eval 'cat <<_LTECHO_EOF
7532$1
7533_LTECHO_EOF'
7534 }
7535 ECHO='func_fallback_echo'
7536fi
7537
7538# func_echo_all arg...
7539# Invoke $ECHO with all args, space-separated.
7540func_echo_all ()
7541{
7542 $ECHO ""
7543}
7544
7545case "$ECHO" in
7546 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7547$as_echo "printf" >&6; } ;;
7548 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7549$as_echo "print -r" >&6; } ;;
7550 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7551$as_echo "cat" >&6; } ;;
7552esac
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
cristy73bd4a52010-10-05 11:24:23 +00007567
7568
7569# Check whether --with-gnu-ld was given.
7570if test "${with_gnu_ld+set}" = set; then :
7571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7572else
7573 with_gnu_ld=no
7574fi
7575
7576ac_prog=ld
7577if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580$as_echo_n "checking for ld used by $CC... " >&6; }
7581 case $host in
7582 *-*-mingw*)
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7585 *)
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7587 esac
7588 case $ac_prog in
7589 # Accept absolute paths.
7590 [\\/]* | ?:[\\/]*)
7591 re_direlt='/[^/][^/]*/\.\./'
7592 # Canonicalize the pathname of ld
7593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7596 done
7597 test -z "$LD" && LD="$ac_prog"
7598 ;;
7599 "")
7600 # If it fails, then pretend we aren't using GCC.
7601 ac_prog=ld
7602 ;;
7603 *)
7604 # If it is relative, then search for the first ld in PATH.
7605 with_gnu_ld=unknown
7606 ;;
7607 esac
7608elif test "$with_gnu_ld" = yes; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7610$as_echo_n "checking for GNU ld... " >&6; }
7611else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613$as_echo_n "checking for non-GNU ld... " >&6; }
7614fi
cristyda16f162011-02-19 23:52:17 +00007615if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007616 $as_echo_n "(cached) " >&6
7617else
7618 if test -z "$LD"; then
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 for ac_dir in $PATH; do
7621 IFS="$lt_save_ifs"
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 lt_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
7626 # but apparently some variants of GNU ld only accept -v.
7627 # Break only if it was the GNU/non-GNU ld that we prefer.
7628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630 test "$with_gnu_ld" != no && break
7631 ;;
7632 *)
7633 test "$with_gnu_ld" != yes && break
7634 ;;
7635 esac
7636 fi
7637 done
7638 IFS="$lt_save_ifs"
7639else
7640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7641fi
7642fi
7643
7644LD="$lt_cv_path_LD"
7645if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647$as_echo "$LD" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
cristy98dddb52010-11-04 00:30:15 +00007652test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007655if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659case `$LD -v 2>&1 </dev/null` in
7660*GNU* | *'with BFD'*)
7661 lt_cv_prog_gnu_ld=yes
7662 ;;
7663*)
7664 lt_cv_prog_gnu_ld=no
7665 ;;
7666esac
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7669$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7670with_gnu_ld=$lt_cv_prog_gnu_ld
7671
7672
7673
7674
7675
7676
7677
7678
7679
cristy3ed852e2009-09-05 21:47:34 +00007680
cristy837d6dc2010-02-27 01:16:57 +00007681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7682$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007683if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007684 $as_echo_n "(cached) " >&6
7685else
7686 ac_cv_prog_cc_c99=no
7687ac_save_CC=$CC
7688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h. */
7690#include <stdarg.h>
7691#include <stdbool.h>
7692#include <stdlib.h>
7693#include <wchar.h>
7694#include <stdio.h>
7695
7696// Check varargs macros. These examples are taken from C99 6.10.3.5.
7697#define debug(...) fprintf (stderr, __VA_ARGS__)
7698#define showlist(...) puts (#__VA_ARGS__)
7699#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7700static void
7701test_varargs_macros (void)
7702{
7703 int x = 1234;
7704 int y = 5678;
7705 debug ("Flag");
7706 debug ("X = %d\n", x);
7707 showlist (The first, second, and third items.);
7708 report (x>y, "x is %d but y is %d", x, y);
7709}
7710
7711// Check long long types.
7712#define BIG64 18446744073709551615ull
7713#define BIG32 4294967295ul
7714#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7715#if !BIG_OK
7716 your preprocessor is broken;
7717#endif
7718#if BIG_OK
7719#else
7720 your preprocessor is broken;
7721#endif
7722static long long int bignum = -9223372036854775807LL;
7723static unsigned long long int ubignum = BIG64;
7724
7725struct incomplete_array
7726{
7727 int datasize;
7728 double data[];
7729};
7730
7731struct named_init {
7732 int number;
7733 const wchar_t *name;
7734 double average;
7735};
7736
7737typedef const char *ccp;
7738
7739static inline int
7740test_restrict (ccp restrict text)
7741{
7742 // See if C++-style comments work.
7743 // Iterate through items via the restricted pointer.
7744 // Also check for declarations in for loops.
7745 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7746 continue;
7747 return 0;
7748}
7749
7750// Check varargs and va_copy.
7751static void
7752test_varargs (const char *format, ...)
7753{
7754 va_list args;
7755 va_start (args, format);
7756 va_list args_copy;
7757 va_copy (args_copy, args);
7758
7759 const char *str;
7760 int number;
7761 float fnumber;
7762
7763 while (*format)
7764 {
7765 switch (*format++)
7766 {
7767 case 's': // string
7768 str = va_arg (args_copy, const char *);
7769 break;
7770 case 'd': // int
7771 number = va_arg (args_copy, int);
7772 break;
7773 case 'f': // float
7774 fnumber = va_arg (args_copy, double);
7775 break;
7776 default:
7777 break;
7778 }
7779 }
7780 va_end (args_copy);
7781 va_end (args);
7782}
7783
7784int
7785main ()
7786{
7787
7788 // Check bool.
7789 _Bool success = false;
7790
7791 // Check restrict.
7792 if (test_restrict ("String literal") == 0)
7793 success = true;
7794 char *restrict newvar = "Another string";
7795
7796 // Check varargs.
7797 test_varargs ("s, d' f .", "string", 65, 34.234);
7798 test_varargs_macros ();
7799
7800 // Check flexible array members.
7801 struct incomplete_array *ia =
7802 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7803 ia->datasize = 10;
7804 for (int i = 0; i < ia->datasize; ++i)
7805 ia->data[i] = i * 1.234;
7806
7807 // Check named initializers.
7808 struct named_init ni = {
7809 .number = 34,
7810 .name = L"Test wide string",
7811 .average = 543.34343,
7812 };
7813
7814 ni.number = 58;
7815
7816 int dynamic_array[ni.number];
7817 dynamic_array[ni.number - 1] = 543;
7818
7819 // work around unused variable warnings
7820 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7821 || dynamic_array[ni.number - 1] != 543);
7822
7823 ;
7824 return 0;
7825}
7826_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007827for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007828do
7829 CC="$ac_save_CC $ac_arg"
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 ac_cv_prog_cc_c99=$ac_arg
7832fi
7833rm -f core conftest.err conftest.$ac_objext
7834 test "x$ac_cv_prog_cc_c99" != "xno" && break
7835done
7836rm -f conftest.$ac_ext
7837CC=$ac_save_CC
7838
7839fi
7840# AC_CACHE_VAL
7841case "x$ac_cv_prog_cc_c99" in
7842 x)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7844$as_echo "none needed" >&6; } ;;
7845 xno)
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7847$as_echo "unsupported" >&6; } ;;
7848 *)
7849 CC="$CC $ac_cv_prog_cc_c99"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7851$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7852esac
7853if test "x$ac_cv_prog_cc_c99" != xno; then :
7854
7855fi
7856
7857
cristy73bd4a52010-10-05 11:24:23 +00007858if test "x$CC" != xcc; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7860$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7861else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7863$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7864fi
7865set dummy $CC; ac_cc=`$as_echo "$2" |
7866 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007867if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007868 $as_echo_n "(cached) " >&6
7869else
cristy73bd4a52010-10-05 11:24:23 +00007870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872
7873int
7874main ()
7875{
7876
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881# Make sure it works both with $CC and with simple cc.
7882# We do the test twice because some compilers refuse to overwrite an
7883# existing .o file with -o, though they will create one.
7884ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7885rm -f conftest2.*
7886if { { case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7891$as_echo "$ac_try_echo"; } >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; } &&
7896 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7901$as_echo "$ac_try_echo"; } >&5
7902 (eval "$ac_try") 2>&5
7903 ac_status=$?
7904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905 test $ac_status = 0; };
7906then
7907 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7908 if test "x$CC" != xcc; then
7909 # Test first that cc exists at all.
7910 if { ac_try='cc -c conftest.$ac_ext >&5'
7911 { { case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
7915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7916$as_echo "$ac_try_echo"; } >&5
7917 (eval "$ac_try") 2>&5
7918 ac_status=$?
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; }; then
7921 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7922 rm -f conftest2.*
7923 if { { case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7928$as_echo "$ac_try_echo"; } >&5
7929 (eval "$ac_try") 2>&5
7930 ac_status=$?
7931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7932 test $ac_status = 0; } &&
7933 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7938$as_echo "$ac_try_echo"; } >&5
7939 (eval "$ac_try") 2>&5
7940 ac_status=$?
7941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; };
7943 then
7944 # cc works too.
7945 :
7946 else
7947 # cc exists but doesn't like -o.
7948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7949 fi
7950 fi
7951 fi
7952else
7953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7954fi
7955rm -f core conftest*
7956
7957fi
7958if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7960$as_echo "yes" >&6; }
7961else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964
7965$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7966
7967fi
7968
7969# FIXME: we rely on the cache variable name because
7970# there is no other way.
7971set dummy $CC
7972am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7973eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7974if test "$am_t" != yes; then
7975 # Losing compiler, so override with the script.
7976 # FIXME: It is wrong to rewrite CC.
7977 # But if we don't then we get into trouble of one sort or another.
7978 # A longer-term fix would be to have automake use am__CC in this case,
7979 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7980 CC="$am_aux_dir/compile $CC"
7981fi
7982
7983
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7985$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007986if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007987 $as_echo_n "(cached) " >&6
7988else
7989 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007990 ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996 ac_save_CFLAGS="$CFLAGS"
7997for 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" #
7998do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001
8002int
8003main ()
8004{
cristy24fc1fe2010-10-23 21:13:01 +00008005
cristy73bd4a52010-10-05 11:24:23 +00008006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014done
8015 CFLAGS="$ac_save_CFLAGS"
8016 ac_ext=c
8017ac_cpp='$CPP $CPPFLAGS'
8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020ac_compiler_gnu=$ac_cv_c_compiler_gnu
8021
8022
8023fi
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8025$as_echo "$ac_cv_cflags_warn_all" >&6; }
8026case ".$ac_cv_cflags_warn_all" in
8027 .ok|.ok,*) ;;
8028 .|.no|.no,*)
8029 ;;
8030 *)
8031 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8032 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8033 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8034 ac_status=$?
8035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8036 test $ac_status = 0; }
8037 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8038 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }
8042 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8043 fi
8044 ;;
nicolas6237c462010-10-05 06:11:49 +00008045esac
cristy3ed852e2009-09-05 21:47:34 +00008046
cristy016e8b82012-12-26 12:11:06 +00008047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8048$as_echo_n "checking for C compiler vendor... " >&6; }
8049if ${ax_cv_c_compiler_vendor+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 # note: don't check for gcc first since some other compilers define __GNUC__
8053 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8054 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8055 pathscale: __PATHCC__,__PATHSCALE__
8056 clang: __clang__
8057 gnu: __GNUC__
8058 sun: __SUNPRO_C,__SUNPRO_CC
8059 hp: __HP_cc,__HP_aCC
8060 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8061 borland: __BORLANDC__,__TURBOC__
8062 comeau: __COMO__
8063 cray: _CRAYC
8064 kai: __KCC
8065 lcc: __LCC__
8066 sgi: __sgi,sgi
8067 microsoft: _MSC_VER
8068 metrowerks: __MWERKS__
8069 watcom: __WATCOMC__
8070 portland: __PGI
8071 unknown: UNKNOWN"
8072 for ventest in $vendors; do
8073 case $ventest in
8074 *:) vendor=$ventest; continue ;;
8075 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8076 esac
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079
8080int
8081main ()
8082{
8083
8084 #if !($vencpp)
8085 thisisanerror;
8086 #endif
8087
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_compile "$LINENO"; then :
8093 break
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 done
8097 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8098
8099fi
8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8101$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8102
cristya0b81c32010-01-22 02:54:33 +00008103
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8106set x ${MAKE-make}
8107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008108if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008109 $as_echo_n "(cached) " >&6
8110else
8111 cat >conftest.make <<\_ACEOF
8112SHELL = /bin/sh
8113all:
8114 @echo '@@@%%%=$(MAKE)=@@@%%%'
8115_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008116# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008117case `${MAKE-make} -f conftest.make 2>/dev/null` in
8118 *@@@%%%=?*=@@@%%%*)
8119 eval ac_cv_prog_make_${ac_make}_set=yes;;
8120 *)
8121 eval ac_cv_prog_make_${ac_make}_set=no;;
8122esac
8123rm -f conftest.make
8124fi
8125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127$as_echo "yes" >&6; }
8128 SET_MAKE=
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132 SET_MAKE="MAKE=${MAKE-make}"
8133fi
8134
cristy8b350f62009-11-15 23:12:43 +00008135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008136$as_echo_n "checking whether ln -s works... " >&6; }
8137LN_S=$as_ln_s
8138if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008140$as_echo "yes" >&6; }
8141else
cristy8b350f62009-11-15 23:12:43 +00008142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143$as_echo "no, using $LN_S" >&6; }
8144fi
8145
cristy8d0ff762013-03-10 20:33:28 +00008146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8147$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8148if ${ac_cv_path_SED+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150else
8151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8152 for ac_i in 1 2 3 4 5 6 7; do
8153 ac_script="$ac_script$as_nl$ac_script"
8154 done
8155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8156 { ac_script=; unset ac_script;}
8157 if test -z "$SED"; then
8158 ac_path_SED_found=false
8159 # Loop through the user's path and test for each of PROGNAME-LIST
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_prog in sed gsed; do
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8168 as_fn_executable_p "$ac_path_SED" || continue
8169# Check for GNU ac_path_SED and select it if it is found.
8170 # Check for GNU $ac_path_SED
8171case `"$ac_path_SED" --version 2>&1` in
8172*GNU*)
8173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8174*)
8175 ac_count=0
8176 $as_echo_n 0123456789 >"conftest.in"
8177 while :
8178 do
8179 cat "conftest.in" "conftest.in" >"conftest.tmp"
8180 mv "conftest.tmp" "conftest.in"
8181 cp "conftest.in" "conftest.nl"
8182 $as_echo '' >> "conftest.nl"
8183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8185 as_fn_arith $ac_count + 1 && ac_count=$as_val
8186 if test $ac_count -gt ${ac_path_SED_max-0}; then
8187 # Best one so far, save it but keep looking for a better one
8188 ac_cv_path_SED="$ac_path_SED"
8189 ac_path_SED_max=$ac_count
8190 fi
8191 # 10*(2^10) chars as input seems more than enough
8192 test $ac_count -gt 10 && break
8193 done
8194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8195esac
8196
8197 $ac_path_SED_found && break 3
8198 done
8199 done
8200 done
8201IFS=$as_save_IFS
8202 if test -z "$ac_cv_path_SED"; then
8203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8204 fi
8205else
8206 ac_cv_path_SED=$SED
8207fi
8208
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8211$as_echo "$ac_cv_path_SED" >&6; }
8212 SED="$ac_cv_path_SED"
8213 rm -f conftest.sed
8214
cristybc556452012-08-17 19:44:03 +00008215for ac_prog in gawk mawk nawk awk
8216do
8217 # Extract the first word of "$ac_prog", so it can be a program name with args.
8218set dummy $ac_prog; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_AWK+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 if test -n "$AWK"; then
8225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_AWK="$ac_prog"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239 done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244AWK=$ac_cv_prog_AWK
8245if test -n "$AWK"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8247$as_echo "$AWK" >&6; }
8248else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254 test -n "$AWK" && break
8255done
8256
cristy73bd4a52010-10-05 11:24:23 +00008257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8258$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8259
8260# Check whether --with-dmalloc was given.
8261if test "${with_dmalloc+set}" = set; then :
8262 withval=$with_dmalloc; if test "$withval" = yes; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8264$as_echo "yes" >&6; }
8265
8266$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8267
8268 LIBS="$LIBS -ldmalloc"
8269 LDFLAGS="$LDFLAGS -g"
8270else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276$as_echo "no" >&6; }
8277fi
8278
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8282$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008283if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008284 $as_echo_n "(cached) " >&6
8285else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008289 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008290 static void
8291 foo(void) {
8292 exit(1);
8293 }
8294
8295int
8296main ()
8297{
8298
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304 ax_cv___attribute__=yes
8305else
8306 ax_cv___attribute__=no
8307
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8313$as_echo "$ax_cv___attribute__" >&6; }
8314 if test "$ax_cv___attribute__" = "yes"; then
8315
8316$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8317
8318 fi
8319
8320
8321
cristy37110d62012-03-01 18:38:20 +00008322
8323
8324# Check whether --with-gcc-arch was given.
8325if test "${with_gcc_arch+set}" = set; then :
8326 withval=$with_gcc_arch; ax_gcc_arch=$withval
8327else
cristya32d1812012-03-02 19:24:21 +00008328 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008329fi
8330
8331
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8333$as_echo_n "checking for gcc architecture flag... " >&6; }
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8335$as_echo "" >&6; }
8336if ${ax_cv_gcc_archflag+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339
8340ax_cv_gcc_archflag="unknown"
8341
8342if test "$GCC" = yes; then
8343
8344if test "x$ax_gcc_arch" = xyes; then
8345ax_gcc_arch=""
8346if test "$cross_compiling" = no; then
8347case $host_cpu in
8348 i[3456]86*|x86_64*) # use cpuid codes
8349
8350ac_ext=c
8351ac_cpp='$CPP $CPPFLAGS'
8352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8354ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8357$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8358if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test "$cross_compiling" = yes; then :
8362 ax_cv_gcc_x86_cpuid_0=unknown
8363else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366#include <stdio.h>
8367int
8368main ()
8369{
8370
8371 int op = 0, eax, ebx, ecx, edx;
8372 FILE *f;
8373 __asm__("cpuid"
8374 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8375 : "a" (op));
8376 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8377 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8378 fclose(f);
8379 return 0;
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_run "$LINENO"; then :
8386 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8387else
8388 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8389fi
8390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8391 conftest.$ac_objext conftest.beam conftest.$ac_ext
8392fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8396$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405ac_ext=c
8406ac_cpp='$CPP $CPPFLAGS'
8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8412$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8413if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415else
8416 if test "$cross_compiling" = yes; then :
8417 ax_cv_gcc_x86_cpuid_1=unknown
8418else
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <stdio.h>
8422int
8423main ()
8424{
8425
8426 int op = 1, eax, ebx, ecx, edx;
8427 FILE *f;
8428 __asm__("cpuid"
8429 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8430 : "a" (op));
8431 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8432 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8433 fclose(f);
8434 return 0;
8435
8436 ;
8437 return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_run "$LINENO"; then :
8441 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8442else
8443 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8444fi
8445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8446 conftest.$ac_objext conftest.beam conftest.$ac_ext
8447fi
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8451$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8452ac_ext=c
8453ac_cpp='$CPP $CPPFLAGS'
8454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8456ac_compiler_gnu=$ac_cv_c_compiler_gnu
8457
8458
8459 case $ax_cv_gcc_x86_cpuid_0 in
8460 *:756e6547:*:*) # Intel
8461 case $ax_cv_gcc_x86_cpuid_1 in
8462 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8463 *5??:*:*:*) ax_gcc_arch=pentium ;;
8464 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8465 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8466 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8467 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8468 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8469 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8470 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8471 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8472 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8473 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8474 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8475 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8476 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8477 case $host_cpu in
8478 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8479 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8480 esac ;;
8481 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8482 esac ;;
8483 *:68747541:*:*) # AMD
8484 case $ax_cv_gcc_x86_cpuid_1 in
8485 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8486 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8487 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8488 *60?:*:*:*) ax_gcc_arch=k7 ;;
8489 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8490 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8491 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8492 *6[68a]?:*:*:*)
8493
8494ac_ext=c
8495ac_cpp='$CPP $CPPFLAGS'
8496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8501$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8502if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504else
8505 if test "$cross_compiling" = yes; then :
8506 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8507else
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
8510#include <stdio.h>
8511int
8512main ()
8513{
8514
8515 int op = 0x80000006, eax, ebx, ecx, edx;
8516 FILE *f;
8517 __asm__("cpuid"
8518 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8519 : "a" (op));
8520 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8521 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8522 fclose(f);
8523 return 0;
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_run "$LINENO"; then :
8530 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8531else
8532 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8533fi
8534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8535 conftest.$ac_objext conftest.beam conftest.$ac_ext
8536fi
8537
8538fi
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8540$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8541ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 # L2 cache size
8548 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8549 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8550 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8551 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8552 esac ;;
8553 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8554 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8555 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8556 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8557 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8558 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8559 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8560 esac ;;
8561 *:746e6543:*:*) # IDT
8562 case $ax_cv_gcc_x86_cpuid_1 in
8563 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8564 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8565 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8566 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8567 esac ;;
8568 esac
8569 if test x"$ax_gcc_arch" = x; then # fallback
8570 case $host_cpu in
8571 i586*) ax_gcc_arch=pentium ;;
8572 i686*) ax_gcc_arch=pentiumpro ;;
8573 esac
8574 fi
8575 ;;
8576
8577 sparc*)
8578 # Extract the first word of "prtdiag", so it can be a program name with args.
8579set dummy prtdiag; ac_word=$2
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if ${ac_cv_path_PRTDIAG+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584else
8585 case $PRTDIAG in
8586 [\\/]* | ?:[\\/]*)
8587 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8588 ;;
8589 *)
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8592for as_dir in $as_dummy
8593do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008598 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602done
8603 done
8604IFS=$as_save_IFS
8605
8606 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8607 ;;
8608esac
8609fi
8610PRTDIAG=$ac_cv_path_PRTDIAG
8611if test -n "$PRTDIAG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8613$as_echo "$PRTDIAG" >&6; }
8614else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616$as_echo "no" >&6; }
8617fi
8618
8619
8620 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`
8621 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8622 case $cputype in
8623 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8624 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8625 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8626 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8627 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8628 *cypress*) ax_gcc_arch=cypress ;;
8629 esac ;;
8630
8631 alphaev5) ax_gcc_arch=ev5 ;;
8632 alphaev56) ax_gcc_arch=ev56 ;;
8633 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8634 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8635 alphaev6) ax_gcc_arch=ev6 ;;
8636 alphaev67) ax_gcc_arch=ev67 ;;
8637 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8638 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8639 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8640 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8641
8642 powerpc*)
8643 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`
8644 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8645 case $cputype in
8646 *750*) ax_gcc_arch="750 G3" ;;
8647 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8648 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8649 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8650 *970*) ax_gcc_arch="970 G5 power4";;
8651 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8652 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8653 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8654 *) ax_gcc_arch=$cputype ;;
8655 esac
8656 ax_gcc_arch="$ax_gcc_arch powerpc"
8657 ;;
8658esac
8659fi # not cross-compiling
8660fi # guess arch
8661
8662if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8663for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008664 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008665 flags="-mtune=$arch"
8666 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8667 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8668 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8669 else
8670 flags="-march=$arch -mcpu=$arch -m$arch"
8671 fi
8672 for flag in $flags; do
8673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8675$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8676if eval \${$as_CACHEVAR+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678else
8679
8680 ax_check_save_flags=$CFLAGS
8681 CFLAGS="$CFLAGS $flag"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h. */
8684
8685int
8686main ()
8687{
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"; then :
8694 eval "$as_CACHEVAR=yes"
8695else
8696 eval "$as_CACHEVAR=no"
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 CFLAGS=$ax_check_save_flags
8700fi
8701eval ac_res=\$$as_CACHEVAR
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8703$as_echo "$ac_res" >&6; }
8704if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8705 ax_cv_gcc_archflag=$flag; break
8706else
8707 :
8708fi
8709
8710 done
8711 test "x$ax_cv_gcc_archflag" = xunknown || break
8712done
8713fi
8714
8715fi # $GCC=yes
8716
8717fi
8718
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8720$as_echo_n "checking for gcc architecture flag... " >&6; }
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8722$as_echo "$ax_cv_gcc_archflag" >&6; }
8723if test "x$ax_cv_gcc_archflag" = xunknown; then
8724 :
8725else
8726 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8727fi
8728
8729
8730
cristy73bd4a52010-10-05 11:24:23 +00008731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8732 if test -n "$ac_tool_prefix"; then
8733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008737if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 case $PKG_CONFIG in
8741 [\\/]* | ?:[\\/]*)
8742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8743 ;;
8744 *)
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756done
8757 done
8758IFS=$as_save_IFS
8759
8760 ;;
8761esac
8762fi
8763PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8764if test -n "$PKG_CONFIG"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8766$as_echo "$PKG_CONFIG" >&6; }
8767else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
8770fi
8771
8772
8773fi
8774if test -z "$ac_cv_path_PKG_CONFIG"; then
8775 ac_pt_PKG_CONFIG=$PKG_CONFIG
8776 # Extract the first word of "pkg-config", so it can be a program name with args.
8777set dummy pkg-config; ac_word=$2
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008780if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008781 $as_echo_n "(cached) " >&6
8782else
8783 case $ac_pt_PKG_CONFIG in
8784 [\\/]* | ?:[\\/]*)
8785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8786 ;;
8787 *)
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789for as_dir in $PATH
8790do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008795 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799done
8800 done
8801IFS=$as_save_IFS
8802
8803 ;;
8804esac
8805fi
8806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8807if test -n "$ac_pt_PKG_CONFIG"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8809$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815 if test "x$ac_pt_PKG_CONFIG" = x; then
8816 PKG_CONFIG=""
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824 PKG_CONFIG=$ac_pt_PKG_CONFIG
8825 fi
8826else
8827 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8828fi
8829
8830fi
8831if test -n "$PKG_CONFIG"; then
8832 _pkg_min_version=0.9.0
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8834$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8835 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841 PKG_CONFIG=""
8842 fi
8843
8844fi
cristy3ed852e2009-09-05 21:47:34 +00008845
cristy9b86f202012-11-28 21:55:35 +00008846# Check for linker script support
8847
8848 # Check whether --enable-ld-version-script was given.
8849if test "${enable_ld_version_script+set}" = set; then :
8850 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8851fi
8852
8853 if test -z "$have_ld_version_script"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8855$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8856 save_LDFLAGS="$LDFLAGS"
8857 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8858 cat > conftest.map <<EOF
8859foo
8860EOF
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h. */
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872if ac_fn_c_try_link "$LINENO"; then :
8873 accepts_syntax_errors=yes
8874else
8875 accepts_syntax_errors=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 if test "$accepts_syntax_errors" = no; then
8880 cat > conftest.map <<EOF
8881VERS_1 {
8882 global: sym;
8883};
8884
8885VERS_2 {
8886 global: sym;
8887} VERS_1;
8888EOF
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h. */
8891
8892int
8893main ()
8894{
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_link "$LINENO"; then :
8901 have_ld_version_script=yes
8902else
8903 have_ld_version_script=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 else
8908 have_ld_version_script=no
8909 fi
8910 rm -f conftest.map
8911 LDFLAGS="$save_LDFLAGS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8913$as_echo "$have_ld_version_script" >&6; }
8914 fi
8915 if test "$have_ld_version_script" = "yes"; then
8916 HAVE_LD_VERSION_SCRIPT_TRUE=
8917 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8918else
8919 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8920 HAVE_LD_VERSION_SCRIPT_FALSE=
8921fi
8922
8923
8924
cristy3ed852e2009-09-05 21:47:34 +00008925#
cristy3ed852e2009-09-05 21:47:34 +00008926# Enable run-time checking.
8927#
8928# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008929if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008930 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8931else
8932 enable_bounds_checking='no'
8933fi
8934
8935
8936if test "$enable_bounds_checking" = yes; then
8937
cristy8b350f62009-11-15 23:12:43 +00008938$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008939
8940fi
8941
8942#
8943# Tests for Windows
8944#
8945
8946
8947
8948GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008949native_win32_build='no'
8950cygwin_build='no'
8951case "${host_os}" in
8952 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008953 cygwin_build='yes'
8954 GDI32_LIBS='-lgdi32'
8955 ;;
8956 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008957 native_win32_build='yes'
8958 GDI32_LIBS='-lgdi32'
8959 ;;
8960esac
8961if test "${GDI32_LIBS}x" != 'x'; then
8962
cristy8b350f62009-11-15 23:12:43 +00008963$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008964
8965fi
8966
cristy73bd4a52010-10-05 11:24:23 +00008967 if test "${GDI32_LIBS}x" != 'x' ; then
8968 WINGDI32_DELEGATE_TRUE=
8969 WINGDI32_DELEGATE_FALSE='#'
8970else
8971 WINGDI32_DELEGATE_TRUE='#'
8972 WINGDI32_DELEGATE_FALSE=
8973fi
8974
8975 if test "${native_win32_build}" = 'yes' ; then
8976 WIN32_NATIVE_BUILD_TRUE=
8977 WIN32_NATIVE_BUILD_FALSE='#'
8978else
8979 WIN32_NATIVE_BUILD_TRUE='#'
8980 WIN32_NATIVE_BUILD_FALSE=
8981fi
8982
8983 if test "${cygwin_build}" = 'yes' ; then
8984 CYGWIN_BUILD_TRUE=
8985 CYGWIN_BUILD_FALSE='#'
8986else
8987 CYGWIN_BUILD_TRUE='#'
8988 CYGWIN_BUILD_FALSE=
8989fi
8990
8991 if test "x${CC}" = 'xcl.exe' ; then
8992 USING_CL_TRUE=
8993 USING_CL_FALSE='#'
8994else
8995 USING_CL_TRUE='#'
8996 USING_CL_FALSE=
8997fi
8998
cristy3ed852e2009-09-05 21:47:34 +00008999
9000WinPathScript="${srcdirfull}/winpath.sh"
9001
9002
9003#
9004# Compiler flags tweaks
9005#
9006if test "${GCC}" != "yes"; then
9007 case "${host}" in
9008 *-*-hpux* )
9009 # aCC: HP ANSI C++ B3910B A.03.34
9010 CFLAGS="${CFLAGS} -Wp,-H30000"
9011 if test -n "${CXXFLAGS}"; then
9012 CXXFLAGS='-AA'
9013 else
9014 CXXFLAGS="${CXXFLAGS} -AA"
9015 fi
9016 ;;
9017 *-dec-osf5.* )
9018 # Compaq alphaev68-dec-osf5.1 compiler
9019 if test -n "${CXXFLAGS}"; then
9020 CXXFLAGS='-std strict_ansi -noimplicit_include'
9021 else
9022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9023 fi
9024 esac
9025fi
9026
9027# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009029$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009030if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009031 $as_echo_n "(cached) " >&6
9032else
9033
9034im_cv_ld_lazyload='none'
9035case "${host}" in
9036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9038 im_cv_ld_lazyload='-Wl,-zlazyload'
9039 fi
9040 ;;
9041esac
9042
9043fi
cristy8b350f62009-11-15 23:12:43 +00009044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009045$as_echo "$im_cv_ld_lazyload" >&6; }
9046if test "${im_cv_ld_lazyload}" != 'none' ; then
9047 if test -z "${LDFLAGS}" ; then
9048 LDFLAGS="${im_cv_ld_lazyload}"
9049 else
9050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9051 fi
9052fi
9053
9054case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009055 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009056 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009057 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009058if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009059 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9060else
9061 build_osxuniversal=no
9062fi
9063
9064
cristyc37574e2013-02-16 01:04:55 +00009065 if test "${build_osxuniversal}" != no ; then
9066 if test "$enable_dependency_tracking" != no ; then
9067 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009068Please re-run configure with these options:
9069 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009070 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009071 fi
9072 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9073 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9074 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009075 fi
9076 ;;
9077esac
9078
cristy0151ae12011-10-28 16:32:29 +00009079#
9080# ARCH specific include directory
9081#
9082
cristy670aa3c2011-11-03 00:54:00 +00009083# Check whether --with-includearch-dir was given.
9084if test "${with_includearch_dir+set}" = set; then :
9085 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009086else
cristy670aa3c2011-11-03 00:54:00 +00009087 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009088fi
9089
9090
cristyd286fd72013-02-24 19:25:33 +00009091eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009092
cristy0151ae12011-10-28 16:32:29 +00009093
9094#
9095# ARCH specific configuration directory
9096#
9097
cristy670aa3c2011-11-03 00:54:00 +00009098# Check whether --with-sharearch-dir was given.
9099if test "${with_sharearch_dir+set}" = set; then :
9100 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009101else
cristy408ebcd2011-11-14 01:36:57 +00009102 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009103fi
9104
9105
cristy670aa3c2011-11-03 00:54:00 +00009106eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009107
cristy0151ae12011-10-28 16:32:29 +00009108
cristy2ec87cc2013-02-18 17:46:50 +00009109# Path to the pkgconfig folder
9110
9111# Check whether --with-pkgconfigdir was given.
9112if test "${with_pkgconfigdir+set}" = set; then :
9113 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9114else
9115 pkgconfigdir='${libdir}/pkgconfig'
9116fi
9117
9118
9119
cristy0151ae12011-10-28 16:32:29 +00009120#
cristy3ed852e2009-09-05 21:47:34 +00009121# Enable support for threads
9122
9123# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009124if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009125 withval=$with_threads; with_threads=$withval
9126else
9127 with_threads='yes'
9128fi
9129
9130
9131have_threads=no
9132if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009133
9134
cristy73bd4a52010-10-05 11:24:23 +00009135ac_ext=c
9136ac_cpp='$CPP $CPPFLAGS'
9137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140
9141ax_pthread_ok=no
9142
9143# We used to check for pthread.h first, but this fails if pthread.h
9144# requires special compiler flags (e.g. on True64 or Sequent).
9145# It gets checked for in the link test anyway.
9146
9147# First of all, check if the user has set any of the PTHREAD_LIBS,
9148# etcetera environment variables, and if threads linking works using
9149# them:
9150if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9151 save_CFLAGS="$CFLAGS"
9152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9153 save_LIBS="$LIBS"
9154 LIBS="$PTHREAD_LIBS $LIBS"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9156$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h. */
9159
9160/* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9163#ifdef __cplusplus
9164extern "C"
9165#endif
9166char pthread_join ();
9167int
9168main ()
9169{
9170return pthread_join ();
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176 ax_pthread_ok=yes
9177fi
9178rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9181$as_echo "$ax_pthread_ok" >&6; }
9182 if test x"$ax_pthread_ok" = xno; then
9183 PTHREAD_LIBS=""
9184 PTHREAD_CFLAGS=""
9185 fi
9186 LIBS="$save_LIBS"
9187 CFLAGS="$save_CFLAGS"
9188fi
9189
9190# We must check for the threads library under a number of different
9191# names; the ordering is very important because some systems
9192# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9193# libraries is broken (non-POSIX).
9194
9195# Create a list of thread flags to try. Items starting with a "-" are
9196# C compiler flags, and other items are library names, except for "none"
9197# which indicates that we try without any flags at all, and "pthread-config"
9198# which is a program returning the flags for the Pth emulation library.
9199
cristy2ec87cc2013-02-18 17:46:50 +00009200ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009201
9202# The ordering *is* (sometimes) important. Some notes on the
9203# individual items follow:
9204
9205# pthreads: AIX (must check this before -lpthread)
9206# none: in case threads are in libc; should be tried before -Kthread and
9207# other compiler flags to prevent continual compiler warnings
9208# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9209# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9210# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9211# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9212# -pthreads: Solaris/gcc
9213# -mthreads: Mingw32/gcc, Lynx/gcc
9214# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9215# doesn't hurt to check since this sometimes defines pthreads too;
9216# also defines -D_REENTRANT)
9217# ... -mt is also the pthreads flag for HP/aCC
9218# pthread: Linux, etcetera
9219# --thread-safe: KAI C++
9220# pthread-config: use pthread-config program (for GNU Pth library)
9221
cristy2ec87cc2013-02-18 17:46:50 +00009222case ${host_os} in
9223 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009224
9225 # On Solaris (at least, for some versions), libc contains stubbed
9226 # (non-functional) versions of the pthreads routines, so link-based
9227 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9228 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9229 # a function called by this macro, so we could check for that, but
9230 # who knows whether they'll stub that too in a future libc.) So,
9231 # we'll just look for -pthreads and -lpthread first:
9232
9233 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9234 ;;
9235
cristy2ec87cc2013-02-18 17:46:50 +00009236 darwin*)
cristya316db12011-10-24 00:49:45 +00009237 ax_pthread_flags="-pthread $ax_pthread_flags"
9238 ;;
cristy73bd4a52010-10-05 11:24:23 +00009239esac
9240
9241if test x"$ax_pthread_ok" = xno; then
9242for flag in $ax_pthread_flags; do
9243
9244 case $flag in
9245 none)
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9247$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9248 ;;
9249
9250 -*)
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9252$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9253 PTHREAD_CFLAGS="$flag"
9254 ;;
9255
cristya316db12011-10-24 00:49:45 +00009256 pthread-config)
9257 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009258set dummy pthread-config; ac_word=$2
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009261if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 if test -n "$ax_pthread_config"; then
9265 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009274 ac_cv_prog_ax_pthread_config="yes"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278done
9279 done
9280IFS=$as_save_IFS
9281
9282 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9283fi
9284fi
9285ax_pthread_config=$ac_cv_prog_ax_pthread_config
9286if test -n "$ax_pthread_config"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9288$as_echo "$ax_pthread_config" >&6; }
9289else
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
9292fi
9293
9294
cristya316db12011-10-24 00:49:45 +00009295 if test x"$ax_pthread_config" = xno; then continue; fi
9296 PTHREAD_CFLAGS="`pthread-config --cflags`"
9297 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9298 ;;
cristy73bd4a52010-10-05 11:24:23 +00009299
9300 *)
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9302$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9303 PTHREAD_LIBS="-l$flag"
9304 ;;
9305 esac
9306
9307 save_LIBS="$LIBS"
9308 save_CFLAGS="$CFLAGS"
9309 LIBS="$PTHREAD_LIBS $LIBS"
9310 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9311
9312 # Check for various functions. We must include pthread.h,
9313 # since some functions may be macros. (On the Sequent, we
9314 # need a special flag -Kthread to make this header compile.)
9315 # We check for pthread_join because it is in -lpthread on IRIX
9316 # while pthread_create is in libc. We check for pthread_attr_init
9317 # due to DEC craziness with -lpthreads. We check for
9318 # pthread_cleanup_push because it is one of the few pthread
9319 # functions on Solaris that doesn't have a non-functional libc stub.
9320 # We try pthread_create on general principles.
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h. */
9323#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009324 static void routine(void *a) { a = 0; }
9325 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009326int
9327main ()
9328{
9329pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009330 pthread_create(&th, 0, start_routine, 0);
9331 pthread_join(th, 0);
9332 pthread_attr_init(&attr);
9333 pthread_cleanup_push(routine, 0);
9334 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009335 ;
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
9345 LIBS="$save_LIBS"
9346 CFLAGS="$save_CFLAGS"
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9349$as_echo "$ax_pthread_ok" >&6; }
9350 if test "x$ax_pthread_ok" = xyes; then
9351 break;
9352 fi
9353
9354 PTHREAD_LIBS=""
9355 PTHREAD_CFLAGS=""
9356done
9357fi
9358
9359# Various other checks:
9360if test "x$ax_pthread_ok" = xyes; then
9361 save_LIBS="$LIBS"
9362 LIBS="$PTHREAD_LIBS $LIBS"
9363 save_CFLAGS="$CFLAGS"
9364 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9365
9366 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009368$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009369 attr_name=unknown
9370 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009372/* end confdefs.h. */
9373#include <pthread.h>
9374int
9375main ()
9376{
cristya316db12011-10-24 00:49:45 +00009377int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009378 ;
9379 return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then :
9383 attr_name=$attr; break
9384fi
9385rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009387 done
cristy73bd4a52010-10-05 11:24:23 +00009388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9389$as_echo "$attr_name" >&6; }
9390 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9391
9392cat >>confdefs.h <<_ACEOF
9393#define PTHREAD_CREATE_JOINABLE $attr_name
9394_ACEOF
9395
9396 fi
9397
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9399$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9400 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009401 case ${host_os} in
9402 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9403 osf* | hpux*) flag="-D_REENTRANT";;
9404 solaris*)
9405 if test "$GCC" = "yes"; then
9406 flag="-D_REENTRANT"
9407 else
9408 flag="-mt -D_REENTRANT"
9409 fi
9410 ;;
cristy73bd4a52010-10-05 11:24:23 +00009411 esac
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9413$as_echo "${flag}" >&6; }
9414 if test "x$flag" != xno; then
9415 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9416 fi
9417
cristya316db12011-10-24 00:49:45 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9419$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9420if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422else
9423
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h. */
9426
9427 #include <pthread.h>
9428int
9429main ()
9430{
9431int i = PTHREAD_PRIO_INHERIT;
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436if ac_fn_c_try_link "$LINENO"; then :
9437 ax_cv_PTHREAD_PRIO_INHERIT=yes
9438else
9439 ax_cv_PTHREAD_PRIO_INHERIT=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9446$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9447 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9448
9449$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9450
9451fi
9452
cristy73bd4a52010-10-05 11:24:23 +00009453 LIBS="$save_LIBS"
9454 CFLAGS="$save_CFLAGS"
9455
cristy23493c42013-04-11 16:04:59 +00009456 # More AIX lossage: compile with *_r variant
9457 if test "x$GCC" != xyes; then
9458 case $host_os in
9459 aix*)
9460 case "x/$CC" in #(
9461 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9462 #handle absolute path differently from PATH based program lookup
9463 case "x$CC" in #(
9464 x/*) :
9465 if as_fn_executable_p ${CC}_r; then :
9466 PTHREAD_CC="${CC}_r"
9467fi ;; #(
9468 *) :
9469 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009470do
9471 # Extract the first word of "$ac_prog", so it can be a program name with args.
9472set dummy $ac_prog; ac_word=$2
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009475if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009476 $as_echo_n "(cached) " >&6
9477else
9478 if test -n "$PTHREAD_CC"; then
9479 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
9486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009488 ac_cv_prog_PTHREAD_CC="$ac_prog"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 break 2
9491 fi
9492done
9493 done
9494IFS=$as_save_IFS
9495
9496fi
9497fi
9498PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9499if test -n "$PTHREAD_CC"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9501$as_echo "$PTHREAD_CC" >&6; }
9502else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505fi
9506
9507
9508 test -n "$PTHREAD_CC" && break
9509done
cristy23493c42013-04-11 16:04:59 +00009510test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9511 ;;
9512esac ;; #(
9513 *) :
9514 ;;
9515esac
9516 ;;
9517 esac
cristya316db12011-10-24 00:49:45 +00009518 fi
cristy73bd4a52010-10-05 11:24:23 +00009519fi
9520
cristy23493c42013-04-11 16:04:59 +00009521test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9522
cristy73bd4a52010-10-05 11:24:23 +00009523
9524
9525
9526
9527# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9528if test x"$ax_pthread_ok" = xyes; then
9529
9530$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9531
9532 :
9533else
9534 ax_pthread_ok=no
9535
9536fi
9537ac_ext=c
9538ac_cpp='$CPP $CPPFLAGS'
9539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541ac_compiler_gnu=$ac_cv_c_compiler_gnu
9542
9543
cristy7acf8fb2010-09-23 19:58:53 +00009544 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009545 have_threads=yes
9546 DEF_THREAD="$PTHREAD_CFLAGS"
9547 CFLAGS="$CFLAGS $DEF_THREAD"
9548 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9549 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009550 { $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 +00009551$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9552 CC="$PTHREAD_CC"
9553 fi
cristy55bf91c2010-09-24 00:29:41 +00009554
9555$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9556
cristy3ed852e2009-09-05 21:47:34 +00009557 fi
9558fi
9559
9560# Enable support for OpenMP
9561if test "$have_threads" != 'yes'; then
9562 ac_cv_prog_c_openmp=unsupported
9563fi
9564
9565 OPENMP_CFLAGS=
9566 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009567if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009568 enableval=$enable_openmp;
9569fi
9570
9571 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009573$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009574if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009575 $as_echo_n "(cached) " >&6
9576else
cristy8b350f62009-11-15 23:12:43 +00009577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009579
9580#ifndef _OPENMP
9581 choke me
9582#endif
9583#include <omp.h>
9584int main () { return omp_get_num_threads (); }
9585
9586_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009588 ac_cv_prog_c_openmp='none needed'
9589else
cristy8b350f62009-11-15 23:12:43 +00009590 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009591 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9592 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009593 ac_save_CFLAGS=$CFLAGS
9594 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009597
9598#ifndef _OPENMP
9599 choke me
9600#endif
9601#include <omp.h>
9602int main () { return omp_get_num_threads (); }
9603
9604_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009606 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009607fi
cristy8b350f62009-11-15 23:12:43 +00009608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009610 CFLAGS=$ac_save_CFLAGS
9611 if test "$ac_cv_prog_c_openmp" != unsupported; then
9612 break
9613 fi
9614 done
9615fi
cristy8b350f62009-11-15 23:12:43 +00009616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009618fi
cristy8b350f62009-11-15 23:12:43 +00009619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009620$as_echo "$ac_cv_prog_c_openmp" >&6; }
9621 case $ac_cv_prog_c_openmp in #(
9622 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009623 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009624 *)
cristy8b350f62009-11-15 23:12:43 +00009625 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009626 esac
9627 fi
9628
9629
9630CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9631MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9632
cristy391f1ce2010-09-09 17:23:28 +00009633if test "$enable_openmp" != no; then
9634 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9635 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9636 fi
9637fi
cristy3ed852e2009-09-05 21:47:34 +00009638
cristy736173a2009-09-20 21:18:22 +00009639# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009640
9641
cristy73bd4a52010-10-05 11:24:23 +00009642ac_ext=c
9643ac_cpp='$CPP $CPPFLAGS'
9644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647
9648ax_pthread_ok=no
9649
9650# We used to check for pthread.h first, but this fails if pthread.h
9651# requires special compiler flags (e.g. on True64 or Sequent).
9652# It gets checked for in the link test anyway.
9653
9654# First of all, check if the user has set any of the PTHREAD_LIBS,
9655# etcetera environment variables, and if threads linking works using
9656# them:
9657if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9658 save_CFLAGS="$CFLAGS"
9659 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9660 save_LIBS="$LIBS"
9661 LIBS="$PTHREAD_LIBS $LIBS"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9663$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h. */
9666
9667/* Override any GCC internal prototype to avoid an error.
9668 Use char because int might match the return type of a GCC
9669 builtin and then its argument prototype would still apply. */
9670#ifdef __cplusplus
9671extern "C"
9672#endif
9673char pthread_join ();
9674int
9675main ()
9676{
9677return pthread_join ();
9678 ;
9679 return 0;
9680}
9681_ACEOF
9682if ac_fn_c_try_link "$LINENO"; then :
9683 ax_pthread_ok=yes
9684fi
9685rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9688$as_echo "$ax_pthread_ok" >&6; }
9689 if test x"$ax_pthread_ok" = xno; then
9690 PTHREAD_LIBS=""
9691 PTHREAD_CFLAGS=""
9692 fi
9693 LIBS="$save_LIBS"
9694 CFLAGS="$save_CFLAGS"
9695fi
9696
9697# We must check for the threads library under a number of different
9698# names; the ordering is very important because some systems
9699# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9700# libraries is broken (non-POSIX).
9701
9702# Create a list of thread flags to try. Items starting with a "-" are
9703# C compiler flags, and other items are library names, except for "none"
9704# which indicates that we try without any flags at all, and "pthread-config"
9705# which is a program returning the flags for the Pth emulation library.
9706
cristy2ec87cc2013-02-18 17:46:50 +00009707ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009708
9709# The ordering *is* (sometimes) important. Some notes on the
9710# individual items follow:
9711
9712# pthreads: AIX (must check this before -lpthread)
9713# none: in case threads are in libc; should be tried before -Kthread and
9714# other compiler flags to prevent continual compiler warnings
9715# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9716# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9717# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9718# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9719# -pthreads: Solaris/gcc
9720# -mthreads: Mingw32/gcc, Lynx/gcc
9721# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9722# doesn't hurt to check since this sometimes defines pthreads too;
9723# also defines -D_REENTRANT)
9724# ... -mt is also the pthreads flag for HP/aCC
9725# pthread: Linux, etcetera
9726# --thread-safe: KAI C++
9727# pthread-config: use pthread-config program (for GNU Pth library)
9728
cristy2ec87cc2013-02-18 17:46:50 +00009729case ${host_os} in
9730 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009731
9732 # On Solaris (at least, for some versions), libc contains stubbed
9733 # (non-functional) versions of the pthreads routines, so link-based
9734 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9735 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9736 # a function called by this macro, so we could check for that, but
9737 # who knows whether they'll stub that too in a future libc.) So,
9738 # we'll just look for -pthreads and -lpthread first:
9739
9740 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9741 ;;
9742
cristy2ec87cc2013-02-18 17:46:50 +00009743 darwin*)
cristya316db12011-10-24 00:49:45 +00009744 ax_pthread_flags="-pthread $ax_pthread_flags"
9745 ;;
cristy73bd4a52010-10-05 11:24:23 +00009746esac
9747
9748if test x"$ax_pthread_ok" = xno; then
9749for flag in $ax_pthread_flags; do
9750
9751 case $flag in
9752 none)
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9754$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9755 ;;
9756
9757 -*)
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9759$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9760 PTHREAD_CFLAGS="$flag"
9761 ;;
9762
cristya316db12011-10-24 00:49:45 +00009763 pthread-config)
9764 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009765set dummy pthread-config; ac_word=$2
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009768if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009769 $as_echo_n "(cached) " >&6
9770else
9771 if test -n "$ax_pthread_config"; then
9772 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9773else
9774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775for as_dir in $PATH
9776do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009781 ac_cv_prog_ax_pthread_config="yes"
9782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785done
9786 done
9787IFS=$as_save_IFS
9788
9789 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9790fi
9791fi
9792ax_pthread_config=$ac_cv_prog_ax_pthread_config
9793if test -n "$ax_pthread_config"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9795$as_echo "$ax_pthread_config" >&6; }
9796else
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798$as_echo "no" >&6; }
9799fi
9800
9801
cristya316db12011-10-24 00:49:45 +00009802 if test x"$ax_pthread_config" = xno; then continue; fi
9803 PTHREAD_CFLAGS="`pthread-config --cflags`"
9804 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9805 ;;
cristy73bd4a52010-10-05 11:24:23 +00009806
9807 *)
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9809$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9810 PTHREAD_LIBS="-l$flag"
9811 ;;
9812 esac
9813
9814 save_LIBS="$LIBS"
9815 save_CFLAGS="$CFLAGS"
9816 LIBS="$PTHREAD_LIBS $LIBS"
9817 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9818
9819 # Check for various functions. We must include pthread.h,
9820 # since some functions may be macros. (On the Sequent, we
9821 # need a special flag -Kthread to make this header compile.)
9822 # We check for pthread_join because it is in -lpthread on IRIX
9823 # while pthread_create is in libc. We check for pthread_attr_init
9824 # due to DEC craziness with -lpthreads. We check for
9825 # pthread_cleanup_push because it is one of the few pthread
9826 # functions on Solaris that doesn't have a non-functional libc stub.
9827 # We try pthread_create on general principles.
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h. */
9830#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009831 static void routine(void *a) { a = 0; }
9832 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009833int
9834main ()
9835{
9836pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009837 pthread_create(&th, 0, start_routine, 0);
9838 pthread_join(th, 0);
9839 pthread_attr_init(&attr);
9840 pthread_cleanup_push(routine, 0);
9841 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009842 ;
9843 return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_link "$LINENO"; then :
9847 ax_pthread_ok=yes
9848fi
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851
9852 LIBS="$save_LIBS"
9853 CFLAGS="$save_CFLAGS"
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9856$as_echo "$ax_pthread_ok" >&6; }
9857 if test "x$ax_pthread_ok" = xyes; then
9858 break;
9859 fi
9860
9861 PTHREAD_LIBS=""
9862 PTHREAD_CFLAGS=""
9863done
9864fi
9865
9866# Various other checks:
9867if test "x$ax_pthread_ok" = xyes; then
9868 save_LIBS="$LIBS"
9869 LIBS="$PTHREAD_LIBS $LIBS"
9870 save_CFLAGS="$CFLAGS"
9871 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9872
9873 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009875$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009876 attr_name=unknown
9877 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009879/* end confdefs.h. */
9880#include <pthread.h>
9881int
9882main ()
9883{
cristya316db12011-10-24 00:49:45 +00009884int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009885 ;
9886 return 0;
9887}
9888_ACEOF
9889if ac_fn_c_try_link "$LINENO"; then :
9890 attr_name=$attr; break
9891fi
9892rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009894 done
cristy73bd4a52010-10-05 11:24:23 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9896$as_echo "$attr_name" >&6; }
9897 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9898
9899cat >>confdefs.h <<_ACEOF
9900#define PTHREAD_CREATE_JOINABLE $attr_name
9901_ACEOF
9902
9903 fi
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9906$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9907 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009908 case ${host_os} in
9909 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9910 osf* | hpux*) flag="-D_REENTRANT";;
9911 solaris*)
9912 if test "$GCC" = "yes"; then
9913 flag="-D_REENTRANT"
9914 else
9915 flag="-mt -D_REENTRANT"
9916 fi
9917 ;;
cristy73bd4a52010-10-05 11:24:23 +00009918 esac
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9920$as_echo "${flag}" >&6; }
9921 if test "x$flag" != xno; then
9922 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9923 fi
9924
cristya316db12011-10-24 00:49:45 +00009925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9926$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9927if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929else
9930
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h. */
9933
9934 #include <pthread.h>
9935int
9936main ()
9937{
9938int i = PTHREAD_PRIO_INHERIT;
9939 ;
9940 return 0;
9941}
9942_ACEOF
9943if ac_fn_c_try_link "$LINENO"; then :
9944 ax_cv_PTHREAD_PRIO_INHERIT=yes
9945else
9946 ax_cv_PTHREAD_PRIO_INHERIT=no
9947fi
9948rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950
9951fi
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9953$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9954 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9955
9956$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9957
9958fi
9959
cristy73bd4a52010-10-05 11:24:23 +00009960 LIBS="$save_LIBS"
9961 CFLAGS="$save_CFLAGS"
9962
cristy23493c42013-04-11 16:04:59 +00009963 # More AIX lossage: compile with *_r variant
9964 if test "x$GCC" != xyes; then
9965 case $host_os in
9966 aix*)
9967 case "x/$CC" in #(
9968 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9969 #handle absolute path differently from PATH based program lookup
9970 case "x$CC" in #(
9971 x/*) :
9972 if as_fn_executable_p ${CC}_r; then :
9973 PTHREAD_CC="${CC}_r"
9974fi ;; #(
9975 *) :
9976 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009977do
9978 # Extract the first word of "$ac_prog", so it can be a program name with args.
9979set dummy $ac_prog; ac_word=$2
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009982if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009983 $as_echo_n "(cached) " >&6
9984else
9985 if test -n "$PTHREAD_CC"; then
9986 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9987else
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009995 ac_cv_prog_PTHREAD_CC="$ac_prog"
9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9998 fi
9999done
10000 done
10001IFS=$as_save_IFS
10002
10003fi
10004fi
10005PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10006if test -n "$PTHREAD_CC"; then
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10008$as_echo "$PTHREAD_CC" >&6; }
10009else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
10012fi
10013
10014
10015 test -n "$PTHREAD_CC" && break
10016done
cristy23493c42013-04-11 16:04:59 +000010017test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10018 ;;
10019esac ;; #(
10020 *) :
10021 ;;
10022esac
10023 ;;
10024 esac
cristya316db12011-10-24 00:49:45 +000010025 fi
cristy73bd4a52010-10-05 11:24:23 +000010026fi
10027
cristy23493c42013-04-11 16:04:59 +000010028test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10029
cristy73bd4a52010-10-05 11:24:23 +000010030
10031
10032
10033
10034# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10035if test x"$ax_pthread_ok" = xyes; then
10036
10037$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10038
10039 :
10040else
10041 ax_pthread_ok=no
10042
10043fi
10044ac_ext=c
10045ac_cpp='$CPP $CPPFLAGS'
10046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10048ac_compiler_gnu=$ac_cv_c_compiler_gnu
10049
10050
10051
10052# Check whether --enable-opencl was given.
10053if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010054 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010055else
cristy48794642012-09-02 15:19:08 +000010056 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010057fi
10058
10059
cristy48794642012-09-02 15:19:08 +000010060if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010061 ac_ext=c
10062ac_cpp='$CPP $CPPFLAGS'
10063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065ac_compiler_gnu=$ac_cv_c_compiler_gnu
10066
cristy75314cc2012-09-15 23:08:29 +000010067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10068$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10069if ${ax_cv_c_compiler_ms+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071else
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h. */
10074
10075int
10076main ()
10077{
10078#ifndef _MSC_VER
10079 choke me
10080#endif
10081
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086if ac_fn_c_try_compile "$LINENO"; then :
10087 ax_compiler_ms=yes
10088else
10089 ax_compiler_ms=no
10090fi
10091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092ax_cv_c_compiler_ms=$ax_compiler_ms
10093
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10096$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010097 if test X$ax_compiler_ms = Xno; then :
10098 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10099fi
10100
10101 ax_save_CPPFLAGS=$CPPFLAGS
10102 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10103 for ac_header in CL/cl.h OpenCL/cl.h
10104do :
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010108 cat >>confdefs.h <<_ACEOF
10109#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10110_ACEOF
10111
10112fi
10113
10114done
10115
10116 CPPFLAGS=$ax_save_CPPFLAGS
10117
10118 for ac_header in windows.h
10119do :
10120 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010121if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010122 cat >>confdefs.h <<_ACEOF
10123#define HAVE_WINDOWS_H 1
10124_ACEOF
10125
10126fi
10127
10128done
10129
10130
10131
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10134$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010135if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010136 $as_echo_n "(cached) " >&6
10137else
10138 ax_cv_check_cl_libcl=no
10139 case $host_cpu in
10140 x86_64) ax_check_cl_libdir=lib64 ;;
10141 *) ax_check_cl_libdir=lib ;;
10142 esac
10143 ax_save_CPPFLAGS=$CPPFLAGS
10144 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10145 ax_save_LIBS=$LIBS
10146 LIBS=""
10147 ax_check_libs="-lOpenCL -lCL -lclparser"
10148 for ax_lib in $ax_check_libs; do
10149 if test X$ax_compiler_ms = Xyes; then :
10150 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10151else
10152 ax_try_lib=$ax_lib
10153fi
10154 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h. */
10157
10158 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10159 # include <windows.h>
10160 # endif
10161 # ifdef HAVE_CL_CL_H
10162 # include <CL/cl.h>
10163 # elif defined(HAVE_OPENCL_CL_H)
10164 # include <OpenCL/cl.h>
10165 # else
10166 # error no CL.h
10167 # endif
10168int
10169main ()
10170{
10171clCreateContextFromType(0,0,0,0,0)
10172 ;
10173 return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_link "$LINENO"; then :
10177 ax_cv_check_cl_libcl=$ax_try_lib; break
10178else
10179 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"
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h. */
10182
10183 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10184 # include <windows.h>
10185 # endif
10186 # ifdef HAVE_CL_CL_H
10187 # include <CL/cl.h>
10188 # elif defined(HAVE_OPENCL_CL_H)
10189 # include <OpenCL/cl.h>
10190 # else
10191 # error no CL.h
10192 # endif
10193int
10194main ()
10195{
10196clCreateContextFromType(0,0,0,0,0)
10197 ;
10198 return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_link "$LINENO"; then :
10202 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10203else
cristy78c5a0c2010-12-04 20:00:59 +000010204 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 +000010205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h. */
10207
10208 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10209 # include <windows.h>
10210 # endif
10211 # ifdef HAVE_CL_CL_H
10212 # include <CL/cl.h>
10213 # elif defined(HAVE_OPENCL_CL_H)
10214 # include <OpenCL/cl.h>
10215 # else
10216 # error no CL.h
10217 # endif
10218int
10219main ()
10220{
10221clCreateContextFromType(0,0,0,0,0)
10222 ;
10223 return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"; then :
10227 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10228fi
10229rm -f core conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231fi
10232rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 done
10238
cristyc3f8b8e2011-12-22 14:55:16 +000010239 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010240 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h. */
10243
10244 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10245 # include <windows.h>
10246 # endif
10247 # ifdef HAVE_CL_CL_H
10248 # include <CL/cl.h>
10249 # elif defined(HAVE_OPENCL_CL_H)
10250 # include <OpenCL/cl.h>
10251 # else
10252 # error no CL.h
10253 # endif
10254int
10255main ()
10256{
10257clCreateContextFromType(0,0,0,0,0)
10258 ;
10259 return 0;
10260}
10261_ACEOF
10262if ac_fn_c_try_link "$LINENO"; then :
10263 ax_cv_check_cl_libcl=$LIBS
10264fi
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267fi
10268
10269 LIBS=$ax_save_LIBS
10270 CPPFLAGS=$ax_save_CPPFLAGS
10271fi
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10273$as_echo "$ax_cv_check_cl_libcl" >&6; }
10274
10275 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10276 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10277else
10278 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10279$as_echo "#define _OPENCL 1" >>confdefs.h
10280
10281fi
10282 ac_ext=c
10283ac_cpp='$CPP $CPPFLAGS'
10284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10286ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287
10288fi
10289
10290
10291
10292
cristyc7083c12009-10-14 03:16:55 +000010293CFLAGS="$CL_CFLAGS $CFLAGS"
10294LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010295
cristy391f1ce2010-09-09 17:23:28 +000010296if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010297 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010298 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10299 fi
cristyfd9dcd42010-08-08 18:07:02 +000010300fi
cristy2e8b51d2009-10-17 18:26:15 +000010301
cristy3ed852e2009-09-05 21:47:34 +000010302########
10303#
10304# Check for large file support
10305#
10306########
10307# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010308if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010309 enableval=$enable_largefile;
10310fi
10311
10312if test "$enable_largefile" != no; then
10313
cristy8b350f62009-11-15 23:12:43 +000010314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010315$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010316if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010317 $as_echo_n "(cached) " >&6
10318else
10319 ac_cv_sys_largefile_CC=no
10320 if test "$GCC" != yes; then
10321 ac_save_CC=$CC
10322 while :; do
10323 # IRIX 6.2 and later do not support large files by default,
10324 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010326/* end confdefs.h. */
10327#include <sys/types.h>
10328 /* Check that off_t can represent 2**63 - 1 correctly.
10329 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10330 since some C++ compilers masquerading as C compilers
10331 incorrectly reject 9223372036854775807. */
10332#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10334 && LARGE_OFF_T % 2147483647 == 1)
10335 ? 1 : -1];
10336int
10337main ()
10338{
10339
10340 ;
10341 return 0;
10342}
10343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010344 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010345 break
cristy3ed852e2009-09-05 21:47:34 +000010346fi
cristy3ed852e2009-09-05 21:47:34 +000010347rm -f core conftest.err conftest.$ac_objext
10348 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010349 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010350 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010351fi
cristy3ed852e2009-09-05 21:47:34 +000010352rm -f core conftest.err conftest.$ac_objext
10353 break
10354 done
10355 CC=$ac_save_CC
10356 rm -f conftest.$ac_ext
10357 fi
10358fi
cristy8b350f62009-11-15 23:12:43 +000010359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10361 if test "$ac_cv_sys_largefile_CC" != no; then
10362 CC=$CC$ac_cv_sys_largefile_CC
10363 fi
10364
cristy8b350f62009-11-15 23:12:43 +000010365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010366$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010367if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010368 $as_echo_n "(cached) " >&6
10369else
10370 while :; do
cristy8b350f62009-11-15 23:12:43 +000010371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010372/* end confdefs.h. */
10373#include <sys/types.h>
10374 /* Check that off_t can represent 2**63 - 1 correctly.
10375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10376 since some C++ compilers masquerading as C compilers
10377 incorrectly reject 9223372036854775807. */
10378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10380 && LARGE_OFF_T % 2147483647 == 1)
10381 ? 1 : -1];
10382int
10383main ()
10384{
10385
10386 ;
10387 return 0;
10388}
10389_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010390if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010391 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010392fi
cristy3ed852e2009-09-05 21:47:34 +000010393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010395/* end confdefs.h. */
10396#define _FILE_OFFSET_BITS 64
10397#include <sys/types.h>
10398 /* Check that off_t can represent 2**63 - 1 correctly.
10399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10400 since some C++ compilers masquerading as C compilers
10401 incorrectly reject 9223372036854775807. */
10402#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10404 && LARGE_OFF_T % 2147483647 == 1)
10405 ? 1 : -1];
10406int
10407main ()
10408{
10409
10410 ;
10411 return 0;
10412}
10413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010415 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010416fi
cristy3ed852e2009-09-05 21:47:34 +000010417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 ac_cv_sys_file_offset_bits=unknown
10419 break
10420done
10421fi
cristy8b350f62009-11-15 23:12:43 +000010422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010423$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10424case $ac_cv_sys_file_offset_bits in #(
10425 no | unknown) ;;
10426 *)
10427cat >>confdefs.h <<_ACEOF
10428#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10429_ACEOF
10430;;
10431esac
10432rm -rf conftest*
10433 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010435$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010436if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010437 $as_echo_n "(cached) " >&6
10438else
10439 while :; do
cristy8b350f62009-11-15 23:12:43 +000010440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010441/* end confdefs.h. */
10442#include <sys/types.h>
10443 /* Check that off_t can represent 2**63 - 1 correctly.
10444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10445 since some C++ compilers masquerading as C compilers
10446 incorrectly reject 9223372036854775807. */
10447#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10449 && LARGE_OFF_T % 2147483647 == 1)
10450 ? 1 : -1];
10451int
10452main ()
10453{
10454
10455 ;
10456 return 0;
10457}
10458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010459if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010460 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010461fi
cristy3ed852e2009-09-05 21:47:34 +000010462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010464/* end confdefs.h. */
10465#define _LARGE_FILES 1
10466#include <sys/types.h>
10467 /* Check that off_t can represent 2**63 - 1 correctly.
10468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10469 since some C++ compilers masquerading as C compilers
10470 incorrectly reject 9223372036854775807. */
10471#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10473 && LARGE_OFF_T % 2147483647 == 1)
10474 ? 1 : -1];
10475int
10476main ()
10477{
10478
10479 ;
10480 return 0;
10481}
10482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010484 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010485fi
cristy3ed852e2009-09-05 21:47:34 +000010486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 ac_cv_sys_large_files=unknown
10488 break
10489done
10490fi
cristy8b350f62009-11-15 23:12:43 +000010491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010492$as_echo "$ac_cv_sys_large_files" >&6; }
10493case $ac_cv_sys_large_files in #(
10494 no | unknown) ;;
10495 *)
10496cat >>confdefs.h <<_ACEOF
10497#define _LARGE_FILES $ac_cv_sys_large_files
10498_ACEOF
10499;;
10500esac
10501rm -rf conftest*
10502 fi
cristy14fefe52012-05-21 00:59:18 +000010503
10504
cristy3ed852e2009-09-05 21:47:34 +000010505fi
10506
cristy8b350f62009-11-15 23:12:43 +000010507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010508$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010509if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010510 $as_echo_n "(cached) " >&6
10511else
10512 while :; do
cristy8b350f62009-11-15 23:12:43 +000010513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010514/* end confdefs.h. */
10515#include <sys/types.h> /* for off_t */
10516 #include <stdio.h>
10517int
10518main ()
10519{
10520int (*fp) (FILE *, off_t, int) = fseeko;
10521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10522 ;
10523 return 0;
10524}
10525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010527 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010528fi
cristy8b350f62009-11-15 23:12:43 +000010529rm -f core conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010532/* end confdefs.h. */
10533#define _LARGEFILE_SOURCE 1
10534#include <sys/types.h> /* for off_t */
10535 #include <stdio.h>
10536int
10537main ()
10538{
10539int (*fp) (FILE *, off_t, int) = fseeko;
10540 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10541 ;
10542 return 0;
10543}
10544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010546 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010547fi
cristy8b350f62009-11-15 23:12:43 +000010548rm -f core conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010550 ac_cv_sys_largefile_source=unknown
10551 break
10552done
10553fi
cristy8b350f62009-11-15 23:12:43 +000010554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010555$as_echo "$ac_cv_sys_largefile_source" >&6; }
10556case $ac_cv_sys_largefile_source in #(
10557 no | unknown) ;;
10558 *)
10559cat >>confdefs.h <<_ACEOF
10560#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10561_ACEOF
10562;;
10563esac
10564rm -rf conftest*
10565
10566# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10567# in glibc 2.1.3, but that breaks too many other things.
10568# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10569if test $ac_cv_sys_largefile_source != unknown; then
10570
cristy8b350f62009-11-15 23:12:43 +000010571$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010572
10573fi
10574
10575LFS_CPPFLAGS=''
10576if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010577 case $ac_cv_sys_file_offset_bits in
10578 no)
10579 # nothing to do here as the host supports LFS fine
10580 ;;
10581 unknown)
cristy8b350f62009-11-15 23:12:43 +000010582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010583$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010584 if test "$cross_compiling" = yes; then :
10585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010587as_fn_error $? "cannot run test program while cross compiling
10588See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010589else
cristy8b350f62009-11-15 23:12:43 +000010590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010592#include <unistd.h>
10593 main () {
10594 exit(!(sizeof(off_t) == 8));
10595 }
cristyda16f162011-02-19 23:52:17 +000010596int
10597main ()
10598{
10599
10600 ;
10601 return 0;
10602}
cristy3ed852e2009-09-05 21:47:34 +000010603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010604if ac_fn_c_try_run "$LINENO"; then :
10605 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010606
cristyad38abe2012-12-23 23:03:21 +000010607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010609else
cristyad38abe2012-12-23 23:03:21 +000010610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010612fi
cristy8b350f62009-11-15 23:12:43 +000010613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10614 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010615fi
10616
cristyc1e0cc12011-09-21 16:41:16 +000010617 ;;
10618 *)
10619 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10620 ;;
10621 esac
cristy3ed852e2009-09-05 21:47:34 +000010622 if test "$ac_cv_sys_large_files" != 'no'; then
10623 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10624 fi
10625 if test "$ac_cv_sys_largefile_source" != 'no'; then
10626 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10627 fi
10628fi
10629
10630
cristy3ed852e2009-09-05 21:47:34 +000010631# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010632enable_dlopen=yes
10633
10634
10635
10636case `pwd` in
10637 *\ * | *\ *)
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10639$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10640esac
10641
10642
10643
cristy99bd5232011-12-07 14:38:20 +000010644macro_version='2.4.2'
10645macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659ltmain="$ac_aux_dir/ltmain.sh"
10660
cristy0c60a692010-11-04 01:09:47 +000010661# Backslashify metacharacters that are still active within
10662# double-quoted strings.
10663sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10664
10665# Same as above, but do not quote variable references.
10666double_quote_subst='s/\(["`\\]\)/\\\1/g'
10667
10668# Sed substitution to delay expansion of an escaped shell variable in a
10669# double_quote_subst'ed string.
10670delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10671
10672# Sed substitution to delay expansion of an escaped single quote.
10673delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10674
10675# Sed substitution to avoid accidental globbing in evaled expressions
10676no_glob_subst='s/\*/\\\*/g'
10677
cristy73bd4a52010-10-05 11:24:23 +000010678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10679$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010680if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010681 $as_echo_n "(cached) " >&6
10682else
10683 if test -n "$NM"; then
10684 # Let the user override the test.
10685 lt_cv_path_NM="$NM"
10686else
10687 lt_nm_to_check="${ac_tool_prefix}nm"
10688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10689 lt_nm_to_check="$lt_nm_to_check nm"
10690 fi
10691 for lt_tmp_nm in $lt_nm_to_check; do
10692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10694 IFS="$lt_save_ifs"
10695 test -z "$ac_dir" && ac_dir=.
10696 tmp_nm="$ac_dir/$lt_tmp_nm"
10697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10698 # Check to see if the nm accepts a BSD-compat flag.
10699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10700 # nm: unknown option "B" ignored
10701 # Tru64's nm complains that /dev/null is an invalid object file
10702 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10703 */dev/null* | *'Invalid file or object type'*)
10704 lt_cv_path_NM="$tmp_nm -B"
10705 break
10706 ;;
10707 *)
10708 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10709 */dev/null*)
10710 lt_cv_path_NM="$tmp_nm -p"
10711 break
10712 ;;
10713 *)
10714 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10715 continue # so that we can try to find one that supports BSD flags
10716 ;;
10717 esac
10718 ;;
10719 esac
10720 fi
10721 done
10722 IFS="$lt_save_ifs"
10723 done
10724 : ${lt_cv_path_NM=no}
10725fi
10726fi
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10728$as_echo "$lt_cv_path_NM" >&6; }
10729if test "$lt_cv_path_NM" != "no"; then
10730 NM="$lt_cv_path_NM"
10731else
10732 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010733 if test -n "$DUMPBIN"; then :
10734 # Let the user override the test.
10735 else
10736 if test -n "$ac_tool_prefix"; then
10737 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010738 do
10739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010743if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010744 $as_echo_n "(cached) " >&6
10745else
10746 if test -n "$DUMPBIN"; then
10747 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10748else
10749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750for as_dir in $PATH
10751do
10752 IFS=$as_save_IFS
10753 test -z "$as_dir" && as_dir=.
10754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010756 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 break 2
10759 fi
10760done
10761 done
10762IFS=$as_save_IFS
10763
10764fi
10765fi
10766DUMPBIN=$ac_cv_prog_DUMPBIN
10767if test -n "$DUMPBIN"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10769$as_echo "$DUMPBIN" >&6; }
10770else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773fi
10774
10775
10776 test -n "$DUMPBIN" && break
10777 done
10778fi
10779if test -z "$DUMPBIN"; then
10780 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010781 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010782do
10783 # Extract the first word of "$ac_prog", so it can be a program name with args.
10784set dummy $ac_prog; ac_word=$2
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010787if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010788 $as_echo_n "(cached) " >&6
10789else
10790 if test -n "$ac_ct_DUMPBIN"; then
10791 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10792else
10793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794for as_dir in $PATH
10795do
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010800 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10803 fi
10804done
10805 done
10806IFS=$as_save_IFS
10807
10808fi
10809fi
10810ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10811if test -n "$ac_ct_DUMPBIN"; then
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10813$as_echo "$ac_ct_DUMPBIN" >&6; }
10814else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816$as_echo "no" >&6; }
10817fi
10818
10819
10820 test -n "$ac_ct_DUMPBIN" && break
10821done
10822
10823 if test "x$ac_ct_DUMPBIN" = x; then
10824 DUMPBIN=":"
10825 else
10826 case $cross_compiling:$ac_tool_warned in
10827yes:)
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10830ac_tool_warned=yes ;;
10831esac
10832 DUMPBIN=$ac_ct_DUMPBIN
10833 fi
10834fi
10835
cristy0c60a692010-11-04 01:09:47 +000010836 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10837 *COFF*)
10838 DUMPBIN="$DUMPBIN -symbols"
10839 ;;
10840 *)
10841 DUMPBIN=:
10842 ;;
10843 esac
10844 fi
cristy73bd4a52010-10-05 11:24:23 +000010845
10846 if test "$DUMPBIN" != ":"; then
10847 NM="$DUMPBIN"
10848 fi
10849fi
10850test -z "$NM" && NM=nm
10851
10852
10853
10854
10855
10856
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10858$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010859if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010860 $as_echo_n "(cached) " >&6
10861else
10862 lt_cv_nm_interface="BSD nm"
10863 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010864 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010865 (eval "$ac_compile" 2>conftest.err)
10866 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010867 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010868 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10869 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010870 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010871 cat conftest.out >&5
10872 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10873 lt_cv_nm_interface="MS dumpbin"
10874 fi
10875 rm -f conftest*
10876fi
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10878$as_echo "$lt_cv_nm_interface" >&6; }
10879
10880# find the maximum length of command line arguments
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10882$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010883if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010884 $as_echo_n "(cached) " >&6
10885else
10886 i=0
10887 teststring="ABCD"
10888
10889 case $build_os in
10890 msdosdjgpp*)
10891 # On DJGPP, this test can blow up pretty badly due to problems in libc
10892 # (any single argument exceeding 2000 bytes causes a buffer overrun
10893 # during glob expansion). Even if it were fixed, the result of this
10894 # check would be larger than it should be.
10895 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10896 ;;
10897
10898 gnu*)
10899 # Under GNU Hurd, this test is not required because there is
10900 # no limit to the length of command line arguments.
10901 # Libtool will interpret -1 as no limit whatsoever
10902 lt_cv_sys_max_cmd_len=-1;
10903 ;;
10904
10905 cygwin* | mingw* | cegcc*)
10906 # On Win9x/ME, this test blows up -- it succeeds, but takes
10907 # about 5 minutes as the teststring grows exponentially.
10908 # Worse, since 9x/ME are not pre-emptively multitasking,
10909 # you end up with a "frozen" computer, even though with patience
10910 # the test eventually succeeds (with a max line length of 256k).
10911 # Instead, let's just punt: use the minimum linelength reported by
10912 # all of the supported platforms: 8192 (on NT/2K/XP).
10913 lt_cv_sys_max_cmd_len=8192;
10914 ;;
10915
cristy0c60a692010-11-04 01:09:47 +000010916 mint*)
10917 # On MiNT this can take a long time and run out of memory.
10918 lt_cv_sys_max_cmd_len=8192;
10919 ;;
10920
cristy73bd4a52010-10-05 11:24:23 +000010921 amigaos*)
10922 # On AmigaOS with pdksh, this test takes hours, literally.
10923 # So we just punt and use a minimum line length of 8192.
10924 lt_cv_sys_max_cmd_len=8192;
10925 ;;
10926
10927 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10928 # This has been around since 386BSD, at least. Likely further.
10929 if test -x /sbin/sysctl; then
10930 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10931 elif test -x /usr/sbin/sysctl; then
10932 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10933 else
10934 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10935 fi
10936 # And add a safety zone
10937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10939 ;;
10940
10941 interix*)
10942 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10943 lt_cv_sys_max_cmd_len=196608
10944 ;;
10945
cristy99bd5232011-12-07 14:38:20 +000010946 os2*)
10947 # The test takes a long time on OS/2.
10948 lt_cv_sys_max_cmd_len=8192
10949 ;;
10950
cristy73bd4a52010-10-05 11:24:23 +000010951 osf*)
10952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10954 # nice to cause kernel panics so lets avoid the loop below.
10955 # First set a reasonable default.
10956 lt_cv_sys_max_cmd_len=16384
10957 #
10958 if test -x /sbin/sysconfig; then
10959 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10961 esac
10962 fi
10963 ;;
10964 sco3.2v5*)
10965 lt_cv_sys_max_cmd_len=102400
10966 ;;
10967 sysv5* | sco5v6* | sysv4.2uw2*)
10968 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10969 if test -n "$kargmax"; then
10970 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10971 else
10972 lt_cv_sys_max_cmd_len=32768
10973 fi
10974 ;;
10975 *)
10976 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10977 if test -n "$lt_cv_sys_max_cmd_len"; then
10978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10980 else
10981 # Make teststring a little bigger before we do anything with it.
10982 # a 1K string should be a reasonable start.
10983 for i in 1 2 3 4 5 6 7 8 ; do
10984 teststring=$teststring$teststring
10985 done
10986 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10987 # If test is not a shell built-in, we'll probably end up computing a
10988 # maximum length that is only half of the actual maximum length, but
10989 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010990 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010991 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010992 test $i != 17 # 1/2 MB should be enough
10993 do
10994 i=`expr $i + 1`
10995 teststring=$teststring$teststring
10996 done
10997 # Only check the string length outside the loop.
10998 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10999 teststring=
11000 # Add a significant safety factor because C++ compilers can tack on
11001 # massive amounts of additional arguments before passing them to the
11002 # linker. It appears as though 1/2 is a usable value.
11003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11004 fi
11005 ;;
11006 esac
11007
11008fi
11009
11010if test -n $lt_cv_sys_max_cmd_len ; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11012$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11013else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11015$as_echo "none" >&6; }
11016fi
11017max_cmd_len=$lt_cv_sys_max_cmd_len
11018
11019
11020
11021
11022
11023
11024: ${CP="cp -f"}
11025: ${MV="mv -f"}
11026: ${RM="rm -f"}
11027
11028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11029$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11030# Try some XSI features
11031xsi_shell=no
11032( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011033 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11034 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011035 && eval 'test $(( 1 + 1 )) -eq 2 \
11036 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11037 && xsi_shell=yes
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11039$as_echo "$xsi_shell" >&6; }
11040
11041
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11043$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11044lt_shell_append=no
11045( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11046 >/dev/null 2>&1 \
11047 && lt_shell_append=yes
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11049$as_echo "$lt_shell_append" >&6; }
11050
11051
11052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11053 lt_unset=unset
11054else
11055 lt_unset=false
11056fi
11057
11058
11059
11060
11061
11062# test EBCDIC or ASCII
11063case `echo X|tr X '\101'` in
11064 A) # ASCII based system
11065 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11066 lt_SP2NL='tr \040 \012'
11067 lt_NL2SP='tr \015\012 \040\040'
11068 ;;
11069 *) # EBCDIC based system
11070 lt_SP2NL='tr \100 \n'
11071 lt_NL2SP='tr \r\n \100\100'
11072 ;;
11073esac
11074
11075
11076
11077
11078
11079
11080
11081
11082
cristyda16f162011-02-19 23:52:17 +000011083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11084$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11085if ${lt_cv_to_host_file_cmd+:} false; then :
11086 $as_echo_n "(cached) " >&6
11087else
11088 case $host in
11089 *-*-mingw* )
11090 case $build in
11091 *-*-mingw* ) # actually msys
11092 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11093 ;;
11094 *-*-cygwin* )
11095 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11096 ;;
11097 * ) # otherwise, assume *nix
11098 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11099 ;;
11100 esac
11101 ;;
11102 *-*-cygwin* )
11103 case $build in
11104 *-*-mingw* ) # actually msys
11105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11106 ;;
11107 *-*-cygwin* )
11108 lt_cv_to_host_file_cmd=func_convert_file_noop
11109 ;;
11110 * ) # otherwise, assume *nix
11111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11112 ;;
11113 esac
11114 ;;
11115 * ) # unhandled hosts (and "normal" native builds)
11116 lt_cv_to_host_file_cmd=func_convert_file_noop
11117 ;;
11118esac
11119
11120fi
11121
11122to_host_file_cmd=$lt_cv_to_host_file_cmd
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11124$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11125
11126
11127
11128
11129
11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11131$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11132if ${lt_cv_to_tool_file_cmd+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134else
11135 #assume ordinary cross tools, or native build.
11136lt_cv_to_tool_file_cmd=func_convert_file_noop
11137case $host in
11138 *-*-mingw* )
11139 case $build in
11140 *-*-mingw* ) # actually msys
11141 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11142 ;;
11143 esac
11144 ;;
11145esac
11146
11147fi
11148
11149to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11151$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11152
11153
11154
11155
11156
cristy73bd4a52010-10-05 11:24:23 +000011157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11158$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011159if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011160 $as_echo_n "(cached) " >&6
11161else
11162 lt_cv_ld_reload_flag='-r'
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11165$as_echo "$lt_cv_ld_reload_flag" >&6; }
11166reload_flag=$lt_cv_ld_reload_flag
11167case $reload_flag in
11168"" | " "*) ;;
11169*) reload_flag=" $reload_flag" ;;
11170esac
11171reload_cmds='$LD$reload_flag -o $output$reload_objs'
11172case $host_os in
cristyda16f162011-02-19 23:52:17 +000011173 cygwin* | mingw* | pw32* | cegcc*)
11174 if test "$GCC" != yes; then
11175 reload_cmds=false
11176 fi
11177 ;;
cristy73bd4a52010-10-05 11:24:23 +000011178 darwin*)
11179 if test "$GCC" = yes; then
11180 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11181 else
11182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11183 fi
11184 ;;
11185esac
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195if test -n "$ac_tool_prefix"; then
11196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11197set dummy ${ac_tool_prefix}objdump; ac_word=$2
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011200if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011201 $as_echo_n "(cached) " >&6
11202else
11203 if test -n "$OBJDUMP"; then
11204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11205else
11206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $PATH
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 break 2
11216 fi
11217done
11218 done
11219IFS=$as_save_IFS
11220
11221fi
11222fi
11223OBJDUMP=$ac_cv_prog_OBJDUMP
11224if test -n "$OBJDUMP"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11226$as_echo "$OBJDUMP" >&6; }
11227else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
11230fi
11231
11232
11233fi
11234if test -z "$ac_cv_prog_OBJDUMP"; then
11235 ac_ct_OBJDUMP=$OBJDUMP
11236 # Extract the first word of "objdump", so it can be a program name with args.
11237set dummy objdump; ac_word=$2
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011241 $as_echo_n "(cached) " >&6
11242else
11243 if test -n "$ac_ct_OBJDUMP"; then
11244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11245else
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257done
11258 done
11259IFS=$as_save_IFS
11260
11261fi
11262fi
11263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11264if test -n "$ac_ct_OBJDUMP"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11266$as_echo "$ac_ct_OBJDUMP" >&6; }
11267else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
11270fi
11271
11272 if test "x$ac_ct_OBJDUMP" = x; then
11273 OBJDUMP="false"
11274 else
11275 case $cross_compiling:$ac_tool_warned in
11276yes:)
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11279ac_tool_warned=yes ;;
11280esac
11281 OBJDUMP=$ac_ct_OBJDUMP
11282 fi
11283else
11284 OBJDUMP="$ac_cv_prog_OBJDUMP"
11285fi
11286
11287test -z "$OBJDUMP" && OBJDUMP=objdump
11288
11289
11290
11291
11292
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11295$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011296if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011297 $as_echo_n "(cached) " >&6
11298else
11299 lt_cv_file_magic_cmd='$MAGIC_CMD'
11300lt_cv_file_magic_test_file=
11301lt_cv_deplibs_check_method='unknown'
11302# Need to set the preceding variable on all platforms that support
11303# interlibrary dependencies.
11304# 'none' -- dependencies not supported.
11305# `unknown' -- same as none, but documents that we really don't know.
11306# 'pass_all' -- all dependencies passed with no checks.
11307# 'test_compile' -- check by making test program.
11308# 'file_magic [[regex]]' -- check by looking for files in library path
11309# which responds to the $file_magic_cmd with a given extended regex.
11310# If you have `file' or equivalent on your system and you're not sure
11311# whether `pass_all' will *always* work, you probably want this one.
11312
11313case $host_os in
11314aix[4-9]*)
11315 lt_cv_deplibs_check_method=pass_all
11316 ;;
11317
11318beos*)
11319 lt_cv_deplibs_check_method=pass_all
11320 ;;
11321
11322bsdi[45]*)
11323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11324 lt_cv_file_magic_cmd='/usr/bin/file -L'
11325 lt_cv_file_magic_test_file=/shlib/libc.so
11326 ;;
11327
11328cygwin*)
11329 # func_win32_libid is a shell function defined in ltmain.sh
11330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11331 lt_cv_file_magic_cmd='func_win32_libid'
11332 ;;
11333
11334mingw* | pw32*)
11335 # Base MSYS/MinGW do not provide the 'file' command needed by
11336 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11337 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011338 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11339 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11341 lt_cv_file_magic_cmd='func_win32_libid'
11342 else
cristy0c60a692010-11-04 01:09:47 +000011343 # Keep this pattern in sync with the one in func_win32_libid.
11344 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 +000011345 lt_cv_file_magic_cmd='$OBJDUMP -f'
11346 fi
11347 ;;
11348
cristy0c60a692010-11-04 01:09:47 +000011349cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011350 # use the weaker test based on 'objdump'. See mingw*.
11351 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11352 lt_cv_file_magic_cmd='$OBJDUMP -f'
11353 ;;
11354
11355darwin* | rhapsody*)
11356 lt_cv_deplibs_check_method=pass_all
11357 ;;
11358
11359freebsd* | dragonfly*)
11360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11361 case $host_cpu in
11362 i*86 )
11363 # Not sure whether the presence of OpenBSD here was a mistake.
11364 # Let's accept both of them until this is cleared up.
11365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11366 lt_cv_file_magic_cmd=/usr/bin/file
11367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11368 ;;
11369 esac
11370 else
11371 lt_cv_deplibs_check_method=pass_all
11372 fi
11373 ;;
11374
11375gnu*)
11376 lt_cv_deplibs_check_method=pass_all
11377 ;;
11378
cristy0c60a692010-11-04 01:09:47 +000011379haiku*)
11380 lt_cv_deplibs_check_method=pass_all
11381 ;;
11382
cristy73bd4a52010-10-05 11:24:23 +000011383hpux10.20* | hpux11*)
11384 lt_cv_file_magic_cmd=/usr/bin/file
11385 case $host_cpu in
11386 ia64*)
11387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11389 ;;
11390 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011391 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 +000011392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11393 ;;
11394 *)
cristy0c60a692010-11-04 01:09:47 +000011395 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 +000011396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11397 ;;
11398 esac
11399 ;;
11400
11401interix[3-9]*)
11402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11404 ;;
11405
11406irix5* | irix6* | nonstopux*)
11407 case $LD in
11408 *-32|*"-32 ") libmagic=32-bit;;
11409 *-n32|*"-n32 ") libmagic=N32;;
11410 *-64|*"-64 ") libmagic=64-bit;;
11411 *) libmagic=never-match;;
11412 esac
11413 lt_cv_deplibs_check_method=pass_all
11414 ;;
11415
cristy99bd5232011-12-07 14:38:20 +000011416# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011417linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011418 lt_cv_deplibs_check_method=pass_all
11419 ;;
11420
11421netbsd*)
11422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11424 else
11425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11426 fi
11427 ;;
11428
11429newos6*)
11430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11431 lt_cv_file_magic_cmd=/usr/bin/file
11432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11433 ;;
11434
11435*nto* | *qnx*)
11436 lt_cv_deplibs_check_method=pass_all
11437 ;;
11438
11439openbsd*)
11440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11442 else
11443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11444 fi
11445 ;;
11446
11447osf3* | osf4* | osf5*)
11448 lt_cv_deplibs_check_method=pass_all
11449 ;;
11450
11451rdos*)
11452 lt_cv_deplibs_check_method=pass_all
11453 ;;
11454
11455solaris*)
11456 lt_cv_deplibs_check_method=pass_all
11457 ;;
11458
11459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11460 lt_cv_deplibs_check_method=pass_all
11461 ;;
11462
11463sysv4 | sysv4.3*)
11464 case $host_vendor in
11465 motorola)
11466 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]'
11467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11468 ;;
11469 ncr)
11470 lt_cv_deplibs_check_method=pass_all
11471 ;;
11472 sequent)
11473 lt_cv_file_magic_cmd='/bin/file'
11474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11475 ;;
11476 sni)
11477 lt_cv_file_magic_cmd='/bin/file'
11478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11479 lt_cv_file_magic_test_file=/lib/libc.so
11480 ;;
11481 siemens)
11482 lt_cv_deplibs_check_method=pass_all
11483 ;;
11484 pc)
11485 lt_cv_deplibs_check_method=pass_all
11486 ;;
11487 esac
11488 ;;
11489
11490tpf*)
11491 lt_cv_deplibs_check_method=pass_all
11492 ;;
11493esac
11494
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11497$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011498
11499file_magic_glob=
11500want_nocaseglob=no
11501if test "$build" = "$host"; then
11502 case $host_os in
11503 mingw* | pw32*)
11504 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11505 want_nocaseglob=yes
11506 else
11507 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11508 fi
11509 ;;
11510 esac
11511fi
11512
cristy73bd4a52010-10-05 11:24:23 +000011513file_magic_cmd=$lt_cv_file_magic_cmd
11514deplibs_check_method=$lt_cv_deplibs_check_method
11515test -z "$deplibs_check_method" && deplibs_check_method=unknown
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
cristyda16f162011-02-19 23:52:17 +000011528
11529
11530
11531
11532
11533
11534
11535
11536
11537
cristy73bd4a52010-10-05 11:24:23 +000011538if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011539 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11540set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011543if ${ac_cv_prog_DLLTOOL+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545else
11546 if test -n "$DLLTOOL"; then
11547 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011556 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560done
11561 done
11562IFS=$as_save_IFS
11563
11564fi
11565fi
11566DLLTOOL=$ac_cv_prog_DLLTOOL
11567if test -n "$DLLTOOL"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11569$as_echo "$DLLTOOL" >&6; }
11570else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572$as_echo "no" >&6; }
11573fi
11574
11575
11576fi
11577if test -z "$ac_cv_prog_DLLTOOL"; then
11578 ac_ct_DLLTOOL=$DLLTOOL
11579 # Extract the first word of "dlltool", so it can be a program name with args.
11580set dummy dlltool; ac_word=$2
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
11583if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585else
11586 if test -n "$ac_ct_DLLTOOL"; then
11587 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11588else
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011596 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11599 fi
11600done
11601 done
11602IFS=$as_save_IFS
11603
11604fi
11605fi
11606ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11607if test -n "$ac_ct_DLLTOOL"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11609$as_echo "$ac_ct_DLLTOOL" >&6; }
11610else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
11613fi
11614
11615 if test "x$ac_ct_DLLTOOL" = x; then
11616 DLLTOOL="false"
11617 else
11618 case $cross_compiling:$ac_tool_warned in
11619yes:)
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622ac_tool_warned=yes ;;
11623esac
11624 DLLTOOL=$ac_ct_DLLTOOL
11625 fi
11626else
11627 DLLTOOL="$ac_cv_prog_DLLTOOL"
11628fi
11629
11630test -z "$DLLTOOL" && DLLTOOL=dlltool
11631
11632
11633
11634
11635
11636
11637
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11639$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11640if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643 lt_cv_sharedlib_from_linklib_cmd='unknown'
11644
11645case $host_os in
11646cygwin* | mingw* | pw32* | cegcc*)
11647 # two different shell functions defined in ltmain.sh
11648 # decide which to use based on capabilities of $DLLTOOL
11649 case `$DLLTOOL --help 2>&1` in
11650 *--identify-strict*)
11651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11652 ;;
11653 *)
11654 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11655 ;;
11656 esac
11657 ;;
11658*)
11659 # fallback: assume linklib IS sharedlib
11660 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11661 ;;
11662esac
11663
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11666$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11667sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11668test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11669
11670
11671
11672
11673
11674
11675
11676if test -n "$ac_tool_prefix"; then
11677 for ac_prog in ar
11678 do
11679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682$as_echo_n "checking for $ac_word... " >&6; }
11683if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011684 $as_echo_n "(cached) " >&6
11685else
11686 if test -n "$AR"; then
11687 ac_cv_prog_AR="$AR" # Let the user override the test.
11688else
11689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011696 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11699 fi
11700done
11701 done
11702IFS=$as_save_IFS
11703
11704fi
11705fi
11706AR=$ac_cv_prog_AR
11707if test -n "$AR"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11709$as_echo "$AR" >&6; }
11710else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
11713fi
11714
11715
cristyda16f162011-02-19 23:52:17 +000011716 test -n "$AR" && break
11717 done
cristy73bd4a52010-10-05 11:24:23 +000011718fi
cristyda16f162011-02-19 23:52:17 +000011719if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011720 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011721 for ac_prog in ar
11722do
11723 # Extract the first word of "$ac_prog", so it can be a program name with args.
11724set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011727if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011728 $as_echo_n "(cached) " >&6
11729else
11730 if test -n "$ac_ct_AR"; then
11731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011740 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744done
11745 done
11746IFS=$as_save_IFS
11747
11748fi
11749fi
11750ac_ct_AR=$ac_cv_prog_ac_ct_AR
11751if test -n "$ac_ct_AR"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11753$as_echo "$ac_ct_AR" >&6; }
11754else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756$as_echo "no" >&6; }
11757fi
11758
cristyda16f162011-02-19 23:52:17 +000011759
11760 test -n "$ac_ct_AR" && break
11761done
11762
cristy73bd4a52010-10-05 11:24:23 +000011763 if test "x$ac_ct_AR" = x; then
11764 AR="false"
11765 else
11766 case $cross_compiling:$ac_tool_warned in
11767yes:)
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11770ac_tool_warned=yes ;;
11771esac
11772 AR=$ac_ct_AR
11773 fi
cristy73bd4a52010-10-05 11:24:23 +000011774fi
11775
cristyda16f162011-02-19 23:52:17 +000011776: ${AR=ar}
11777: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
cristyda16f162011-02-19 23:52:17 +000011789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11790$as_echo_n "checking for archiver @FILE support... " >&6; }
11791if ${lt_cv_ar_at_file+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793else
11794 lt_cv_ar_at_file=no
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796/* end confdefs.h. */
11797
11798int
11799main ()
11800{
11801
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806if ac_fn_c_try_compile "$LINENO"; then :
11807 echo conftest.$ac_objext > conftest.lst
11808 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11810 (eval $lt_ar_try) 2>&5
11811 ac_status=$?
11812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813 test $ac_status = 0; }
11814 if test "$ac_status" -eq 0; then
11815 # Ensure the archiver fails upon bogus file names.
11816 rm -f conftest.$ac_objext libconftest.a
11817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11818 (eval $lt_ar_try) 2>&5
11819 ac_status=$?
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; }
11822 if test "$ac_status" -ne 0; then
11823 lt_cv_ar_at_file=@
11824 fi
11825 fi
11826 rm -f conftest.* libconftest.a
11827
11828fi
11829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11833$as_echo "$lt_cv_ar_at_file" >&6; }
11834
11835if test "x$lt_cv_ar_at_file" = xno; then
11836 archiver_list_spec=
11837else
11838 archiver_list_spec=$lt_cv_ar_at_file
11839fi
11840
11841
11842
11843
11844
11845
11846
cristy73bd4a52010-10-05 11:24:23 +000011847if test -n "$ac_tool_prefix"; then
11848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11849set dummy ${ac_tool_prefix}strip; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011852if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011853 $as_echo_n "(cached) " >&6
11854else
11855 if test -n "$STRIP"; then
11856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869done
11870 done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875STRIP=$ac_cv_prog_STRIP
11876if test -n "$STRIP"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11878$as_echo "$STRIP" >&6; }
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884
11885fi
11886if test -z "$ac_cv_prog_STRIP"; then
11887 ac_ct_STRIP=$STRIP
11888 # Extract the first word of "strip", so it can be a program name with args.
11889set dummy strip; ac_word=$2
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011892if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011893 $as_echo_n "(cached) " >&6
11894else
11895 if test -n "$ac_ct_STRIP"; then
11896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011905 ac_cv_prog_ac_ct_STRIP="strip"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11908 fi
11909done
11910 done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11916if test -n "$ac_ct_STRIP"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11918$as_echo "$ac_ct_STRIP" >&6; }
11919else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924 if test "x$ac_ct_STRIP" = x; then
11925 STRIP=":"
11926 else
11927 case $cross_compiling:$ac_tool_warned in
11928yes:)
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931ac_tool_warned=yes ;;
11932esac
11933 STRIP=$ac_ct_STRIP
11934 fi
11935else
11936 STRIP="$ac_cv_prog_STRIP"
11937fi
11938
11939test -z "$STRIP" && STRIP=:
11940
11941
11942
11943
11944
11945
11946if test -n "$ac_tool_prefix"; then
11947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11948set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011951if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011952 $as_echo_n "(cached) " >&6
11953else
11954 if test -n "$RANLIB"; then
11955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11956else
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960 IFS=$as_save_IFS
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 break 2
11967 fi
11968done
11969 done
11970IFS=$as_save_IFS
11971
11972fi
11973fi
11974RANLIB=$ac_cv_prog_RANLIB
11975if test -n "$RANLIB"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11977$as_echo "$RANLIB" >&6; }
11978else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
11981fi
11982
11983
11984fi
11985if test -z "$ac_cv_prog_RANLIB"; then
11986 ac_ct_RANLIB=$RANLIB
11987 # Extract the first word of "ranlib", so it can be a program name with args.
11988set dummy ranlib; ac_word=$2
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011991if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011992 $as_echo_n "(cached) " >&6
11993else
11994 if test -n "$ac_ct_RANLIB"; then
11995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11996else
11997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998for as_dir in $PATH
11999do
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012004 ac_cv_prog_ac_ct_RANLIB="ranlib"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12007 fi
12008done
12009 done
12010IFS=$as_save_IFS
12011
12012fi
12013fi
12014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12015if test -n "$ac_ct_RANLIB"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12017$as_echo "$ac_ct_RANLIB" >&6; }
12018else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021fi
12022
12023 if test "x$ac_ct_RANLIB" = x; then
12024 RANLIB=":"
12025 else
12026 case $cross_compiling:$ac_tool_warned in
12027yes:)
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12030ac_tool_warned=yes ;;
12031esac
12032 RANLIB=$ac_ct_RANLIB
12033 fi
12034else
12035 RANLIB="$ac_cv_prog_RANLIB"
12036fi
12037
12038test -z "$RANLIB" && RANLIB=:
12039
12040
12041
12042
12043
12044
12045# Determine commands to create old-style static archives.
12046old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12047old_postinstall_cmds='chmod 644 $oldlib'
12048old_postuninstall_cmds=
12049
12050if test -n "$RANLIB"; then
12051 case $host_os in
12052 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012054 ;;
12055 *)
cristy99bd5232011-12-07 14:38:20 +000012056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012057 ;;
12058 esac
cristy99bd5232011-12-07 14:38:20 +000012059 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012060fi
12061
cristy0c60a692010-11-04 01:09:47 +000012062case $host_os in
12063 darwin*)
12064 lock_old_archive_extraction=yes ;;
12065 *)
12066 lock_old_archive_extraction=no ;;
12067esac
12068
12069
12070
12071
12072
12073
cristy73bd4a52010-10-05 11:24:23 +000012074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107# If no C compiler was specified, use CC.
12108LTCC=${LTCC-"$CC"}
12109
12110# If no C compiler flags were specified, use CFLAGS.
12111LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12112
12113# Allow CC to be a program name with arguments.
12114compiler=$CC
12115
12116
12117# Check for command to grab the raw symbol name followed by C symbol from nm.
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12119$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012120if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012121 $as_echo_n "(cached) " >&6
12122else
12123
12124# These are sane defaults that work on at least a few old systems.
12125# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12126
12127# Character class describing NM global symbol codes.
12128symcode='[BCDEGRST]'
12129
12130# Regexp to match symbols that can be accessed directly from C.
12131sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12132
12133# Define system-specific variables.
12134case $host_os in
12135aix*)
12136 symcode='[BCDT]'
12137 ;;
12138cygwin* | mingw* | pw32* | cegcc*)
12139 symcode='[ABCDGISTW]'
12140 ;;
12141hpux*)
12142 if test "$host_cpu" = ia64; then
12143 symcode='[ABCDEGRST]'
12144 fi
12145 ;;
12146irix* | nonstopux*)
12147 symcode='[BCDEGRST]'
12148 ;;
12149osf*)
12150 symcode='[BCDEGQRST]'
12151 ;;
12152solaris*)
12153 symcode='[BDRT]'
12154 ;;
12155sco3.2v5*)
12156 symcode='[DT]'
12157 ;;
12158sysv4.2uw2*)
12159 symcode='[DT]'
12160 ;;
12161sysv5* | sco5v6* | unixware* | OpenUNIX*)
12162 symcode='[ABDT]'
12163 ;;
12164sysv4)
12165 symcode='[DFNSTU]'
12166 ;;
12167esac
12168
12169# If we're using GNU nm, then use its standard symbol codes.
12170case `$NM -V 2>&1` in
12171*GNU* | *'with BFD'*)
12172 symcode='[ABCDGIRSTW]' ;;
12173esac
12174
12175# Transform an extracted symbol line into a proper C declaration.
12176# Some systems (esp. on ia64) link data and code symbols differently,
12177# so use this general approach.
12178lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12179
12180# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012181lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12182lt_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 +000012183
12184# Handle CRLF in mingw tool chain
12185opt_cr=
12186case $build_os in
12187mingw*)
12188 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12189 ;;
12190esac
12191
12192# Try without a prefix underscore, then with it.
12193for ac_symprfx in "" "_"; do
12194
12195 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12196 symxfrm="\\1 $ac_symprfx\\2 \\2"
12197
12198 # Write the raw and C identifiers.
12199 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12200 # Fake it for dumpbin and say T for any non-static function
12201 # and D for any global variable.
12202 # Also find C++ and __fastcall symbols from MSVC++,
12203 # which start with @ or ?.
12204 lt_cv_sys_global_symbol_pipe="$AWK '"\
12205" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012206" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012207" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12208" \$ 0!~/External *\|/{next};"\
12209" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12210" {if(hide[section]) next};"\
12211" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12212" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12213" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12214" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12215" ' prfx=^$ac_symprfx"
12216 else
12217 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12218 fi
cristyda16f162011-02-19 23:52:17 +000012219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012220
12221 # Check to see that the pipe works correctly.
12222 pipe_works=no
12223
12224 rm -f conftest*
12225 cat > conftest.$ac_ext <<_LT_EOF
12226#ifdef __cplusplus
12227extern "C" {
12228#endif
12229char nm_test_var;
12230void nm_test_func(void);
12231void nm_test_func(void){}
12232#ifdef __cplusplus
12233}
12234#endif
12235int main(){nm_test_var='a';nm_test_func();return(0);}
12236_LT_EOF
12237
12238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12239 (eval $ac_compile) 2>&5
12240 ac_status=$?
12241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242 test $ac_status = 0; }; then
12243 # Now try to grab the symbols.
12244 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; } && test -s "$nlist"; then
12250 # Try sorting and uniquifying the output.
12251 if sort "$nlist" | uniq > "$nlist"T; then
12252 mv -f "$nlist"T "$nlist"
12253 else
12254 rm -f "$nlist"T
12255 fi
12256
12257 # Make sure that we snagged all the symbols we need.
12258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12260 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012261/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12262#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12263/* DATA imports from DLLs on WIN32 con't be const, because runtime
12264 relocations are performed -- see ld's documentation on pseudo-relocs. */
12265# define LT_DLSYM_CONST
12266#elif defined(__osf__)
12267/* This system does not cope well with relocations in const data. */
12268# define LT_DLSYM_CONST
12269#else
12270# define LT_DLSYM_CONST const
12271#endif
12272
cristy73bd4a52010-10-05 11:24:23 +000012273#ifdef __cplusplus
12274extern "C" {
12275#endif
12276
12277_LT_EOF
12278 # Now generate the symbol file.
12279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12280
12281 cat <<_LT_EOF >> conftest.$ac_ext
12282
12283/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012284LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012285 const char *name;
12286 void *address;
12287}
12288lt__PROGRAM__LTX_preloaded_symbols[] =
12289{
12290 { "@PROGRAM@", (void *) 0 },
12291_LT_EOF
12292 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12293 cat <<\_LT_EOF >> conftest.$ac_ext
12294 {0, (void *) 0}
12295};
12296
12297/* This works around a problem in FreeBSD linker */
12298#ifdef FREEBSD_WORKAROUND
12299static const void *lt_preloaded_setup() {
12300 return lt__PROGRAM__LTX_preloaded_symbols;
12301}
12302#endif
12303
12304#ifdef __cplusplus
12305}
12306#endif
12307_LT_EOF
12308 # Now try linking the two files.
12309 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012310 lt_globsym_save_LIBS=$LIBS
12311 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012312 LIBS="conftstm.$ac_objext"
12313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12319 pipe_works=yes
12320 fi
cristyda16f162011-02-19 23:52:17 +000012321 LIBS=$lt_globsym_save_LIBS
12322 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012323 else
12324 echo "cannot find nm_test_func in $nlist" >&5
12325 fi
12326 else
12327 echo "cannot find nm_test_var in $nlist" >&5
12328 fi
12329 else
12330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12331 fi
12332 else
12333 echo "$progname: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12335 fi
12336 rm -rf conftest* conftst*
12337
12338 # Do not use the global_symbol_pipe unless it works.
12339 if test "$pipe_works" = yes; then
12340 break
12341 else
12342 lt_cv_sys_global_symbol_pipe=
12343 fi
12344done
12345
12346fi
12347
12348if test -z "$lt_cv_sys_global_symbol_pipe"; then
12349 lt_cv_sys_global_symbol_to_cdecl=
12350fi
12351if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12353$as_echo "failed" >&6; }
12354else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12356$as_echo "ok" >&6; }
12357fi
12358
cristyda16f162011-02-19 23:52:17 +000012359# Response file support.
12360if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12361 nm_file_list_spec='@'
12362elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12363 nm_file_list_spec='@'
12364fi
cristy73bd4a52010-10-05 11:24:23 +000012365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
cristyda16f162011-02-19 23:52:17 +000012386
12387
12388
12389
12390
12391
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12393$as_echo_n "checking for sysroot... " >&6; }
12394
12395# Check whether --with-sysroot was given.
12396if test "${with_sysroot+set}" = set; then :
12397 withval=$with_sysroot;
12398else
12399 with_sysroot=no
12400fi
12401
12402
12403lt_sysroot=
12404case ${with_sysroot} in #(
12405 yes)
12406 if test "$GCC" = yes; then
12407 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12408 fi
12409 ;; #(
12410 /*)
12411 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12412 ;; #(
12413 no|'')
12414 ;; #(
12415 *)
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12417$as_echo "${with_sysroot}" >&6; }
12418 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12419 ;;
12420esac
12421
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12423$as_echo "${lt_sysroot:-no}" >&6; }
12424
12425
12426
12427
12428
cristy73bd4a52010-10-05 11:24:23 +000012429# Check whether --enable-libtool-lock was given.
12430if test "${enable_libtool_lock+set}" = set; then :
12431 enableval=$enable_libtool_lock;
12432fi
12433
12434test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12435
12436# Some flags need to be propagated to the compiler or linker for good
12437# libtool support.
12438case $host in
12439ia64-*-hpux*)
12440 # Find out which ABI we are using.
12441 echo 'int i;' > conftest.$ac_ext
12442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12443 (eval $ac_compile) 2>&5
12444 ac_status=$?
12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }; then
12447 case `/usr/bin/file conftest.$ac_objext` in
12448 *ELF-32*)
12449 HPUX_IA64_MODE="32"
12450 ;;
12451 *ELF-64*)
12452 HPUX_IA64_MODE="64"
12453 ;;
12454 esac
12455 fi
12456 rm -rf conftest*
12457 ;;
12458*-*-irix6*)
12459 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; }; then
12466 if test "$lt_cv_prog_gnu_ld" = yes; then
12467 case `/usr/bin/file conftest.$ac_objext` in
12468 *32-bit*)
12469 LD="${LD-ld} -melf32bsmip"
12470 ;;
12471 *N32*)
12472 LD="${LD-ld} -melf32bmipn32"
12473 ;;
12474 *64-bit*)
12475 LD="${LD-ld} -melf64bmip"
12476 ;;
12477 esac
12478 else
12479 case `/usr/bin/file conftest.$ac_objext` in
12480 *32-bit*)
12481 LD="${LD-ld} -32"
12482 ;;
12483 *N32*)
12484 LD="${LD-ld} -n32"
12485 ;;
12486 *64-bit*)
12487 LD="${LD-ld} -64"
12488 ;;
12489 esac
12490 fi
12491 fi
12492 rm -rf conftest*
12493 ;;
12494
12495x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12496s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12497 # Find out which ABI we are using.
12498 echo 'int i;' > conftest.$ac_ext
12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12500 (eval $ac_compile) 2>&5
12501 ac_status=$?
12502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12503 test $ac_status = 0; }; then
12504 case `/usr/bin/file conftest.o` in
12505 *32-bit*)
12506 case $host in
12507 x86_64-*kfreebsd*-gnu)
12508 LD="${LD-ld} -m elf_i386_fbsd"
12509 ;;
12510 x86_64-*linux*)
12511 LD="${LD-ld} -m elf_i386"
12512 ;;
12513 ppc64-*linux*|powerpc64-*linux*)
12514 LD="${LD-ld} -m elf32ppclinux"
12515 ;;
12516 s390x-*linux*)
12517 LD="${LD-ld} -m elf_s390"
12518 ;;
12519 sparc64-*linux*)
12520 LD="${LD-ld} -m elf32_sparc"
12521 ;;
12522 esac
12523 ;;
12524 *64-bit*)
12525 case $host in
12526 x86_64-*kfreebsd*-gnu)
12527 LD="${LD-ld} -m elf_x86_64_fbsd"
12528 ;;
12529 x86_64-*linux*)
12530 LD="${LD-ld} -m elf_x86_64"
12531 ;;
12532 ppc*-*linux*|powerpc*-*linux*)
12533 LD="${LD-ld} -m elf64ppc"
12534 ;;
12535 s390*-*linux*|s390*-*tpf*)
12536 LD="${LD-ld} -m elf64_s390"
12537 ;;
12538 sparc*-*linux*)
12539 LD="${LD-ld} -m elf64_sparc"
12540 ;;
12541 esac
12542 ;;
12543 esac
12544 fi
12545 rm -rf conftest*
12546 ;;
12547
12548*-*-sco3.2v5*)
12549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12550 SAVE_CFLAGS="$CFLAGS"
12551 CFLAGS="$CFLAGS -belf"
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12553$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 ac_ext=c
12558ac_cpp='$CPP $CPPFLAGS'
12559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561ac_compiler_gnu=$ac_cv_c_compiler_gnu
12562
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565
12566int
12567main ()
12568{
12569
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574if ac_fn_c_try_link "$LINENO"; then :
12575 lt_cv_cc_needs_belf=yes
12576else
12577 lt_cv_cc_needs_belf=no
12578fi
12579rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 ac_ext=c
12582ac_cpp='$CPP $CPPFLAGS'
12583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12589$as_echo "$lt_cv_cc_needs_belf" >&6; }
12590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12592 CFLAGS="$SAVE_CFLAGS"
12593 fi
12594 ;;
cristy99bd5232011-12-07 14:38:20 +000012595*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012596 # Find out which ABI we are using.
12597 echo 'int i;' > conftest.$ac_ext
12598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12602 test $ac_status = 0; }; then
12603 case `/usr/bin/file conftest.o` in
12604 *64-bit*)
12605 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012606 yes*)
12607 case $host in
12608 i?86-*-solaris*)
12609 LD="${LD-ld} -m elf_x86_64"
12610 ;;
12611 sparc*-*-solaris*)
12612 LD="${LD-ld} -m elf64_sparc"
12613 ;;
12614 esac
12615 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12616 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12617 LD="${LD-ld}_sol2"
12618 fi
12619 ;;
cristy73bd4a52010-10-05 11:24:23 +000012620 *)
12621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12622 LD="${LD-ld} -64"
12623 fi
12624 ;;
12625 esac
12626 ;;
12627 esac
12628 fi
12629 rm -rf conftest*
12630 ;;
12631esac
12632
12633need_locks="$enable_libtool_lock"
12634
cristyda16f162011-02-19 23:52:17 +000012635if test -n "$ac_tool_prefix"; then
12636 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12637set dummy ${ac_tool_prefix}mt; ac_word=$2
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639$as_echo_n "checking for $ac_word... " >&6; }
12640if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642else
12643 if test -n "$MANIFEST_TOOL"; then
12644 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12645else
12646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $PATH
12648do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012653 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12656 fi
12657done
12658 done
12659IFS=$as_save_IFS
12660
12661fi
12662fi
12663MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12664if test -n "$MANIFEST_TOOL"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12666$as_echo "$MANIFEST_TOOL" >&6; }
12667else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
12670fi
12671
12672
12673fi
12674if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12675 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12676 # Extract the first word of "mt", so it can be a program name with args.
12677set dummy mt; ac_word=$2
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679$as_echo_n "checking for $ac_word... " >&6; }
12680if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682else
12683 if test -n "$ac_ct_MANIFEST_TOOL"; then
12684 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12685else
12686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $PATH
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012693 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697done
12698 done
12699IFS=$as_save_IFS
12700
12701fi
12702fi
12703ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12704if test -n "$ac_ct_MANIFEST_TOOL"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12706$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12707else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
12710fi
12711
12712 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12713 MANIFEST_TOOL=":"
12714 else
12715 case $cross_compiling:$ac_tool_warned in
12716yes:)
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12719ac_tool_warned=yes ;;
12720esac
12721 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12722 fi
12723else
12724 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12725fi
12726
12727test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12729$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12730if ${lt_cv_path_mainfest_tool+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732else
12733 lt_cv_path_mainfest_tool=no
12734 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12735 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12736 cat conftest.err >&5
12737 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12738 lt_cv_path_mainfest_tool=yes
12739 fi
12740 rm -f conftest*
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12743$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12744if test "x$lt_cv_path_mainfest_tool" != xyes; then
12745 MANIFEST_TOOL=:
12746fi
12747
12748
12749
12750
12751
cristy73bd4a52010-10-05 11:24:23 +000012752
12753 case $host_os in
12754 rhapsody* | darwin*)
12755 if test -n "$ac_tool_prefix"; then
12756 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12757set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012760if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012761 $as_echo_n "(cached) " >&6
12762else
12763 if test -n "$DSYMUTIL"; then
12764 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12765else
12766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767for as_dir in $PATH
12768do
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012773 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12776 fi
12777done
12778 done
12779IFS=$as_save_IFS
12780
12781fi
12782fi
12783DSYMUTIL=$ac_cv_prog_DSYMUTIL
12784if test -n "$DSYMUTIL"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12786$as_echo "$DSYMUTIL" >&6; }
12787else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
12790fi
12791
12792
12793fi
12794if test -z "$ac_cv_prog_DSYMUTIL"; then
12795 ac_ct_DSYMUTIL=$DSYMUTIL
12796 # Extract the first word of "dsymutil", so it can be a program name with args.
12797set dummy dsymutil; ac_word=$2
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012800if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012801 $as_echo_n "(cached) " >&6
12802else
12803 if test -n "$ac_ct_DSYMUTIL"; then
12804 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12805else
12806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807for as_dir in $PATH
12808do
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012813 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12816 fi
12817done
12818 done
12819IFS=$as_save_IFS
12820
12821fi
12822fi
12823ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12824if test -n "$ac_ct_DSYMUTIL"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12826$as_echo "$ac_ct_DSYMUTIL" >&6; }
12827else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829$as_echo "no" >&6; }
12830fi
12831
12832 if test "x$ac_ct_DSYMUTIL" = x; then
12833 DSYMUTIL=":"
12834 else
12835 case $cross_compiling:$ac_tool_warned in
12836yes:)
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12839ac_tool_warned=yes ;;
12840esac
12841 DSYMUTIL=$ac_ct_DSYMUTIL
12842 fi
12843else
12844 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12845fi
12846
12847 if test -n "$ac_tool_prefix"; then
12848 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12849set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012852if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012853 $as_echo_n "(cached) " >&6
12854else
12855 if test -n "$NMEDIT"; then
12856 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12857else
12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859for as_dir in $PATH
12860do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012865 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12868 fi
12869done
12870 done
12871IFS=$as_save_IFS
12872
12873fi
12874fi
12875NMEDIT=$ac_cv_prog_NMEDIT
12876if test -n "$NMEDIT"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12878$as_echo "$NMEDIT" >&6; }
12879else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
12882fi
12883
12884
12885fi
12886if test -z "$ac_cv_prog_NMEDIT"; then
12887 ac_ct_NMEDIT=$NMEDIT
12888 # Extract the first word of "nmedit", so it can be a program name with args.
12889set dummy nmedit; ac_word=$2
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012892if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012893 $as_echo_n "(cached) " >&6
12894else
12895 if test -n "$ac_ct_NMEDIT"; then
12896 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12897else
12898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899for as_dir in $PATH
12900do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012905 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12908 fi
12909done
12910 done
12911IFS=$as_save_IFS
12912
12913fi
12914fi
12915ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12916if test -n "$ac_ct_NMEDIT"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12918$as_echo "$ac_ct_NMEDIT" >&6; }
12919else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922fi
12923
12924 if test "x$ac_ct_NMEDIT" = x; then
12925 NMEDIT=":"
12926 else
12927 case $cross_compiling:$ac_tool_warned in
12928yes:)
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12931ac_tool_warned=yes ;;
12932esac
12933 NMEDIT=$ac_ct_NMEDIT
12934 fi
12935else
12936 NMEDIT="$ac_cv_prog_NMEDIT"
12937fi
12938
12939 if test -n "$ac_tool_prefix"; then
12940 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12941set dummy ${ac_tool_prefix}lipo; ac_word=$2
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012944if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012945 $as_echo_n "(cached) " >&6
12946else
12947 if test -n "$LIPO"; then
12948 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012957 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12960 fi
12961done
12962 done
12963IFS=$as_save_IFS
12964
12965fi
12966fi
12967LIPO=$ac_cv_prog_LIPO
12968if test -n "$LIPO"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12970$as_echo "$LIPO" >&6; }
12971else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973$as_echo "no" >&6; }
12974fi
12975
12976
12977fi
12978if test -z "$ac_cv_prog_LIPO"; then
12979 ac_ct_LIPO=$LIPO
12980 # Extract the first word of "lipo", so it can be a program name with args.
12981set dummy lipo; ac_word=$2
12982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012984if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012985 $as_echo_n "(cached) " >&6
12986else
12987 if test -n "$ac_ct_LIPO"; then
12988 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012997 ac_cv_prog_ac_ct_LIPO="lipo"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13000 fi
13001done
13002 done
13003IFS=$as_save_IFS
13004
13005fi
13006fi
13007ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13008if test -n "$ac_ct_LIPO"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13010$as_echo "$ac_ct_LIPO" >&6; }
13011else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013$as_echo "no" >&6; }
13014fi
13015
13016 if test "x$ac_ct_LIPO" = x; then
13017 LIPO=":"
13018 else
13019 case $cross_compiling:$ac_tool_warned in
13020yes:)
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13023ac_tool_warned=yes ;;
13024esac
13025 LIPO=$ac_ct_LIPO
13026 fi
13027else
13028 LIPO="$ac_cv_prog_LIPO"
13029fi
13030
13031 if test -n "$ac_tool_prefix"; then
13032 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13033set dummy ${ac_tool_prefix}otool; ac_word=$2
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013036if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013037 $as_echo_n "(cached) " >&6
13038else
13039 if test -n "$OTOOL"; then
13040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13041else
13042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $PATH
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013049 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053done
13054 done
13055IFS=$as_save_IFS
13056
13057fi
13058fi
13059OTOOL=$ac_cv_prog_OTOOL
13060if test -n "$OTOOL"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13062$as_echo "$OTOOL" >&6; }
13063else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066fi
13067
13068
13069fi
13070if test -z "$ac_cv_prog_OTOOL"; then
13071 ac_ct_OTOOL=$OTOOL
13072 # Extract the first word of "otool", so it can be a program name with args.
13073set dummy otool; ac_word=$2
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013076if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013077 $as_echo_n "(cached) " >&6
13078else
13079 if test -n "$ac_ct_OTOOL"; then
13080 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13081else
13082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083for as_dir in $PATH
13084do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013089 ac_cv_prog_ac_ct_OTOOL="otool"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093done
13094 done
13095IFS=$as_save_IFS
13096
13097fi
13098fi
13099ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13100if test -n "$ac_ct_OTOOL"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13102$as_echo "$ac_ct_OTOOL" >&6; }
13103else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105$as_echo "no" >&6; }
13106fi
13107
13108 if test "x$ac_ct_OTOOL" = x; then
13109 OTOOL=":"
13110 else
13111 case $cross_compiling:$ac_tool_warned in
13112yes:)
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13115ac_tool_warned=yes ;;
13116esac
13117 OTOOL=$ac_ct_OTOOL
13118 fi
13119else
13120 OTOOL="$ac_cv_prog_OTOOL"
13121fi
13122
13123 if test -n "$ac_tool_prefix"; then
13124 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13125set dummy ${ac_tool_prefix}otool64; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013128if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013129 $as_echo_n "(cached) " >&6
13130else
13131 if test -n "$OTOOL64"; then
13132 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013141 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145done
13146 done
13147IFS=$as_save_IFS
13148
13149fi
13150fi
13151OTOOL64=$ac_cv_prog_OTOOL64
13152if test -n "$OTOOL64"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13154$as_echo "$OTOOL64" >&6; }
13155else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159
13160
13161fi
13162if test -z "$ac_cv_prog_OTOOL64"; then
13163 ac_ct_OTOOL64=$OTOOL64
13164 # Extract the first word of "otool64", so it can be a program name with args.
13165set dummy otool64; ac_word=$2
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013168if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013169 $as_echo_n "(cached) " >&6
13170else
13171 if test -n "$ac_ct_OTOOL64"; then
13172 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13173else
13174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013181 ac_cv_prog_ac_ct_OTOOL64="otool64"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13184 fi
13185done
13186 done
13187IFS=$as_save_IFS
13188
13189fi
13190fi
13191ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13192if test -n "$ac_ct_OTOOL64"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13194$as_echo "$ac_ct_OTOOL64" >&6; }
13195else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
13198fi
13199
13200 if test "x$ac_ct_OTOOL64" = x; then
13201 OTOOL64=":"
13202 else
13203 case $cross_compiling:$ac_tool_warned in
13204yes:)
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13207ac_tool_warned=yes ;;
13208esac
13209 OTOOL64=$ac_ct_OTOOL64
13210 fi
13211else
13212 OTOOL64="$ac_cv_prog_OTOOL64"
13213fi
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13242$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013243if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013244 $as_echo_n "(cached) " >&6
13245else
13246 lt_cv_apple_cc_single_mod=no
13247 if test -z "${LT_MULTI_MODULE}"; then
13248 # By default we will add the -single_module flag. You can override
13249 # by either setting the environment variable LT_MULTI_MODULE
13250 # non-empty at configure time, or by adding -multi_module to the
13251 # link flags.
13252 rm -rf libconftest.dylib*
13253 echo "int foo(void){return 1;}" > conftest.c
13254 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13255-dynamiclib -Wl,-single_module conftest.c" >&5
13256 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13257 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13258 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013259 # If there is a non-empty error log, and "single_module"
13260 # appears in it, assume the flag caused a linker warning
13261 if test -s conftest.err && $GREP single_module conftest.err; then
13262 cat conftest.err >&5
13263 # Otherwise, if the output was created with a 0 exit code from
13264 # the compiler, it worked.
13265 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013266 lt_cv_apple_cc_single_mod=yes
13267 else
13268 cat conftest.err >&5
13269 fi
13270 rm -rf libconftest.dylib*
13271 rm -f conftest.*
13272 fi
13273fi
13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13275$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013276
cristy73bd4a52010-10-05 11:24:23 +000013277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13278$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013279if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013280 $as_echo_n "(cached) " >&6
13281else
13282 lt_cv_ld_exported_symbols_list=no
13283 save_LDFLAGS=$LDFLAGS
13284 echo "_main" > conftest.sym
13285 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298 lt_cv_ld_exported_symbols_list=yes
13299else
13300 lt_cv_ld_exported_symbols_list=no
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LDFLAGS="$save_LDFLAGS"
13305
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13308$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013309
cristy0c60a692010-11-04 01:09:47 +000013310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13311$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 lt_cv_ld_force_load=no
13316 cat > conftest.c << _LT_EOF
13317int forced_loaded() { return 2;}
13318_LT_EOF
13319 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13320 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13321 echo "$AR cru libconftest.a conftest.o" >&5
13322 $AR cru libconftest.a conftest.o 2>&5
13323 echo "$RANLIB libconftest.a" >&5
13324 $RANLIB libconftest.a 2>&5
13325 cat > conftest.c << _LT_EOF
13326int main() { return 0;}
13327_LT_EOF
13328 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13329 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13330 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013331 if test -s conftest.err && $GREP force_load conftest.err; then
13332 cat conftest.err >&5
13333 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013334 lt_cv_ld_force_load=yes
13335 else
13336 cat conftest.err >&5
13337 fi
13338 rm -f conftest.err libconftest.a conftest conftest.c
13339 rm -rf conftest.dSYM
13340
13341fi
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13343$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013344 case $host_os in
13345 rhapsody* | darwin1.[012])
13346 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13347 darwin1.*)
13348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13349 darwin*) # darwin 5.x on
13350 # if running on 10.5 or later, the deployment target defaults
13351 # to the OS version, if on x86, and 10.4, the deployment
13352 # target defaults to 10.4. Don't you love it?
13353 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13354 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13355 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13356 10.[012]*)
13357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13358 10.*)
13359 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13360 esac
13361 ;;
13362 esac
13363 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13364 _lt_dar_single_mod='$single_module'
13365 fi
13366 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13367 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13368 else
13369 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13370 fi
cristy0c60a692010-11-04 01:09:47 +000013371 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013372 _lt_dsymutil='~$DSYMUTIL $lib || :'
13373 else
13374 _lt_dsymutil=
13375 fi
13376 ;;
13377 esac
13378
13379for ac_header in dlfcn.h
13380do :
13381 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13382"
cristyda16f162011-02-19 23:52:17 +000013383if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013384 cat >>confdefs.h <<_ACEOF
13385#define HAVE_DLFCN_H 1
13386_ACEOF
13387
13388fi
13389
13390done
13391
13392
13393
cristy73bd4a52010-10-05 11:24:23 +000013394
cristyda16f162011-02-19 23:52:17 +000013395func_stripname_cnf ()
13396{
13397 case ${2} in
13398 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13399 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13400 esac
13401} # func_stripname_cnf
13402
13403
13404
cristy73bd4a52010-10-05 11:24:23 +000013405
13406
13407# Set options
13408enable_win32_dll=yes
13409
13410case $host in
cristy0c60a692010-11-04 01:09:47 +000013411*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013412 if test -n "$ac_tool_prefix"; then
13413 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13414set dummy ${ac_tool_prefix}as; ac_word=$2
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013417if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013418 $as_echo_n "(cached) " >&6
13419else
13420 if test -n "$AS"; then
13421 ac_cv_prog_AS="$AS" # Let the user override the test.
13422else
13423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424for as_dir in $PATH
13425do
13426 IFS=$as_save_IFS
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013430 ac_cv_prog_AS="${ac_tool_prefix}as"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432 break 2
13433 fi
13434done
13435 done
13436IFS=$as_save_IFS
13437
13438fi
13439fi
13440AS=$ac_cv_prog_AS
13441if test -n "$AS"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13443$as_echo "$AS" >&6; }
13444else
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
13447fi
13448
13449
13450fi
13451if test -z "$ac_cv_prog_AS"; then
13452 ac_ct_AS=$AS
13453 # Extract the first word of "as", so it can be a program name with args.
13454set dummy as; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013457if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013458 $as_echo_n "(cached) " >&6
13459else
13460 if test -n "$ac_ct_AS"; then
13461 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013470 ac_cv_prog_ac_ct_AS="as"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474done
13475 done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480ac_ct_AS=$ac_cv_prog_ac_ct_AS
13481if test -n "$ac_ct_AS"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13483$as_echo "$ac_ct_AS" >&6; }
13484else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489 if test "x$ac_ct_AS" = x; then
13490 AS="false"
13491 else
13492 case $cross_compiling:$ac_tool_warned in
13493yes:)
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13496ac_tool_warned=yes ;;
13497esac
13498 AS=$ac_ct_AS
13499 fi
13500else
13501 AS="$ac_cv_prog_AS"
13502fi
13503
13504 if test -n "$ac_tool_prefix"; then
13505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13506set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013509if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013510 $as_echo_n "(cached) " >&6
13511else
13512 if test -n "$DLLTOOL"; then
13513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13514else
13515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516for as_dir in $PATH
13517do
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13525 fi
13526done
13527 done
13528IFS=$as_save_IFS
13529
13530fi
13531fi
13532DLLTOOL=$ac_cv_prog_DLLTOOL
13533if test -n "$DLLTOOL"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13535$as_echo "$DLLTOOL" >&6; }
13536else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
13539fi
13540
13541
13542fi
13543if test -z "$ac_cv_prog_DLLTOOL"; then
13544 ac_ct_DLLTOOL=$DLLTOOL
13545 # Extract the first word of "dlltool", so it can be a program name with args.
13546set dummy dlltool; ac_word=$2
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013549if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013550 $as_echo_n "(cached) " >&6
13551else
13552 if test -n "$ac_ct_DLLTOOL"; then
13553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13554else
13555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13565 fi
13566done
13567 done
13568IFS=$as_save_IFS
13569
13570fi
13571fi
13572ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13573if test -n "$ac_ct_DLLTOOL"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13575$as_echo "$ac_ct_DLLTOOL" >&6; }
13576else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581 if test "x$ac_ct_DLLTOOL" = x; then
13582 DLLTOOL="false"
13583 else
13584 case $cross_compiling:$ac_tool_warned in
13585yes:)
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13588ac_tool_warned=yes ;;
13589esac
13590 DLLTOOL=$ac_ct_DLLTOOL
13591 fi
13592else
13593 DLLTOOL="$ac_cv_prog_DLLTOOL"
13594fi
13595
13596 if test -n "$ac_tool_prefix"; then
13597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13598set dummy ${ac_tool_prefix}objdump; ac_word=$2
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013601if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013602 $as_echo_n "(cached) " >&6
13603else
13604 if test -n "$OBJDUMP"; then
13605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13606else
13607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608for as_dir in $PATH
13609do
13610 IFS=$as_save_IFS
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 break 2
13617 fi
13618done
13619 done
13620IFS=$as_save_IFS
13621
13622fi
13623fi
13624OBJDUMP=$ac_cv_prog_OBJDUMP
13625if test -n "$OBJDUMP"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13627$as_echo "$OBJDUMP" >&6; }
13628else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630$as_echo "no" >&6; }
13631fi
13632
13633
13634fi
13635if test -z "$ac_cv_prog_OBJDUMP"; then
13636 ac_ct_OBJDUMP=$OBJDUMP
13637 # Extract the first word of "objdump", so it can be a program name with args.
13638set dummy objdump; ac_word=$2
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013641if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013642 $as_echo_n "(cached) " >&6
13643else
13644 if test -n "$ac_ct_OBJDUMP"; then
13645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13646else
13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648for as_dir in $PATH
13649do
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13657 fi
13658done
13659 done
13660IFS=$as_save_IFS
13661
13662fi
13663fi
13664ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13665if test -n "$ac_ct_OBJDUMP"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13667$as_echo "$ac_ct_OBJDUMP" >&6; }
13668else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
13671fi
13672
13673 if test "x$ac_ct_OBJDUMP" = x; then
13674 OBJDUMP="false"
13675 else
13676 case $cross_compiling:$ac_tool_warned in
13677yes:)
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13680ac_tool_warned=yes ;;
13681esac
13682 OBJDUMP=$ac_ct_OBJDUMP
13683 fi
13684else
13685 OBJDUMP="$ac_cv_prog_OBJDUMP"
13686fi
13687
13688 ;;
13689esac
13690
13691test -z "$AS" && AS=as
13692
13693
13694
13695
13696
13697test -z "$DLLTOOL" && DLLTOOL=dlltool
13698
13699
13700
13701
13702
13703test -z "$OBJDUMP" && OBJDUMP=objdump
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 # Check whether --enable-shared was given.
13714if test "${enable_shared+set}" = set; then :
13715 enableval=$enable_shared; p=${PACKAGE-default}
13716 case $enableval in
13717 yes) enable_shared=yes ;;
13718 no) enable_shared=no ;;
13719 *)
13720 enable_shared=no
13721 # Look at the argument we got. We use all the common list separators.
13722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13723 for pkg in $enableval; do
13724 IFS="$lt_save_ifs"
13725 if test "X$pkg" = "X$p"; then
13726 enable_shared=yes
13727 fi
13728 done
13729 IFS="$lt_save_ifs"
13730 ;;
13731 esac
13732else
13733 enable_shared=yes
13734fi
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744 # Check whether --enable-static was given.
13745if test "${enable_static+set}" = set; then :
13746 enableval=$enable_static; p=${PACKAGE-default}
13747 case $enableval in
13748 yes) enable_static=yes ;;
13749 no) enable_static=no ;;
13750 *)
13751 enable_static=no
13752 # Look at the argument we got. We use all the common list separators.
13753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13754 for pkg in $enableval; do
13755 IFS="$lt_save_ifs"
13756 if test "X$pkg" = "X$p"; then
13757 enable_static=yes
13758 fi
13759 done
13760 IFS="$lt_save_ifs"
13761 ;;
13762 esac
13763else
13764 enable_static=yes
13765fi
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776# Check whether --with-pic was given.
13777if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013778 withval=$with_pic; lt_p=${PACKAGE-default}
13779 case $withval in
13780 yes|no) pic_mode=$withval ;;
13781 *)
13782 pic_mode=default
13783 # Look at the argument we got. We use all the common list separators.
13784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13785 for lt_pkg in $withval; do
13786 IFS="$lt_save_ifs"
13787 if test "X$lt_pkg" = "X$lt_p"; then
13788 pic_mode=yes
13789 fi
13790 done
13791 IFS="$lt_save_ifs"
13792 ;;
13793 esac
cristy73bd4a52010-10-05 11:24:23 +000013794else
13795 pic_mode=default
13796fi
13797
13798
13799test -z "$pic_mode" && pic_mode=default
13800
13801
13802
13803
13804
13805
13806
13807 # Check whether --enable-fast-install was given.
13808if test "${enable_fast_install+set}" = set; then :
13809 enableval=$enable_fast_install; p=${PACKAGE-default}
13810 case $enableval in
13811 yes) enable_fast_install=yes ;;
13812 no) enable_fast_install=no ;;
13813 *)
13814 enable_fast_install=no
13815 # Look at the argument we got. We use all the common list separators.
13816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13817 for pkg in $enableval; do
13818 IFS="$lt_save_ifs"
13819 if test "X$pkg" = "X$p"; then
13820 enable_fast_install=yes
13821 fi
13822 done
13823 IFS="$lt_save_ifs"
13824 ;;
13825 esac
13826else
13827 enable_fast_install=yes
13828fi
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840# This can be used to rebuild libtool when needed
13841LIBTOOL_DEPS="$ltmain"
13842
13843# Always use our own libtool.
13844LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
cristy0c60a692010-11-04 01:09:47 +000013870
cristy99bd5232011-12-07 14:38:20 +000013871
13872
13873
13874
cristy73bd4a52010-10-05 11:24:23 +000013875test -z "$LN_S" && LN_S="ln -s"
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890if test -n "${ZSH_VERSION+set}" ; then
13891 setopt NO_GLOB_SUBST
13892fi
13893
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13895$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013896if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013897 $as_echo_n "(cached) " >&6
13898else
13899 rm -f .libs 2>/dev/null
13900mkdir .libs 2>/dev/null
13901if test -d .libs; then
13902 lt_cv_objdir=.libs
13903else
13904 # MS-DOS does not allow filenames that begin with a dot.
13905 lt_cv_objdir=_libs
13906fi
13907rmdir .libs 2>/dev/null
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13910$as_echo "$lt_cv_objdir" >&6; }
13911objdir=$lt_cv_objdir
13912
13913
13914
13915
13916
13917cat >>confdefs.h <<_ACEOF
13918#define LT_OBJDIR "$lt_cv_objdir/"
13919_ACEOF
13920
13921
13922
13923
cristy73bd4a52010-10-05 11:24:23 +000013924case $host_os in
13925aix3*)
13926 # AIX sometimes has problems with the GCC collect2 program. For some
13927 # reason, if we set the COLLECT_NAMES environment variable, the problems
13928 # vanish in a puff of smoke.
13929 if test "X${COLLECT_NAMES+set}" != Xset; then
13930 COLLECT_NAMES=
13931 export COLLECT_NAMES
13932 fi
13933 ;;
13934esac
13935
cristy73bd4a52010-10-05 11:24:23 +000013936# Global variables:
13937ofile=libtool
13938can_build_shared=yes
13939
13940# All known linkers require a `.a' archive for static linking (except MSVC,
13941# which needs '.lib').
13942libext=a
13943
13944with_gnu_ld="$lt_cv_prog_gnu_ld"
13945
13946old_CC="$CC"
13947old_CFLAGS="$CFLAGS"
13948
13949# Set sane defaults for various variables
13950test -z "$CC" && CC=cc
13951test -z "$LTCC" && LTCC=$CC
13952test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13953test -z "$LD" && LD=ld
13954test -z "$ac_objext" && ac_objext=o
13955
13956for cc_temp in $compiler""; do
13957 case $cc_temp in
13958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13960 \-*) ;;
13961 *) break;;
13962 esac
13963done
cristy0c60a692010-11-04 01:09:47 +000013964cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013965
13966
13967# Only perform the check for file, if the check method requires it
13968test -z "$MAGIC_CMD" && MAGIC_CMD=file
13969case $deplibs_check_method in
13970file_magic*)
13971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013974if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013975 $as_echo_n "(cached) " >&6
13976else
13977 case $MAGIC_CMD in
13978[\\/*] | ?:[\\/]*)
13979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13980 ;;
13981*)
13982 lt_save_MAGIC_CMD="$MAGIC_CMD"
13983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13985 for ac_dir in $ac_dummy; do
13986 IFS="$lt_save_ifs"
13987 test -z "$ac_dir" && ac_dir=.
13988 if test -f $ac_dir/${ac_tool_prefix}file; then
13989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13990 if test -n "$file_magic_test_file"; then
13991 case $deplibs_check_method in
13992 "file_magic "*)
13993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13996 $EGREP "$file_magic_regex" > /dev/null; then
13997 :
13998 else
13999 cat <<_LT_EOF 1>&2
14000
14001*** Warning: the command libtool uses to detect shared libraries,
14002*** $file_magic_cmd, produces output that libtool cannot recognize.
14003*** The result is that libtool may fail to recognize shared libraries
14004*** as such. This will affect the creation of libtool libraries that
14005*** depend on shared libraries, but programs linked with such libtool
14006*** libraries will work regardless of this problem. Nevertheless, you
14007*** may want to report the problem to your system manager and/or to
14008*** bug-libtool@gnu.org
14009
14010_LT_EOF
14011 fi ;;
14012 esac
14013 fi
14014 break
14015 fi
14016 done
14017 IFS="$lt_save_ifs"
14018 MAGIC_CMD="$lt_save_MAGIC_CMD"
14019 ;;
14020esac
14021fi
14022
14023MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024if test -n "$MAGIC_CMD"; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14026$as_echo "$MAGIC_CMD" >&6; }
14027else
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029$as_echo "no" >&6; }
14030fi
14031
14032
14033
14034
14035
14036if test -z "$lt_cv_path_MAGIC_CMD"; then
14037 if test -n "$ac_tool_prefix"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14039$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014040if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014041 $as_echo_n "(cached) " >&6
14042else
14043 case $MAGIC_CMD in
14044[\\/*] | ?:[\\/]*)
14045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14046 ;;
14047*)
14048 lt_save_MAGIC_CMD="$MAGIC_CMD"
14049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14051 for ac_dir in $ac_dummy; do
14052 IFS="$lt_save_ifs"
14053 test -z "$ac_dir" && ac_dir=.
14054 if test -f $ac_dir/file; then
14055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14056 if test -n "$file_magic_test_file"; then
14057 case $deplibs_check_method in
14058 "file_magic "*)
14059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14062 $EGREP "$file_magic_regex" > /dev/null; then
14063 :
14064 else
14065 cat <<_LT_EOF 1>&2
14066
14067*** Warning: the command libtool uses to detect shared libraries,
14068*** $file_magic_cmd, produces output that libtool cannot recognize.
14069*** The result is that libtool may fail to recognize shared libraries
14070*** as such. This will affect the creation of libtool libraries that
14071*** depend on shared libraries, but programs linked with such libtool
14072*** libraries will work regardless of this problem. Nevertheless, you
14073*** may want to report the problem to your system manager and/or to
14074*** bug-libtool@gnu.org
14075
14076_LT_EOF
14077 fi ;;
14078 esac
14079 fi
14080 break
14081 fi
14082 done
14083 IFS="$lt_save_ifs"
14084 MAGIC_CMD="$lt_save_MAGIC_CMD"
14085 ;;
14086esac
14087fi
14088
14089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14090if test -n "$MAGIC_CMD"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14092$as_echo "$MAGIC_CMD" >&6; }
14093else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095$as_echo "no" >&6; }
14096fi
14097
14098
14099 else
14100 MAGIC_CMD=:
14101 fi
14102fi
14103
14104 fi
14105 ;;
14106esac
14107
14108# Use C for the default configuration in the libtool script
14109
14110lt_save_CC="$CC"
14111ac_ext=c
14112ac_cpp='$CPP $CPPFLAGS'
14113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14115ac_compiler_gnu=$ac_cv_c_compiler_gnu
14116
14117
14118# Source file extension for C test sources.
14119ac_ext=c
14120
14121# Object file extension for compiled C test sources.
14122objext=o
14123objext=$objext
14124
14125# Code to be used in simple compile tests
14126lt_simple_compile_test_code="int some_variable = 0;"
14127
14128# Code to be used in simple link tests
14129lt_simple_link_test_code='int main(){return(0);}'
14130
14131
14132
14133
14134
14135
14136
14137# If no C compiler was specified, use CC.
14138LTCC=${LTCC-"$CC"}
14139
14140# If no C compiler flags were specified, use CFLAGS.
14141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14142
14143# Allow CC to be a program name with arguments.
14144compiler=$CC
14145
14146# Save the default compiler, since it gets overwritten when the other
14147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14148compiler_DEFAULT=$CC
14149
14150# save warnings/boilerplate of simple test code
14151ac_outfile=conftest.$ac_objext
14152echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14154_lt_compiler_boilerplate=`cat conftest.err`
14155$RM conftest*
14156
14157ac_outfile=conftest.$ac_objext
14158echo "$lt_simple_link_test_code" >conftest.$ac_ext
14159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14160_lt_linker_boilerplate=`cat conftest.err`
14161$RM -r conftest*
14162
14163
14164## CAVEAT EMPTOR:
14165## There is no encapsulation within the following macros, do not change
14166## the running order or otherwise move them around unless you know exactly
14167## what you are doing...
14168if test -n "$compiler"; then
14169
14170lt_prog_compiler_no_builtin_flag=
14171
14172if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014173 case $cc_basename in
14174 nvcc*)
14175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14176 *)
14177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14178 esac
cristy73bd4a52010-10-05 11:24:23 +000014179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014182if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014183 $as_echo_n "(cached) " >&6
14184else
14185 lt_cv_prog_compiler_rtti_exceptions=no
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188 lt_compiler_flag="-fno-rtti -fno-exceptions"
14189 # Insert the option either (1) after the last *FLAGS variable, or
14190 # (2) before a word containing "conftest.", or (3) at the end.
14191 # Note that $ac_compile itself does not contain backslashes and begins
14192 # with a dollar sign (not a hyphen), so the echo should work correctly.
14193 # The option is referenced via a variable to avoid confusing sed.
14194 lt_compile=`echo "$ac_compile" | $SED \
14195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014199 (eval "$lt_compile" 2>conftest.err)
14200 ac_status=$?
14201 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014203 if (exit $ac_status) && test -s "$ac_outfile"; then
14204 # The compiler can only warn and ignore the option if not recognized
14205 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14209 lt_cv_prog_compiler_rtti_exceptions=yes
14210 fi
14211 fi
14212 $RM conftest*
14213
14214fi
14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14217
14218if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14220else
14221 :
14222fi
14223
14224fi
14225
14226
14227
14228
14229
14230
14231 lt_prog_compiler_wl=
14232lt_prog_compiler_pic=
14233lt_prog_compiler_static=
14234
cristy73bd4a52010-10-05 11:24:23 +000014235
14236 if test "$GCC" = yes; then
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_static='-static'
14239
14240 case $host_os in
14241 aix*)
14242 # All AIX code is PIC.
14243 if test "$host_cpu" = ia64; then
14244 # AIX 5 now supports IA64 processor
14245 lt_prog_compiler_static='-Bstatic'
14246 fi
14247 ;;
14248
14249 amigaos*)
14250 case $host_cpu in
14251 powerpc)
14252 # see comment about AmigaOS4 .so support
14253 lt_prog_compiler_pic='-fPIC'
14254 ;;
14255 m68k)
14256 # FIXME: we need at least 68020 code to build shared libraries, but
14257 # adding the `-m68020' flag to GCC prevents building anything better,
14258 # like `-m68040'.
14259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14260 ;;
14261 esac
14262 ;;
14263
14264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14265 # PIC is the default for these OSes.
14266 ;;
14267
14268 mingw* | cygwin* | pw32* | os2* | cegcc*)
14269 # This hack is so that the source file can tell whether it is being
14270 # built for inclusion in a dll (and should export symbols for example).
14271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14272 # (--disable-auto-import) libraries
14273 lt_prog_compiler_pic='-DDLL_EXPORT'
14274 ;;
14275
14276 darwin* | rhapsody*)
14277 # PIC is the default on this platform
14278 # Common symbols not allowed in MH_DYLIB files
14279 lt_prog_compiler_pic='-fno-common'
14280 ;;
14281
cristy0c60a692010-11-04 01:09:47 +000014282 haiku*)
14283 # PIC is the default for Haiku.
14284 # The "-static" flag exists, but is broken.
14285 lt_prog_compiler_static=
14286 ;;
14287
cristy73bd4a52010-10-05 11:24:23 +000014288 hpux*)
14289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14291 # sets the default TLS model and affects inlining.
14292 case $host_cpu in
14293 hppa*64*)
14294 # +Z the default
14295 ;;
14296 *)
14297 lt_prog_compiler_pic='-fPIC'
14298 ;;
14299 esac
14300 ;;
14301
14302 interix[3-9]*)
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14305 ;;
14306
14307 msdosdjgpp*)
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared=no
14311 enable_shared=no
14312 ;;
14313
14314 *nto* | *qnx*)
14315 # QNX uses GNU C++, but need to define -shared option too, otherwise
14316 # it will coredump.
14317 lt_prog_compiler_pic='-fPIC -shared'
14318 ;;
14319
14320 sysv4*MP*)
14321 if test -d /usr/nec; then
14322 lt_prog_compiler_pic=-Kconform_pic
14323 fi
14324 ;;
14325
14326 *)
14327 lt_prog_compiler_pic='-fPIC'
14328 ;;
14329 esac
cristy0c60a692010-11-04 01:09:47 +000014330
14331 case $cc_basename in
14332 nvcc*) # Cuda Compiler Driver 2.2
14333 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014334 if test -n "$lt_prog_compiler_pic"; then
14335 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14336 fi
cristy0c60a692010-11-04 01:09:47 +000014337 ;;
14338 esac
cristy73bd4a52010-10-05 11:24:23 +000014339 else
14340 # PORTME Check for flag to pass linker flags through the system compiler.
14341 case $host_os in
14342 aix*)
14343 lt_prog_compiler_wl='-Wl,'
14344 if test "$host_cpu" = ia64; then
14345 # AIX 5 now supports IA64 processor
14346 lt_prog_compiler_static='-Bstatic'
14347 else
14348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14349 fi
14350 ;;
14351
14352 mingw* | cygwin* | pw32* | os2* | cegcc*)
14353 # This hack is so that the source file can tell whether it is being
14354 # built for inclusion in a dll (and should export symbols for example).
14355 lt_prog_compiler_pic='-DDLL_EXPORT'
14356 ;;
14357
14358 hpux9* | hpux10* | hpux11*)
14359 lt_prog_compiler_wl='-Wl,'
14360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14361 # not for PA HP-UX.
14362 case $host_cpu in
14363 hppa*64*|ia64*)
14364 # +Z the default
14365 ;;
14366 *)
14367 lt_prog_compiler_pic='+Z'
14368 ;;
14369 esac
14370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14371 lt_prog_compiler_static='${wl}-a ${wl}archive'
14372 ;;
14373
14374 irix5* | irix6* | nonstopux*)
14375 lt_prog_compiler_wl='-Wl,'
14376 # PIC (with -KPIC) is the default.
14377 lt_prog_compiler_static='-non_shared'
14378 ;;
14379
cristy0c60a692010-11-04 01:09:47 +000014380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014381 case $cc_basename in
14382 # old Intel for x86_64 which still supported -KPIC.
14383 ecc*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-static'
14387 ;;
14388 # icc used to be incompatible with GCC.
14389 # ICC 10 doesn't accept -KPIC any more.
14390 icc* | ifort*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_pic='-fPIC'
14393 lt_prog_compiler_static='-static'
14394 ;;
14395 # Lahey Fortran 8.1.
14396 lf95*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_pic='--shared'
14399 lt_prog_compiler_static='--static'
14400 ;;
cristyda16f162011-02-19 23:52:17 +000014401 nagfor*)
14402 # NAG Fortran compiler
14403 lt_prog_compiler_wl='-Wl,-Wl,,'
14404 lt_prog_compiler_pic='-PIC'
14405 lt_prog_compiler_static='-Bstatic'
14406 ;;
cristy0c60a692010-11-04 01:09:47 +000014407 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014408 # Portland Group compilers (*not* the Pentium gcc compiler,
14409 # which looks to be a dead project)
14410 lt_prog_compiler_wl='-Wl,'
14411 lt_prog_compiler_pic='-fpic'
14412 lt_prog_compiler_static='-Bstatic'
14413 ;;
14414 ccc*)
14415 lt_prog_compiler_wl='-Wl,'
14416 # All Alpha code is PIC.
14417 lt_prog_compiler_static='-non_shared'
14418 ;;
cristy0c60a692010-11-04 01:09:47 +000014419 xl* | bgxl* | bgf* | mpixl*)
14420 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014421 lt_prog_compiler_wl='-Wl,'
14422 lt_prog_compiler_pic='-qpic'
14423 lt_prog_compiler_static='-qstaticlink'
14424 ;;
14425 *)
14426 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014427 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14429 lt_prog_compiler_pic='-KPIC'
14430 lt_prog_compiler_static='-Bstatic'
14431 lt_prog_compiler_wl=''
14432 ;;
cristy99bd5232011-12-07 14:38:20 +000014433 *Sun\ F* | *Sun*Fortran*)
14434 lt_prog_compiler_pic='-KPIC'
14435 lt_prog_compiler_static='-Bstatic'
14436 lt_prog_compiler_wl='-Qoption ld '
14437 ;;
cristy73bd4a52010-10-05 11:24:23 +000014438 *Sun\ C*)
14439 # Sun C 5.9
14440 lt_prog_compiler_pic='-KPIC'
14441 lt_prog_compiler_static='-Bstatic'
14442 lt_prog_compiler_wl='-Wl,'
14443 ;;
cristy99bd5232011-12-07 14:38:20 +000014444 *Intel*\ [CF]*Compiler*)
14445 lt_prog_compiler_wl='-Wl,'
14446 lt_prog_compiler_pic='-fPIC'
14447 lt_prog_compiler_static='-static'
14448 ;;
14449 *Portland\ Group*)
14450 lt_prog_compiler_wl='-Wl,'
14451 lt_prog_compiler_pic='-fpic'
14452 lt_prog_compiler_static='-Bstatic'
14453 ;;
cristy73bd4a52010-10-05 11:24:23 +000014454 esac
14455 ;;
14456 esac
14457 ;;
14458
14459 newsos6)
14460 lt_prog_compiler_pic='-KPIC'
14461 lt_prog_compiler_static='-Bstatic'
14462 ;;
14463
14464 *nto* | *qnx*)
14465 # QNX uses GNU C++, but need to define -shared option too, otherwise
14466 # it will coredump.
14467 lt_prog_compiler_pic='-fPIC -shared'
14468 ;;
14469
14470 osf3* | osf4* | osf5*)
14471 lt_prog_compiler_wl='-Wl,'
14472 # All OSF/1 code is PIC.
14473 lt_prog_compiler_static='-non_shared'
14474 ;;
14475
14476 rdos*)
14477 lt_prog_compiler_static='-non_shared'
14478 ;;
14479
14480 solaris*)
14481 lt_prog_compiler_pic='-KPIC'
14482 lt_prog_compiler_static='-Bstatic'
14483 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014484 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014485 lt_prog_compiler_wl='-Qoption ld ';;
14486 *)
14487 lt_prog_compiler_wl='-Wl,';;
14488 esac
14489 ;;
14490
14491 sunos4*)
14492 lt_prog_compiler_wl='-Qoption ld '
14493 lt_prog_compiler_pic='-PIC'
14494 lt_prog_compiler_static='-Bstatic'
14495 ;;
14496
14497 sysv4 | sysv4.2uw2* | sysv4.3*)
14498 lt_prog_compiler_wl='-Wl,'
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14501 ;;
14502
14503 sysv4*MP*)
14504 if test -d /usr/nec ;then
14505 lt_prog_compiler_pic='-Kconform_pic'
14506 lt_prog_compiler_static='-Bstatic'
14507 fi
14508 ;;
14509
14510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14511 lt_prog_compiler_wl='-Wl,'
14512 lt_prog_compiler_pic='-KPIC'
14513 lt_prog_compiler_static='-Bstatic'
14514 ;;
14515
14516 unicos*)
14517 lt_prog_compiler_wl='-Wl,'
14518 lt_prog_compiler_can_build_shared=no
14519 ;;
14520
14521 uts4*)
14522 lt_prog_compiler_pic='-pic'
14523 lt_prog_compiler_static='-Bstatic'
14524 ;;
14525
14526 *)
14527 lt_prog_compiler_can_build_shared=no
14528 ;;
14529 esac
14530 fi
14531
14532case $host_os in
14533 # For platforms which do not support PIC, -DPIC is meaningless:
14534 *djgpp*)
14535 lt_prog_compiler_pic=
14536 ;;
14537 *)
14538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14539 ;;
14540esac
cristy73bd4a52010-10-05 11:24:23 +000014541
cristyda16f162011-02-19 23:52:17 +000014542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14543$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14544if ${lt_cv_prog_compiler_pic+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546else
14547 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14550$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14551lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014552
14553#
14554# Check to make sure the PIC flag actually works.
14555#
14556if test -n "$lt_prog_compiler_pic"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14558$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014559if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014560 $as_echo_n "(cached) " >&6
14561else
14562 lt_cv_prog_compiler_pic_works=no
14563 ac_outfile=conftest.$ac_objext
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 # The option is referenced via a variable to avoid confusing sed.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014576 (eval "$lt_compile" 2>conftest.err)
14577 ac_status=$?
14578 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014580 if (exit $ac_status) && test -s "$ac_outfile"; then
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_pic_works=yes
14587 fi
14588 fi
14589 $RM conftest*
14590
14591fi
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14593$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14594
14595if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14596 case $lt_prog_compiler_pic in
14597 "" | " "*) ;;
14598 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14599 esac
14600else
14601 lt_prog_compiler_pic=
14602 lt_prog_compiler_can_build_shared=no
14603fi
14604
14605fi
14606
14607
14608
14609
14610
14611
cristyda16f162011-02-19 23:52:17 +000014612
14613
14614
14615
14616
cristy73bd4a52010-10-05 11:24:23 +000014617#
14618# Check to make sure the static flag actually works.
14619#
14620wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14622$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014623if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014624 $as_echo_n "(cached) " >&6
14625else
14626 lt_cv_prog_compiler_static_works=no
14627 save_LDFLAGS="$LDFLAGS"
14628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14631 # The linker can only warn and ignore the option if not recognized
14632 # So say no if there are warnings
14633 if test -s conftest.err; then
14634 # Append any errors to the config.log.
14635 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14638 if diff conftest.exp conftest.er2 >/dev/null; then
14639 lt_cv_prog_compiler_static_works=yes
14640 fi
14641 else
14642 lt_cv_prog_compiler_static_works=yes
14643 fi
14644 fi
14645 $RM -r conftest*
14646 LDFLAGS="$save_LDFLAGS"
14647
14648fi
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14650$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14651
14652if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14653 :
14654else
14655 lt_prog_compiler_static=
14656fi
14657
14658
14659
14660
14661
14662
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14665$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014666if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014667 $as_echo_n "(cached) " >&6
14668else
14669 lt_cv_prog_compiler_c_o=no
14670 $RM -r conftest 2>/dev/null
14671 mkdir conftest
14672 cd conftest
14673 mkdir out
14674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14675
14676 lt_compiler_flag="-o out/conftest2.$ac_objext"
14677 # Insert the option either (1) after the last *FLAGS variable, or
14678 # (2) before a word containing "conftest.", or (3) at the end.
14679 # Note that $ac_compile itself does not contain backslashes and begins
14680 # with a dollar sign (not a hyphen), so the echo should work correctly.
14681 lt_compile=`echo "$ac_compile" | $SED \
14682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14684 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014686 (eval "$lt_compile" 2>out/conftest.err)
14687 ac_status=$?
14688 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14691 then
14692 # The compiler can only warn and ignore the option if not recognized
14693 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14697 lt_cv_prog_compiler_c_o=yes
14698 fi
14699 fi
14700 chmod u+w . 2>&5
14701 $RM conftest*
14702 # SGI C++ compiler will create directory out/ii_files/ for
14703 # template instantiation
14704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14705 $RM out/* && rmdir out
14706 cd ..
14707 $RM -r conftest
14708 $RM conftest*
14709
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14712$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14713
14714
14715
14716
14717
14718
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014721if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014722 $as_echo_n "(cached) " >&6
14723else
14724 lt_cv_prog_compiler_c_o=no
14725 $RM -r conftest 2>/dev/null
14726 mkdir conftest
14727 cd conftest
14728 mkdir out
14729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730
14731 lt_compiler_flag="-o out/conftest2.$ac_objext"
14732 # Insert the option either (1) after the last *FLAGS variable, or
14733 # (2) before a word containing "conftest.", or (3) at the end.
14734 # Note that $ac_compile itself does not contain backslashes and begins
14735 # with a dollar sign (not a hyphen), so the echo should work correctly.
14736 lt_compile=`echo "$ac_compile" | $SED \
14737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014741 (eval "$lt_compile" 2>out/conftest.err)
14742 ac_status=$?
14743 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14746 then
14747 # The compiler can only warn and ignore the option if not recognized
14748 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler_c_o=yes
14753 fi
14754 fi
14755 chmod u+w . 2>&5
14756 $RM conftest*
14757 # SGI C++ compiler will create directory out/ii_files/ for
14758 # template instantiation
14759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14760 $RM out/* && rmdir out
14761 cd ..
14762 $RM -r conftest
14763 $RM conftest*
14764
14765fi
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14767$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14768
14769
14770
14771
14772hard_links="nottested"
14773if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14774 # do not overwrite the value of need_locks provided by the user
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14776$as_echo_n "checking if we can lock with hard links... " >&6; }
14777 hard_links=yes
14778 $RM conftest*
14779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14780 touch conftest.a
14781 ln conftest.a conftest.b 2>&5 || hard_links=no
14782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14784$as_echo "$hard_links" >&6; }
14785 if test "$hard_links" = no; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14787$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14788 need_locks=warn
14789 fi
14790else
14791 need_locks=no
14792fi
14793
14794
14795
14796
14797
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14800$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14801
14802 runpath_var=
14803 allow_undefined_flag=
14804 always_export_symbols=no
14805 archive_cmds=
14806 archive_expsym_cmds=
14807 compiler_needs_object=no
14808 enable_shared_with_static_runtimes=no
14809 export_dynamic_flag_spec=
14810 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14811 hardcode_automatic=no
14812 hardcode_direct=no
14813 hardcode_direct_absolute=no
14814 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014815 hardcode_libdir_separator=
14816 hardcode_minus_L=no
14817 hardcode_shlibpath_var=unsupported
14818 inherit_rpath=no
14819 link_all_deplibs=unknown
14820 module_cmds=
14821 module_expsym_cmds=
14822 old_archive_from_new_cmds=
14823 old_archive_from_expsyms_cmds=
14824 thread_safe_flag_spec=
14825 whole_archive_flag_spec=
14826 # include_expsyms should be a list of space-separated symbols to be *always*
14827 # included in the symbol list
14828 include_expsyms=
14829 # exclude_expsyms can be an extended regexp of symbols to exclude
14830 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14832 # as well as any symbol that contains `d'.
14833 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14835 # platforms (ab)use it in PIC code, but their linkers get confused if
14836 # the symbol is explicitly referenced. Since portable code cannot
14837 # rely on this symbol name, it's probably fine to never include it in
14838 # preloaded symbol tables.
14839 # Exclude shared library initialization/finalization symbols.
14840 extract_expsyms_cmds=
14841
14842 case $host_os in
14843 cygwin* | mingw* | pw32* | cegcc*)
14844 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14845 # When not using gcc, we currently assume that we are using
14846 # Microsoft Visual C++.
14847 if test "$GCC" != yes; then
14848 with_gnu_ld=no
14849 fi
14850 ;;
14851 interix*)
14852 # we just hope/assume this is gcc and not c89 (= MSVC++)
14853 with_gnu_ld=yes
14854 ;;
14855 openbsd*)
14856 with_gnu_ld=no
14857 ;;
14858 esac
14859
14860 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014861
14862 # On some targets, GNU ld is compatible enough with the native linker
14863 # that we're better off using the native interface for both.
14864 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014865 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014866 case $host_os in
14867 aix*)
14868 # The AIX port of GNU ld has always aspired to compatibility
14869 # with the native linker. However, as the warning in the GNU ld
14870 # block says, versions before 2.19.5* couldn't really create working
14871 # shared libraries, regardless of the interface used.
14872 case `$LD -v 2>&1` in
14873 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14874 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14875 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14876 *)
14877 lt_use_gnu_ld_interface=yes
14878 ;;
14879 esac
14880 ;;
14881 *)
14882 lt_use_gnu_ld_interface=yes
14883 ;;
14884 esac
14885 fi
14886
14887 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014888 # If archive_cmds runs LD, not CC, wlarc should be empty
14889 wlarc='${wl}'
14890
14891 # Set some defaults for GNU ld with shared library support. These
14892 # are reset later if shared libraries are not supported. Putting them
14893 # here allows them to be overridden if necessary.
14894 runpath_var=LD_RUN_PATH
14895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14896 export_dynamic_flag_spec='${wl}--export-dynamic'
14897 # ancient GNU ld didn't support --whole-archive et. al.
14898 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14899 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14900 else
14901 whole_archive_flag_spec=
14902 fi
14903 supports_anon_versioning=no
14904 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014905 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14909 *\ 2.11.*) ;; # other 2.11 versions
14910 *) supports_anon_versioning=yes ;;
14911 esac
14912
14913 # See if GNU ld supports shared libraries.
14914 case $host_os in
14915 aix[3-9]*)
14916 # On AIX/PPC, the GNU linker is very broken
14917 if test "$host_cpu" != ia64; then
14918 ld_shlibs=no
14919 cat <<_LT_EOF 1>&2
14920
cristy0c60a692010-11-04 01:09:47 +000014921*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014922*** to be unable to reliably create shared libraries on AIX.
14923*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014924*** really care for shared libraries, you may want to install binutils
14925*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14926*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014927
14928_LT_EOF
14929 fi
14930 ;;
14931
14932 amigaos*)
14933 case $host_cpu in
14934 powerpc)
14935 # see comment about AmigaOS4 .so support
14936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14937 archive_expsym_cmds=''
14938 ;;
14939 m68k)
14940 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)'
14941 hardcode_libdir_flag_spec='-L$libdir'
14942 hardcode_minus_L=yes
14943 ;;
14944 esac
14945 ;;
14946
14947 beos*)
14948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14949 allow_undefined_flag=unsupported
14950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14951 # support --undefined. This deserves some investigation. FIXME
14952 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 else
14954 ld_shlibs=no
14955 fi
14956 ;;
14957
14958 cygwin* | mingw* | pw32* | cegcc*)
14959 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14960 # as there is no search path for DLLs.
14961 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014962 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014963 allow_undefined_flag=unsupported
14964 always_export_symbols=no
14965 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014966 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'
14967 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 +000014968
14969 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14971 # If the export-symbols file already is a .def file (1st line
14972 # is EXPORTS), use it as is; otherwise, prepend...
14973 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14974 cp $export_symbols $output_objdir/$soname.def;
14975 else
14976 echo EXPORTS > $output_objdir/$soname.def;
14977 cat $export_symbols >> $output_objdir/$soname.def;
14978 fi~
14979 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980 else
14981 ld_shlibs=no
14982 fi
14983 ;;
14984
cristy0c60a692010-11-04 01:09:47 +000014985 haiku*)
14986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987 link_all_deplibs=yes
14988 ;;
14989
cristy73bd4a52010-10-05 11:24:23 +000014990 interix[3-9]*)
14991 hardcode_direct=no
14992 hardcode_shlibpath_var=no
14993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14994 export_dynamic_flag_spec='${wl}-E'
14995 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14996 # Instead, shared libraries are loaded at an image base (0x10000000 by
14997 # default) and relocated if they conflict, which is a slow very memory
14998 # consuming and fragmenting process. To avoid this, we pick a random,
14999 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15000 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15002 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'
15003 ;;
15004
cristy0c60a692010-11-04 01:09:47 +000015005 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015006 tmp_diet=no
15007 if test "$host_os" = linux-dietlibc; then
15008 case $cc_basename in
15009 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15010 esac
15011 fi
15012 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15013 && test "$tmp_diet" = no
15014 then
cristyda16f162011-02-19 23:52:17 +000015015 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015016 tmp_sharedflag='-shared'
15017 case $cc_basename,$host_cpu in
15018 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015019 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 +000015020 tmp_addflag=' $pic_flag'
15021 ;;
cristy0c60a692010-11-04 01:09:47 +000015022 pgf77* | pgf90* | pgf95* | pgfortran*)
15023 # Portland Group f77 and f90 compilers
15024 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 +000015025 tmp_addflag=' $pic_flag -Mnomain' ;;
15026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15027 tmp_addflag=' -i_dynamic' ;;
15028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15029 tmp_addflag=' -i_dynamic -nofor_main' ;;
15030 ifc* | ifort*) # Intel Fortran compiler
15031 tmp_addflag=' -nofor_main' ;;
15032 lf95*) # Lahey Fortran 8.1
15033 whole_archive_flag_spec=
15034 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015035 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015036 tmp_sharedflag='-qmkshrobj'
15037 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015038 nvcc*) # Cuda Compiler Driver 2.2
15039 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'
15040 compiler_needs_object=yes
15041 ;;
cristy73bd4a52010-10-05 11:24:23 +000015042 esac
15043 case `$CC -V 2>&1 | sed 5q` in
15044 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015045 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 +000015046 compiler_needs_object=yes
15047 tmp_sharedflag='-G' ;;
15048 *Sun\ F*) # Sun Fortran 8.3
15049 tmp_sharedflag='-G' ;;
15050 esac
15051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052
15053 if test "x$supports_anon_versioning" = xyes; then
15054 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15056 echo "local: *; };" >> $output_objdir/$libname.ver~
15057 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15058 fi
15059
15060 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015061 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015062 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15063 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015065 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015066 if test "x$supports_anon_versioning" = xyes; then
15067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15069 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015070 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015071 fi
15072 ;;
15073 esac
15074 else
15075 ld_shlibs=no
15076 fi
15077 ;;
15078
15079 netbsd*)
15080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15081 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15082 wlarc=
15083 else
cristyda16f162011-02-19 23:52:17 +000015084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15085 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 +000015086 fi
15087 ;;
15088
15089 solaris*)
15090 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15091 ld_shlibs=no
15092 cat <<_LT_EOF 1>&2
15093
15094*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15095*** create shared libraries on Solaris systems. Therefore, libtool
15096*** is disabling shared libraries support. We urge you to upgrade GNU
15097*** binutils to release 2.9.1 or newer. Another option is to modify
15098*** your PATH or compiler configuration so that the native linker is
15099*** used, and then restart.
15100
15101_LT_EOF
15102 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15104 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 +000015105 else
15106 ld_shlibs=no
15107 fi
15108 ;;
15109
15110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15111 case `$LD -v 2>&1` in
15112 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15113 ld_shlibs=no
15114 cat <<_LT_EOF 1>&2
15115
15116*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15117*** reliably create shared libraries on SCO systems. Therefore, libtool
15118*** is disabling shared libraries support. We urge you to upgrade GNU
15119*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15120*** your PATH or compiler configuration so that the native linker is
15121*** used, and then restart.
15122
15123_LT_EOF
15124 ;;
15125 *)
15126 # For security reasons, it is highly recommended that you always
15127 # use absolute paths for naming shared libraries, and exclude the
15128 # DT_RUNPATH tag from executables and libraries. But doing so
15129 # requires that you compile everything twice, which is a pain.
15130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134 else
15135 ld_shlibs=no
15136 fi
15137 ;;
15138 esac
15139 ;;
15140
15141 sunos4*)
15142 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15143 wlarc=
15144 hardcode_direct=yes
15145 hardcode_shlibpath_var=no
15146 ;;
15147
15148 *)
15149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15151 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 +000015152 else
15153 ld_shlibs=no
15154 fi
15155 ;;
15156 esac
15157
15158 if test "$ld_shlibs" = no; then
15159 runpath_var=
15160 hardcode_libdir_flag_spec=
15161 export_dynamic_flag_spec=
15162 whole_archive_flag_spec=
15163 fi
15164 else
15165 # PORTME fill in a description of your system's linker (not GNU ld)
15166 case $host_os in
15167 aix3*)
15168 allow_undefined_flag=unsupported
15169 always_export_symbols=yes
15170 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'
15171 # Note: this linker hardcodes the directories in LIBPATH if there
15172 # are no directories specified by -L.
15173 hardcode_minus_L=yes
15174 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15175 # Neither direct hardcoding nor static linking is supported with a
15176 # broken collect2.
15177 hardcode_direct=unsupported
15178 fi
15179 ;;
15180
15181 aix[4-9]*)
15182 if test "$host_cpu" = ia64; then
15183 # On IA64, the linker does run time linking by default, so we don't
15184 # have to do anything special.
15185 aix_use_runtimelinking=no
15186 exp_sym_flag='-Bexport'
15187 no_entry_flag=""
15188 else
15189 # If we're using GNU nm, then we don't want the "-C" option.
15190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015191 # Also, AIX nm treats weak defined symbols like other global
15192 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015194 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 +000015195 else
15196 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'
15197 fi
15198 aix_use_runtimelinking=no
15199
15200 # Test if we are trying to use run time linking or normal
15201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15202 # need to do runtime linking.
15203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15204 for ld_flag in $LDFLAGS; do
15205 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15206 aix_use_runtimelinking=yes
15207 break
15208 fi
15209 done
15210 ;;
15211 esac
15212
15213 exp_sym_flag='-bexport'
15214 no_entry_flag='-bnoentry'
15215 fi
15216
15217 # When large executables or shared objects are built, AIX ld can
15218 # have problems creating the table of contents. If linking a library
15219 # or program results in "error TOC overflow" add -mminimal-toc to
15220 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15221 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15222
15223 archive_cmds=''
15224 hardcode_direct=yes
15225 hardcode_direct_absolute=yes
15226 hardcode_libdir_separator=':'
15227 link_all_deplibs=yes
15228 file_list_spec='${wl}-f,'
15229
15230 if test "$GCC" = yes; then
15231 case $host_os in aix4.[012]|aix4.[012].*)
15232 # We only want to do this on AIX 4.2 and lower, the check
15233 # below for broken collect2 doesn't work under 4.3+
15234 collect2name=`${CC} -print-prog-name=collect2`
15235 if test -f "$collect2name" &&
15236 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15237 then
15238 # We have reworked collect2
15239 :
15240 else
15241 # We have old collect2
15242 hardcode_direct=unsupported
15243 # It fails to find uninstalled libraries when the uninstalled
15244 # path is not listed in the libpath. Setting hardcode_minus_L
15245 # to unsupported forces relinking
15246 hardcode_minus_L=yes
15247 hardcode_libdir_flag_spec='-L$libdir'
15248 hardcode_libdir_separator=
15249 fi
15250 ;;
15251 esac
15252 shared_flag='-shared'
15253 if test "$aix_use_runtimelinking" = yes; then
15254 shared_flag="$shared_flag "'${wl}-G'
15255 fi
15256 else
15257 # not using gcc
15258 if test "$host_cpu" = ia64; then
15259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15260 # chokes on -Wl,-G. The following line is correct:
15261 shared_flag='-G'
15262 else
15263 if test "$aix_use_runtimelinking" = yes; then
15264 shared_flag='${wl}-G'
15265 else
15266 shared_flag='${wl}-bM:SRE'
15267 fi
15268 fi
15269 fi
15270
15271 export_dynamic_flag_spec='${wl}-bexpall'
15272 # It seems that -bexpall does not export symbols beginning with
15273 # underscore (_), so it is better to generate a list of symbols to export.
15274 always_export_symbols=yes
15275 if test "$aix_use_runtimelinking" = yes; then
15276 # Warning - without using the other runtime loading flags (-brtl),
15277 # -berok will link without error, but may produce a broken library.
15278 allow_undefined_flag='-berok'
15279 # Determine the default libpath from the value encoded in an
15280 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015281 if test "${lt_cv_aix_libpath+set}" = set; then
15282 aix_libpath=$lt_cv_aix_libpath
15283else
15284 if ${lt_cv_aix_libpath_+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286else
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015288/* end confdefs.h. */
15289
15290int
15291main ()
15292{
15293
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"; then :
15299
cristyda16f162011-02-19 23:52:17 +000015300 lt_aix_libpath_sed='
15301 /Import File Strings/,/^$/ {
15302 /^0/ {
15303 s/^0 *\([^ ]*\) *$/\1/
15304 p
15305 }
15306 }'
15307 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308 # Check for a 64-bit object if we didn't find anything.
15309 if test -z "$lt_cv_aix_libpath_"; then
15310 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311 fi
cristy73bd4a52010-10-05 11:24:23 +000015312fi
15313rm -f core conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015315 if test -z "$lt_cv_aix_libpath_"; then
15316 lt_cv_aix_libpath_="/usr/lib:/lib"
15317 fi
15318
15319fi
15320
15321 aix_libpath=$lt_cv_aix_libpath_
15322fi
cristy73bd4a52010-10-05 11:24:23 +000015323
15324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015325 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 +000015326 else
15327 if test "$host_cpu" = ia64; then
15328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15329 allow_undefined_flag="-z nodefs"
15330 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"
15331 else
15332 # Determine the default libpath from the value encoded in an
15333 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015334 if test "${lt_cv_aix_libpath+set}" = set; then
15335 aix_libpath=$lt_cv_aix_libpath
15336else
15337 if ${lt_cv_aix_libpath_+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339else
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015341/* end confdefs.h. */
15342
15343int
15344main ()
15345{
15346
15347 ;
15348 return 0;
15349}
15350_ACEOF
15351if ac_fn_c_try_link "$LINENO"; then :
15352
cristyda16f162011-02-19 23:52:17 +000015353 lt_aix_libpath_sed='
15354 /Import File Strings/,/^$/ {
15355 /^0/ {
15356 s/^0 *\([^ ]*\) *$/\1/
15357 p
15358 }
15359 }'
15360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361 # Check for a 64-bit object if we didn't find anything.
15362 if test -z "$lt_cv_aix_libpath_"; then
15363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15364 fi
cristy73bd4a52010-10-05 11:24:23 +000015365fi
15366rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015368 if test -z "$lt_cv_aix_libpath_"; then
15369 lt_cv_aix_libpath_="/usr/lib:/lib"
15370 fi
15371
15372fi
15373
15374 aix_libpath=$lt_cv_aix_libpath_
15375fi
cristy73bd4a52010-10-05 11:24:23 +000015376
15377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15378 # Warning - without using the other run time loading flags,
15379 # -berok will link without error, but may produce a broken library.
15380 no_undefined_flag=' ${wl}-bernotok'
15381 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015382 if test "$with_gnu_ld" = yes; then
15383 # We only use this code for GNU lds that support --whole-archive.
15384 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15385 else
15386 # Exported symbols can be pulled into shared objects from archives
15387 whole_archive_flag_spec='$convenience'
15388 fi
cristy73bd4a52010-10-05 11:24:23 +000015389 archive_cmds_need_lc=yes
15390 # This is similar to how AIX traditionally builds its shared libraries.
15391 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'
15392 fi
15393 fi
15394 ;;
15395
15396 amigaos*)
15397 case $host_cpu in
15398 powerpc)
15399 # see comment about AmigaOS4 .so support
15400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15401 archive_expsym_cmds=''
15402 ;;
15403 m68k)
15404 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)'
15405 hardcode_libdir_flag_spec='-L$libdir'
15406 hardcode_minus_L=yes
15407 ;;
15408 esac
15409 ;;
15410
15411 bsdi[45]*)
15412 export_dynamic_flag_spec=-rdynamic
15413 ;;
15414
15415 cygwin* | mingw* | pw32* | cegcc*)
15416 # When not using gcc, we currently assume that we are using
15417 # Microsoft Visual C++.
15418 # hardcode_libdir_flag_spec is actually meaningless, as there is
15419 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015420 case $cc_basename in
15421 cl*)
15422 # Native MSVC
15423 hardcode_libdir_flag_spec=' '
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=yes
15426 file_list_spec='@'
15427 # Tell ltmain to make .lib files, not .a files.
15428 libext=lib
15429 # Tell ltmain to make .dll files, not .so files.
15430 shrext_cmds=".dll"
15431 # FIXME: Setting linknames here is a bad hack.
15432 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15435 else
15436 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15437 fi~
15438 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15439 linknames='
15440 # The linker will not automatically build a static lib if we build a DLL.
15441 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15442 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015443 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15445 # Don't use ranlib
15446 old_postinstall_cmds='chmod 644 $oldlib'
15447 postlink_cmds='lt_outputfile="@OUTPUT@"~
15448 lt_tool_outputfile="@TOOL_OUTPUT@"~
15449 case $lt_outputfile in
15450 *.exe|*.EXE) ;;
15451 *)
15452 lt_outputfile="$lt_outputfile.exe"
15453 lt_tool_outputfile="$lt_tool_outputfile.exe"
15454 ;;
15455 esac~
15456 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15457 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15458 $RM "$lt_outputfile.manifest";
15459 fi'
15460 ;;
15461 *)
15462 # Assume MSVC wrapper
15463 hardcode_libdir_flag_spec=' '
15464 allow_undefined_flag=unsupported
15465 # Tell ltmain to make .lib files, not .a files.
15466 libext=lib
15467 # Tell ltmain to make .dll files, not .so files.
15468 shrext_cmds=".dll"
15469 # FIXME: Setting linknames here is a bad hack.
15470 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15471 # The linker will automatically build a .lib file if we build a DLL.
15472 old_archive_from_new_cmds='true'
15473 # FIXME: Should let the user specify the lib program.
15474 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15475 enable_shared_with_static_runtimes=yes
15476 ;;
15477 esac
cristy73bd4a52010-10-05 11:24:23 +000015478 ;;
15479
15480 darwin* | rhapsody*)
15481
15482
15483 archive_cmds_need_lc=no
15484 hardcode_direct=no
15485 hardcode_automatic=yes
15486 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015487 if test "$lt_cv_ld_force_load" = "yes"; then
15488 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 +000015489
cristy0c60a692010-11-04 01:09:47 +000015490 else
15491 whole_archive_flag_spec=''
15492 fi
cristy73bd4a52010-10-05 11:24:23 +000015493 link_all_deplibs=yes
15494 allow_undefined_flag="$_lt_dar_allow_undefined"
15495 case $cc_basename in
15496 ifort*) _lt_dar_can_shared=yes ;;
15497 *) _lt_dar_can_shared=$GCC ;;
15498 esac
15499 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015500 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015501 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15502 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15503 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}"
15504 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}"
15505
15506 else
15507 ld_shlibs=no
15508 fi
15509
15510 ;;
15511
15512 dgux*)
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_libdir_flag_spec='-L$libdir'
15515 hardcode_shlibpath_var=no
15516 ;;
15517
cristy73bd4a52010-10-05 11:24:23 +000015518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15519 # support. Future versions do this automatically, but an explicit c++rt0.o
15520 # does not break anything, and helps significantly (at the cost of a little
15521 # extra space).
15522 freebsd2.2*)
15523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15524 hardcode_libdir_flag_spec='-R$libdir'
15525 hardcode_direct=yes
15526 hardcode_shlibpath_var=no
15527 ;;
15528
15529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015530 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532 hardcode_direct=yes
15533 hardcode_minus_L=yes
15534 hardcode_shlibpath_var=no
15535 ;;
15536
15537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15538 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015540 hardcode_libdir_flag_spec='-R$libdir'
15541 hardcode_direct=yes
15542 hardcode_shlibpath_var=no
15543 ;;
15544
15545 hpux9*)
15546 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015547 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 +000015548 else
15549 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'
15550 fi
15551 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15552 hardcode_libdir_separator=:
15553 hardcode_direct=yes
15554
15555 # hardcode_minus_L: Not really in the search PATH,
15556 # but as the default location of the library.
15557 hardcode_minus_L=yes
15558 export_dynamic_flag_spec='${wl}-E'
15559 ;;
15560
15561 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015562 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015563 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 +000015564 else
15565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15566 fi
15567 if test "$with_gnu_ld" = no; then
15568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015569 hardcode_libdir_separator=:
15570 hardcode_direct=yes
15571 hardcode_direct_absolute=yes
15572 export_dynamic_flag_spec='${wl}-E'
15573 # hardcode_minus_L: Not really in the search PATH,
15574 # but as the default location of the library.
15575 hardcode_minus_L=yes
15576 fi
15577 ;;
15578
15579 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015581 case $host_cpu in
15582 hppa*64*)
15583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584 ;;
15585 ia64*)
cristyda16f162011-02-19 23:52:17 +000015586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015587 ;;
15588 *)
cristyda16f162011-02-19 23:52:17 +000015589 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 +000015590 ;;
15591 esac
15592 else
15593 case $host_cpu in
15594 hppa*64*)
15595 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 ;;
15597 ia64*)
15598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15599 ;;
15600 *)
cristy0c60a692010-11-04 01:09:47 +000015601
15602 # Older versions of the 11.00 compiler do not understand -b yet
15603 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15605$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015606if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015607 $as_echo_n "(cached) " >&6
15608else
15609 lt_cv_prog_compiler__b=no
15610 save_LDFLAGS="$LDFLAGS"
15611 LDFLAGS="$LDFLAGS -b"
15612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15614 # The linker can only warn and ignore the option if not recognized
15615 # So say no if there are warnings
15616 if test -s conftest.err; then
15617 # Append any errors to the config.log.
15618 cat conftest.err 1>&5
15619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15621 if diff conftest.exp conftest.er2 >/dev/null; then
15622 lt_cv_prog_compiler__b=yes
15623 fi
15624 else
15625 lt_cv_prog_compiler__b=yes
15626 fi
15627 fi
15628 $RM -r conftest*
15629 LDFLAGS="$save_LDFLAGS"
15630
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15633$as_echo "$lt_cv_prog_compiler__b" >&6; }
15634
15635if test x"$lt_cv_prog_compiler__b" = xyes; then
15636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15637else
15638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15639fi
15640
cristy73bd4a52010-10-05 11:24:23 +000015641 ;;
15642 esac
15643 fi
15644 if test "$with_gnu_ld" = no; then
15645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15646 hardcode_libdir_separator=:
15647
15648 case $host_cpu in
15649 hppa*64*|ia64*)
15650 hardcode_direct=no
15651 hardcode_shlibpath_var=no
15652 ;;
15653 *)
15654 hardcode_direct=yes
15655 hardcode_direct_absolute=yes
15656 export_dynamic_flag_spec='${wl}-E'
15657
15658 # hardcode_minus_L: Not really in the search PATH,
15659 # but as the default location of the library.
15660 hardcode_minus_L=yes
15661 ;;
15662 esac
15663 fi
15664 ;;
15665
15666 irix5* | irix6* | nonstopux*)
15667 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015668 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 +000015669 # Try to use the -exported_symbol ld option, if it does not
15670 # work, assume that -exports_file does not work either and
15671 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015672 # This should be the same for all languages, so no per-tag cache variable.
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15674$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15675if ${lt_cv_irix_exported_symbol+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677else
15678 save_LDFLAGS="$LDFLAGS"
15679 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015681/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015682int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015683_ACEOF
15684if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015685 lt_cv_irix_exported_symbol=yes
15686else
15687 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015691 LDFLAGS="$save_LDFLAGS"
15692fi
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15694$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15695 if test "$lt_cv_irix_exported_symbol" = yes; then
15696 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'
15697 fi
cristy73bd4a52010-10-05 11:24:23 +000015698 else
cristy0c60a692010-11-04 01:09:47 +000015699 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'
15700 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 +000015701 fi
15702 archive_cmds_need_lc='no'
15703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15704 hardcode_libdir_separator=:
15705 inherit_rpath=yes
15706 link_all_deplibs=yes
15707 ;;
15708
15709 netbsd*)
15710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15712 else
15713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15714 fi
15715 hardcode_libdir_flag_spec='-R$libdir'
15716 hardcode_direct=yes
15717 hardcode_shlibpath_var=no
15718 ;;
15719
15720 newsos6)
15721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_direct=yes
15723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15724 hardcode_libdir_separator=:
15725 hardcode_shlibpath_var=no
15726 ;;
15727
15728 *nto* | *qnx*)
15729 ;;
15730
15731 openbsd*)
15732 if test -f /usr/libexec/ld.so; then
15733 hardcode_direct=yes
15734 hardcode_shlibpath_var=no
15735 hardcode_direct_absolute=yes
15736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15740 export_dynamic_flag_spec='${wl}-E'
15741 else
15742 case $host_os in
15743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_libdir_flag_spec='-R$libdir'
15746 ;;
15747 *)
15748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15750 ;;
15751 esac
15752 fi
15753 else
15754 ld_shlibs=no
15755 fi
15756 ;;
15757
15758 os2*)
15759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_minus_L=yes
15761 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015762 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 +000015763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15764 ;;
15765
15766 osf3*)
15767 if test "$GCC" = yes; then
15768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015769 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 +000015770 else
15771 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015772 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 +000015773 fi
15774 archive_cmds_need_lc='no'
15775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15776 hardcode_libdir_separator=:
15777 ;;
15778
15779 osf4* | osf5*) # as osf3* with the addition of -msym flag
15780 if test "$GCC" = yes; then
15781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015782 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 +000015783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15784 else
15785 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -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 +000015787 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 +000015788 $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 +000015789
15790 # Both c and cxx compiler support -rpath directly
15791 hardcode_libdir_flag_spec='-rpath $libdir'
15792 fi
15793 archive_cmds_need_lc='no'
15794 hardcode_libdir_separator=:
15795 ;;
15796
15797 solaris*)
15798 no_undefined_flag=' -z defs'
15799 if test "$GCC" = yes; then
15800 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015801 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 +000015802 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 +000015803 $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 +000015804 else
15805 case `$CC -V 2>&1` in
15806 *"Compilers 5.0"*)
15807 wlarc=''
15808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15811 ;;
15812 *)
15813 wlarc='${wl}'
15814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15817 ;;
15818 esac
15819 fi
15820 hardcode_libdir_flag_spec='-R$libdir'
15821 hardcode_shlibpath_var=no
15822 case $host_os in
15823 solaris2.[0-5] | solaris2.[0-5].*) ;;
15824 *)
15825 # The compiler driver will combine and reorder linker options,
15826 # but understands `-z linker_flag'. GCC discards it without `$wl',
15827 # but is careful enough not to reorder.
15828 # Supported since Solaris 2.6 (maybe 2.5.1?)
15829 if test "$GCC" = yes; then
15830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15831 else
15832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15833 fi
15834 ;;
15835 esac
15836 link_all_deplibs=yes
15837 ;;
15838
15839 sunos4*)
15840 if test "x$host_vendor" = xsequent; then
15841 # Use $CC to link under sequent, because it throws in some extra .o
15842 # files that make .init and .fini sections work.
15843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15844 else
15845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15846 fi
15847 hardcode_libdir_flag_spec='-L$libdir'
15848 hardcode_direct=yes
15849 hardcode_minus_L=yes
15850 hardcode_shlibpath_var=no
15851 ;;
15852
15853 sysv4)
15854 case $host_vendor in
15855 sni)
15856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15857 hardcode_direct=yes # is this really true???
15858 ;;
15859 siemens)
15860 ## LD is ld it makes a PLAMLIB
15861 ## CC just makes a GrossModule.
15862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15863 reload_cmds='$CC -r -o $output$reload_objs'
15864 hardcode_direct=no
15865 ;;
15866 motorola)
15867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15869 ;;
15870 esac
15871 runpath_var='LD_RUN_PATH'
15872 hardcode_shlibpath_var=no
15873 ;;
15874
15875 sysv4.3*)
15876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15877 hardcode_shlibpath_var=no
15878 export_dynamic_flag_spec='-Bexport'
15879 ;;
15880
15881 sysv4*MP*)
15882 if test -d /usr/nec; then
15883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_shlibpath_var=no
15885 runpath_var=LD_RUN_PATH
15886 hardcode_runpath_var=yes
15887 ld_shlibs=yes
15888 fi
15889 ;;
15890
15891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15892 no_undefined_flag='${wl}-z,text'
15893 archive_cmds_need_lc=no
15894 hardcode_shlibpath_var=no
15895 runpath_var='LD_RUN_PATH'
15896
15897 if test "$GCC" = yes; then
15898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 else
15901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 fi
15904 ;;
15905
15906 sysv5* | sco3.2v5* | sco5v6*)
15907 # Note: We can NOT use -z defs as we might desire, because we do not
15908 # link with -lc, and that would cause any symbols used from libc to
15909 # always be unresolved, which means just about no library would
15910 # ever link correctly. If we're not using GNU ld we use -z text
15911 # though, which does catch some bad symbols but isn't as heavy-handed
15912 # as -z defs.
15913 no_undefined_flag='${wl}-z,text'
15914 allow_undefined_flag='${wl}-z,nodefs'
15915 archive_cmds_need_lc=no
15916 hardcode_shlibpath_var=no
15917 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15918 hardcode_libdir_separator=':'
15919 link_all_deplibs=yes
15920 export_dynamic_flag_spec='${wl}-Bexport'
15921 runpath_var='LD_RUN_PATH'
15922
15923 if test "$GCC" = yes; then
15924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15926 else
15927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 fi
15930 ;;
15931
15932 uts4*)
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_libdir_flag_spec='-L$libdir'
15935 hardcode_shlibpath_var=no
15936 ;;
15937
15938 *)
15939 ld_shlibs=no
15940 ;;
15941 esac
15942
15943 if test x$host_vendor = xsni; then
15944 case $host in
15945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15946 export_dynamic_flag_spec='${wl}-Blargedynsym'
15947 ;;
15948 esac
15949 fi
15950 fi
15951
15952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15953$as_echo "$ld_shlibs" >&6; }
15954test "$ld_shlibs" = no && can_build_shared=no
15955
15956with_gnu_ld=$with_gnu_ld
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972#
15973# Do we need to explicitly link libc?
15974#
15975case "x$archive_cmds_need_lc" in
15976x|xyes)
15977 # Assume -lc should be added
15978 archive_cmds_need_lc=yes
15979
15980 if test "$enable_shared" = yes && test "$GCC" = yes; then
15981 case $archive_cmds in
15982 *'~'*)
15983 # FIXME: we may have to deal with multi-command sequences.
15984 ;;
15985 '$CC '*)
15986 # Test whether the compiler implicitly links with -lc since on some
15987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15988 # to ld, don't add -lc before -lgcc.
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015991if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015992 $as_echo_n "(cached) " >&6
15993else
15994 $RM conftest*
15995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015996
cristy0c60a692010-11-04 01:09:47 +000015997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015998 (eval $ac_compile) 2>&5
15999 ac_status=$?
16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16001 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016002 soname=conftest
16003 lib=conftest
16004 libobjs=conftest.$ac_objext
16005 deplibs=
16006 wl=$lt_prog_compiler_wl
16007 pic_flag=$lt_prog_compiler_pic
16008 compiler_flags=-v
16009 linker_flags=-v
16010 verstring=
16011 output_objdir=.
16012 libname=conftest
16013 lt_save_allow_undefined_flag=$allow_undefined_flag
16014 allow_undefined_flag=
16015 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 +000016016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16017 ac_status=$?
16018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16019 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016020 then
16021 lt_cv_archive_cmds_need_lc=no
16022 else
16023 lt_cv_archive_cmds_need_lc=yes
16024 fi
16025 allow_undefined_flag=$lt_save_allow_undefined_flag
16026 else
16027 cat conftest.err 1>&5
16028 fi
16029 $RM conftest*
16030
16031fi
16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16033$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016035 ;;
16036 esac
16037 fi
16038 ;;
16039esac
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
cristy73bd4a52010-10-05 11:24:23 +000016192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16193$as_echo_n "checking dynamic linker characteristics... " >&6; }
16194
16195if test "$GCC" = yes; then
16196 case $host_os in
16197 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16198 *) lt_awk_arg="/^libraries:/" ;;
16199 esac
cristy0c60a692010-11-04 01:09:47 +000016200 case $host_os in
16201 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16202 *) lt_sed_strip_eq="s,=/,/,g" ;;
16203 esac
16204 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16205 case $lt_search_path_spec in
16206 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016207 # if the path contains ";" then we assume it to be the separator
16208 # otherwise default to the standard path separator (i.e. ":") - it is
16209 # assumed that no part of a normal pathname contains ";" but that should
16210 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016211 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16212 ;;
16213 *)
16214 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16215 ;;
16216 esac
cristy73bd4a52010-10-05 11:24:23 +000016217 # Ok, now we have the path, separated by spaces, we can step through it
16218 # and add multilib dir if necessary.
16219 lt_tmp_lt_search_path_spec=
16220 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16221 for lt_sys_path in $lt_search_path_spec; do
16222 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16223 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16224 else
16225 test -d "$lt_sys_path" && \
16226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16227 fi
16228 done
cristy0c60a692010-11-04 01:09:47 +000016229 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016230BEGIN {RS=" "; FS="/|\n";} {
16231 lt_foo="";
16232 lt_count=0;
16233 for (lt_i = NF; lt_i > 0; lt_i--) {
16234 if ($lt_i != "" && $lt_i != ".") {
16235 if ($lt_i == "..") {
16236 lt_count++;
16237 } else {
16238 if (lt_count == 0) {
16239 lt_foo="/" $lt_i lt_foo;
16240 } else {
16241 lt_count--;
16242 }
16243 }
16244 }
16245 }
16246 if (lt_foo != "") { lt_freq[lt_foo]++; }
16247 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16248}'`
cristy0c60a692010-11-04 01:09:47 +000016249 # AWK program above erroneously prepends '/' to C:/dos/paths
16250 # for these hosts.
16251 case $host_os in
16252 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16253 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16254 esac
16255 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016256else
16257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16258fi
16259library_names_spec=
16260libname_spec='lib$name'
16261soname_spec=
16262shrext_cmds=".so"
16263postinstall_cmds=
16264postuninstall_cmds=
16265finish_cmds=
16266finish_eval=
16267shlibpath_var=
16268shlibpath_overrides_runpath=unknown
16269version_type=none
16270dynamic_linker="$host_os ld.so"
16271sys_lib_dlsearch_path_spec="/lib /usr/lib"
16272need_lib_prefix=unknown
16273hardcode_into_libs=no
16274
16275# when you set need_version to no, make sure it does not cause -set_version
16276# flags to be left without arguments
16277need_version=unknown
16278
16279case $host_os in
16280aix3*)
cristy99bd5232011-12-07 14:38:20 +000016281 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16283 shlibpath_var=LIBPATH
16284
16285 # AIX 3 has no versioning support, so we append a major version to the name.
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 ;;
16288
16289aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016290 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016291 need_lib_prefix=no
16292 need_version=no
16293 hardcode_into_libs=yes
16294 if test "$host_cpu" = ia64; then
16295 # AIX 5 supports IA64
16296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16297 shlibpath_var=LD_LIBRARY_PATH
16298 else
16299 # With GCC up to 2.95.x, collect2 would create an import file
16300 # for dependence libraries. The import file would start with
16301 # the line `#! .'. This would cause the generated library to
16302 # depend on `.', always an invalid library. This was fixed in
16303 # development snapshots of GCC prior to 3.0.
16304 case $host_os in
16305 aix4 | aix4.[01] | aix4.[01].*)
16306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16307 echo ' yes '
16308 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16309 :
16310 else
16311 can_build_shared=no
16312 fi
16313 ;;
16314 esac
16315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16316 # soname into executable. Probably we can add versioning support to
16317 # collect2, so additional links can be useful in future.
16318 if test "$aix_use_runtimelinking" = yes; then
16319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16320 # instead of lib<name>.a to let people know that these are not
16321 # typical AIX shared libraries.
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 else
16324 # We preserve .a as extension for shared libraries through AIX4.2
16325 # and later when we are not doing run time linking.
16326 library_names_spec='${libname}${release}.a $libname.a'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 fi
16329 shlibpath_var=LIBPATH
16330 fi
16331 ;;
16332
16333amigaos*)
16334 case $host_cpu in
16335 powerpc)
16336 # Since July 2007 AmigaOS4 officially supports .so libraries.
16337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339 ;;
16340 m68k)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016343 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 +000016344 ;;
16345 esac
16346 ;;
16347
16348beos*)
16349 library_names_spec='${libname}${shared_ext}'
16350 dynamic_linker="$host_os ld.so"
16351 shlibpath_var=LIBRARY_PATH
16352 ;;
16353
16354bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016355 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16363 # the default ld.so.conf also contains /usr/contrib/lib and
16364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16365 # libtool to hard-code these into programs
16366 ;;
16367
16368cygwin* | mingw* | pw32* | cegcc*)
16369 version_type=windows
16370 shrext_cmds=".dll"
16371 need_version=no
16372 need_lib_prefix=no
16373
cristyda16f162011-02-19 23:52:17 +000016374 case $GCC,$cc_basename in
16375 yes,*)
16376 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016377 library_names_spec='$libname.dll.a'
16378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379 postinstall_cmds='base_file=`basename \${file}`~
16380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16381 dldir=$destdir/`dirname \$dlpath`~
16382 test -d \$dldir || mkdir -p \$dldir~
16383 $install_prog $dir/$dlname \$dldir/$dlname~
16384 chmod a+x \$dldir/$dlname~
16385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16387 fi'
16388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16389 dlpath=$dir/\$dldll~
16390 $RM \$dlpath'
16391 shlibpath_overrides_runpath=yes
16392
16393 case $host_os in
16394 cygwin*)
16395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16396 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016397
16398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016399 ;;
16400 mingw* | cegcc*)
16401 # MinGW DLLs use traditional 'lib' prefix
16402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016403 ;;
16404 pw32*)
16405 # pw32 DLLs use 'pw' prefix rather than 'lib'
16406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16407 ;;
16408 esac
cristyda16f162011-02-19 23:52:17 +000016409 dynamic_linker='Win32 ld.exe'
16410 ;;
16411
16412 *,cl*)
16413 # Native MSVC
16414 libname_spec='$name'
16415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16416 library_names_spec='${libname}.dll.lib'
16417
16418 case $build_os in
16419 mingw*)
16420 sys_lib_search_path_spec=
16421 lt_save_ifs=$IFS
16422 IFS=';'
16423 for lt_path in $LIB
16424 do
16425 IFS=$lt_save_ifs
16426 # Let DOS variable expansion print the short 8.3 style file name.
16427 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16428 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16429 done
16430 IFS=$lt_save_ifs
16431 # Convert to MSYS style.
16432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16433 ;;
16434 cygwin*)
16435 # Convert to unix form, then to dos form, then back to unix form
16436 # but this time dos style (no spaces!) so that the unix form looks
16437 # like /cygdrive/c/PROGRA~1:/cygdr...
16438 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16439 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16440 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16441 ;;
16442 *)
16443 sys_lib_search_path_spec="$LIB"
16444 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16445 # It is most probably a Windows format PATH.
16446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16447 else
16448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16449 fi
16450 # FIXME: find the short name or the path components, as spaces are
16451 # common. (e.g. "Program Files" -> "PROGRA~1")
16452 ;;
16453 esac
16454
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname'
16461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16462 dlpath=$dir/\$dldll~
16463 $RM \$dlpath'
16464 shlibpath_overrides_runpath=yes
16465 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016466 ;;
16467
16468 *)
cristyda16f162011-02-19 23:52:17 +000016469 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016470 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016471 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016472 ;;
16473 esac
cristy73bd4a52010-10-05 11:24:23 +000016474 # FIXME: first we should search . and the directory the executable is in
16475 shlibpath_var=PATH
16476 ;;
16477
16478darwin* | rhapsody*)
16479 dynamic_linker="$host_os dyld"
16480 version_type=darwin
16481 need_lib_prefix=no
16482 need_version=no
16483 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16484 soname_spec='${libname}${release}${major}$shared_ext'
16485 shlibpath_overrides_runpath=yes
16486 shlibpath_var=DYLD_LIBRARY_PATH
16487 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16488
16489 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16491 ;;
16492
16493dgux*)
cristy99bd5232011-12-07 14:38:20 +000016494 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 ;;
16501
cristy73bd4a52010-10-05 11:24:23 +000016502freebsd* | dragonfly*)
16503 # DragonFly does not have aout. When/if they implement a new
16504 # versioning mechanism, adjust this.
16505 if test -x /usr/bin/objformat; then
16506 objformat=`/usr/bin/objformat`
16507 else
16508 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016509 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016510 *) objformat=elf ;;
16511 esac
16512 fi
16513 version_type=freebsd-$objformat
16514 case $version_type in
16515 freebsd-elf*)
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16517 need_version=no
16518 need_lib_prefix=no
16519 ;;
16520 freebsd-*)
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16522 need_version=yes
16523 ;;
16524 esac
16525 shlibpath_var=LD_LIBRARY_PATH
16526 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016527 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016528 shlibpath_overrides_runpath=yes
16529 ;;
16530 freebsd3.[01]* | freebsdelf3.[01]*)
16531 shlibpath_overrides_runpath=yes
16532 hardcode_into_libs=yes
16533 ;;
16534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16536 shlibpath_overrides_runpath=no
16537 hardcode_into_libs=yes
16538 ;;
16539 *) # from 4.6 on, and DragonFly
16540 shlibpath_overrides_runpath=yes
16541 hardcode_into_libs=yes
16542 ;;
16543 esac
16544 ;;
16545
16546gnu*)
cristy99bd5232011-12-07 14:38:20 +000016547 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016553 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016554 hardcode_into_libs=yes
16555 ;;
16556
cristy0c60a692010-11-04 01:09:47 +000016557haiku*)
cristy99bd5232011-12-07 14:38:20 +000016558 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016559 need_lib_prefix=no
16560 need_version=no
16561 dynamic_linker="$host_os runtime_loader"
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes
16566 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16567 hardcode_into_libs=yes
16568 ;;
16569
cristy73bd4a52010-10-05 11:24:23 +000016570hpux9* | hpux10* | hpux11*)
16571 # Give a soname corresponding to the major version so that dld.sl refuses to
16572 # link against other versions.
16573 version_type=sunos
16574 need_lib_prefix=no
16575 need_version=no
16576 case $host_cpu in
16577 ia64*)
16578 shrext_cmds='.so'
16579 hardcode_into_libs=yes
16580 dynamic_linker="$host_os dld.so"
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 if test "X$HPUX_IA64_MODE" = X32; then
16586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16587 else
16588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16589 fi
16590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16591 ;;
16592 hppa*64*)
16593 shrext_cmds='.sl'
16594 hardcode_into_libs=yes
16595 dynamic_linker="$host_os dld.sl"
16596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16602 ;;
16603 *)
16604 shrext_cmds='.sl'
16605 dynamic_linker="$host_os dld.sl"
16606 shlibpath_var=SHLIB_PATH
16607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 ;;
16611 esac
cristy0c60a692010-11-04 01:09:47 +000016612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016613 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016614 # or fails outright, so override atomically:
16615 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016616 ;;
16617
16618interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016619 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016620 need_lib_prefix=no
16621 need_version=no
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 hardcode_into_libs=yes
16628 ;;
16629
16630irix5* | irix6* | nonstopux*)
16631 case $host_os in
16632 nonstopux*) version_type=nonstopux ;;
16633 *)
16634 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016635 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016636 else
16637 version_type=irix
16638 fi ;;
16639 esac
16640 need_lib_prefix=no
16641 need_version=no
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16644 case $host_os in
16645 irix5* | nonstopux*)
16646 libsuff= shlibsuff=
16647 ;;
16648 *)
16649 case $LD in # libtool.m4 will add one of these switches to LD
16650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16651 libsuff= shlibsuff= libmagic=32-bit;;
16652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16653 libsuff=32 shlibsuff=N32 libmagic=N32;;
16654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16656 *) libsuff= shlibsuff= libmagic=never-match;;
16657 esac
16658 ;;
16659 esac
16660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16661 shlibpath_overrides_runpath=no
16662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16664 hardcode_into_libs=yes
16665 ;;
16666
16667# No shared lib support for Linux oldld, aout, or coff.
16668linux*oldld* | linux*aout* | linux*coff*)
16669 dynamic_linker=no
16670 ;;
16671
cristy99bd5232011-12-07 14:38:20 +000016672# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016673linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016674 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016682
cristy73bd4a52010-10-05 11:24:23 +000016683 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016684 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016685 $as_echo_n "(cached) " >&6
16686else
16687 lt_cv_shlibpath_overrides_runpath=no
16688 save_LDFLAGS=$LDFLAGS
16689 save_libdir=$libdir
16690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016693/* end confdefs.h. */
16694
16695int
16696main ()
16697{
16698
16699 ;
16700 return 0;
16701}
16702_ACEOF
16703if ac_fn_c_try_link "$LINENO"; then :
16704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016705 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016706fi
16707fi
16708rm -f core conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016710 LDFLAGS=$save_LDFLAGS
16711 libdir=$save_libdir
16712
16713fi
16714
16715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016716
16717 # This implies no fast_install, which is unacceptable.
16718 # Some rework will be needed to allow for fast_install
16719 # before this can be enabled.
16720 hardcode_into_libs=yes
16721
16722 # Add ABI-specific directories to the system library path.
16723 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16724
16725 # Append ld.so.conf contents to the search path
16726 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016727 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 +000016728 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016729
cristy73bd4a52010-10-05 11:24:23 +000016730 fi
16731
16732 # We used to test for /lib/ld.so.1 and disable shared libraries on
16733 # powerpc, because MkLinux only supported shared libraries with the
16734 # GNU dynamic linker. Since this was broken with cross compilers,
16735 # most powerpc-linux boxes support dynamic linking these days and
16736 # people can always --disable-shared, the test was removed, and we
16737 # assume the GNU/Linux dynamic linker is in use.
16738 dynamic_linker='GNU/Linux ld.so'
16739 ;;
16740
16741netbsd*)
16742 version_type=sunos
16743 need_lib_prefix=no
16744 need_version=no
16745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16748 dynamic_linker='NetBSD (a.out) ld.so'
16749 else
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 dynamic_linker='NetBSD ld.elf_so'
16753 fi
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 hardcode_into_libs=yes
16757 ;;
16758
16759newsos6)
cristy99bd5232011-12-07 14:38:20 +000016760 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 ;;
16765
16766*nto* | *qnx*)
16767 version_type=qnx
16768 need_lib_prefix=no
16769 need_version=no
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=no
16774 hardcode_into_libs=yes
16775 dynamic_linker='ldqnx.so'
16776 ;;
16777
16778openbsd*)
16779 version_type=sunos
16780 sys_lib_dlsearch_path_spec="/usr/lib"
16781 need_lib_prefix=no
16782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16783 case $host_os in
16784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16785 *) need_version=no ;;
16786 esac
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16791 case $host_os in
16792 openbsd2.[89] | openbsd2.[89].*)
16793 shlibpath_overrides_runpath=no
16794 ;;
16795 *)
16796 shlibpath_overrides_runpath=yes
16797 ;;
16798 esac
16799 else
16800 shlibpath_overrides_runpath=yes
16801 fi
16802 ;;
16803
16804os2*)
16805 libname_spec='$name'
16806 shrext_cmds=".dll"
16807 need_lib_prefix=no
16808 library_names_spec='$libname${shared_ext} $libname.a'
16809 dynamic_linker='OS/2 ld.exe'
16810 shlibpath_var=LIBPATH
16811 ;;
16812
16813osf3* | osf4* | osf5*)
16814 version_type=osf
16815 need_lib_prefix=no
16816 need_version=no
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16822 ;;
16823
16824rdos*)
16825 dynamic_linker=no
16826 ;;
16827
16828solaris*)
cristy99bd5232011-12-07 14:38:20 +000016829 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016830 need_lib_prefix=no
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16837 # ldd complains unless libraries are executable
16838 postinstall_cmds='chmod +x $lib'
16839 ;;
16840
16841sunos4*)
16842 version_type=sunos
16843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16845 shlibpath_var=LD_LIBRARY_PATH
16846 shlibpath_overrides_runpath=yes
16847 if test "$with_gnu_ld" = yes; then
16848 need_lib_prefix=no
16849 fi
16850 need_version=yes
16851 ;;
16852
16853sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016854 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 case $host_vendor in
16859 sni)
16860 shlibpath_overrides_runpath=no
16861 need_lib_prefix=no
16862 runpath_var=LD_RUN_PATH
16863 ;;
16864 siemens)
16865 need_lib_prefix=no
16866 ;;
16867 motorola)
16868 need_lib_prefix=no
16869 need_version=no
16870 shlibpath_overrides_runpath=no
16871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16872 ;;
16873 esac
16874 ;;
16875
16876sysv4*MP*)
16877 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016878 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16880 soname_spec='$libname${shared_ext}.$major'
16881 shlibpath_var=LD_LIBRARY_PATH
16882 fi
16883 ;;
16884
16885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16886 version_type=freebsd-elf
16887 need_lib_prefix=no
16888 need_version=no
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath=yes
16893 hardcode_into_libs=yes
16894 if test "$with_gnu_ld" = yes; then
16895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16896 else
16897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16898 case $host_os in
16899 sco3.2v5*)
16900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16901 ;;
16902 esac
16903 fi
16904 sys_lib_dlsearch_path_spec='/usr/lib'
16905 ;;
16906
16907tpf*)
16908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016909 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016910 need_lib_prefix=no
16911 need_version=no
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=no
16915 hardcode_into_libs=yes
16916 ;;
16917
16918uts4*)
cristy99bd5232011-12-07 14:38:20 +000016919 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LD_LIBRARY_PATH
16923 ;;
16924
16925*)
16926 dynamic_linker=no
16927 ;;
16928esac
16929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16930$as_echo "$dynamic_linker" >&6; }
16931test "$dynamic_linker" = no && can_build_shared=no
16932
16933variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16934if test "$GCC" = yes; then
16935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16936fi
16937
16938if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16940fi
16941if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16943fi
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
cristy0c60a692010-11-04 01:09:47 +000017031
17032
17033
17034
17035
cristy73bd4a52010-10-05 11:24:23 +000017036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17037$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17038hardcode_action=
17039if test -n "$hardcode_libdir_flag_spec" ||
17040 test -n "$runpath_var" ||
17041 test "X$hardcode_automatic" = "Xyes" ; then
17042
17043 # We can hardcode non-existent directories.
17044 if test "$hardcode_direct" != no &&
17045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17046 # have to relink, otherwise we might link with an installed library
17047 # when we should be linking with a yet-to-be-installed one
17048 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17049 test "$hardcode_minus_L" != no; then
17050 # Linking always hardcodes the temporary library directory.
17051 hardcode_action=relink
17052 else
17053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17054 hardcode_action=immediate
17055 fi
17056else
17057 # We cannot hardcode anything, or else we can only hardcode existing
17058 # directories.
17059 hardcode_action=unsupported
17060fi
17061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17062$as_echo "$hardcode_action" >&6; }
17063
17064if test "$hardcode_action" = relink ||
17065 test "$inherit_rpath" = yes; then
17066 # Fast installation is not supported
17067 enable_fast_install=no
17068elif test "$shlibpath_overrides_runpath" = yes ||
17069 test "$enable_shared" = no; then
17070 # Fast installation is not necessary
17071 enable_fast_install=needless
17072fi
17073
17074
17075
17076
17077
17078
17079 if test "x$enable_dlopen" != xyes; then
17080 enable_dlopen=unknown
17081 enable_dlopen_self=unknown
17082 enable_dlopen_self_static=unknown
17083else
17084 lt_cv_dlopen=no
17085 lt_cv_dlopen_libs=
17086
17087 case $host_os in
17088 beos*)
17089 lt_cv_dlopen="load_add_on"
17090 lt_cv_dlopen_libs=
17091 lt_cv_dlopen_self=yes
17092 ;;
17093
17094 mingw* | pw32* | cegcc*)
17095 lt_cv_dlopen="LoadLibrary"
17096 lt_cv_dlopen_libs=
17097 ;;
17098
17099 cygwin*)
17100 lt_cv_dlopen="dlopen"
17101 lt_cv_dlopen_libs=
17102 ;;
17103
17104 darwin*)
17105 # if libdl is installed we need to link against it
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17107$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017108if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017109 $as_echo_n "(cached) " >&6
17110else
17111 ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldl $LIBS"
17113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114/* end confdefs.h. */
17115
17116/* Override any GCC internal prototype to avoid an error.
17117 Use char because int might match the return type of a GCC
17118 builtin and then its argument prototype would still apply. */
17119#ifdef __cplusplus
17120extern "C"
17121#endif
17122char dlopen ();
17123int
17124main ()
17125{
17126return dlopen ();
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131if ac_fn_c_try_link "$LINENO"; then :
17132 ac_cv_lib_dl_dlopen=yes
17133else
17134 ac_cv_lib_dl_dlopen=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138LIBS=$ac_check_lib_save_LIBS
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17141$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017142if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17144else
17145
17146 lt_cv_dlopen="dyld"
17147 lt_cv_dlopen_libs=
17148 lt_cv_dlopen_self=yes
17149
17150fi
17151
17152 ;;
17153
17154 *)
17155 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017156if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017157 lt_cv_dlopen="shl_load"
17158else
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17160$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017161if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017162 $as_echo_n "(cached) " >&6
17163else
17164 ac_check_lib_save_LIBS=$LIBS
17165LIBS="-ldld $LIBS"
17166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h. */
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char shl_load ();
17176int
17177main ()
17178{
17179return shl_load ();
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"; then :
17185 ac_cv_lib_dld_shl_load=yes
17186else
17187 ac_cv_lib_dld_shl_load=no
17188fi
17189rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191LIBS=$ac_check_lib_save_LIBS
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17194$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017195if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17197else
17198 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017199if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017200 lt_cv_dlopen="dlopen"
17201else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17203$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017204if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017205 $as_echo_n "(cached) " >&6
17206else
17207 ac_check_lib_save_LIBS=$LIBS
17208LIBS="-ldl $LIBS"
17209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h. */
17211
17212/* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char dlopen ();
17219int
17220main ()
17221{
17222return dlopen ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227if ac_fn_c_try_link "$LINENO"; then :
17228 ac_cv_lib_dl_dlopen=yes
17229else
17230 ac_cv_lib_dl_dlopen=no
17231fi
17232rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234LIBS=$ac_check_lib_save_LIBS
17235fi
17236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17237$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017238if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17240else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17242$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017243if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017244 $as_echo_n "(cached) " >&6
17245else
17246 ac_check_lib_save_LIBS=$LIBS
17247LIBS="-lsvld $LIBS"
17248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h. */
17250
17251/* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254#ifdef __cplusplus
17255extern "C"
17256#endif
17257char dlopen ();
17258int
17259main ()
17260{
17261return dlopen ();
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_svld_dlopen=yes
17268else
17269 ac_cv_lib_svld_dlopen=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273LIBS=$ac_check_lib_save_LIBS
17274fi
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17276$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017277if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17279else
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17281$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017282if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017283 $as_echo_n "(cached) " >&6
17284else
17285 ac_check_lib_save_LIBS=$LIBS
17286LIBS="-ldld $LIBS"
17287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288/* end confdefs.h. */
17289
17290/* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293#ifdef __cplusplus
17294extern "C"
17295#endif
17296char dld_link ();
17297int
17298main ()
17299{
17300return dld_link ();
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305if ac_fn_c_try_link "$LINENO"; then :
17306 ac_cv_lib_dld_dld_link=yes
17307else
17308 ac_cv_lib_dld_dld_link=no
17309fi
17310rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312LIBS=$ac_check_lib_save_LIBS
17313fi
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17315$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017316if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017317 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17318fi
17319
17320
17321fi
17322
17323
17324fi
17325
17326
17327fi
17328
17329
17330fi
17331
17332
17333fi
17334
17335 ;;
17336 esac
17337
17338 if test "x$lt_cv_dlopen" != xno; then
17339 enable_dlopen=yes
17340 else
17341 enable_dlopen=no
17342 fi
17343
17344 case $lt_cv_dlopen in
17345 dlopen)
17346 save_CPPFLAGS="$CPPFLAGS"
17347 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17348
17349 save_LDFLAGS="$LDFLAGS"
17350 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17351
17352 save_LIBS="$LIBS"
17353 LIBS="$lt_cv_dlopen_libs $LIBS"
17354
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17356$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017357if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017358 $as_echo_n "(cached) " >&6
17359else
17360 if test "$cross_compiling" = yes; then :
17361 lt_cv_dlopen_self=cross
17362else
17363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17364 lt_status=$lt_dlunknown
17365 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017366#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017367#include "confdefs.h"
17368
17369#if HAVE_DLFCN_H
17370#include <dlfcn.h>
17371#endif
17372
17373#include <stdio.h>
17374
17375#ifdef RTLD_GLOBAL
17376# define LT_DLGLOBAL RTLD_GLOBAL
17377#else
17378# ifdef DL_GLOBAL
17379# define LT_DLGLOBAL DL_GLOBAL
17380# else
17381# define LT_DLGLOBAL 0
17382# endif
17383#endif
17384
17385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17386 find out it does not work in some platform. */
17387#ifndef LT_DLLAZY_OR_NOW
17388# ifdef RTLD_LAZY
17389# define LT_DLLAZY_OR_NOW RTLD_LAZY
17390# else
17391# ifdef DL_LAZY
17392# define LT_DLLAZY_OR_NOW DL_LAZY
17393# else
17394# ifdef RTLD_NOW
17395# define LT_DLLAZY_OR_NOW RTLD_NOW
17396# else
17397# ifdef DL_NOW
17398# define LT_DLLAZY_OR_NOW DL_NOW
17399# else
17400# define LT_DLLAZY_OR_NOW 0
17401# endif
17402# endif
17403# endif
17404# endif
17405#endif
17406
cristy0c60a692010-11-04 01:09:47 +000017407/* When -fvisbility=hidden is used, assume the code has been annotated
17408 correspondingly for the symbols needed. */
17409#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017410int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017411#endif
17412
cristyda16f162011-02-19 23:52:17 +000017413int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017414int main ()
17415{
17416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17417 int status = $lt_dlunknown;
17418
17419 if (self)
17420 {
17421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017422 else
17423 {
17424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17425 else puts (dlerror ());
17426 }
cristy73bd4a52010-10-05 11:24:23 +000017427 /* dlclose (self); */
17428 }
17429 else
17430 puts (dlerror ());
17431
17432 return status;
17433}
17434_LT_EOF
17435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17436 (eval $ac_link) 2>&5
17437 ac_status=$?
17438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17440 (./conftest; exit; ) >&5 2>/dev/null
17441 lt_status=$?
17442 case x$lt_status in
17443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17446 esac
17447 else :
17448 # compilation failed
17449 lt_cv_dlopen_self=no
17450 fi
17451fi
17452rm -fr conftest*
17453
17454
17455fi
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17457$as_echo "$lt_cv_dlopen_self" >&6; }
17458
17459 if test "x$lt_cv_dlopen_self" = xyes; then
17460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17462$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017463if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017464 $as_echo_n "(cached) " >&6
17465else
17466 if test "$cross_compiling" = yes; then :
17467 lt_cv_dlopen_self_static=cross
17468else
17469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17470 lt_status=$lt_dlunknown
17471 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017472#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017473#include "confdefs.h"
17474
17475#if HAVE_DLFCN_H
17476#include <dlfcn.h>
17477#endif
17478
17479#include <stdio.h>
17480
17481#ifdef RTLD_GLOBAL
17482# define LT_DLGLOBAL RTLD_GLOBAL
17483#else
17484# ifdef DL_GLOBAL
17485# define LT_DLGLOBAL DL_GLOBAL
17486# else
17487# define LT_DLGLOBAL 0
17488# endif
17489#endif
17490
17491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17492 find out it does not work in some platform. */
17493#ifndef LT_DLLAZY_OR_NOW
17494# ifdef RTLD_LAZY
17495# define LT_DLLAZY_OR_NOW RTLD_LAZY
17496# else
17497# ifdef DL_LAZY
17498# define LT_DLLAZY_OR_NOW DL_LAZY
17499# else
17500# ifdef RTLD_NOW
17501# define LT_DLLAZY_OR_NOW RTLD_NOW
17502# else
17503# ifdef DL_NOW
17504# define LT_DLLAZY_OR_NOW DL_NOW
17505# else
17506# define LT_DLLAZY_OR_NOW 0
17507# endif
17508# endif
17509# endif
17510# endif
17511#endif
17512
cristy0c60a692010-11-04 01:09:47 +000017513/* When -fvisbility=hidden is used, assume the code has been annotated
17514 correspondingly for the symbols needed. */
17515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017516int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017517#endif
17518
cristyda16f162011-02-19 23:52:17 +000017519int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017520int main ()
17521{
17522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17523 int status = $lt_dlunknown;
17524
17525 if (self)
17526 {
17527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017528 else
17529 {
17530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17531 else puts (dlerror ());
17532 }
cristy73bd4a52010-10-05 11:24:23 +000017533 /* dlclose (self); */
17534 }
17535 else
17536 puts (dlerror ());
17537
17538 return status;
17539}
17540_LT_EOF
17541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17542 (eval $ac_link) 2>&5
17543 ac_status=$?
17544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17546 (./conftest; exit; ) >&5 2>/dev/null
17547 lt_status=$?
17548 case x$lt_status in
17549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17552 esac
17553 else :
17554 # compilation failed
17555 lt_cv_dlopen_self_static=no
17556 fi
17557fi
17558rm -fr conftest*
17559
17560
17561fi
17562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17563$as_echo "$lt_cv_dlopen_self_static" >&6; }
17564 fi
17565
17566 CPPFLAGS="$save_CPPFLAGS"
17567 LDFLAGS="$save_LDFLAGS"
17568 LIBS="$save_LIBS"
17569 ;;
17570 esac
17571
17572 case $lt_cv_dlopen_self in
17573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17574 *) enable_dlopen_self=unknown ;;
17575 esac
17576
17577 case $lt_cv_dlopen_self_static in
17578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17579 *) enable_dlopen_self_static=unknown ;;
17580 esac
17581fi
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599striplib=
17600old_striplib=
17601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17602$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17603if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17607$as_echo "yes" >&6; }
17608else
17609# FIXME - insert some real tests, host_os isn't really good enough
17610 case $host_os in
17611 darwin*)
17612 if test -n "$STRIP" ; then
17613 striplib="$STRIP -x"
17614 old_striplib="$STRIP -S"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17616$as_echo "yes" >&6; }
17617 else
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619$as_echo "no" >&6; }
17620 fi
17621 ;;
17622 *)
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17624$as_echo "no" >&6; }
17625 ;;
17626 esac
17627fi
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640 # Report which library types will actually be built
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17642$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17644$as_echo "$can_build_shared" >&6; }
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17647$as_echo_n "checking whether to build shared libraries... " >&6; }
17648 test "$can_build_shared" = "no" && enable_shared=no
17649
17650 # On AIX, shared libraries and static libraries use the same namespace, and
17651 # are all built from PIC.
17652 case $host_os in
17653 aix3*)
17654 test "$enable_shared" = yes && enable_static=no
17655 if test -n "$RANLIB"; then
17656 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17657 postinstall_cmds='$RANLIB $lib'
17658 fi
17659 ;;
17660
17661 aix[4-9]*)
17662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17663 test "$enable_shared" = yes && enable_static=no
17664 fi
17665 ;;
17666 esac
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17668$as_echo "$enable_shared" >&6; }
17669
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17671$as_echo_n "checking whether to build static libraries... " >&6; }
17672 # Make sure either enable_shared or enable_static is yes.
17673 test "$enable_shared" = yes || enable_static=yes
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17675$as_echo "$enable_static" >&6; }
17676
17677
17678
17679
17680fi
17681ac_ext=c
17682ac_cpp='$CPP $CPPFLAGS'
17683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685ac_compiler_gnu=$ac_cv_c_compiler_gnu
17686
17687CC="$lt_save_CC"
17688
cristy0c60a692010-11-04 01:09:47 +000017689 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17690 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17691 (test "X$CXX" != "Xg++"))) ; then
17692 ac_ext=cpp
17693ac_cpp='$CXXCPP $CPPFLAGS'
17694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17698$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17699if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017700 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017701 $as_echo_n "(cached) " >&6
17702else
17703 # Double quotes because CXXCPP needs to be expanded
17704 for CXXCPP in "$CXX -E" "/lib/cpp"
17705 do
17706 ac_preproc_ok=false
17707for ac_cxx_preproc_warn_flag in '' yes
17708do
17709 # Use a header file that comes with gcc, so configuring glibc
17710 # with a fresh cross-compiler works.
17711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 # <limits.h> exists even on freestanding compilers.
17713 # On the NeXT, cc -E runs the code through the compiler's parser,
17714 # not just through cpp. "Syntax error" is here to catch this case.
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716/* end confdefs.h. */
17717#ifdef __STDC__
17718# include <limits.h>
17719#else
17720# include <assert.h>
17721#endif
17722 Syntax error
17723_ACEOF
17724if ac_fn_cxx_try_cpp "$LINENO"; then :
17725
17726else
17727 # Broken: fails on valid input.
17728continue
17729fi
cristyda16f162011-02-19 23:52:17 +000017730rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017731
17732 # OK, works on sane cases. Now check whether nonexistent headers
17733 # can be detected and how.
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735/* end confdefs.h. */
17736#include <ac_nonexistent.h>
17737_ACEOF
17738if ac_fn_cxx_try_cpp "$LINENO"; then :
17739 # Broken: success on invalid input.
17740continue
17741else
17742 # Passes both tests.
17743ac_preproc_ok=:
17744break
17745fi
cristyda16f162011-02-19 23:52:17 +000017746rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017747
17748done
17749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017750rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017751if $ac_preproc_ok; then :
17752 break
17753fi
17754
17755 done
17756 ac_cv_prog_CXXCPP=$CXXCPP
17757
17758fi
17759 CXXCPP=$ac_cv_prog_CXXCPP
17760else
17761 ac_cv_prog_CXXCPP=$CXXCPP
17762fi
17763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17764$as_echo "$CXXCPP" >&6; }
17765ac_preproc_ok=false
17766for ac_cxx_preproc_warn_flag in '' yes
17767do
17768 # Use a header file that comes with gcc, so configuring glibc
17769 # with a fresh cross-compiler works.
17770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771 # <limits.h> exists even on freestanding compilers.
17772 # On the NeXT, cc -E runs the code through the compiler's parser,
17773 # not just through cpp. "Syntax error" is here to catch this case.
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h. */
17776#ifdef __STDC__
17777# include <limits.h>
17778#else
17779# include <assert.h>
17780#endif
17781 Syntax error
17782_ACEOF
17783if ac_fn_cxx_try_cpp "$LINENO"; then :
17784
17785else
17786 # Broken: fails on valid input.
17787continue
17788fi
cristyda16f162011-02-19 23:52:17 +000017789rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017790
17791 # OK, works on sane cases. Now check whether nonexistent headers
17792 # can be detected and how.
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h. */
17795#include <ac_nonexistent.h>
17796_ACEOF
17797if ac_fn_cxx_try_cpp "$LINENO"; then :
17798 # Broken: success on invalid input.
17799continue
17800else
17801 # Passes both tests.
17802ac_preproc_ok=:
17803break
17804fi
cristyda16f162011-02-19 23:52:17 +000017805rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017806
17807done
17808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017809rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017810if $ac_preproc_ok; then :
17811
17812else
17813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17815as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17816See \`config.log' for more details" "$LINENO" 5; }
17817fi
17818
17819ac_ext=c
17820ac_cpp='$CPP $CPPFLAGS'
17821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823ac_compiler_gnu=$ac_cv_c_compiler_gnu
17824
17825else
17826 _lt_caught_CXX_error=yes
17827fi
cristy73bd4a52010-10-05 11:24:23 +000017828
17829ac_ext=cpp
17830ac_cpp='$CXXCPP $CPPFLAGS'
17831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17834
17835archive_cmds_need_lc_CXX=no
17836allow_undefined_flag_CXX=
17837always_export_symbols_CXX=no
17838archive_expsym_cmds_CXX=
17839compiler_needs_object_CXX=no
17840export_dynamic_flag_spec_CXX=
17841hardcode_direct_CXX=no
17842hardcode_direct_absolute_CXX=no
17843hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017844hardcode_libdir_separator_CXX=
17845hardcode_minus_L_CXX=no
17846hardcode_shlibpath_var_CXX=unsupported
17847hardcode_automatic_CXX=no
17848inherit_rpath_CXX=no
17849module_cmds_CXX=
17850module_expsym_cmds_CXX=
17851link_all_deplibs_CXX=unknown
17852old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017853reload_flag_CXX=$reload_flag
17854reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017855no_undefined_flag_CXX=
17856whole_archive_flag_spec_CXX=
17857enable_shared_with_static_runtimes_CXX=no
17858
17859# Source file extension for C++ test sources.
17860ac_ext=cpp
17861
17862# Object file extension for compiled C++ test sources.
17863objext=o
17864objext_CXX=$objext
17865
17866# No sense in running all these tests if we already determined that
17867# the CXX compiler isn't working. Some variables (like enable_shared)
17868# are currently assumed to apply to all compilers on this platform,
17869# and will be corrupted by setting them based on a non-working compiler.
17870if test "$_lt_caught_CXX_error" != yes; then
17871 # Code to be used in simple compile tests
17872 lt_simple_compile_test_code="int some_variable = 0;"
17873
17874 # Code to be used in simple link tests
17875 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17876
17877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17878
17879
17880
17881
17882
17883
17884# If no C compiler was specified, use CC.
17885LTCC=${LTCC-"$CC"}
17886
17887# If no C compiler flags were specified, use CFLAGS.
17888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17889
17890# Allow CC to be a program name with arguments.
17891compiler=$CC
17892
17893
17894 # save warnings/boilerplate of simple test code
17895 ac_outfile=conftest.$ac_objext
17896echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17897eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17898_lt_compiler_boilerplate=`cat conftest.err`
17899$RM conftest*
17900
17901 ac_outfile=conftest.$ac_objext
17902echo "$lt_simple_link_test_code" >conftest.$ac_ext
17903eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17904_lt_linker_boilerplate=`cat conftest.err`
17905$RM -r conftest*
17906
17907
17908 # Allow CC to be a program name with arguments.
17909 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017910 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017911 lt_save_LD=$LD
17912 lt_save_GCC=$GCC
17913 GCC=$GXX
17914 lt_save_with_gnu_ld=$with_gnu_ld
17915 lt_save_path_LD=$lt_cv_path_LD
17916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17918 else
17919 $as_unset lt_cv_prog_gnu_ld
17920 fi
17921 if test -n "${lt_cv_path_LDCXX+set}"; then
17922 lt_cv_path_LD=$lt_cv_path_LDCXX
17923 else
17924 $as_unset lt_cv_path_LD
17925 fi
17926 test -z "${LDCXX+set}" || LD=$LDCXX
17927 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017928 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017929 compiler=$CC
17930 compiler_CXX=$CC
17931 for cc_temp in $compiler""; do
17932 case $cc_temp in
17933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17935 \-*) ;;
17936 *) break;;
17937 esac
17938done
cristy0c60a692010-11-04 01:09:47 +000017939cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017940
17941
17942 if test -n "$compiler"; then
17943 # We don't want -fno-exception when compiling C++ code, so set the
17944 # no_builtin_flag separately
17945 if test "$GXX" = yes; then
17946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17947 else
17948 lt_prog_compiler_no_builtin_flag_CXX=
17949 fi
17950
17951 if test "$GXX" = yes; then
17952 # Set up default GNU C++ configuration
17953
17954
17955
17956# Check whether --with-gnu-ld was given.
17957if test "${with_gnu_ld+set}" = set; then :
17958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17959else
17960 with_gnu_ld=no
17961fi
17962
17963ac_prog=ld
17964if test "$GCC" = yes; then
17965 # Check if gcc -print-prog-name=ld gives a path.
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17967$as_echo_n "checking for ld used by $CC... " >&6; }
17968 case $host in
17969 *-*-mingw*)
17970 # gcc leaves a trailing carriage return which upsets mingw
17971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17972 *)
17973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17974 esac
17975 case $ac_prog in
17976 # Accept absolute paths.
17977 [\\/]* | ?:[\\/]*)
17978 re_direlt='/[^/][^/]*/\.\./'
17979 # Canonicalize the pathname of ld
17980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17983 done
17984 test -z "$LD" && LD="$ac_prog"
17985 ;;
17986 "")
17987 # If it fails, then pretend we aren't using GCC.
17988 ac_prog=ld
17989 ;;
17990 *)
17991 # If it is relative, then search for the first ld in PATH.
17992 with_gnu_ld=unknown
17993 ;;
17994 esac
17995elif test "$with_gnu_ld" = yes; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17997$as_echo_n "checking for GNU ld... " >&6; }
17998else
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18000$as_echo_n "checking for non-GNU ld... " >&6; }
18001fi
cristyda16f162011-02-19 23:52:17 +000018002if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018003 $as_echo_n "(cached) " >&6
18004else
18005 if test -z "$LD"; then
18006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18007 for ac_dir in $PATH; do
18008 IFS="$lt_save_ifs"
18009 test -z "$ac_dir" && ac_dir=.
18010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18011 lt_cv_path_LD="$ac_dir/$ac_prog"
18012 # Check to see if the program is GNU ld. I'd rather use --version,
18013 # but apparently some variants of GNU ld only accept -v.
18014 # Break only if it was the GNU/non-GNU ld that we prefer.
18015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18016 *GNU* | *'with BFD'*)
18017 test "$with_gnu_ld" != no && break
18018 ;;
18019 *)
18020 test "$with_gnu_ld" != yes && break
18021 ;;
18022 esac
18023 fi
18024 done
18025 IFS="$lt_save_ifs"
18026else
18027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18028fi
18029fi
18030
18031LD="$lt_cv_path_LD"
18032if test -n "$LD"; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18034$as_echo "$LD" >&6; }
18035else
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18037$as_echo "no" >&6; }
18038fi
cristy98dddb52010-11-04 00:30:15 +000018039test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018042if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018043 $as_echo_n "(cached) " >&6
18044else
18045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18046case `$LD -v 2>&1 </dev/null` in
18047*GNU* | *'with BFD'*)
18048 lt_cv_prog_gnu_ld=yes
18049 ;;
18050*)
18051 lt_cv_prog_gnu_ld=no
18052 ;;
18053esac
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18056$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18057with_gnu_ld=$lt_cv_prog_gnu_ld
18058
18059
18060
18061
18062
18063
18064
18065 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18066 # archiving commands below assume that GNU ld is being used.
18067 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018068 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18069 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 +000018070
18071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18073
18074 # If archive_cmds runs LD, not CC, wlarc should be empty
18075 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18076 # investigate it a little bit more. (MM)
18077 wlarc='${wl}'
18078
18079 # ancient GNU ld didn't support --whole-archive et. al.
18080 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18081 $GREP 'no-whole-archive' > /dev/null; then
18082 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18083 else
18084 whole_archive_flag_spec_CXX=
18085 fi
18086 else
18087 with_gnu_ld=no
18088 wlarc=
18089
18090 # A generic and very simple default shared library creation
18091 # command for GNU C++ for the case where it uses the native
18092 # linker, instead of GNU ld. If possible, this setting should
18093 # overridden to take advantage of the native linker features on
18094 # the platform it is being used on.
18095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18096 fi
18097
18098 # Commands to make compiler produce verbose output that lists
18099 # what "hidden" libraries, object files and flags are used when
18100 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018102
18103 else
18104 GXX=no
18105 with_gnu_ld=no
18106 wlarc=
18107 fi
18108
18109 # PORTME: fill in a description of your system's C++ link characteristics
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18112 ld_shlibs_CXX=yes
18113 case $host_os in
18114 aix3*)
18115 # FIXME: insert proper C++ library support
18116 ld_shlibs_CXX=no
18117 ;;
18118 aix[4-9]*)
18119 if test "$host_cpu" = ia64; then
18120 # On IA64, the linker does run time linking by default, so we don't
18121 # have to do anything special.
18122 aix_use_runtimelinking=no
18123 exp_sym_flag='-Bexport'
18124 no_entry_flag=""
18125 else
18126 aix_use_runtimelinking=no
18127
18128 # Test if we are trying to use run time linking or normal
18129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18130 # need to do runtime linking.
18131 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18132 for ld_flag in $LDFLAGS; do
18133 case $ld_flag in
18134 *-brtl*)
18135 aix_use_runtimelinking=yes
18136 break
18137 ;;
18138 esac
18139 done
18140 ;;
18141 esac
18142
18143 exp_sym_flag='-bexport'
18144 no_entry_flag='-bnoentry'
18145 fi
18146
18147 # When large executables or shared objects are built, AIX ld can
18148 # have problems creating the table of contents. If linking a library
18149 # or program results in "error TOC overflow" add -mminimal-toc to
18150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18152
18153 archive_cmds_CXX=''
18154 hardcode_direct_CXX=yes
18155 hardcode_direct_absolute_CXX=yes
18156 hardcode_libdir_separator_CXX=':'
18157 link_all_deplibs_CXX=yes
18158 file_list_spec_CXX='${wl}-f,'
18159
18160 if test "$GXX" = yes; then
18161 case $host_os in aix4.[012]|aix4.[012].*)
18162 # We only want to do this on AIX 4.2 and lower, the check
18163 # below for broken collect2 doesn't work under 4.3+
18164 collect2name=`${CC} -print-prog-name=collect2`
18165 if test -f "$collect2name" &&
18166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18167 then
18168 # We have reworked collect2
18169 :
18170 else
18171 # We have old collect2
18172 hardcode_direct_CXX=unsupported
18173 # It fails to find uninstalled libraries when the uninstalled
18174 # path is not listed in the libpath. Setting hardcode_minus_L
18175 # to unsupported forces relinking
18176 hardcode_minus_L_CXX=yes
18177 hardcode_libdir_flag_spec_CXX='-L$libdir'
18178 hardcode_libdir_separator_CXX=
18179 fi
18180 esac
18181 shared_flag='-shared'
18182 if test "$aix_use_runtimelinking" = yes; then
18183 shared_flag="$shared_flag "'${wl}-G'
18184 fi
18185 else
18186 # not using gcc
18187 if test "$host_cpu" = ia64; then
18188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18189 # chokes on -Wl,-G. The following line is correct:
18190 shared_flag='-G'
18191 else
18192 if test "$aix_use_runtimelinking" = yes; then
18193 shared_flag='${wl}-G'
18194 else
18195 shared_flag='${wl}-bM:SRE'
18196 fi
18197 fi
18198 fi
18199
18200 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18201 # It seems that -bexpall does not export symbols beginning with
18202 # underscore (_), so it is better to generate a list of symbols to
18203 # export.
18204 always_export_symbols_CXX=yes
18205 if test "$aix_use_runtimelinking" = yes; then
18206 # Warning - without using the other runtime loading flags (-brtl),
18207 # -berok will link without error, but may produce a broken library.
18208 allow_undefined_flag_CXX='-berok'
18209 # Determine the default libpath from the value encoded in an empty
18210 # executable.
cristyda16f162011-02-19 23:52:17 +000018211 if test "${lt_cv_aix_libpath+set}" = set; then
18212 aix_libpath=$lt_cv_aix_libpath
18213else
18214 if ${lt_cv_aix_libpath__CXX+:} false; then :
18215 $as_echo_n "(cached) " >&6
18216else
18217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018218/* end confdefs.h. */
18219
18220int
18221main ()
18222{
18223
18224 ;
18225 return 0;
18226}
18227_ACEOF
18228if ac_fn_cxx_try_link "$LINENO"; then :
18229
cristyda16f162011-02-19 23:52:17 +000018230 lt_aix_libpath_sed='
18231 /Import File Strings/,/^$/ {
18232 /^0/ {
18233 s/^0 *\([^ ]*\) *$/\1/
18234 p
18235 }
18236 }'
18237 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18238 # Check for a 64-bit object if we didn't find anything.
18239 if test -z "$lt_cv_aix_libpath__CXX"; then
18240 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18241 fi
cristy73bd4a52010-10-05 11:24:23 +000018242fi
18243rm -f core conftest.err conftest.$ac_objext \
18244 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018245 if test -z "$lt_cv_aix_libpath__CXX"; then
18246 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18247 fi
18248
18249fi
18250
18251 aix_libpath=$lt_cv_aix_libpath__CXX
18252fi
cristy73bd4a52010-10-05 11:24:23 +000018253
18254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18255
cristy0c60a692010-11-04 01:09:47 +000018256 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 +000018257 else
18258 if test "$host_cpu" = ia64; then
18259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18260 allow_undefined_flag_CXX="-z nodefs"
18261 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"
18262 else
18263 # Determine the default libpath from the value encoded in an
18264 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018265 if test "${lt_cv_aix_libpath+set}" = set; then
18266 aix_libpath=$lt_cv_aix_libpath
18267else
18268 if ${lt_cv_aix_libpath__CXX+:} false; then :
18269 $as_echo_n "(cached) " >&6
18270else
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018272/* end confdefs.h. */
18273
18274int
18275main ()
18276{
18277
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282if ac_fn_cxx_try_link "$LINENO"; then :
18283
cristyda16f162011-02-19 23:52:17 +000018284 lt_aix_libpath_sed='
18285 /Import File Strings/,/^$/ {
18286 /^0/ {
18287 s/^0 *\([^ ]*\) *$/\1/
18288 p
18289 }
18290 }'
18291 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18292 # Check for a 64-bit object if we didn't find anything.
18293 if test -z "$lt_cv_aix_libpath__CXX"; then
18294 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18295 fi
cristy73bd4a52010-10-05 11:24:23 +000018296fi
18297rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018299 if test -z "$lt_cv_aix_libpath__CXX"; then
18300 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18301 fi
18302
18303fi
18304
18305 aix_libpath=$lt_cv_aix_libpath__CXX
18306fi
cristy73bd4a52010-10-05 11:24:23 +000018307
18308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18309 # Warning - without using the other run time loading flags,
18310 # -berok will link without error, but may produce a broken library.
18311 no_undefined_flag_CXX=' ${wl}-bernotok'
18312 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018313 if test "$with_gnu_ld" = yes; then
18314 # We only use this code for GNU lds that support --whole-archive.
18315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18316 else
18317 # Exported symbols can be pulled into shared objects from archives
18318 whole_archive_flag_spec_CXX='$convenience'
18319 fi
cristy73bd4a52010-10-05 11:24:23 +000018320 archive_cmds_need_lc_CXX=yes
18321 # This is similar to how AIX traditionally builds its shared
18322 # libraries.
18323 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'
18324 fi
18325 fi
18326 ;;
18327
18328 beos*)
18329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18330 allow_undefined_flag_CXX=unsupported
18331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18332 # support --undefined. This deserves some investigation. FIXME
18333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18334 else
18335 ld_shlibs_CXX=no
18336 fi
18337 ;;
18338
18339 chorus*)
18340 case $cc_basename in
18341 *)
18342 # FIXME: insert proper C++ library support
18343 ld_shlibs_CXX=no
18344 ;;
18345 esac
18346 ;;
18347
18348 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018349 case $GXX,$cc_basename in
18350 ,cl* | no,cl*)
18351 # Native MSVC
18352 # hardcode_libdir_flag_spec is actually meaningless, as there is
18353 # no search path for DLLs.
18354 hardcode_libdir_flag_spec_CXX=' '
18355 allow_undefined_flag_CXX=unsupported
18356 always_export_symbols_CXX=yes
18357 file_list_spec_CXX='@'
18358 # Tell ltmain to make .lib files, not .a files.
18359 libext=lib
18360 # Tell ltmain to make .dll files, not .so files.
18361 shrext_cmds=".dll"
18362 # FIXME: Setting linknames here is a bad hack.
18363 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18365 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18366 else
18367 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18368 fi~
18369 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18370 linknames='
18371 # The linker will not automatically build a static lib if we build a DLL.
18372 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18373 enable_shared_with_static_runtimes_CXX=yes
18374 # Don't use ranlib
18375 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18376 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18377 lt_tool_outputfile="@TOOL_OUTPUT@"~
18378 case $lt_outputfile in
18379 *.exe|*.EXE) ;;
18380 *)
18381 lt_outputfile="$lt_outputfile.exe"
18382 lt_tool_outputfile="$lt_tool_outputfile.exe"
18383 ;;
18384 esac~
18385 func_to_tool_file "$lt_outputfile"~
18386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18388 $RM "$lt_outputfile.manifest";
18389 fi'
18390 ;;
18391 *)
18392 # g++
18393 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18394 # as there is no search path for DLLs.
18395 hardcode_libdir_flag_spec_CXX='-L$libdir'
18396 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18397 allow_undefined_flag_CXX=unsupported
18398 always_export_symbols_CXX=no
18399 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018400
cristyda16f162011-02-19 23:52:17 +000018401 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18402 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'
18403 # If the export-symbols file already is a .def file (1st line
18404 # is EXPORTS), use it as is; otherwise, prepend...
18405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18406 cp $export_symbols $output_objdir/$soname.def;
18407 else
18408 echo EXPORTS > $output_objdir/$soname.def;
18409 cat $export_symbols >> $output_objdir/$soname.def;
18410 fi~
18411 $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'
18412 else
18413 ld_shlibs_CXX=no
18414 fi
18415 ;;
18416 esac
18417 ;;
cristy73bd4a52010-10-05 11:24:23 +000018418 darwin* | rhapsody*)
18419
18420
18421 archive_cmds_need_lc_CXX=no
18422 hardcode_direct_CXX=no
18423 hardcode_automatic_CXX=yes
18424 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018425 if test "$lt_cv_ld_force_load" = "yes"; then
18426 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 +000018427
cristy0c60a692010-11-04 01:09:47 +000018428 else
18429 whole_archive_flag_spec_CXX=''
18430 fi
cristy73bd4a52010-10-05 11:24:23 +000018431 link_all_deplibs_CXX=yes
18432 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18433 case $cc_basename in
18434 ifort*) _lt_dar_can_shared=yes ;;
18435 *) _lt_dar_can_shared=$GCC ;;
18436 esac
18437 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018438 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018439 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}"
18440 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18441 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}"
18442 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}"
18443 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18444 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}"
18445 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}"
18446 fi
18447
18448 else
18449 ld_shlibs_CXX=no
18450 fi
18451
18452 ;;
18453
18454 dgux*)
18455 case $cc_basename in
18456 ec++*)
18457 # FIXME: insert proper C++ library support
18458 ld_shlibs_CXX=no
18459 ;;
18460 ghcx*)
18461 # Green Hills C++ Compiler
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18464 ;;
18465 *)
18466 # FIXME: insert proper C++ library support
18467 ld_shlibs_CXX=no
18468 ;;
18469 esac
18470 ;;
18471
cristy99bd5232011-12-07 14:38:20 +000018472 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018473 # C++ shared libraries reported to be fairly broken before
18474 # switch to ELF
18475 ld_shlibs_CXX=no
18476 ;;
18477
18478 freebsd-elf*)
18479 archive_cmds_need_lc_CXX=no
18480 ;;
18481
18482 freebsd* | dragonfly*)
18483 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18484 # conventions
18485 ld_shlibs_CXX=yes
18486 ;;
18487
18488 gnu*)
18489 ;;
18490
cristy0c60a692010-11-04 01:09:47 +000018491 haiku*)
18492 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18493 link_all_deplibs_CXX=yes
18494 ;;
18495
cristy73bd4a52010-10-05 11:24:23 +000018496 hpux9*)
18497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18498 hardcode_libdir_separator_CXX=:
18499 export_dynamic_flag_spec_CXX='${wl}-E'
18500 hardcode_direct_CXX=yes
18501 hardcode_minus_L_CXX=yes # Not in the search PATH,
18502 # but as the default
18503 # location of the library.
18504
18505 case $cc_basename in
18506 CC*)
18507 # FIXME: insert proper C++ library support
18508 ld_shlibs_CXX=no
18509 ;;
18510 aCC*)
18511 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'
18512 # Commands to make compiler produce verbose output that lists
18513 # what "hidden" libraries, object files and flags are used when
18514 # linking a shared library.
18515 #
18516 # There doesn't appear to be a way to prevent this compiler from
18517 # explicitly linking system object files so we need to strip them
18518 # from the output so that they don't get included in the library
18519 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018520 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 +000018521 ;;
18522 *)
18523 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018524 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 +000018525 else
18526 # FIXME: insert proper C++ library support
18527 ld_shlibs_CXX=no
18528 fi
18529 ;;
18530 esac
18531 ;;
18532
18533 hpux10*|hpux11*)
18534 if test $with_gnu_ld = no; then
18535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18536 hardcode_libdir_separator_CXX=:
18537
18538 case $host_cpu in
18539 hppa*64*|ia64*)
18540 ;;
18541 *)
18542 export_dynamic_flag_spec_CXX='${wl}-E'
18543 ;;
18544 esac
18545 fi
18546 case $host_cpu in
18547 hppa*64*|ia64*)
18548 hardcode_direct_CXX=no
18549 hardcode_shlibpath_var_CXX=no
18550 ;;
18551 *)
18552 hardcode_direct_CXX=yes
18553 hardcode_direct_absolute_CXX=yes
18554 hardcode_minus_L_CXX=yes # Not in the search PATH,
18555 # but as the default
18556 # location of the library.
18557 ;;
18558 esac
18559
18560 case $cc_basename in
18561 CC*)
18562 # FIXME: insert proper C++ library support
18563 ld_shlibs_CXX=no
18564 ;;
18565 aCC*)
18566 case $host_cpu in
18567 hppa*64*)
18568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18569 ;;
18570 ia64*)
18571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18572 ;;
18573 *)
18574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18575 ;;
18576 esac
18577 # Commands to make compiler produce verbose output that lists
18578 # what "hidden" libraries, object files and flags are used when
18579 # linking a shared library.
18580 #
18581 # There doesn't appear to be a way to prevent this compiler from
18582 # explicitly linking system object files so we need to strip them
18583 # from the output so that they don't get included in the library
18584 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018585 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 +000018586 ;;
18587 *)
18588 if test "$GXX" = yes; then
18589 if test $with_gnu_ld = no; then
18590 case $host_cpu in
18591 hppa*64*)
18592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18593 ;;
18594 ia64*)
cristyda16f162011-02-19 23:52:17 +000018595 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 +000018596 ;;
18597 *)
cristyda16f162011-02-19 23:52:17 +000018598 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 +000018599 ;;
18600 esac
18601 fi
18602 else
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 fi
18606 ;;
18607 esac
18608 ;;
18609
18610 interix[3-9]*)
18611 hardcode_direct_CXX=no
18612 hardcode_shlibpath_var_CXX=no
18613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18614 export_dynamic_flag_spec_CXX='${wl}-E'
18615 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18616 # Instead, shared libraries are loaded at an image base (0x10000000 by
18617 # default) and relocated if they conflict, which is a slow very memory
18618 # consuming and fragmenting process. To avoid this, we pick a random,
18619 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18620 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18621 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'
18622 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'
18623 ;;
18624 irix5* | irix6*)
18625 case $cc_basename in
18626 CC*)
18627 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018628 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 +000018629
18630 # Archives containing C++ object files must be created using
18631 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18632 # necessary to make sure instantiated templates are included
18633 # in the archive.
18634 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18635 ;;
18636 *)
18637 if test "$GXX" = yes; then
18638 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018639 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 +000018640 else
cristyda16f162011-02-19 23:52:17 +000018641 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 +000018642 fi
18643 fi
18644 link_all_deplibs_CXX=yes
18645 ;;
18646 esac
18647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18648 hardcode_libdir_separator_CXX=:
18649 inherit_rpath_CXX=yes
18650 ;;
18651
cristy0c60a692010-11-04 01:09:47 +000018652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018653 case $cc_basename in
18654 KCC*)
18655 # Kuck and Associates, Inc. (KAI) C++ Compiler
18656
18657 # KCC will only create a shared library if the output file
18658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18659 # to its proper name (with version) after linking.
18660 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'
18661 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'
18662 # Commands to make compiler produce verbose output that lists
18663 # what "hidden" libraries, object files and flags are used when
18664 # linking a shared library.
18665 #
18666 # There doesn't appear to be a way to prevent this compiler from
18667 # explicitly linking system object files so we need to strip them
18668 # from the output so that they don't get included in the library
18669 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018670 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 +000018671
18672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18674
18675 # Archives containing C++ object files must be created using
18676 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18678 ;;
18679 icpc* | ecpc* )
18680 # Intel C++
18681 with_gnu_ld=yes
18682 # version 8.0 and above of icpc choke on multiply defined symbols
18683 # if we add $predep_objects and $postdep_objects, however 7.1 and
18684 # earlier do not add the objects themselves.
18685 case `$CC -V 2>&1` in
18686 *"Version 7."*)
18687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18688 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'
18689 ;;
18690 *) # Version 8.0 or newer
18691 tmp_idyn=
18692 case $host_cpu in
18693 ia64*) tmp_idyn=' -i_dynamic';;
18694 esac
18695 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18696 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'
18697 ;;
18698 esac
18699 archive_cmds_need_lc_CXX=no
18700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18703 ;;
18704 pgCC* | pgcpp*)
18705 # Portland Group C++ compiler
18706 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018707 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018708 prelink_cmds_CXX='tpldir=Template.dir~
18709 rm -rf $tpldir~
18710 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018711 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018712 old_archive_cmds_CXX='tpldir=Template.dir~
18713 rm -rf $tpldir~
18714 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018715 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018716 $RANLIB $oldlib'
18717 archive_cmds_CXX='tpldir=Template.dir~
18718 rm -rf $tpldir~
18719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018720 $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 +000018721 archive_expsym_cmds_CXX='tpldir=Template.dir~
18722 rm -rf $tpldir~
18723 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018724 $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 +000018725 ;;
cristy0c60a692010-11-04 01:09:47 +000018726 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18728 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'
18729 ;;
18730 esac
18731
18732 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018734 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 +000018735 ;;
18736 cxx*)
18737 # Compaq C++
18738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18739 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'
18740
18741 runpath_var=LD_RUN_PATH
18742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18743 hardcode_libdir_separator_CXX=:
18744
18745 # Commands to make compiler produce verbose output that lists
18746 # what "hidden" libraries, object files and flags are used when
18747 # linking a shared library.
18748 #
18749 # There doesn't appear to be a way to prevent this compiler from
18750 # explicitly linking system object files so we need to strip them
18751 # from the output so that they don't get included in the library
18752 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018753 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 +000018754 ;;
cristy0c60a692010-11-04 01:09:47 +000018755 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018756 # IBM XL 8.0 on PPC, with GNU ld
18757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18759 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18760 if test "x$supports_anon_versioning" = xyes; then
18761 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18763 echo "local: *; };" >> $output_objdir/$libname.ver~
18764 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18765 fi
18766 ;;
18767 *)
18768 case `$CC -V 2>&1 | sed 5q` in
18769 *Sun\ C*)
18770 # Sun C++ 5.9
18771 no_undefined_flag_CXX=' -zdefs'
18772 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18773 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'
18774 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018775 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 +000018776 compiler_needs_object_CXX=yes
18777
18778 # Not sure whether something based on
18779 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18780 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018781 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018782
18783 # Archives containing C++ object files must be created using
18784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18785 # necessary to make sure instantiated templates are included
18786 # in the archive.
18787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18788 ;;
18789 esac
18790 ;;
18791 esac
18792 ;;
18793
18794 lynxos*)
18795 # FIXME: insert proper C++ library support
18796 ld_shlibs_CXX=no
18797 ;;
18798
18799 m88k*)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
18803
18804 mvs*)
18805 case $cc_basename in
18806 cxx*)
18807 # FIXME: insert proper C++ library support
18808 ld_shlibs_CXX=no
18809 ;;
18810 *)
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18813 ;;
18814 esac
18815 ;;
18816
18817 netbsd*)
18818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18819 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18820 wlarc=
18821 hardcode_libdir_flag_spec_CXX='-R$libdir'
18822 hardcode_direct_CXX=yes
18823 hardcode_shlibpath_var_CXX=no
18824 fi
18825 # Workaround some broken pre-1.5 toolchains
18826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18827 ;;
18828
18829 *nto* | *qnx*)
18830 ld_shlibs_CXX=yes
18831 ;;
18832
18833 openbsd2*)
18834 # C++ shared libraries are fairly broken
18835 ld_shlibs_CXX=no
18836 ;;
18837
18838 openbsd*)
18839 if test -f /usr/libexec/ld.so; then
18840 hardcode_direct_CXX=yes
18841 hardcode_shlibpath_var_CXX=no
18842 hardcode_direct_absolute_CXX=yes
18843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18846 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18847 export_dynamic_flag_spec_CXX='${wl}-E'
18848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18849 fi
cristy0c60a692010-11-04 01:09:47 +000018850 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018851 else
18852 ld_shlibs_CXX=no
18853 fi
18854 ;;
18855
18856 osf3* | osf4* | osf5*)
18857 case $cc_basename in
18858 KCC*)
18859 # Kuck and Associates, Inc. (KAI) C++ Compiler
18860
18861 # KCC will only create a shared library if the output file
18862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18863 # to its proper name (with version) after linking.
18864 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'
18865
18866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18867 hardcode_libdir_separator_CXX=:
18868
18869 # Archives containing C++ object files must be created using
18870 # the KAI C++ compiler.
18871 case $host in
18872 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18873 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18874 esac
18875 ;;
18876 RCC*)
18877 # Rational C++ 2.4.1
18878 # FIXME: insert proper C++ library support
18879 ld_shlibs_CXX=no
18880 ;;
18881 cxx*)
18882 case $host in
18883 osf3*)
18884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018885 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 +000018886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18887 ;;
18888 *)
18889 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018890 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 +000018891 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18892 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018893 $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 +000018894 $RM $lib.exp'
18895 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18896 ;;
18897 esac
18898
18899 hardcode_libdir_separator_CXX=:
18900
18901 # Commands to make compiler produce verbose output that lists
18902 # what "hidden" libraries, object files and flags are used when
18903 # linking a shared library.
18904 #
18905 # There doesn't appear to be a way to prevent this compiler from
18906 # explicitly linking system object files so we need to strip them
18907 # from the output so that they don't get included in the library
18908 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018909 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 +000018910 ;;
18911 *)
18912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18914 case $host in
18915 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018916 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 +000018917 ;;
18918 *)
cristyda16f162011-02-19 23:52:17 +000018919 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 +000018920 ;;
18921 esac
18922
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925
18926 # Commands to make compiler produce verbose output that lists
18927 # what "hidden" libraries, object files and flags are used when
18928 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018930
18931 else
18932 # FIXME: insert proper C++ library support
18933 ld_shlibs_CXX=no
18934 fi
18935 ;;
18936 esac
18937 ;;
18938
18939 psos*)
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18942 ;;
18943
18944 sunos4*)
18945 case $cc_basename in
18946 CC*)
18947 # Sun C++ 4.x
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18950 ;;
18951 lcc*)
18952 # Lucid
18953 # FIXME: insert proper C++ library support
18954 ld_shlibs_CXX=no
18955 ;;
18956 *)
18957 # FIXME: insert proper C++ library support
18958 ld_shlibs_CXX=no
18959 ;;
18960 esac
18961 ;;
18962
18963 solaris*)
18964 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018965 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018966 # Sun C++ 4.2, 5.x and Centerline C++
18967 archive_cmds_need_lc_CXX=yes
18968 no_undefined_flag_CXX=' -zdefs'
18969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18970 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18971 $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'
18972
18973 hardcode_libdir_flag_spec_CXX='-R$libdir'
18974 hardcode_shlibpath_var_CXX=no
18975 case $host_os in
18976 solaris2.[0-5] | solaris2.[0-5].*) ;;
18977 *)
18978 # The compiler driver will combine and reorder linker options,
18979 # but understands `-z linker_flag'.
18980 # Supported since Solaris 2.6 (maybe 2.5.1?)
18981 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18982 ;;
18983 esac
18984 link_all_deplibs_CXX=yes
18985
cristy0c60a692010-11-04 01:09:47 +000018986 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018987
18988 # Archives containing C++ object files must be created using
18989 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18990 # necessary to make sure instantiated templates are included
18991 # in the archive.
18992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18993 ;;
18994 gcx*)
18995 # Green Hills C++ Compiler
18996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18997
18998 # The C++ compiler must be used to create the archive.
18999 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19000 ;;
19001 *)
19002 # GNU C++ compiler with Solaris linker
19003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19004 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19005 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019006 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 +000019007 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 +000019008 $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 +000019009
19010 # Commands to make compiler produce verbose output that lists
19011 # what "hidden" libraries, object files and flags are used when
19012 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019014 else
19015 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19016 # platform.
19017 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19018 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19019 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19020
19021 # Commands to make compiler produce verbose output that lists
19022 # what "hidden" libraries, object files and flags are used when
19023 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019025 fi
19026
19027 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19028 case $host_os in
19029 solaris2.[0-5] | solaris2.[0-5].*) ;;
19030 *)
19031 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19032 ;;
19033 esac
19034 fi
19035 ;;
19036 esac
19037 ;;
19038
19039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19040 no_undefined_flag_CXX='${wl}-z,text'
19041 archive_cmds_need_lc_CXX=no
19042 hardcode_shlibpath_var_CXX=no
19043 runpath_var='LD_RUN_PATH'
19044
19045 case $cc_basename in
19046 CC*)
19047 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19048 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19049 ;;
19050 *)
19051 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19052 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19053 ;;
19054 esac
19055 ;;
19056
19057 sysv5* | sco3.2v5* | sco5v6*)
19058 # Note: We can NOT use -z defs as we might desire, because we do not
19059 # link with -lc, and that would cause any symbols used from libc to
19060 # always be unresolved, which means just about no library would
19061 # ever link correctly. If we're not using GNU ld we use -z text
19062 # though, which does catch some bad symbols but isn't as heavy-handed
19063 # as -z defs.
19064 no_undefined_flag_CXX='${wl}-z,text'
19065 allow_undefined_flag_CXX='${wl}-z,nodefs'
19066 archive_cmds_need_lc_CXX=no
19067 hardcode_shlibpath_var_CXX=no
19068 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19069 hardcode_libdir_separator_CXX=':'
19070 link_all_deplibs_CXX=yes
19071 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19072 runpath_var='LD_RUN_PATH'
19073
19074 case $cc_basename in
19075 CC*)
19076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19077 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 +000019078 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19079 '"$old_archive_cmds_CXX"
19080 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19081 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019082 ;;
19083 *)
19084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19086 ;;
19087 esac
19088 ;;
19089
19090 tandem*)
19091 case $cc_basename in
19092 NCC*)
19093 # NonStop-UX NCC 3.20
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 *)
19098 # FIXME: insert proper C++ library support
19099 ld_shlibs_CXX=no
19100 ;;
19101 esac
19102 ;;
19103
19104 vxworks*)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108
19109 *)
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19112 ;;
19113 esac
19114
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19116$as_echo "$ld_shlibs_CXX" >&6; }
19117 test "$ld_shlibs_CXX" = no && can_build_shared=no
19118
19119 GCC_CXX="$GXX"
19120 LD_CXX="$LD"
19121
19122 ## CAVEAT EMPTOR:
19123 ## There is no encapsulation within the following macros, do not change
19124 ## the running order or otherwise move them around unless you know exactly
19125 ## what you are doing...
19126 # Dependencies to place before and after the object being linked:
19127predep_objects_CXX=
19128postdep_objects_CXX=
19129predeps_CXX=
19130postdeps_CXX=
19131compiler_lib_search_path_CXX=
19132
19133cat > conftest.$ac_ext <<_LT_EOF
19134class Foo
19135{
19136public:
19137 Foo (void) { a = 0; }
19138private:
19139 int a;
19140};
19141_LT_EOF
19142
cristyda16f162011-02-19 23:52:17 +000019143
19144_lt_libdeps_save_CFLAGS=$CFLAGS
19145case "$CC $CFLAGS " in #(
19146*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19147*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019148*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019149esac
19150
cristy73bd4a52010-10-05 11:24:23 +000019151if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19152 (eval $ac_compile) 2>&5
19153 ac_status=$?
19154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19155 test $ac_status = 0; }; then
19156 # Parse the compiler output and extract the necessary
19157 # objects, libraries and library flags.
19158
19159 # Sentinel used to keep track of whether or not we are before
19160 # the conftest object file.
19161 pre_test_object_deps_done=no
19162
19163 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019164 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019165
19166 -L* | -R* | -l*)
19167 # Some compilers place space between "-{L,R}" and the path.
19168 # Remove the space.
19169 if test $p = "-L" ||
19170 test $p = "-R"; then
19171 prev=$p
19172 continue
cristy73bd4a52010-10-05 11:24:23 +000019173 fi
19174
cristyda16f162011-02-19 23:52:17 +000019175 # Expand the sysroot to ease extracting the directories later.
19176 if test -z "$prev"; then
19177 case $p in
19178 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19179 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19180 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19181 esac
19182 fi
19183 case $p in
19184 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19185 esac
cristy73bd4a52010-10-05 11:24:23 +000019186 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019187 case ${prev} in
19188 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019189 # Internal compiler library paths should come after those
19190 # provided the user. The postdeps already come after the
19191 # user supplied libs so there is no need to process them.
19192 if test -z "$compiler_lib_search_path_CXX"; then
19193 compiler_lib_search_path_CXX="${prev}${p}"
19194 else
19195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19196 fi
19197 ;;
19198 # The "-l" case would never come before the object being
19199 # linked, so don't bother handling this case.
19200 esac
19201 else
19202 if test -z "$postdeps_CXX"; then
19203 postdeps_CXX="${prev}${p}"
19204 else
19205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19206 fi
19207 fi
cristyda16f162011-02-19 23:52:17 +000019208 prev=
cristy73bd4a52010-10-05 11:24:23 +000019209 ;;
19210
cristyda16f162011-02-19 23:52:17 +000019211 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019212 *.$objext)
19213 # This assumes that the test object file only shows up
19214 # once in the compiler output.
19215 if test "$p" = "conftest.$objext"; then
19216 pre_test_object_deps_done=yes
19217 continue
19218 fi
19219
19220 if test "$pre_test_object_deps_done" = no; then
19221 if test -z "$predep_objects_CXX"; then
19222 predep_objects_CXX="$p"
19223 else
19224 predep_objects_CXX="$predep_objects_CXX $p"
19225 fi
19226 else
19227 if test -z "$postdep_objects_CXX"; then
19228 postdep_objects_CXX="$p"
19229 else
19230 postdep_objects_CXX="$postdep_objects_CXX $p"
19231 fi
19232 fi
19233 ;;
19234
19235 *) ;; # Ignore the rest.
19236
19237 esac
19238 done
19239
19240 # Clean up.
19241 rm -f a.out a.exe
19242else
19243 echo "libtool.m4: error: problem compiling CXX test program"
19244fi
19245
19246$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019247CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019248
19249# PORTME: override above test on systems where it is broken
19250case $host_os in
19251interix[3-9]*)
19252 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19253 # hack all around it, let's just trust "g++" to DTRT.
19254 predep_objects_CXX=
19255 postdep_objects_CXX=
19256 postdeps_CXX=
19257 ;;
19258
19259linux*)
19260 case `$CC -V 2>&1 | sed 5q` in
19261 *Sun\ C*)
19262 # Sun C++ 5.9
19263
19264 # The more standards-conforming stlport4 library is
19265 # incompatible with the Cstd library. Avoid specifying
19266 # it if it's in CXXFLAGS. Ignore libCrun as
19267 # -library=stlport4 depends on it.
19268 case " $CXX $CXXFLAGS " in
19269 *" -library=stlport4 "*)
19270 solaris_use_stlport4=yes
19271 ;;
19272 esac
19273
19274 if test "$solaris_use_stlport4" != yes; then
19275 postdeps_CXX='-library=Cstd -library=Crun'
19276 fi
19277 ;;
19278 esac
19279 ;;
19280
19281solaris*)
19282 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019283 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019284 # The more standards-conforming stlport4 library is
19285 # incompatible with the Cstd library. Avoid specifying
19286 # it if it's in CXXFLAGS. Ignore libCrun as
19287 # -library=stlport4 depends on it.
19288 case " $CXX $CXXFLAGS " in
19289 *" -library=stlport4 "*)
19290 solaris_use_stlport4=yes
19291 ;;
19292 esac
19293
19294 # Adding this requires a known-good setup of shared libraries for
19295 # Sun compiler versions before 5.6, else PIC objects from an old
19296 # archive will be linked into the output, leading to subtle bugs.
19297 if test "$solaris_use_stlport4" != yes; then
19298 postdeps_CXX='-library=Cstd -library=Crun'
19299 fi
19300 ;;
19301 esac
19302 ;;
19303esac
19304
19305
19306case " $postdeps_CXX " in
19307*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19308esac
19309 compiler_lib_search_dirs_CXX=
19310if test -n "${compiler_lib_search_path_CXX}"; then
19311 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19312fi
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 lt_prog_compiler_wl_CXX=
19345lt_prog_compiler_pic_CXX=
19346lt_prog_compiler_static_CXX=
19347
cristy73bd4a52010-10-05 11:24:23 +000019348
19349 # C++ specific cases for pic, static, wl, etc.
19350 if test "$GXX" = yes; then
19351 lt_prog_compiler_wl_CXX='-Wl,'
19352 lt_prog_compiler_static_CXX='-static'
19353
19354 case $host_os in
19355 aix*)
19356 # All AIX code is PIC.
19357 if test "$host_cpu" = ia64; then
19358 # AIX 5 now supports IA64 processor
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 fi
19361 ;;
19362
19363 amigaos*)
19364 case $host_cpu in
19365 powerpc)
19366 # see comment about AmigaOS4 .so support
19367 lt_prog_compiler_pic_CXX='-fPIC'
19368 ;;
19369 m68k)
19370 # FIXME: we need at least 68020 code to build shared libraries, but
19371 # adding the `-m68020' flag to GCC prevents building anything better,
19372 # like `-m68040'.
19373 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19374 ;;
19375 esac
19376 ;;
19377
19378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19379 # PIC is the default for these OSes.
19380 ;;
19381 mingw* | cygwin* | os2* | pw32* | cegcc*)
19382 # This hack is so that the source file can tell whether it is being
19383 # built for inclusion in a dll (and should export symbols for example).
19384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19385 # (--disable-auto-import) libraries
19386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19387 ;;
19388 darwin* | rhapsody*)
19389 # PIC is the default on this platform
19390 # Common symbols not allowed in MH_DYLIB files
19391 lt_prog_compiler_pic_CXX='-fno-common'
19392 ;;
19393 *djgpp*)
19394 # DJGPP does not support shared libraries at all
19395 lt_prog_compiler_pic_CXX=
19396 ;;
cristy0c60a692010-11-04 01:09:47 +000019397 haiku*)
19398 # PIC is the default for Haiku.
19399 # The "-static" flag exists, but is broken.
19400 lt_prog_compiler_static_CXX=
19401 ;;
cristy73bd4a52010-10-05 11:24:23 +000019402 interix[3-9]*)
19403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19404 # Instead, we relocate shared libraries at runtime.
19405 ;;
19406 sysv4*MP*)
19407 if test -d /usr/nec; then
19408 lt_prog_compiler_pic_CXX=-Kconform_pic
19409 fi
19410 ;;
19411 hpux*)
19412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19414 # sets the default TLS model and affects inlining.
19415 case $host_cpu in
19416 hppa*64*)
19417 ;;
19418 *)
19419 lt_prog_compiler_pic_CXX='-fPIC'
19420 ;;
19421 esac
19422 ;;
19423 *qnx* | *nto*)
19424 # QNX uses GNU C++, but need to define -shared option too, otherwise
19425 # it will coredump.
19426 lt_prog_compiler_pic_CXX='-fPIC -shared'
19427 ;;
19428 *)
19429 lt_prog_compiler_pic_CXX='-fPIC'
19430 ;;
19431 esac
19432 else
19433 case $host_os in
19434 aix[4-9]*)
19435 # All AIX code is PIC.
19436 if test "$host_cpu" = ia64; then
19437 # AIX 5 now supports IA64 processor
19438 lt_prog_compiler_static_CXX='-Bstatic'
19439 else
19440 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19441 fi
19442 ;;
19443 chorus*)
19444 case $cc_basename in
19445 cxch68*)
19446 # Green Hills C++ Compiler
19447 # _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"
19448 ;;
19449 esac
19450 ;;
cristyda16f162011-02-19 23:52:17 +000019451 mingw* | cygwin* | os2* | pw32* | cegcc*)
19452 # This hack is so that the source file can tell whether it is being
19453 # built for inclusion in a dll (and should export symbols for example).
19454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19455 ;;
cristy73bd4a52010-10-05 11:24:23 +000019456 dgux*)
19457 case $cc_basename in
19458 ec++*)
19459 lt_prog_compiler_pic_CXX='-KPIC'
19460 ;;
19461 ghcx*)
19462 # Green Hills C++ Compiler
19463 lt_prog_compiler_pic_CXX='-pic'
19464 ;;
19465 *)
19466 ;;
19467 esac
19468 ;;
19469 freebsd* | dragonfly*)
19470 # FreeBSD uses GNU C++
19471 ;;
19472 hpux9* | hpux10* | hpux11*)
19473 case $cc_basename in
19474 CC*)
19475 lt_prog_compiler_wl_CXX='-Wl,'
19476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19477 if test "$host_cpu" != ia64; then
19478 lt_prog_compiler_pic_CXX='+Z'
19479 fi
19480 ;;
19481 aCC*)
19482 lt_prog_compiler_wl_CXX='-Wl,'
19483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19484 case $host_cpu in
19485 hppa*64*|ia64*)
19486 # +Z the default
19487 ;;
19488 *)
19489 lt_prog_compiler_pic_CXX='+Z'
19490 ;;
19491 esac
19492 ;;
19493 *)
19494 ;;
19495 esac
19496 ;;
19497 interix*)
19498 # This is c89, which is MS Visual C++ (no shared libs)
19499 # Anyone wants to do a port?
19500 ;;
19501 irix5* | irix6* | nonstopux*)
19502 case $cc_basename in
19503 CC*)
19504 lt_prog_compiler_wl_CXX='-Wl,'
19505 lt_prog_compiler_static_CXX='-non_shared'
19506 # CC pic flag -KPIC is the default.
19507 ;;
19508 *)
19509 ;;
19510 esac
19511 ;;
cristy0c60a692010-11-04 01:09:47 +000019512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019513 case $cc_basename in
19514 KCC*)
19515 # KAI C++ Compiler
19516 lt_prog_compiler_wl_CXX='--backend -Wl,'
19517 lt_prog_compiler_pic_CXX='-fPIC'
19518 ;;
19519 ecpc* )
19520 # old Intel C++ for x86_64 which still supported -KPIC.
19521 lt_prog_compiler_wl_CXX='-Wl,'
19522 lt_prog_compiler_pic_CXX='-KPIC'
19523 lt_prog_compiler_static_CXX='-static'
19524 ;;
19525 icpc* )
19526 # Intel C++, used to be incompatible with GCC.
19527 # ICC 10 doesn't accept -KPIC any more.
19528 lt_prog_compiler_wl_CXX='-Wl,'
19529 lt_prog_compiler_pic_CXX='-fPIC'
19530 lt_prog_compiler_static_CXX='-static'
19531 ;;
19532 pgCC* | pgcpp*)
19533 # Portland Group C++ compiler
19534 lt_prog_compiler_wl_CXX='-Wl,'
19535 lt_prog_compiler_pic_CXX='-fpic'
19536 lt_prog_compiler_static_CXX='-Bstatic'
19537 ;;
19538 cxx*)
19539 # Compaq C++
19540 # Make sure the PIC flag is empty. It appears that all Alpha
19541 # Linux and Compaq Tru64 Unix objects are PIC.
19542 lt_prog_compiler_pic_CXX=
19543 lt_prog_compiler_static_CXX='-non_shared'
19544 ;;
cristy0c60a692010-11-04 01:09:47 +000019545 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19546 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019547 lt_prog_compiler_wl_CXX='-Wl,'
19548 lt_prog_compiler_pic_CXX='-qpic'
19549 lt_prog_compiler_static_CXX='-qstaticlink'
19550 ;;
19551 *)
19552 case `$CC -V 2>&1 | sed 5q` in
19553 *Sun\ C*)
19554 # Sun C++ 5.9
19555 lt_prog_compiler_pic_CXX='-KPIC'
19556 lt_prog_compiler_static_CXX='-Bstatic'
19557 lt_prog_compiler_wl_CXX='-Qoption ld '
19558 ;;
19559 esac
19560 ;;
19561 esac
19562 ;;
19563 lynxos*)
19564 ;;
19565 m88k*)
19566 ;;
19567 mvs*)
19568 case $cc_basename in
19569 cxx*)
19570 lt_prog_compiler_pic_CXX='-W c,exportall'
19571 ;;
19572 *)
19573 ;;
19574 esac
19575 ;;
19576 netbsd*)
19577 ;;
19578 *qnx* | *nto*)
19579 # QNX uses GNU C++, but need to define -shared option too, otherwise
19580 # it will coredump.
19581 lt_prog_compiler_pic_CXX='-fPIC -shared'
19582 ;;
19583 osf3* | osf4* | osf5*)
19584 case $cc_basename in
19585 KCC*)
19586 lt_prog_compiler_wl_CXX='--backend -Wl,'
19587 ;;
19588 RCC*)
19589 # Rational C++ 2.4.1
19590 lt_prog_compiler_pic_CXX='-pic'
19591 ;;
19592 cxx*)
19593 # Digital/Compaq C++
19594 lt_prog_compiler_wl_CXX='-Wl,'
19595 # Make sure the PIC flag is empty. It appears that all Alpha
19596 # Linux and Compaq Tru64 Unix objects are PIC.
19597 lt_prog_compiler_pic_CXX=
19598 lt_prog_compiler_static_CXX='-non_shared'
19599 ;;
19600 *)
19601 ;;
19602 esac
19603 ;;
19604 psos*)
19605 ;;
19606 solaris*)
19607 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019608 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019609 # Sun C++ 4.2, 5.x and Centerline C++
19610 lt_prog_compiler_pic_CXX='-KPIC'
19611 lt_prog_compiler_static_CXX='-Bstatic'
19612 lt_prog_compiler_wl_CXX='-Qoption ld '
19613 ;;
19614 gcx*)
19615 # Green Hills C++ Compiler
19616 lt_prog_compiler_pic_CXX='-PIC'
19617 ;;
19618 *)
19619 ;;
19620 esac
19621 ;;
19622 sunos4*)
19623 case $cc_basename in
19624 CC*)
19625 # Sun C++ 4.x
19626 lt_prog_compiler_pic_CXX='-pic'
19627 lt_prog_compiler_static_CXX='-Bstatic'
19628 ;;
19629 lcc*)
19630 # Lucid
19631 lt_prog_compiler_pic_CXX='-pic'
19632 ;;
19633 *)
19634 ;;
19635 esac
19636 ;;
19637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19638 case $cc_basename in
19639 CC*)
19640 lt_prog_compiler_wl_CXX='-Wl,'
19641 lt_prog_compiler_pic_CXX='-KPIC'
19642 lt_prog_compiler_static_CXX='-Bstatic'
19643 ;;
19644 esac
19645 ;;
19646 tandem*)
19647 case $cc_basename in
19648 NCC*)
19649 # NonStop-UX NCC 3.20
19650 lt_prog_compiler_pic_CXX='-KPIC'
19651 ;;
19652 *)
19653 ;;
19654 esac
19655 ;;
19656 vxworks*)
19657 ;;
19658 *)
19659 lt_prog_compiler_can_build_shared_CXX=no
19660 ;;
19661 esac
19662 fi
19663
19664case $host_os in
19665 # For platforms which do not support PIC, -DPIC is meaningless:
19666 *djgpp*)
19667 lt_prog_compiler_pic_CXX=
19668 ;;
19669 *)
19670 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19671 ;;
19672esac
cristy73bd4a52010-10-05 11:24:23 +000019673
cristyda16f162011-02-19 23:52:17 +000019674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19675$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19676if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19677 $as_echo_n "(cached) " >&6
19678else
19679 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19680fi
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19682$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19683lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019684
19685#
19686# Check to make sure the PIC flag actually works.
19687#
19688if test -n "$lt_prog_compiler_pic_CXX"; then
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19690$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019691if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019692 $as_echo_n "(cached) " >&6
19693else
19694 lt_cv_prog_compiler_pic_works_CXX=no
19695 ac_outfile=conftest.$ac_objext
19696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19698 # Insert the option either (1) after the last *FLAGS variable, or
19699 # (2) before a word containing "conftest.", or (3) at the end.
19700 # Note that $ac_compile itself does not contain backslashes and begins
19701 # with a dollar sign (not a hyphen), so the echo should work correctly.
19702 # The option is referenced via a variable to avoid confusing sed.
19703 lt_compile=`echo "$ac_compile" | $SED \
19704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19706 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019708 (eval "$lt_compile" 2>conftest.err)
19709 ac_status=$?
19710 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019712 if (exit $ac_status) && test -s "$ac_outfile"; then
19713 # The compiler can only warn and ignore the option if not recognized
19714 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19718 lt_cv_prog_compiler_pic_works_CXX=yes
19719 fi
19720 fi
19721 $RM conftest*
19722
19723fi
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19725$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19726
19727if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19728 case $lt_prog_compiler_pic_CXX in
19729 "" | " "*) ;;
19730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19731 esac
19732else
19733 lt_prog_compiler_pic_CXX=
19734 lt_prog_compiler_can_build_shared_CXX=no
19735fi
19736
19737fi
19738
19739
19740
cristyda16f162011-02-19 23:52:17 +000019741
19742
cristy73bd4a52010-10-05 11:24:23 +000019743#
19744# Check to make sure the static flag actually works.
19745#
19746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19748$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019749if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019750 $as_echo_n "(cached) " >&6
19751else
19752 lt_cv_prog_compiler_static_works_CXX=no
19753 save_LDFLAGS="$LDFLAGS"
19754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19757 # The linker can only warn and ignore the option if not recognized
19758 # So say no if there are warnings
19759 if test -s conftest.err; then
19760 # Append any errors to the config.log.
19761 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764 if diff conftest.exp conftest.er2 >/dev/null; then
19765 lt_cv_prog_compiler_static_works_CXX=yes
19766 fi
19767 else
19768 lt_cv_prog_compiler_static_works_CXX=yes
19769 fi
19770 fi
19771 $RM -r conftest*
19772 LDFLAGS="$save_LDFLAGS"
19773
19774fi
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19776$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19777
19778if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19779 :
19780else
19781 lt_prog_compiler_static_CXX=
19782fi
19783
19784
19785
19786
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019789if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019790 $as_echo_n "(cached) " >&6
19791else
19792 lt_cv_prog_compiler_c_o_CXX=no
19793 $RM -r conftest 2>/dev/null
19794 mkdir conftest
19795 cd conftest
19796 mkdir out
19797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19798
19799 lt_compiler_flag="-o out/conftest2.$ac_objext"
19800 # Insert the option either (1) after the last *FLAGS variable, or
19801 # (2) before a word containing "conftest.", or (3) at the end.
19802 # Note that $ac_compile itself does not contain backslashes and begins
19803 # with a dollar sign (not a hyphen), so the echo should work correctly.
19804 lt_compile=`echo "$ac_compile" | $SED \
19805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19807 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019809 (eval "$lt_compile" 2>out/conftest.err)
19810 ac_status=$?
19811 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19814 then
19815 # The compiler can only warn and ignore the option if not recognized
19816 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19820 lt_cv_prog_compiler_c_o_CXX=yes
19821 fi
19822 fi
19823 chmod u+w . 2>&5
19824 $RM conftest*
19825 # SGI C++ compiler will create directory out/ii_files/ for
19826 # template instantiation
19827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19828 $RM out/* && rmdir out
19829 cd ..
19830 $RM -r conftest
19831 $RM conftest*
19832
19833fi
19834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19835$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19836
19837
19838
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019841if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019842 $as_echo_n "(cached) " >&6
19843else
19844 lt_cv_prog_compiler_c_o_CXX=no
19845 $RM -r conftest 2>/dev/null
19846 mkdir conftest
19847 cd conftest
19848 mkdir out
19849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19850
19851 lt_compiler_flag="-o out/conftest2.$ac_objext"
19852 # Insert the option either (1) after the last *FLAGS variable, or
19853 # (2) before a word containing "conftest.", or (3) at the end.
19854 # Note that $ac_compile itself does not contain backslashes and begins
19855 # with a dollar sign (not a hyphen), so the echo should work correctly.
19856 lt_compile=`echo "$ac_compile" | $SED \
19857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19859 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019861 (eval "$lt_compile" 2>out/conftest.err)
19862 ac_status=$?
19863 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19866 then
19867 # The compiler can only warn and ignore the option if not recognized
19868 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19872 lt_cv_prog_compiler_c_o_CXX=yes
19873 fi
19874 fi
19875 chmod u+w . 2>&5
19876 $RM conftest*
19877 # SGI C++ compiler will create directory out/ii_files/ for
19878 # template instantiation
19879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19880 $RM out/* && rmdir out
19881 cd ..
19882 $RM -r conftest
19883 $RM conftest*
19884
19885fi
19886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19888
19889
19890
19891
19892hard_links="nottested"
19893if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19894 # do not overwrite the value of need_locks provided by the user
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19896$as_echo_n "checking if we can lock with hard links... " >&6; }
19897 hard_links=yes
19898 $RM conftest*
19899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19900 touch conftest.a
19901 ln conftest.a conftest.b 2>&5 || hard_links=no
19902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19904$as_echo "$hard_links" >&6; }
19905 if test "$hard_links" = no; then
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19907$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19908 need_locks=warn
19909 fi
19910else
19911 need_locks=no
19912fi
19913
19914
19915
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19918
19919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019921 case $host_os in
19922 aix[4-9]*)
19923 # If we're using GNU nm, then we don't want the "-C" option.
19924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019925 # Also, AIX nm treats weak defined symbols like other global defined
19926 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019928 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 +000019929 else
19930 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'
19931 fi
19932 ;;
19933 pw32*)
19934 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019935 ;;
cristy73bd4a52010-10-05 11:24:23 +000019936 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019937 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019938 cl*)
19939 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19940 ;;
cristyda16f162011-02-19 23:52:17 +000019941 *)
19942 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'
19943 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19944 ;;
19945 esac
19946 ;;
cristy73bd4a52010-10-05 11:24:23 +000019947 *)
19948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019949 ;;
cristy73bd4a52010-10-05 11:24:23 +000019950 esac
cristy73bd4a52010-10-05 11:24:23 +000019951
19952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19953$as_echo "$ld_shlibs_CXX" >&6; }
19954test "$ld_shlibs_CXX" = no && can_build_shared=no
19955
19956with_gnu_ld_CXX=$with_gnu_ld
19957
19958
19959
19960
19961
19962
19963#
19964# Do we need to explicitly link libc?
19965#
19966case "x$archive_cmds_need_lc_CXX" in
19967x|xyes)
19968 # Assume -lc should be added
19969 archive_cmds_need_lc_CXX=yes
19970
19971 if test "$enable_shared" = yes && test "$GCC" = yes; then
19972 case $archive_cmds_CXX in
19973 *'~'*)
19974 # FIXME: we may have to deal with multi-command sequences.
19975 ;;
19976 '$CC '*)
19977 # Test whether the compiler implicitly links with -lc since on some
19978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19979 # to ld, don't add -lc before -lgcc.
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19981$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019982if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019983 $as_echo_n "(cached) " >&6
19984else
19985 $RM conftest*
19986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019987
cristy0c60a692010-11-04 01:09:47 +000019988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019989 (eval $ac_compile) 2>&5
19990 ac_status=$?
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019993 soname=conftest
19994 lib=conftest
19995 libobjs=conftest.$ac_objext
19996 deplibs=
19997 wl=$lt_prog_compiler_wl_CXX
19998 pic_flag=$lt_prog_compiler_pic_CXX
19999 compiler_flags=-v
20000 linker_flags=-v
20001 verstring=
20002 output_objdir=.
20003 libname=conftest
20004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20005 allow_undefined_flag_CXX=
20006 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 +000020007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20008 ac_status=$?
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020011 then
20012 lt_cv_archive_cmds_need_lc_CXX=no
20013 else
20014 lt_cv_archive_cmds_need_lc_CXX=yes
20015 fi
20016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20017 else
20018 cat conftest.err 1>&5
20019 fi
20020 $RM conftest*
20021
20022fi
20023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20024$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20025 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020026 ;;
20027 esac
20028 fi
20029 ;;
20030esac
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
cristy73bd4a52010-10-05 11:24:23 +000020093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20094$as_echo_n "checking dynamic linker characteristics... " >&6; }
20095
20096library_names_spec=
20097libname_spec='lib$name'
20098soname_spec=
20099shrext_cmds=".so"
20100postinstall_cmds=
20101postuninstall_cmds=
20102finish_cmds=
20103finish_eval=
20104shlibpath_var=
20105shlibpath_overrides_runpath=unknown
20106version_type=none
20107dynamic_linker="$host_os ld.so"
20108sys_lib_dlsearch_path_spec="/lib /usr/lib"
20109need_lib_prefix=unknown
20110hardcode_into_libs=no
20111
20112# when you set need_version to no, make sure it does not cause -set_version
20113# flags to be left without arguments
20114need_version=unknown
20115
20116case $host_os in
20117aix3*)
cristy99bd5232011-12-07 14:38:20 +000020118 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20120 shlibpath_var=LIBPATH
20121
20122 # AIX 3 has no versioning support, so we append a major version to the name.
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 ;;
20125
20126aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020127 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020128 need_lib_prefix=no
20129 need_version=no
20130 hardcode_into_libs=yes
20131 if test "$host_cpu" = ia64; then
20132 # AIX 5 supports IA64
20133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20134 shlibpath_var=LD_LIBRARY_PATH
20135 else
20136 # With GCC up to 2.95.x, collect2 would create an import file
20137 # for dependence libraries. The import file would start with
20138 # the line `#! .'. This would cause the generated library to
20139 # depend on `.', always an invalid library. This was fixed in
20140 # development snapshots of GCC prior to 3.0.
20141 case $host_os in
20142 aix4 | aix4.[01] | aix4.[01].*)
20143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20144 echo ' yes '
20145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20146 :
20147 else
20148 can_build_shared=no
20149 fi
20150 ;;
20151 esac
20152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20153 # soname into executable. Probably we can add versioning support to
20154 # collect2, so additional links can be useful in future.
20155 if test "$aix_use_runtimelinking" = yes; then
20156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20157 # instead of lib<name>.a to let people know that these are not
20158 # typical AIX shared libraries.
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20160 else
20161 # We preserve .a as extension for shared libraries through AIX4.2
20162 # and later when we are not doing run time linking.
20163 library_names_spec='${libname}${release}.a $libname.a'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20165 fi
20166 shlibpath_var=LIBPATH
20167 fi
20168 ;;
20169
20170amigaos*)
20171 case $host_cpu in
20172 powerpc)
20173 # Since July 2007 AmigaOS4 officially supports .so libraries.
20174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20176 ;;
20177 m68k)
20178 library_names_spec='$libname.ixlibrary $libname.a'
20179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020180 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 +000020181 ;;
20182 esac
20183 ;;
20184
20185beos*)
20186 library_names_spec='${libname}${shared_ext}'
20187 dynamic_linker="$host_os ld.so"
20188 shlibpath_var=LIBRARY_PATH
20189 ;;
20190
20191bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020192 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020193 need_version=no
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20197 shlibpath_var=LD_LIBRARY_PATH
20198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20200 # the default ld.so.conf also contains /usr/contrib/lib and
20201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20202 # libtool to hard-code these into programs
20203 ;;
20204
20205cygwin* | mingw* | pw32* | cegcc*)
20206 version_type=windows
20207 shrext_cmds=".dll"
20208 need_version=no
20209 need_lib_prefix=no
20210
cristyda16f162011-02-19 23:52:17 +000020211 case $GCC,$cc_basename in
20212 yes,*)
20213 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020214 library_names_spec='$libname.dll.a'
20215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20216 postinstall_cmds='base_file=`basename \${file}`~
20217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20218 dldir=$destdir/`dirname \$dlpath`~
20219 test -d \$dldir || mkdir -p \$dldir~
20220 $install_prog $dir/$dlname \$dldir/$dlname~
20221 chmod a+x \$dldir/$dlname~
20222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20224 fi'
20225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20226 dlpath=$dir/\$dldll~
20227 $RM \$dlpath'
20228 shlibpath_overrides_runpath=yes
20229
20230 case $host_os in
20231 cygwin*)
20232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020234
cristy73bd4a52010-10-05 11:24:23 +000020235 ;;
20236 mingw* | cegcc*)
20237 # MinGW DLLs use traditional 'lib' prefix
20238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020239 ;;
20240 pw32*)
20241 # pw32 DLLs use 'pw' prefix rather than 'lib'
20242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20243 ;;
20244 esac
cristyda16f162011-02-19 23:52:17 +000020245 dynamic_linker='Win32 ld.exe'
20246 ;;
20247
20248 *,cl*)
20249 # Native MSVC
20250 libname_spec='$name'
20251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20252 library_names_spec='${libname}.dll.lib'
20253
20254 case $build_os in
20255 mingw*)
20256 sys_lib_search_path_spec=
20257 lt_save_ifs=$IFS
20258 IFS=';'
20259 for lt_path in $LIB
20260 do
20261 IFS=$lt_save_ifs
20262 # Let DOS variable expansion print the short 8.3 style file name.
20263 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20264 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20265 done
20266 IFS=$lt_save_ifs
20267 # Convert to MSYS style.
20268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20269 ;;
20270 cygwin*)
20271 # Convert to unix form, then to dos form, then back to unix form
20272 # but this time dos style (no spaces!) so that the unix form looks
20273 # like /cygdrive/c/PROGRA~1:/cygdr...
20274 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20275 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20276 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20277 ;;
20278 *)
20279 sys_lib_search_path_spec="$LIB"
20280 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20281 # It is most probably a Windows format PATH.
20282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20283 else
20284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20285 fi
20286 # FIXME: find the short name or the path components, as spaces are
20287 # common. (e.g. "Program Files" -> "PROGRA~1")
20288 ;;
20289 esac
20290
20291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20292 postinstall_cmds='base_file=`basename \${file}`~
20293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20294 dldir=$destdir/`dirname \$dlpath`~
20295 test -d \$dldir || mkdir -p \$dldir~
20296 $install_prog $dir/$dlname \$dldir/$dlname'
20297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20298 dlpath=$dir/\$dldll~
20299 $RM \$dlpath'
20300 shlibpath_overrides_runpath=yes
20301 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020302 ;;
20303
20304 *)
cristyda16f162011-02-19 23:52:17 +000020305 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020307 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020308 ;;
20309 esac
cristy73bd4a52010-10-05 11:24:23 +000020310 # FIXME: first we should search . and the directory the executable is in
20311 shlibpath_var=PATH
20312 ;;
20313
20314darwin* | rhapsody*)
20315 dynamic_linker="$host_os dyld"
20316 version_type=darwin
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20320 soname_spec='${libname}${release}${major}$shared_ext'
20321 shlibpath_overrides_runpath=yes
20322 shlibpath_var=DYLD_LIBRARY_PATH
20323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20324
20325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20326 ;;
20327
20328dgux*)
cristy99bd5232011-12-07 14:38:20 +000020329 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 ;;
20336
cristy73bd4a52010-10-05 11:24:23 +000020337freebsd* | dragonfly*)
20338 # DragonFly does not have aout. When/if they implement a new
20339 # versioning mechanism, adjust this.
20340 if test -x /usr/bin/objformat; then
20341 objformat=`/usr/bin/objformat`
20342 else
20343 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020344 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020345 *) objformat=elf ;;
20346 esac
20347 fi
20348 version_type=freebsd-$objformat
20349 case $version_type in
20350 freebsd-elf*)
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20352 need_version=no
20353 need_lib_prefix=no
20354 ;;
20355 freebsd-*)
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20357 need_version=yes
20358 ;;
20359 esac
20360 shlibpath_var=LD_LIBRARY_PATH
20361 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020362 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020363 shlibpath_overrides_runpath=yes
20364 ;;
20365 freebsd3.[01]* | freebsdelf3.[01]*)
20366 shlibpath_overrides_runpath=yes
20367 hardcode_into_libs=yes
20368 ;;
20369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20371 shlibpath_overrides_runpath=no
20372 hardcode_into_libs=yes
20373 ;;
20374 *) # from 4.6 on, and DragonFly
20375 shlibpath_overrides_runpath=yes
20376 hardcode_into_libs=yes
20377 ;;
20378 esac
20379 ;;
20380
20381gnu*)
cristy99bd5232011-12-07 14:38:20 +000020382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020383 need_lib_prefix=no
20384 need_version=no
20385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20386 soname_spec='${libname}${release}${shared_ext}$major'
20387 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020388 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020389 hardcode_into_libs=yes
20390 ;;
20391
cristy0c60a692010-11-04 01:09:47 +000020392haiku*)
cristy99bd5232011-12-07 14:38:20 +000020393 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020394 need_lib_prefix=no
20395 need_version=no
20396 dynamic_linker="$host_os runtime_loader"
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 shlibpath_var=LIBRARY_PATH
20400 shlibpath_overrides_runpath=yes
20401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20402 hardcode_into_libs=yes
20403 ;;
20404
cristy73bd4a52010-10-05 11:24:23 +000020405hpux9* | hpux10* | hpux11*)
20406 # Give a soname corresponding to the major version so that dld.sl refuses to
20407 # link against other versions.
20408 version_type=sunos
20409 need_lib_prefix=no
20410 need_version=no
20411 case $host_cpu in
20412 ia64*)
20413 shrext_cmds='.so'
20414 hardcode_into_libs=yes
20415 dynamic_linker="$host_os dld.so"
20416 shlibpath_var=LD_LIBRARY_PATH
20417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 if test "X$HPUX_IA64_MODE" = X32; then
20421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20422 else
20423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20424 fi
20425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20426 ;;
20427 hppa*64*)
20428 shrext_cmds='.sl'
20429 hardcode_into_libs=yes
20430 dynamic_linker="$host_os dld.sl"
20431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20437 ;;
20438 *)
20439 shrext_cmds='.sl'
20440 dynamic_linker="$host_os dld.sl"
20441 shlibpath_var=SHLIB_PATH
20442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20444 soname_spec='${libname}${release}${shared_ext}$major'
20445 ;;
20446 esac
cristy0c60a692010-11-04 01:09:47 +000020447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020448 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020449 # or fails outright, so override atomically:
20450 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020451 ;;
20452
20453interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020454 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020455 need_lib_prefix=no
20456 need_version=no
20457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20458 soname_spec='${libname}${release}${shared_ext}$major'
20459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=no
20462 hardcode_into_libs=yes
20463 ;;
20464
20465irix5* | irix6* | nonstopux*)
20466 case $host_os in
20467 nonstopux*) version_type=nonstopux ;;
20468 *)
20469 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020471 else
20472 version_type=irix
20473 fi ;;
20474 esac
20475 need_lib_prefix=no
20476 need_version=no
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20479 case $host_os in
20480 irix5* | nonstopux*)
20481 libsuff= shlibsuff=
20482 ;;
20483 *)
20484 case $LD in # libtool.m4 will add one of these switches to LD
20485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20486 libsuff= shlibsuff= libmagic=32-bit;;
20487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20488 libsuff=32 shlibsuff=N32 libmagic=N32;;
20489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20491 *) libsuff= shlibsuff= libmagic=never-match;;
20492 esac
20493 ;;
20494 esac
20495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20496 shlibpath_overrides_runpath=no
20497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20499 hardcode_into_libs=yes
20500 ;;
20501
20502# No shared lib support for Linux oldld, aout, or coff.
20503linux*oldld* | linux*aout* | linux*coff*)
20504 dynamic_linker=no
20505 ;;
20506
cristy99bd5232011-12-07 14:38:20 +000020507# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020508linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020509 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020510 need_lib_prefix=no
20511 need_version=no
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20515 shlibpath_var=LD_LIBRARY_PATH
20516 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020517
cristy73bd4a52010-10-05 11:24:23 +000020518 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020519 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020520 $as_echo_n "(cached) " >&6
20521else
20522 lt_cv_shlibpath_overrides_runpath=no
20523 save_LDFLAGS=$LDFLAGS
20524 save_libdir=$libdir
20525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020528/* end confdefs.h. */
20529
20530int
20531main ()
20532{
20533
20534 ;
20535 return 0;
20536}
20537_ACEOF
20538if ac_fn_cxx_try_link "$LINENO"; then :
20539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020540 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020541fi
20542fi
20543rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020545 LDFLAGS=$save_LDFLAGS
20546 libdir=$save_libdir
20547
20548fi
20549
20550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020551
20552 # This implies no fast_install, which is unacceptable.
20553 # Some rework will be needed to allow for fast_install
20554 # before this can be enabled.
20555 hardcode_into_libs=yes
20556
20557 # Add ABI-specific directories to the system library path.
20558 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20559
20560 # Append ld.so.conf contents to the search path
20561 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020562 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 +000020563 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020564
cristy73bd4a52010-10-05 11:24:23 +000020565 fi
20566
20567 # We used to test for /lib/ld.so.1 and disable shared libraries on
20568 # powerpc, because MkLinux only supported shared libraries with the
20569 # GNU dynamic linker. Since this was broken with cross compilers,
20570 # most powerpc-linux boxes support dynamic linking these days and
20571 # people can always --disable-shared, the test was removed, and we
20572 # assume the GNU/Linux dynamic linker is in use.
20573 dynamic_linker='GNU/Linux ld.so'
20574 ;;
20575
20576netbsd*)
20577 version_type=sunos
20578 need_lib_prefix=no
20579 need_version=no
20580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20583 dynamic_linker='NetBSD (a.out) ld.so'
20584 else
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 dynamic_linker='NetBSD ld.elf_so'
20588 fi
20589 shlibpath_var=LD_LIBRARY_PATH
20590 shlibpath_overrides_runpath=yes
20591 hardcode_into_libs=yes
20592 ;;
20593
20594newsos6)
cristy99bd5232011-12-07 14:38:20 +000020595 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes
20599 ;;
20600
20601*nto* | *qnx*)
20602 version_type=qnx
20603 need_lib_prefix=no
20604 need_version=no
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 shlibpath_var=LD_LIBRARY_PATH
20608 shlibpath_overrides_runpath=no
20609 hardcode_into_libs=yes
20610 dynamic_linker='ldqnx.so'
20611 ;;
20612
20613openbsd*)
20614 version_type=sunos
20615 sys_lib_dlsearch_path_spec="/usr/lib"
20616 need_lib_prefix=no
20617 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20618 case $host_os in
20619 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20620 *) need_version=no ;;
20621 esac
20622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20624 shlibpath_var=LD_LIBRARY_PATH
20625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20626 case $host_os in
20627 openbsd2.[89] | openbsd2.[89].*)
20628 shlibpath_overrides_runpath=no
20629 ;;
20630 *)
20631 shlibpath_overrides_runpath=yes
20632 ;;
20633 esac
20634 else
20635 shlibpath_overrides_runpath=yes
20636 fi
20637 ;;
20638
20639os2*)
20640 libname_spec='$name'
20641 shrext_cmds=".dll"
20642 need_lib_prefix=no
20643 library_names_spec='$libname${shared_ext} $libname.a'
20644 dynamic_linker='OS/2 ld.exe'
20645 shlibpath_var=LIBPATH
20646 ;;
20647
20648osf3* | osf4* | osf5*)
20649 version_type=osf
20650 need_lib_prefix=no
20651 need_version=no
20652 soname_spec='${libname}${release}${shared_ext}$major'
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654 shlibpath_var=LD_LIBRARY_PATH
20655 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20656 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20657 ;;
20658
20659rdos*)
20660 dynamic_linker=no
20661 ;;
20662
20663solaris*)
cristy99bd5232011-12-07 14:38:20 +000020664 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020665 need_lib_prefix=no
20666 need_version=no
20667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668 soname_spec='${libname}${release}${shared_ext}$major'
20669 shlibpath_var=LD_LIBRARY_PATH
20670 shlibpath_overrides_runpath=yes
20671 hardcode_into_libs=yes
20672 # ldd complains unless libraries are executable
20673 postinstall_cmds='chmod +x $lib'
20674 ;;
20675
20676sunos4*)
20677 version_type=sunos
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20679 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20680 shlibpath_var=LD_LIBRARY_PATH
20681 shlibpath_overrides_runpath=yes
20682 if test "$with_gnu_ld" = yes; then
20683 need_lib_prefix=no
20684 fi
20685 need_version=yes
20686 ;;
20687
20688sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020689 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 soname_spec='${libname}${release}${shared_ext}$major'
20692 shlibpath_var=LD_LIBRARY_PATH
20693 case $host_vendor in
20694 sni)
20695 shlibpath_overrides_runpath=no
20696 need_lib_prefix=no
20697 runpath_var=LD_RUN_PATH
20698 ;;
20699 siemens)
20700 need_lib_prefix=no
20701 ;;
20702 motorola)
20703 need_lib_prefix=no
20704 need_version=no
20705 shlibpath_overrides_runpath=no
20706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20707 ;;
20708 esac
20709 ;;
20710
20711sysv4*MP*)
20712 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20715 soname_spec='$libname${shared_ext}.$major'
20716 shlibpath_var=LD_LIBRARY_PATH
20717 fi
20718 ;;
20719
20720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20721 version_type=freebsd-elf
20722 need_lib_prefix=no
20723 need_version=no
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 shlibpath_overrides_runpath=yes
20728 hardcode_into_libs=yes
20729 if test "$with_gnu_ld" = yes; then
20730 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20731 else
20732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20733 case $host_os in
20734 sco3.2v5*)
20735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20736 ;;
20737 esac
20738 fi
20739 sys_lib_dlsearch_path_spec='/usr/lib'
20740 ;;
20741
20742tpf*)
20743 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020744 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020745 need_lib_prefix=no
20746 need_version=no
20747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 shlibpath_overrides_runpath=no
20750 hardcode_into_libs=yes
20751 ;;
20752
20753uts4*)
cristy99bd5232011-12-07 14:38:20 +000020754 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 ;;
20759
20760*)
20761 dynamic_linker=no
20762 ;;
20763esac
20764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20765$as_echo "$dynamic_linker" >&6; }
20766test "$dynamic_linker" = no && can_build_shared=no
20767
20768variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20769if test "$GCC" = yes; then
20770 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20771fi
20772
20773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20774 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20775fi
20776if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20777 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20778fi
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
cristy0c60a692010-11-04 01:09:47 +000020815
20816
cristy73bd4a52010-10-05 11:24:23 +000020817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20818$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20819hardcode_action_CXX=
20820if test -n "$hardcode_libdir_flag_spec_CXX" ||
20821 test -n "$runpath_var_CXX" ||
20822 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20823
20824 # We can hardcode non-existent directories.
20825 if test "$hardcode_direct_CXX" != no &&
20826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20827 # have to relink, otherwise we might link with an installed library
20828 # when we should be linking with a yet-to-be-installed one
20829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20830 test "$hardcode_minus_L_CXX" != no; then
20831 # Linking always hardcodes the temporary library directory.
20832 hardcode_action_CXX=relink
20833 else
20834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20835 hardcode_action_CXX=immediate
20836 fi
20837else
20838 # We cannot hardcode anything, or else we can only hardcode existing
20839 # directories.
20840 hardcode_action_CXX=unsupported
20841fi
20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20843$as_echo "$hardcode_action_CXX" >&6; }
20844
20845if test "$hardcode_action_CXX" = relink ||
20846 test "$inherit_rpath_CXX" = yes; then
20847 # Fast installation is not supported
20848 enable_fast_install=no
20849elif test "$shlibpath_overrides_runpath" = yes ||
20850 test "$enable_shared" = no; then
20851 # Fast installation is not necessary
20852 enable_fast_install=needless
20853fi
20854
20855
20856
20857
20858
20859
20860
20861 fi # test -n "$compiler"
20862
20863 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020864 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020865 LDCXX=$LD
20866 LD=$lt_save_LD
20867 GCC=$lt_save_GCC
20868 with_gnu_ld=$lt_save_with_gnu_ld
20869 lt_cv_path_LDCXX=$lt_cv_path_LD
20870 lt_cv_path_LD=$lt_save_path_LD
20871 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20872 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20873fi # test "$_lt_caught_CXX_error" != yes
20874
20875ac_ext=c
20876ac_cpp='$CPP $CPPFLAGS'
20877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_c_compiler_gnu
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
cristy99bd5232011-12-07 14:38:20 +000020893
20894
cristy73bd4a52010-10-05 11:24:23 +000020895 ac_config_commands="$ac_config_commands libtool"
20896
20897
20898
20899
20900# Only expand once:
20901
20902
20903
cristy3ed852e2009-09-05 21:47:34 +000020904
20905
cristy3ed852e2009-09-05 21:47:34 +000020906# Check to see if building shared libraries
20907libtool_build_shared_libs='no'
20908if test "$enable_shared" = 'yes'; then
20909 libtool_build_shared_libs='yes'
20910fi
20911
20912# Check to see if building static libraries
20913libtool_build_static_libs='no'
20914if test "$enable_static" = 'yes'; then
20915 libtool_build_static_libs='yes'
20916fi
20917
cristy73bd4a52010-10-05 11:24:23 +000020918 if test "${libtool_build_shared_libs}" = 'yes'; then
20919 WITH_SHARED_LIBS_TRUE=
20920 WITH_SHARED_LIBS_FALSE='#'
20921else
20922 WITH_SHARED_LIBS_TRUE='#'
20923 WITH_SHARED_LIBS_FALSE=
20924fi
20925
cristy3ed852e2009-09-05 21:47:34 +000020926#
20927# Enable support for building loadable modules
20928#
cristyaf4cbf32012-10-16 23:47:41 +000020929build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020930
20931# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020932if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020933 withval=$with_modules; with_modules=$withval
20934else
cristy5a1cefd2010-01-06 20:42:35 +000020935 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020936fi
20937
20938
20939# Only allow building loadable modules if we are building shared libraries
20940if test "$with_modules" != 'no' ; then
20941 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020942 { $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 +000020943$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020944 build_modules='no'
20945 else
20946 build_modules='yes'
20947 fi
cristy3ed852e2009-09-05 21:47:34 +000020948fi
cristyc6722092012-10-14 00:19:31 +000020949if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020950
cristy8b350f62009-11-15 23:12:43 +000020951$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020952
cristyfa161182012-12-19 15:45:28 +000020953 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020954fi
cristyc6722092012-10-14 00:19:31 +000020955 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020956 WITH_MODULES_TRUE=
20957 WITH_MODULES_FALSE='#'
20958else
20959 WITH_MODULES_TRUE='#'
20960 WITH_MODULES_FALSE=
20961fi
20962
cristy3ed852e2009-09-05 21:47:34 +000020963
cristy3ed852e2009-09-05 21:47:34 +000020964# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020965# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020966# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020967if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020968 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20969else
20970 enable_delegate_build='no'
20971fi
20972
20973
20974# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020975if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020976 enableval=$enable_deprecated; enable_deprecated=$enableval
20977else
20978 enable_deprecated='no'
20979fi
20980
20981
20982if test "$enable_deprecated" = 'yes'; then
20983
cristy8b350f62009-11-15 23:12:43 +000020984$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020985
20986else
20987 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20988fi
20989
20990# Build a version of ImageMagick which operates uninstalled.
20991# Used to build distributions located via MAGICK_HOME / executable path
20992# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020993if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020994 enableval=$enable_installed; enable_installed=$enableval
20995else
20996 enable_installed='yes'
20997fi
20998
20999
21000if test "$enable_installed" = 'yes'; then
21001
cristy8b350f62009-11-15 23:12:43 +000021002$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021003
21004else
21005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21006fi
21007
21008# Permit enciphering and deciphering image pixels.
21009# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021010if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021011 enableval=$enable_cipher; enable_cipher=$enableval
21012else
21013 enable_cipher='yes'
21014fi
21015
21016
21017if test "$enable_cipher" = 'yes'; then
21018
cristy8b350f62009-11-15 23:12:43 +000021019$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021020
21021fi
21022
cristy6e3607c2011-09-13 13:59:17 +000021023# Build a zero-configuration version of ImageMagick.
21024# Check whether --enable-zero-configuration was given.
21025if test "${enable_zero_configuration+set}" = set; then :
21026 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021027else
cristy6e3607c2011-09-13 13:59:17 +000021028 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021029fi
21030
21031
cristy6e3607c2011-09-13 13:59:17 +000021032if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021033
cristy6e3607c2011-09-13 13:59:17 +000021034$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021035
cristy81af5702011-09-13 14:20:58 +000021036 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021037fi
21038
21039# Build a high dynamic range version of ImageMagick.
21040# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021041if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021042 enableval=$enable_hdri; enable_hdri=$enableval
21043else
cristy191c0b72012-08-12 16:29:52 +000021044 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021045fi
21046
21047
21048MAGICK_HDRI=""
21049if test "$enable_hdri" = 'yes'; then
21050 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021051 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021052 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021053else
21054 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021055fi
21056
cristye52f12f2012-12-31 15:32:36 +000021057cat >>confdefs.h <<_ACEOF
21058#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21059_ACEOF
21060
21061MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21062CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021063CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021064
cristy3ed852e2009-09-05 21:47:34 +000021065# Build a version of ImageMagick with assert statements.
21066# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021067if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 enableval=$enable_assert; enable_assert=$enableval
21069else
21070 enable_assert='yes'
21071fi
21072
21073
21074if test "$enable_assert" = 'no'; then
21075
cristy8b350f62009-11-15 23:12:43 +000021076$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021077
21078fi
21079
cristya448bd22011-10-14 12:38:13 +000021080# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021081
21082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21083$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21084 # Check whether --enable-maintainer-mode was given.
21085if test "${enable_maintainer_mode+set}" = set; then :
21086 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21087else
21088 USE_MAINTAINER_MODE=no
21089fi
21090
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21092$as_echo "$USE_MAINTAINER_MODE" >&6; }
21093 if test $USE_MAINTAINER_MODE = yes; then
21094 MAINTAINER_MODE_TRUE=
21095 MAINTAINER_MODE_FALSE='#'
21096else
21097 MAINTAINER_MODE_TRUE='#'
21098 MAINTAINER_MODE_FALSE=
21099fi
21100
21101 MAINT=$MAINTAINER_MODE_TRUE
21102
21103
cristy3ed852e2009-09-05 21:47:34 +000021104
cristy944e51f2013-04-16 18:45:02 +000021105# Enable hugepages support
21106# Check whether --enable-hugepages was given.
21107if test "${enable_hugepages+set}" = set; then :
21108 enableval=$enable_hugepages; enable_hugepages=$enableval
21109else
21110 enable_hugepages='no'
21111fi
21112
21113
cristy3ed852e2009-09-05 21:47:34 +000021114# Enable ccmalloc memory debugging support
21115# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021116if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021117 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21118else
21119 enable_ccmalloc='no'
21120fi
21121
21122
21123# Enable Electric Fence memory debugging support
21124# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 enableval=$enable_efence; enable_efence=$enableval
21127else
21128 enable_efence='no'
21129fi
21130
21131
21132# Enable prof-based profiling support
21133# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021134if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021135 enableval=$enable_prof; enable_prof=$enableval
21136else
21137 enable_prof='no'
21138fi
21139
21140
21141# Enable gprof-based profiling support
21142# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021143if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 enableval=$enable_gprof; enable_gprof=$enableval
21145else
21146 enable_gprof='no'
21147fi
21148
21149
21150# Enable gcov-based profiling support
21151# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021152if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021153 enableval=$enable_gcov; enable_gcov=$enableval
21154else
21155 enable_gcov='no'
21156fi
21157
21158
21159enable_profiling='no'
21160if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21161 enable_profiling='yes'
21162 if test "$libtool_build_shared_libs" = 'yes'; then
21163 echo "Warning: Can not profile code using shared libraries"
21164 fi
21165fi
21166
21167# Magick API method prefix
21168
21169# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021170if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021171 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021172else
cristyfc3d0222012-02-07 15:05:57 +000021173 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021174fi
21175
21176
cristyfc3d0222012-02-07 15:05:57 +000021177if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021178
21179cat >>confdefs.h <<_ACEOF
21180#define NAMESPACE_PREFIX $with_method_prefix
21181_ACEOF
21182
cristyfc3d0222012-02-07 15:05:57 +000021183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021184fi
21185
cristy71d8c202012-03-20 17:05:01 +000021186# Enable legacy support (default no)
21187# Check whether --enable-legacy-support was given.
21188if test "${enable_legacy_support+set}" = set; then :
21189 enableval=$enable_legacy_support; with_legacy_support=$enableval
21190else
21191 with_legacy_support='no'
21192fi
21193
21194 if test "$with_legacy_support" != 'no'; then
21195 LEGACY_SUPPORT_TRUE=
21196 LEGACY_SUPPORT_FALSE='#'
21197else
21198 LEGACY_SUPPORT_TRUE='#'
21199 LEGACY_SUPPORT_FALSE=
21200fi
21201
21202
cristy3ed852e2009-09-05 21:47:34 +000021203# Number of bits in a Quantum
21204
21205# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021206if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021207 withval=$with_quantum_depth; with_quantum_depth=$withval
21208else
21209 with_quantum_depth=16
21210fi
21211
21212
21213if test "$with_quantum_depth" != '8'; then
21214 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21215fi
21216
21217case "${with_quantum_depth}" in
21218 8 ) ;;
21219 16 ) ;;
21220 32 ) ;;
21221 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021222 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021223esac
21224QUANTUM_DEPTH="$with_quantum_depth"
21225
21226cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021227#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021228_ACEOF
21229
cristya371edf2013-02-06 13:42:17 +000021230MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021231CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021232CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021233
cristy01ff9f32012-12-01 18:15:29 +000021234# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021235MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021236if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021237 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021238fi
cristy01ff9f32012-12-01 18:15:29 +000021239
21240
cristy3ed852e2009-09-05 21:47:34 +000021241# Set pixel cache threshold
21242
21243# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021244if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021245 withval=$with_cache; with_cache=$withval
21246else
21247 with_cache=''
21248fi
21249
21250
21251if test "$with_cache" != ''; then
21252
21253cat >>confdefs.h <<_ACEOF
21254#define PixelCacheThreshold $with_cache
21255_ACEOF
21256
21257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21258fi
21259
21260# Disable/Enable support for full delegate paths
21261
21262# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021263if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 withval=$with_frozenpaths; with_frozenpaths=$withval
21265else
21266 with_frozenpaths='no'
21267fi
21268
21269
21270# Enable build/install of Magick++
21271
21272# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021273if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21275else
21276 with_magick_plus_plus='yes'
21277fi
21278
21279
cristy3a75f062012-09-08 23:29:40 +000021280# Encode the this name into the shared library.
21281
21282# Check whether --with-package-release-name was given.
21283if test "${with_package_release_name+set}" = set; then :
21284 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21285fi
21286
21287
21288
cristy3ed852e2009-09-05 21:47:34 +000021289# Disable build/install of PerlMagick.
21290
21291# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021292if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021293 withval=$with_perl; with_perl=$withval
21294else
cristyb5f4e2f2010-04-25 00:49:11 +000021295 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021296fi
21297
21298
21299# Options to pass when configuring PerlMagick
21300
21301# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021302if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021303 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021304fi
21305
21306
cristy3ed852e2009-09-05 21:47:34 +000021307
21308# Enable umem, object-caching memory allocation library.
21309
21310# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021311if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 withval=$with_umem; with_umem=$withval
21313else
21314 with_umem='no'
21315fi
21316
21317if test "$with_umem" != 'yes' ; then
21318 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21319fi
21320
21321#
21322# Specify path to shared libstdc++ if not in normal location
21323#
21324
21325# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021326if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021327 withval=$with_libstdc; with_libstdc=$withval
21328else
21329 with_libstdc=''
21330fi
21331
21332
21333if test "$with_libstdc" != ''; then
21334 if test -d "$with_libstdc"; then
21335 LIBSTDCLDFLAGS="-L$with_libstdc"
21336 fi
21337fi
21338
21339
21340# Does gcc required -traditional?
21341if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021343$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021344if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 $as_echo_n "(cached) " >&6
21346else
21347 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021349/* end confdefs.h. */
21350#include <sgtty.h>
21351Autoconf TIOCGETP
21352_ACEOF
21353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021354 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 ac_cv_prog_gcc_traditional=yes
21356else
21357 ac_cv_prog_gcc_traditional=no
21358fi
21359rm -f conftest*
21360
21361
21362 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021364/* end confdefs.h. */
21365#include <termio.h>
21366Autoconf TCGETA
21367_ACEOF
21368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021369 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021370 ac_cv_prog_gcc_traditional=yes
21371fi
21372rm -f conftest*
21373
21374 fi
21375fi
cristy8b350f62009-11-15 23:12:43 +000021376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021377$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21378 if test $ac_cv_prog_gcc_traditional = yes; then
21379 CC="$CC -traditional"
21380 fi
21381fi
21382
21383
21384########
21385#
21386# Set defines required to build DLLs and modules using MinGW
21387#
21388########
21389# These options are set for multi-thread DLL module build
21390# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21391# module: _DLL
21392# executable/Magick++: _DLL _MAGICKMOD_
21393MODULE_EXTRA_CPPFLAGS=''
21394LIBRARY_EXTRA_CPPFLAGS=''
21395if test "${native_win32_build}" = 'yes'; then
21396 if test "${libtool_build_shared_libs}" = 'yes'; then
21397 CPPFLAGS="$CPPFLAGS -D_DLL"
21398 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21399 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21400 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021401 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021402 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21403 else
21404 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21405 fi
21406 else
21407 CPPFLAGS="$CPPFLAGS -D_LIB"
21408 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21409 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21410 fi
21411 if test "$with_threads" = 'yes'; then
21412 CPPFLAGS="$CPPFLAGS -D_MT"
21413 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21414 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21415 fi
21416fi
21417
21418
21419
21420# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021422$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021423if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 $as_echo_n "(cached) " >&6
21425else
cristy8b350f62009-11-15 23:12:43 +000021426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021427/* end confdefs.h. */
21428#include <stdlib.h>
21429#include <stdarg.h>
21430#include <string.h>
21431#include <float.h>
21432
21433int
21434main ()
21435{
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021441if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 ac_cv_header_stdc=yes
21443else
cristy8b350f62009-11-15 23:12:43 +000021444 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021445fi
cristy3ed852e2009-09-05 21:47:34 +000021446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447
21448if test $ac_cv_header_stdc = yes; then
21449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021451/* end confdefs.h. */
21452#include <string.h>
21453
21454_ACEOF
21455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021456 $EGREP "memchr" >/dev/null 2>&1; then :
21457
cristy3ed852e2009-09-05 21:47:34 +000021458else
21459 ac_cv_header_stdc=no
21460fi
21461rm -f conftest*
21462
21463fi
21464
21465if test $ac_cv_header_stdc = yes; then
21466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021468/* end confdefs.h. */
21469#include <stdlib.h>
21470
21471_ACEOF
21472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021473 $EGREP "free" >/dev/null 2>&1; then :
21474
cristy3ed852e2009-09-05 21:47:34 +000021475else
21476 ac_cv_header_stdc=no
21477fi
21478rm -f conftest*
21479
21480fi
21481
21482if test $ac_cv_header_stdc = yes; then
21483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021484 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 :
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488/* end confdefs.h. */
21489#include <ctype.h>
21490#include <stdlib.h>
21491#if ((' ' & 0x0FF) == 0x020)
21492# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21493# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21494#else
21495# define ISLOWER(c) \
21496 (('a' <= (c) && (c) <= 'i') \
21497 || ('j' <= (c) && (c) <= 'r') \
21498 || ('s' <= (c) && (c) <= 'z'))
21499# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21500#endif
21501
21502#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21503int
21504main ()
21505{
21506 int i;
21507 for (i = 0; i < 256; i++)
21508 if (XOR (islower (i), ISLOWER (i))
21509 || toupper (i) != TOUPPER (i))
21510 return 2;
21511 return 0;
21512}
21513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021514if ac_fn_c_try_run "$LINENO"; then :
21515
cristy3ed852e2009-09-05 21:47:34 +000021516else
cristy8b350f62009-11-15 23:12:43 +000021517 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021518fi
cristy8b350f62009-11-15 23:12:43 +000021519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21520 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021521fi
21522
cristy3ed852e2009-09-05 21:47:34 +000021523fi
21524fi
cristy8b350f62009-11-15 23:12:43 +000021525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021526$as_echo "$ac_cv_header_stdc" >&6; }
21527if test $ac_cv_header_stdc = yes; then
21528
cristy8b350f62009-11-15 23:12:43 +000021529$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021530
21531fi
21532
21533if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021534 { $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 +000021535 header files. Compilation cannot proceed. Please install the ANSI C
21536 headers and rerun this script." >&5
21537$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21538 header files. Compilation cannot proceed. Please install the ANSI C
21539 headers and rerun this script." >&2;};
21540fi
cristya0b81c32010-01-22 02:54:33 +000021541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21543$as_echo_n "checking whether to enable assertions... " >&6; }
21544 # Check whether --enable-assert was given.
21545if test "${enable_assert+set}" = set; then :
21546 enableval=$enable_assert; ac_enable_assert=$enableval
21547 if test "x$enableval" = xno; then :
21548
21549$as_echo "#define NDEBUG 1" >>confdefs.h
21550
21551elif test "x$enableval" != xyes; then :
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21553$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21554 ac_enable_assert=yes
21555fi
21556else
21557 ac_enable_assert=yes
21558fi
21559
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21561$as_echo "$ac_enable_assert" >&6; }
21562
cristy3ed852e2009-09-05 21:47:34 +000021563ac_header_dirent=no
21564for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21565 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021567$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021568if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021569 $as_echo_n "(cached) " >&6
21570else
cristy8b350f62009-11-15 23:12:43 +000021571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021572/* end confdefs.h. */
21573#include <sys/types.h>
21574#include <$ac_hdr>
21575
21576int
21577main ()
21578{
21579if ((DIR *) 0)
21580return 0;
21581 ;
21582 return 0;
21583}
21584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021586 eval "$as_ac_Header=yes"
21587else
cristy8b350f62009-11-15 23:12:43 +000021588 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021589fi
cristy3ed852e2009-09-05 21:47:34 +000021590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21591fi
cristy8b350f62009-11-15 23:12:43 +000021592eval ac_res=\$$as_ac_Header
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021594$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021596 cat >>confdefs.h <<_ACEOF
21597#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21598_ACEOF
21599
21600ac_header_dirent=$ac_hdr; break
21601fi
21602
21603done
21604# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21605if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021608if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 $as_echo_n "(cached) " >&6
21610else
21611 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021613/* end confdefs.h. */
21614
21615/* Override any GCC internal prototype to avoid an error.
21616 Use char because int might match the return type of a GCC
21617 builtin and then its argument prototype would still apply. */
21618#ifdef __cplusplus
21619extern "C"
21620#endif
21621char opendir ();
21622int
21623main ()
21624{
21625return opendir ();
21626 ;
21627 return 0;
21628}
21629_ACEOF
21630for ac_lib in '' dir; do
21631 if test -z "$ac_lib"; then
21632 ac_res="none required"
21633 else
21634 ac_res=-l$ac_lib
21635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21636 fi
cristy8b350f62009-11-15 23:12:43 +000021637 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021638 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021639fi
cristy8b350f62009-11-15 23:12:43 +000021640rm -f core conftest.err conftest.$ac_objext \
21641 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021642 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021643 break
21644fi
21645done
cristyda16f162011-02-19 23:52:17 +000021646if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021647
cristy3ed852e2009-09-05 21:47:34 +000021648else
21649 ac_cv_search_opendir=no
21650fi
21651rm conftest.$ac_ext
21652LIBS=$ac_func_search_save_LIBS
21653fi
cristy8b350f62009-11-15 23:12:43 +000021654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo "$ac_cv_search_opendir" >&6; }
21656ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021657if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21659
21660fi
21661
21662else
cristy8b350f62009-11-15 23:12:43 +000021663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021665if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021666 $as_echo_n "(cached) " >&6
21667else
21668 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021670/* end confdefs.h. */
21671
21672/* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21675#ifdef __cplusplus
21676extern "C"
21677#endif
21678char opendir ();
21679int
21680main ()
21681{
21682return opendir ();
21683 ;
21684 return 0;
21685}
21686_ACEOF
21687for ac_lib in '' x; do
21688 if test -z "$ac_lib"; then
21689 ac_res="none required"
21690 else
21691 ac_res=-l$ac_lib
21692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21693 fi
cristy8b350f62009-11-15 23:12:43 +000021694 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021696fi
cristy8b350f62009-11-15 23:12:43 +000021697rm -f core conftest.err conftest.$ac_objext \
21698 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021699 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 break
21701fi
21702done
cristyda16f162011-02-19 23:52:17 +000021703if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021704
cristy3ed852e2009-09-05 21:47:34 +000021705else
21706 ac_cv_search_opendir=no
21707fi
21708rm conftest.$ac_ext
21709LIBS=$ac_func_search_save_LIBS
21710fi
cristy8b350f62009-11-15 23:12:43 +000021711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo "$ac_cv_search_opendir" >&6; }
21713ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021714if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21716
21717fi
21718
21719fi
21720
21721
21722# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021723for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021724do :
21725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 cat >>confdefs.h <<_ACEOF
21729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730_ACEOF
21731
21732fi
21733
21734done
21735
21736
21737########
21738#
21739# Checks for typedefs, structures, and compiler characteristics.
21740#
21741########
21742
cristy8b350f62009-11-15 23:12:43 +000021743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021744$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021745if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021746 $as_echo_n "(cached) " >&6
21747else
cristy8b350f62009-11-15 23:12:43 +000021748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749/* end confdefs.h. */
21750
cristy14fefe52012-05-21 00:59:18 +000021751 #include <stdbool.h>
21752 #ifndef bool
21753 "error: bool is not defined"
21754 #endif
21755 #ifndef false
21756 "error: false is not defined"
21757 #endif
21758 #if false
21759 "error: false is not 0"
21760 #endif
21761 #ifndef true
21762 "error: true is not defined"
21763 #endif
21764 #if true != 1
21765 "error: true is not 1"
21766 #endif
21767 #ifndef __bool_true_false_are_defined
21768 "error: __bool_true_false_are_defined is not defined"
21769 #endif
cristy3ed852e2009-09-05 21:47:34 +000021770
cristy14fefe52012-05-21 00:59:18 +000021771 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021772
cristy14fefe52012-05-21 00:59:18 +000021773 char a[true == 1 ? 1 : -1];
21774 char b[false == 0 ? 1 : -1];
21775 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21776 char d[(bool) 0.5 == true ? 1 : -1];
21777 /* See body of main program for 'e'. */
21778 char f[(_Bool) 0.0 == false ? 1 : -1];
21779 char g[true];
21780 char h[sizeof (_Bool)];
21781 char i[sizeof s.t];
21782 enum { j = false, k = true, l = false * true, m = true * 256 };
21783 /* The following fails for
21784 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21785 _Bool n[m];
21786 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21787 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21788 /* Catch a bug in an HP-UX C compiler. See
21789 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21790 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21791 */
21792 _Bool q = true;
21793 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021794
21795int
21796main ()
21797{
21798
cristy14fefe52012-05-21 00:59:18 +000021799 bool e = &s;
21800 *pq |= q;
21801 *pq |= ! q;
21802 /* Refer to every declared value, to avoid compiler optimizations. */
21803 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21804 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021805
21806 ;
21807 return 0;
21808}
21809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021810if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 ac_cv_header_stdbool_h=yes
21812else
cristy8b350f62009-11-15 23:12:43 +000021813 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021814fi
cristy3ed852e2009-09-05 21:47:34 +000021815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21816fi
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021819 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021820if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021821
21822cat >>confdefs.h <<_ACEOF
21823#define HAVE__BOOL 1
21824_ACEOF
21825
21826
21827fi
21828
cristy14fefe52012-05-21 00:59:18 +000021829
cristy3ed852e2009-09-05 21:47:34 +000021830if test $ac_cv_header_stdbool_h = yes; then
21831
cristy8b350f62009-11-15 23:12:43 +000021832$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021833
21834fi
21835
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021838if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 $as_echo_n "(cached) " >&6
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021842/* end confdefs.h. */
21843
21844int
21845main ()
21846{
21847
21848volatile int x;
21849int * volatile y = (int *) 0;
21850return !x && !y;
21851 ;
21852 return 0;
21853}
21854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021855if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021856 ac_cv_c_volatile=yes
21857else
cristy8b350f62009-11-15 23:12:43 +000021858 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021859fi
cristy3ed852e2009-09-05 21:47:34 +000021860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861fi
cristy8b350f62009-11-15 23:12:43 +000021862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021863$as_echo "$ac_cv_c_volatile" >&6; }
21864if test $ac_cv_c_volatile = no; then
21865
cristy8b350f62009-11-15 23:12:43 +000021866$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021867
21868fi
21869
cristy8b350f62009-11-15 23:12:43 +000021870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021871$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021872if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 $as_echo_n "(cached) " >&6
21874else
cristy8b350f62009-11-15 23:12:43 +000021875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021876/* end confdefs.h. */
21877#define x(y) #y
21878
21879char *s = x(teststring);
21880_ACEOF
21881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021882 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 ac_cv_c_stringize=no
21884else
21885 ac_cv_c_stringize=yes
21886fi
21887rm -f conftest*
21888
21889fi
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo "$ac_cv_c_stringize" >&6; }
21892if test $ac_cv_c_stringize = yes; then
21893
cristy8b350f62009-11-15 23:12:43 +000021894$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021895
21896fi
21897
cristy8b350f62009-11-15 23:12:43 +000021898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021900if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021901 $as_echo_n "(cached) " >&6
21902else
cristy8b350f62009-11-15 23:12:43 +000021903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021904/* end confdefs.h. */
21905#include <sys/types.h>
21906#include <sys/stat.h>
21907
21908#if defined S_ISBLK && defined S_IFDIR
21909extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21910#endif
21911
21912#if defined S_ISBLK && defined S_IFCHR
21913extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21914#endif
21915
21916#if defined S_ISLNK && defined S_IFREG
21917extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21918#endif
21919
21920#if defined S_ISSOCK && defined S_IFREG
21921extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21922#endif
21923
21924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021926 ac_cv_header_stat_broken=no
21927else
cristy8b350f62009-11-15 23:12:43 +000021928 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021929fi
cristy3ed852e2009-09-05 21:47:34 +000021930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931fi
cristy8b350f62009-11-15 23:12:43 +000021932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021933$as_echo "$ac_cv_header_stat_broken" >&6; }
21934if test $ac_cv_header_stat_broken = yes; then
21935
cristy8b350f62009-11-15 23:12:43 +000021936$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021937
21938fi
21939
cristy8b350f62009-11-15 23:12:43 +000021940{ $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 +000021941$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021942if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 $as_echo_n "(cached) " >&6
21944else
cristy8b350f62009-11-15 23:12:43 +000021945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021946/* end confdefs.h. */
21947#include <sys/types.h>
21948#include <sys/time.h>
21949#include <time.h>
21950
21951int
21952main ()
21953{
21954if ((struct tm *) 0)
21955return 0;
21956 ;
21957 return 0;
21958}
21959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021960if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 ac_cv_header_time=yes
21962else
cristy8b350f62009-11-15 23:12:43 +000021963 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021964fi
cristy3ed852e2009-09-05 21:47:34 +000021965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966fi
cristy8b350f62009-11-15 23:12:43 +000021967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021968$as_echo "$ac_cv_header_time" >&6; }
21969if test $ac_cv_header_time = yes; then
21970
cristy8b350f62009-11-15 23:12:43 +000021971$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021972
21973fi
21974
cristy8b350f62009-11-15 23:12:43 +000021975{ $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 +000021976$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021977if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
cristy8b350f62009-11-15 23:12:43 +000021980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021981/* end confdefs.h. */
21982#include <sys/types.h>
21983#include <time.h>
21984
21985int
21986main ()
21987{
21988struct tm tm;
21989 int *p = &tm.tm_sec;
21990 return !p;
21991 ;
21992 return 0;
21993}
21994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021996 ac_cv_struct_tm=time.h
21997else
cristy8b350f62009-11-15 23:12:43 +000021998 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021999fi
cristy3ed852e2009-09-05 21:47:34 +000022000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001fi
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo "$ac_cv_struct_tm" >&6; }
22004if test $ac_cv_struct_tm = sys/time.h; then
22005
cristy8b350f62009-11-15 23:12:43 +000022006$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022007
22008fi
22009
cristy92703d82010-04-26 00:18:18 +000022010ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22011#include <$ac_cv_struct_tm>
22012
22013"
cristyda16f162011-02-19 23:52:17 +000022014if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022015
22016cat >>confdefs.h <<_ACEOF
22017#define HAVE_STRUCT_TM_TM_ZONE 1
22018_ACEOF
22019
22020
22021fi
22022
22023if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22024
22025$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22026
22027else
22028 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22029"
cristyda16f162011-02-19 23:52:17 +000022030if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022031 ac_have_decl=1
22032else
22033 ac_have_decl=0
22034fi
22035
22036cat >>confdefs.h <<_ACEOF
22037#define HAVE_DECL_TZNAME $ac_have_decl
22038_ACEOF
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22041$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022042if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022043 $as_echo_n "(cached) " >&6
22044else
22045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046/* end confdefs.h. */
22047#include <time.h>
22048#if !HAVE_DECL_TZNAME
22049extern char *tzname[];
22050#endif
22051
22052int
22053main ()
22054{
22055return tzname[0][0];
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060if ac_fn_c_try_link "$LINENO"; then :
22061 ac_cv_var_tzname=yes
22062else
22063 ac_cv_var_tzname=no
22064fi
22065rm -f core conftest.err conftest.$ac_objext \
22066 conftest$ac_exeext conftest.$ac_ext
22067fi
22068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22069$as_echo "$ac_cv_var_tzname" >&6; }
22070 if test $ac_cv_var_tzname = yes; then
22071
22072$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22073
22074 fi
22075fi
22076
cristy8b350f62009-11-15 23:12:43 +000022077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022078$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022079if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022080 $as_echo_n "(cached) " >&6
22081else
22082 echo '#! /bin/cat
22083exit 69
22084' >conftest
22085chmod u+x conftest
22086(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22087if test $? -ne 69; then
22088 ac_cv_sys_interpreter=yes
22089else
22090 ac_cv_sys_interpreter=no
22091fi
22092rm -f conftest
22093fi
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$ac_cv_sys_interpreter" >&6; }
22096interpval=$ac_cv_sys_interpreter
22097
22098
cristye80f9cb2013-01-09 01:09:31 +000022099#
22100# Checks for language qualifiers and semantics.
22101#
22102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22103$as_echo_n "checking whether char is unsigned... " >&6; }
22104if ${ac_cv_c_char_unsigned+:} false; then :
22105 $as_echo_n "(cached) " >&6
22106else
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108/* end confdefs.h. */
22109$ac_includes_default
22110int
22111main ()
22112{
22113static int test_array [1 - 2 * !(((char) -1) < 0)];
22114test_array [0] = 0;
22115return test_array [0];
22116
22117 ;
22118 return 0;
22119}
22120_ACEOF
22121if ac_fn_c_try_compile "$LINENO"; then :
22122 ac_cv_c_char_unsigned=no
22123else
22124 ac_cv_c_char_unsigned=yes
22125fi
22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22129$as_echo "$ac_cv_c_char_unsigned" >&6; }
22130if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22131 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22132
22133fi
22134
22135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22136$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22137if ${ac_cv_c_const+:} false; then :
22138 $as_echo_n "(cached) " >&6
22139else
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141/* end confdefs.h. */
22142
22143int
22144main ()
22145{
22146
22147#ifndef __cplusplus
22148 /* Ultrix mips cc rejects this sort of thing. */
22149 typedef int charset[2];
22150 const charset cs = { 0, 0 };
22151 /* SunOS 4.1.1 cc rejects this. */
22152 char const *const *pcpcc;
22153 char **ppc;
22154 /* NEC SVR4.0.2 mips cc rejects this. */
22155 struct point {int x, y;};
22156 static struct point const zero = {0,0};
22157 /* AIX XL C 1.02.0.0 rejects this.
22158 It does not let you subtract one const X* pointer from another in
22159 an arm of an if-expression whose if-part is not a constant
22160 expression */
22161 const char *g = "string";
22162 pcpcc = &g + (g ? g-g : 0);
22163 /* HPUX 7.0 cc rejects these. */
22164 ++pcpcc;
22165 ppc = (char**) pcpcc;
22166 pcpcc = (char const *const *) ppc;
22167 { /* SCO 3.2v4 cc rejects this sort of thing. */
22168 char tx;
22169 char *t = &tx;
22170 char const *s = 0 ? (char *) 0 : (char const *) 0;
22171
22172 *t++ = 0;
22173 if (s) return 0;
22174 }
22175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22176 int x[] = {25, 17};
22177 const int *foo = &x[0];
22178 ++foo;
22179 }
22180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22181 typedef const int *iptr;
22182 iptr p = 0;
22183 ++p;
22184 }
22185 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22187 struct s { int j; const int *ap[3]; } bx;
22188 struct s *b = &bx; b->j = 5;
22189 }
22190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22191 const int foo = 10;
22192 if (!foo) return 0;
22193 }
22194 return !cs[0] && !zero.x;
22195#endif
22196
22197 ;
22198 return 0;
22199}
22200_ACEOF
22201if ac_fn_c_try_compile "$LINENO"; then :
22202 ac_cv_c_const=yes
22203else
22204 ac_cv_c_const=no
22205fi
22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207fi
22208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22209$as_echo "$ac_cv_c_const" >&6; }
22210if test $ac_cv_c_const = no; then
22211
22212$as_echo "#define const /**/" >>confdefs.h
22213
22214fi
22215
cristy8b350f62009-11-15 23:12:43 +000022216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022217$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022218if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022219 $as_echo_n "(cached) " >&6
22220else
22221 ac_cv_c_inline=no
22222for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225#ifndef __cplusplus
22226typedef int foo_t;
22227static $ac_kw foo_t static_foo () {return 0; }
22228$ac_kw foo_t foo () {return 0; }
22229#endif
22230
22231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022234fi
cristy3ed852e2009-09-05 21:47:34 +000022235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 test "$ac_cv_c_inline" != no && break
22237done
22238
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$ac_cv_c_inline" >&6; }
22242
cristy3ed852e2009-09-05 21:47:34 +000022243case $ac_cv_c_inline in
22244 inline | yes) ;;
22245 *)
22246 case $ac_cv_c_inline in
22247 no) ac_val=;;
22248 *) ac_val=$ac_cv_c_inline;;
22249 esac
22250 cat >>confdefs.h <<_ACEOF
22251#ifndef __cplusplus
22252#define inline $ac_val
22253#endif
22254_ACEOF
22255 ;;
22256esac
22257
cristy8b350f62009-11-15 23:12:43 +000022258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 ac_cv_c_restrict=no
22264 # The order here caters to the fact that C++ does not require restrict.
22265 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022267/* end confdefs.h. */
22268typedef int * int_ptr;
22269 int foo (int_ptr $ac_kw ip) {
22270 return ip[0];
22271 }
22272int
22273main ()
22274{
22275int s[1];
22276 int * $ac_kw t = s;
22277 t[0] = 0;
22278 return foo(t)
22279 ;
22280 return 0;
22281}
22282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022283if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022284 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022285fi
cristy3ed852e2009-09-05 21:47:34 +000022286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287 test "$ac_cv_c_restrict" != no && break
22288 done
22289
22290fi
cristy8b350f62009-11-15 23:12:43 +000022291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022292$as_echo "$ac_cv_c_restrict" >&6; }
22293
cristy3ed852e2009-09-05 21:47:34 +000022294 case $ac_cv_c_restrict in
22295 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022296 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022297 ;;
22298 *) cat >>confdefs.h <<_ACEOF
22299#define restrict $ac_cv_c_restrict
22300_ACEOF
22301 ;;
22302 esac
22303
cristye80f9cb2013-01-09 01:09:31 +000022304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22305$as_echo_n "checking for working volatile... " >&6; }
22306if ${ac_cv_c_volatile+:} false; then :
22307 $as_echo_n "(cached) " >&6
22308else
22309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22310/* end confdefs.h. */
22311
22312int
22313main ()
22314{
22315
22316volatile int x;
22317int * volatile y = (int *) 0;
22318return !x && !y;
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323if ac_fn_c_try_compile "$LINENO"; then :
22324 ac_cv_c_volatile=yes
22325else
22326 ac_cv_c_volatile=no
22327fi
22328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329fi
22330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22331$as_echo "$ac_cv_c_volatile" >&6; }
22332if test $ac_cv_c_volatile = no; then
22333
22334$as_echo "#define volatile /**/" >>confdefs.h
22335
22336fi
22337
cristy3ed852e2009-09-05 21:47:34 +000022338
22339# If words are stored with the most significant byte first (like
22340# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022342$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022343if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022344 $as_echo_n "(cached) " >&6
22345else
22346 ac_cv_c_bigendian=unknown
22347 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022349/* end confdefs.h. */
22350#ifndef __APPLE_CC__
22351 not a universal capable compiler
22352 #endif
22353 typedef int dummy;
22354
22355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022357
22358 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022359 # there are at least two -arch flags with different values.
22360 ac_arch=
22361 ac_prev=
22362 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22363 if test -n "$ac_prev"; then
22364 case $ac_word in
22365 i?86 | x86_64 | ppc | ppc64)
22366 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22367 ac_arch=$ac_word
22368 else
22369 ac_cv_c_bigendian=universal
22370 break
22371 fi
22372 ;;
22373 esac
22374 ac_prev=
22375 elif test "x$ac_word" = "x-arch"; then
22376 ac_prev=arch
22377 fi
22378 done
cristy3ed852e2009-09-05 21:47:34 +000022379fi
cristy3ed852e2009-09-05 21:47:34 +000022380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 if test $ac_cv_c_bigendian = unknown; then
22382 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022384/* end confdefs.h. */
22385#include <sys/types.h>
22386 #include <sys/param.h>
22387
22388int
22389main ()
22390{
22391#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22392 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22393 && LITTLE_ENDIAN)
22394 bogus endian macros
22395 #endif
22396
22397 ;
22398 return 0;
22399}
22400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022401if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022402 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022404/* end confdefs.h. */
22405#include <sys/types.h>
22406 #include <sys/param.h>
22407
22408int
22409main ()
22410{
22411#if BYTE_ORDER != BIG_ENDIAN
22412 not big endian
22413 #endif
22414
22415 ;
22416 return 0;
22417}
22418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022419if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022420 ac_cv_c_bigendian=yes
22421else
cristy8b350f62009-11-15 23:12:43 +000022422 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022423fi
cristy3ed852e2009-09-05 21:47:34 +000022424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022425fi
cristy3ed852e2009-09-05 21:47:34 +000022426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 if test $ac_cv_c_bigendian = unknown; then
22429 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022431/* end confdefs.h. */
22432#include <limits.h>
22433
22434int
22435main ()
22436{
22437#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22438 bogus endian macros
22439 #endif
22440
22441 ;
22442 return 0;
22443}
22444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022445if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022448/* end confdefs.h. */
22449#include <limits.h>
22450
22451int
22452main ()
22453{
22454#ifndef _BIG_ENDIAN
22455 not big endian
22456 #endif
22457
22458 ;
22459 return 0;
22460}
22461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022463 ac_cv_c_bigendian=yes
22464else
cristy8b350f62009-11-15 23:12:43 +000022465 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022466fi
cristy3ed852e2009-09-05 21:47:34 +000022467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022468fi
cristy3ed852e2009-09-05 21:47:34 +000022469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 if test $ac_cv_c_bigendian = unknown; then
22472 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022473 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022476/* end confdefs.h. */
22477short int ascii_mm[] =
22478 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22479 short int ascii_ii[] =
22480 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22481 int use_ascii (int i) {
22482 return ascii_mm[i] + ascii_ii[i];
22483 }
22484 short int ebcdic_ii[] =
22485 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22486 short int ebcdic_mm[] =
22487 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22488 int use_ebcdic (int i) {
22489 return ebcdic_mm[i] + ebcdic_ii[i];
22490 }
22491 extern int foo;
22492
22493int
22494main ()
22495{
22496return use_ascii (foo) == use_ebcdic (foo);
22497 ;
22498 return 0;
22499}
22500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022501if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022502 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22503 ac_cv_c_bigendian=yes
22504 fi
22505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22506 if test "$ac_cv_c_bigendian" = unknown; then
22507 ac_cv_c_bigendian=no
22508 else
22509 # finding both strings is unlikely to happen, but who knows?
22510 ac_cv_c_bigendian=unknown
22511 fi
22512 fi
cristy3ed852e2009-09-05 21:47:34 +000022513fi
cristy3ed852e2009-09-05 21:47:34 +000022514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515else
cristy8b350f62009-11-15 23:12:43 +000022516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022517/* end confdefs.h. */
22518$ac_includes_default
22519int
22520main ()
22521{
22522
22523 /* Are we little or big endian? From Harbison&Steele. */
22524 union
22525 {
22526 long int l;
22527 char c[sizeof (long int)];
22528 } u;
22529 u.l = 1;
22530 return u.c[sizeof (long int) - 1] == 1;
22531
22532 ;
22533 return 0;
22534}
22535_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022536if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022537 ac_cv_c_bigendian=no
22538else
cristy8b350f62009-11-15 23:12:43 +000022539 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022543fi
22544
cristy3ed852e2009-09-05 21:47:34 +000022545 fi
22546fi
cristy8b350f62009-11-15 23:12:43 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022548$as_echo "$ac_cv_c_bigendian" >&6; }
22549 case $ac_cv_c_bigendian in #(
22550 yes)
cristy8b350f62009-11-15 23:12:43 +000022551 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022552;; #(
22553 no)
22554 ;; #(
22555 universal)
22556
cristy8b350f62009-11-15 23:12:43 +000022557$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022558
22559 ;; #(
22560 *)
cristy98dddb52010-11-04 00:30:15 +000022561 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022562 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022563 esac
22564
22565
cristy501c8042011-05-26 17:46:28 +000022566# Define to a suitable type, if standard headers do not define it.
22567ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22568case $ac_cv_c_int8_t in #(
22569 no|yes) ;; #(
22570 *)
cristy3ed852e2009-09-05 21:47:34 +000022571
22572cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022573#define int8_t $ac_cv_c_int8_t
22574_ACEOF
22575;;
22576esac
22577
22578ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22579case $ac_cv_c_int16_t in #(
22580 no|yes) ;; #(
22581 *)
22582
22583cat >>confdefs.h <<_ACEOF
22584#define int16_t $ac_cv_c_int16_t
22585_ACEOF
22586;;
22587esac
22588
22589ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22590case $ac_cv_c_int32_t in #(
22591 no|yes) ;; #(
22592 *)
22593
22594cat >>confdefs.h <<_ACEOF
22595#define int32_t $ac_cv_c_int32_t
22596_ACEOF
22597;;
22598esac
22599
22600ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22601case $ac_cv_c_int64_t in #(
22602 no|yes) ;; #(
22603 *)
22604
22605cat >>confdefs.h <<_ACEOF
22606#define int64_t $ac_cv_c_int64_t
22607_ACEOF
22608;;
22609esac
22610
22611
cristy045228a2013-06-23 11:00:16 +000022612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22613$as_echo_n "checking for unsigned long long int... " >&6; }
22614if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022615 $as_echo_n "(cached) " >&6
22616else
cristy045228a2013-06-23 11:00:16 +000022617 ac_cv_type_unsigned_long_long_int=yes
22618 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022620/* end confdefs.h. */
22621
22622 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022623 implementations with broken preprocessors. Perhaps this can
22624 be revisited in 2012. In the meantime, code should not expect
22625 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022626 /* Test literals. */
22627 long long int ll = 9223372036854775807ll;
22628 long long int nll = -9223372036854775807LL;
22629 unsigned long long int ull = 18446744073709551615ULL;
22630 /* Test constant expressions. */
22631 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022632 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022633 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022634 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022635 int i = 63;
22636int
22637main ()
22638{
22639/* Test availability of runtime routines for shift and division. */
22640 long long int llmax = 9223372036854775807ll;
22641 unsigned long long int ullmax = 18446744073709551615ull;
22642 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022643 | (llmax / ll) | (llmax % ll)
22644 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22645 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022646 ;
22647 return 0;
22648}
22649
22650_ACEOF
22651if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022652
22653else
22654 ac_cv_type_unsigned_long_long_int=no
22655fi
22656rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658 fi
22659fi
22660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22661$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22662 if test $ac_cv_type_unsigned_long_long_int = yes; then
22663
22664$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22665
22666 fi
22667
22668
22669
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22671$as_echo_n "checking for long long int... " >&6; }
22672if ${ac_cv_type_long_long_int+:} false; then :
22673 $as_echo_n "(cached) " >&6
22674else
cristy501c8042011-05-26 17:46:28 +000022675 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022676 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022677 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22678 if test $ac_cv_type_long_long_int = yes; then
22679 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022680 :
cristy501c8042011-05-26 17:46:28 +000022681else
22682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22683/* end confdefs.h. */
22684#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022685 #ifndef LLONG_MAX
22686 # define HALF \
22687 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22688 # define LLONG_MAX (HALF - 1 + HALF)
22689 #endif
cristy501c8042011-05-26 17:46:28 +000022690int
22691main ()
22692{
22693long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022694 int i;
22695 for (i = 0; ; i++)
22696 {
22697 long long int m = n << i;
22698 if (m >> i != n)
22699 return 1;
22700 if (LLONG_MAX / 2 < m)
22701 break;
22702 }
22703 return 0;
cristy501c8042011-05-26 17:46:28 +000022704 ;
22705 return 0;
22706}
22707_ACEOF
22708if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022709
cristy501c8042011-05-26 17:46:28 +000022710else
22711 ac_cv_type_long_long_int=no
22712fi
22713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22714 conftest.$ac_objext conftest.beam conftest.$ac_ext
22715fi
22716
cristy5ed9c6e2013-07-14 21:20:31 +000022717 fi
cristy045228a2013-06-23 11:00:16 +000022718 fi
cristy501c8042011-05-26 17:46:28 +000022719fi
22720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22721$as_echo "$ac_cv_type_long_long_int" >&6; }
22722 if test $ac_cv_type_long_long_int = yes; then
22723
22724$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22725
22726 fi
22727
22728
22729
22730 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22731if test "x$ac_cv_type_intmax_t" = xyes; then :
22732
22733$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22734
22735else
22736 test $ac_cv_type_long_long_int = yes \
22737 && ac_type='long long int' \
22738 || ac_type='long int'
22739
22740cat >>confdefs.h <<_ACEOF
22741#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022742_ACEOF
22743
22744fi
22745
22746
cristy501c8042011-05-26 17:46:28 +000022747
22748 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22749if test "x$ac_cv_type_intptr_t" = xyes; then :
22750
22751$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022752
cristy3ed852e2009-09-05 21:47:34 +000022753else
cristy501c8042011-05-26 17:46:28 +000022754 for ac_type in 'int' 'long int' 'long long int'; do
22755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22756/* end confdefs.h. */
22757$ac_includes_default
22758int
22759main ()
22760{
22761static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022762test_array [0] = 0;
22763return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022764
22765 ;
22766 return 0;
22767}
22768_ACEOF
22769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022770
22771cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022772#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022773_ACEOF
22774
cristy501c8042011-05-26 17:46:28 +000022775 ac_type=
22776fi
22777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22778 test -z "$ac_type" && break
22779 done
cristy3ed852e2009-09-05 21:47:34 +000022780fi
22781
22782
cristy3ed852e2009-09-05 21:47:34 +000022783
cristy501c8042011-05-26 17:46:28 +000022784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22785$as_echo_n "checking for long double... " >&6; }
22786if ${ac_cv_type_long_double+:} false; then :
22787 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022788else
cristy501c8042011-05-26 17:46:28 +000022789 if test "$GCC" = yes; then
22790 ac_cv_type_long_double=yes
22791 else
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793/* end confdefs.h. */
22794/* The Stardent Vistra knows sizeof (long double), but does
22795 not support it. */
22796 long double foo = 0.0L;
22797int
22798main ()
22799{
22800static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22801 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022802test_array [0] = 0;
22803return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022804
cristy501c8042011-05-26 17:46:28 +000022805 ;
22806 return 0;
22807}
cristy3ed852e2009-09-05 21:47:34 +000022808_ACEOF
cristy501c8042011-05-26 17:46:28 +000022809if ac_fn_c_try_compile "$LINENO"; then :
22810 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022811else
cristy501c8042011-05-26 17:46:28 +000022812 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy501c8042011-05-26 17:46:28 +000022814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815 fi
cristy3ed852e2009-09-05 21:47:34 +000022816fi
cristy501c8042011-05-26 17:46:28 +000022817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22818$as_echo "$ac_cv_type_long_double" >&6; }
22819 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022820
cristy501c8042011-05-26 17:46:28 +000022821$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022822
cristy501c8042011-05-26 17:46:28 +000022823 fi
22824
cristy3ed852e2009-09-05 21:47:34 +000022825
cristy8b350f62009-11-15 23:12:43 +000022826 { $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 +000022827$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022828if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022829 $as_echo_n "(cached) " >&6
22830else
cristy8b350f62009-11-15 23:12:43 +000022831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022832/* end confdefs.h. */
22833#include <float.h>
22834 long double const a[] =
22835 {
22836 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22837 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22838 };
22839 long double
22840 f (long double x)
22841 {
22842 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22843 + (x ? f (x) : 'c'));
22844 }
22845
22846int
22847main ()
22848{
22849static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22850 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22851 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22852 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22853 && (int) LDBL_EPSILON == 0
22854 )];
cristy14fefe52012-05-21 00:59:18 +000022855test_array [0] = 0;
22856return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022857
22858 ;
22859 return 0;
22860}
22861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022862if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022863 ac_cv_type_long_double_wider=yes
22864else
cristy8b350f62009-11-15 23:12:43 +000022865 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022866fi
cristy3ed852e2009-09-05 21:47:34 +000022867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868fi
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo "$ac_cv_type_long_double_wider" >&6; }
22871 if test $ac_cv_type_long_double_wider = yes; then
22872
cristy8b350f62009-11-15 23:12:43 +000022873$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022874
22875 fi
22876
22877
cristy045228a2013-06-23 11:00:16 +000022878
cristy501c8042011-05-26 17:46:28 +000022879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22880$as_echo_n "checking for long long int... " >&6; }
22881if ${ac_cv_type_long_long_int+:} false; then :
22882 $as_echo_n "(cached) " >&6
22883else
cristy501c8042011-05-26 17:46:28 +000022884 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022885 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022886 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22887 if test $ac_cv_type_long_long_int = yes; then
22888 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022889 :
cristy501c8042011-05-26 17:46:28 +000022890else
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022894 #ifndef LLONG_MAX
22895 # define HALF \
22896 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22897 # define LLONG_MAX (HALF - 1 + HALF)
22898 #endif
cristy501c8042011-05-26 17:46:28 +000022899int
22900main ()
22901{
22902long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022903 int i;
22904 for (i = 0; ; i++)
22905 {
22906 long long int m = n << i;
22907 if (m >> i != n)
22908 return 1;
22909 if (LLONG_MAX / 2 < m)
22910 break;
22911 }
22912 return 0;
cristy501c8042011-05-26 17:46:28 +000022913 ;
22914 return 0;
22915}
22916_ACEOF
22917if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022918
cristy501c8042011-05-26 17:46:28 +000022919else
22920 ac_cv_type_long_long_int=no
22921fi
22922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22923 conftest.$ac_objext conftest.beam conftest.$ac_ext
22924fi
22925
cristy5ed9c6e2013-07-14 21:20:31 +000022926 fi
cristy045228a2013-06-23 11:00:16 +000022927 fi
cristy501c8042011-05-26 17:46:28 +000022928fi
22929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22930$as_echo "$ac_cv_type_long_long_int" >&6; }
22931 if test $ac_cv_type_long_long_int = yes; then
22932
22933$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22934
22935 fi
22936
22937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22938$as_echo_n "checking for mbstate_t... " >&6; }
22939if ${ac_cv_type_mbstate_t+:} false; then :
22940 $as_echo_n "(cached) " >&6
22941else
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943/* end confdefs.h. */
22944$ac_includes_default
22945# include <wchar.h>
22946int
22947main ()
22948{
22949mbstate_t x; return sizeof x;
22950 ;
22951 return 0;
22952}
22953_ACEOF
22954if ac_fn_c_try_compile "$LINENO"; then :
22955 ac_cv_type_mbstate_t=yes
22956else
22957 ac_cv_type_mbstate_t=no
22958fi
22959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960fi
22961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22962$as_echo "$ac_cv_type_mbstate_t" >&6; }
22963 if test $ac_cv_type_mbstate_t = yes; then
22964
22965$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22966
22967 else
22968
22969$as_echo "#define mbstate_t int" >>confdefs.h
22970
22971 fi
22972ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22973if test "x$ac_cv_type_mode_t" = xyes; then :
22974
22975else
22976
22977cat >>confdefs.h <<_ACEOF
22978#define mode_t int
22979_ACEOF
22980
22981fi
22982
22983ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22984if test "x$ac_cv_type_off_t" = xyes; then :
22985
22986else
22987
22988cat >>confdefs.h <<_ACEOF
22989#define off_t long int
22990_ACEOF
22991
22992fi
22993
22994ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22995if test "x$ac_cv_type_pid_t" = xyes; then :
22996
22997else
22998
22999cat >>confdefs.h <<_ACEOF
23000#define pid_t int
23001_ACEOF
23002
23003fi
23004
23005ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23006if test "x$ac_cv_type_size_t" = xyes; then :
23007
23008else
23009
23010cat >>confdefs.h <<_ACEOF
23011#define size_t unsigned int
23012_ACEOF
23013
23014fi
23015
23016ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23017if test "x$ac_cv_type_ssize_t" = xyes; then :
23018
23019else
23020
23021cat >>confdefs.h <<_ACEOF
23022#define ssize_t int
23023_ACEOF
23024
23025fi
23026
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23028$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23029if ${ac_cv_type_uid_t+:} false; then :
23030 $as_echo_n "(cached) " >&6
23031else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033/* end confdefs.h. */
23034#include <sys/types.h>
23035
23036_ACEOF
23037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23038 $EGREP "uid_t" >/dev/null 2>&1; then :
23039 ac_cv_type_uid_t=yes
23040else
23041 ac_cv_type_uid_t=no
23042fi
23043rm -f conftest*
23044
23045fi
23046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23047$as_echo "$ac_cv_type_uid_t" >&6; }
23048if test $ac_cv_type_uid_t = no; then
23049
23050$as_echo "#define uid_t int" >>confdefs.h
23051
23052
23053$as_echo "#define gid_t int" >>confdefs.h
23054
23055fi
23056
23057ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23058case $ac_cv_c_uint8_t in #(
23059 no|yes) ;; #(
23060 *)
23061
23062$as_echo "#define _UINT8_T 1" >>confdefs.h
23063
23064
23065cat >>confdefs.h <<_ACEOF
23066#define uint8_t $ac_cv_c_uint8_t
23067_ACEOF
23068;;
23069 esac
23070
23071ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23072case $ac_cv_c_uint16_t in #(
23073 no|yes) ;; #(
23074 *)
23075
23076
23077cat >>confdefs.h <<_ACEOF
23078#define uint16_t $ac_cv_c_uint16_t
23079_ACEOF
23080;;
23081 esac
23082
23083ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23084case $ac_cv_c_uint32_t in #(
23085 no|yes) ;; #(
23086 *)
23087
23088$as_echo "#define _UINT32_T 1" >>confdefs.h
23089
23090
23091cat >>confdefs.h <<_ACEOF
23092#define uint32_t $ac_cv_c_uint32_t
23093_ACEOF
23094;;
23095 esac
23096
23097ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23098case $ac_cv_c_uint64_t in #(
23099 no|yes) ;; #(
23100 *)
23101
23102$as_echo "#define _UINT64_T 1" >>confdefs.h
23103
23104
23105cat >>confdefs.h <<_ACEOF
23106#define uint64_t $ac_cv_c_uint64_t
23107_ACEOF
23108;;
23109 esac
23110
23111
cristy501c8042011-05-26 17:46:28 +000023112
23113 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23114if test "x$ac_cv_type_uintmax_t" = xyes; then :
23115
23116$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23117
23118else
23119 test $ac_cv_type_unsigned_long_long_int = yes \
23120 && ac_type='unsigned long long int' \
23121 || ac_type='unsigned long int'
23122
23123cat >>confdefs.h <<_ACEOF
23124#define uintmax_t $ac_type
23125_ACEOF
23126
23127fi
23128
23129
23130
23131 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23132if test "x$ac_cv_type_uintptr_t" = xyes; then :
23133
23134$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23135
23136else
23137 for ac_type in 'unsigned int' 'unsigned long int' \
23138 'unsigned long long int'; do
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140/* end confdefs.h. */
23141$ac_includes_default
23142int
23143main ()
23144{
23145static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023146test_array [0] = 0;
23147return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023148
23149 ;
23150 return 0;
23151}
23152_ACEOF
23153if ac_fn_c_try_compile "$LINENO"; then :
23154
23155cat >>confdefs.h <<_ACEOF
23156#define uintptr_t $ac_type
23157_ACEOF
23158
23159 ac_type=
23160fi
23161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 test -z "$ac_type" && break
23163 done
23164fi
23165
23166
23167
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23169$as_echo_n "checking for unsigned long long int... " >&6; }
23170if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23171 $as_echo_n "(cached) " >&6
23172else
cristy045228a2013-06-23 11:00:16 +000023173 ac_cv_type_unsigned_long_long_int=yes
23174 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023176/* end confdefs.h. */
23177
23178 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023179 implementations with broken preprocessors. Perhaps this can
23180 be revisited in 2012. In the meantime, code should not expect
23181 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023182 /* Test literals. */
23183 long long int ll = 9223372036854775807ll;
23184 long long int nll = -9223372036854775807LL;
23185 unsigned long long int ull = 18446744073709551615ULL;
23186 /* Test constant expressions. */
23187 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023188 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023189 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023190 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023191 int i = 63;
23192int
23193main ()
23194{
23195/* Test availability of runtime routines for shift and division. */
23196 long long int llmax = 9223372036854775807ll;
23197 unsigned long long int ullmax = 18446744073709551615ull;
23198 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023199 | (llmax / ll) | (llmax % ll)
23200 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23201 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023202 ;
23203 return 0;
23204}
23205
23206_ACEOF
23207if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023208
cristy501c8042011-05-26 17:46:28 +000023209else
23210 ac_cv_type_unsigned_long_long_int=no
23211fi
23212rm -f core conftest.err conftest.$ac_objext \
23213 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023214 fi
cristy501c8042011-05-26 17:46:28 +000023215fi
23216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23217$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23218 if test $ac_cv_type_unsigned_long_long_int = yes; then
23219
23220$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23221
23222 fi
23223
23224
cristyfec31822013-05-23 12:32:12 +000023225# Float_t and double_t are intended to be the the most efficient type.
23226ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23227"
23228if test "x$ac_cv_type_float_t" = xyes; then :
23229
23230cat >>confdefs.h <<_ACEOF
23231#define HAVE_FLOAT_T 1
23232_ACEOF
23233
23234
23235fi
23236
23237ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23238"
23239if test "x$ac_cv_type_double_t" = xyes; then :
23240
23241cat >>confdefs.h <<_ACEOF
23242#define HAVE_DOUBLE_T 1
23243_ACEOF
23244
23245
23246fi
23247
23248# The cast to long int works around a bug in the HP C Compiler
23249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251# This bug is HP SR number 8606223364.
23252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23253$as_echo_n "checking size of float_t... " >&6; }
23254if ${ac_cv_sizeof_float_t+:} false; then :
23255 $as_echo_n "(cached) " >&6
23256else
23257 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23258"; then :
23259
23260else
23261 if test "$ac_cv_type_float_t" = yes; then
23262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23264as_fn_error 77 "cannot compute sizeof (float_t)
23265See \`config.log' for more details" "$LINENO" 5; }
23266 else
23267 ac_cv_sizeof_float_t=0
23268 fi
23269fi
23270
23271fi
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23273$as_echo "$ac_cv_sizeof_float_t" >&6; }
23274
23275
23276
23277cat >>confdefs.h <<_ACEOF
23278#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23279_ACEOF
23280
23281
23282# The cast to long int works around a bug in the HP C Compiler
23283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285# This bug is HP SR number 8606223364.
23286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23287$as_echo_n "checking size of double_t... " >&6; }
23288if ${ac_cv_sizeof_double_t+:} false; then :
23289 $as_echo_n "(cached) " >&6
23290else
23291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23292"; then :
23293
23294else
23295 if test "$ac_cv_type_double_t" = yes; then
23296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23298as_fn_error 77 "cannot compute sizeof (double_t)
23299See \`config.log' for more details" "$LINENO" 5; }
23300 else
23301 ac_cv_sizeof_double_t=0
23302 fi
23303fi
23304
23305fi
23306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23307$as_echo "$ac_cv_sizeof_double_t" >&6; }
23308
23309
23310
23311cat >>confdefs.h <<_ACEOF
23312#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23313_ACEOF
23314
23315
23316
cristy9b86f202012-11-28 21:55:35 +000023317# Get size of float, double and long double for comparaison.
23318# The cast to long int works around a bug in the HP C Compiler
23319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23321# This bug is HP SR number 8606223364.
23322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23323$as_echo_n "checking size of float... " >&6; }
23324if ${ac_cv_sizeof_float+:} false; then :
23325 $as_echo_n "(cached) " >&6
23326else
23327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23328
23329else
23330 if test "$ac_cv_type_float" = yes; then
23331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23333as_fn_error 77 "cannot compute sizeof (float)
23334See \`config.log' for more details" "$LINENO" 5; }
23335 else
23336 ac_cv_sizeof_float=0
23337 fi
23338fi
23339
23340fi
23341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23342$as_echo "$ac_cv_sizeof_float" >&6; }
23343
23344
23345
23346cat >>confdefs.h <<_ACEOF
23347#define SIZEOF_FLOAT $ac_cv_sizeof_float
23348_ACEOF
23349
23350
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23356$as_echo_n "checking size of double... " >&6; }
23357if ${ac_cv_sizeof_double+:} false; then :
23358 $as_echo_n "(cached) " >&6
23359else
23360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23361
23362else
23363 if test "$ac_cv_type_double" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23366as_fn_error 77 "cannot compute sizeof (double)
23367See \`config.log' for more details" "$LINENO" 5; }
23368 else
23369 ac_cv_sizeof_double=0
23370 fi
23371fi
23372
23373fi
23374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23375$as_echo "$ac_cv_sizeof_double" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23381_ACEOF
23382
23383
cristyfec31822013-05-23 12:32:12 +000023384# The cast to long int works around a bug in the HP C Compiler
23385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387# This bug is HP SR number 8606223364.
23388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23389$as_echo_n "checking size of long double... " >&6; }
23390if ${ac_cv_sizeof_long_double+:} false; then :
23391 $as_echo_n "(cached) " >&6
23392else
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23394
23395else
23396 if test "$ac_cv_type_long_double" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23399as_fn_error 77 "cannot compute sizeof (long double)
23400See \`config.log' for more details" "$LINENO" 5; }
23401 else
23402 ac_cv_sizeof_long_double=0
23403 fi
23404fi
23405
23406fi
23407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23408$as_echo "$ac_cv_sizeof_long_double" >&6; }
23409
23410
23411
23412cat >>confdefs.h <<_ACEOF
23413#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23414_ACEOF
23415
23416
cristyf0cf9a22012-10-24 12:05:01 +000023417
cristy3ed852e2009-09-05 21:47:34 +000023418# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23419# The cast to long int works around a bug in the HP C Compiler
23420# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023424$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023425if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023426 $as_echo_n "(cached) " >&6
23427else
cristy8b350f62009-11-15 23:12:43 +000023428 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 +000023429
cristy3ed852e2009-09-05 21:47:34 +000023430else
cristy8b350f62009-11-15 23:12:43 +000023431 if test "$ac_cv_type_signed_short" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023434as_fn_error 77 "cannot compute sizeof (signed short)
23435See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023436 else
23437 ac_cv_sizeof_signed_short=0
23438 fi
23439fi
cristy8b350f62009-11-15 23:12:43 +000023440
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023443$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23444
23445
23446
23447cat >>confdefs.h <<_ACEOF
23448#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23449_ACEOF
23450
23451
23452
23453# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23454# The cast to long int works around a bug in the HP C Compiler
23455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023460if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 $as_echo_n "(cached) " >&6
23462else
cristy8b350f62009-11-15 23:12:43 +000023463 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 +000023464
cristy3ed852e2009-09-05 21:47:34 +000023465else
cristy8b350f62009-11-15 23:12:43 +000023466 if test "$ac_cv_type_unsigned_short" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023469as_fn_error 77 "cannot compute sizeof (unsigned short)
23470See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023471 else
23472 ac_cv_sizeof_unsigned_short=0
23473 fi
23474fi
cristy8b350f62009-11-15 23:12:43 +000023475
cristy3ed852e2009-09-05 21:47:34 +000023476fi
cristy8b350f62009-11-15 23:12:43 +000023477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023478$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23479
23480
23481
23482cat >>confdefs.h <<_ACEOF
23483#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23484_ACEOF
23485
23486
23487
23488# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23489# The cast to long int works around a bug in the HP C Compiler
23490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023494$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023495if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 $as_echo_n "(cached) " >&6
23497else
cristy8b350f62009-11-15 23:12:43 +000023498 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 +000023499
cristy3ed852e2009-09-05 21:47:34 +000023500else
cristy8b350f62009-11-15 23:12:43 +000023501 if test "$ac_cv_type_signed_int" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023504as_fn_error 77 "cannot compute sizeof (signed int)
23505See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023506 else
23507 ac_cv_sizeof_signed_int=0
23508 fi
23509fi
cristy8b350f62009-11-15 23:12:43 +000023510
cristy3ed852e2009-09-05 21:47:34 +000023511fi
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23514
23515
23516
23517cat >>confdefs.h <<_ACEOF
23518#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23519_ACEOF
23520
23521
23522
23523# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23524# The cast to long int works around a bug in the HP C Compiler
23525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023529$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023530if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023531 $as_echo_n "(cached) " >&6
23532else
cristy8b350f62009-11-15 23:12:43 +000023533 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 +000023534
cristy3ed852e2009-09-05 21:47:34 +000023535else
cristy8b350f62009-11-15 23:12:43 +000023536 if test "$ac_cv_type_unsigned_int" = yes; then
23537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023539as_fn_error 77 "cannot compute sizeof (unsigned int)
23540See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023541 else
23542 ac_cv_sizeof_unsigned_int=0
23543 fi
23544fi
cristy8b350f62009-11-15 23:12:43 +000023545
cristy3ed852e2009-09-05 21:47:34 +000023546fi
cristy8b350f62009-11-15 23:12:43 +000023547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023548$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23549
23550
23551
23552cat >>confdefs.h <<_ACEOF
23553#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23554_ACEOF
23555
23556
23557
23558# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23559# The cast to long int works around a bug in the HP C Compiler
23560# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23561# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23562# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023565if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023566 $as_echo_n "(cached) " >&6
23567else
cristy8b350f62009-11-15 23:12:43 +000023568 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 +000023569
cristy3ed852e2009-09-05 21:47:34 +000023570else
cristy8b350f62009-11-15 23:12:43 +000023571 if test "$ac_cv_type_signed_long" = yes; then
23572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023574as_fn_error 77 "cannot compute sizeof (signed long)
23575See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023576 else
23577 ac_cv_sizeof_signed_long=0
23578 fi
23579fi
cristy8b350f62009-11-15 23:12:43 +000023580
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23584
23585
23586
23587cat >>confdefs.h <<_ACEOF
23588#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23589_ACEOF
23590
23591
23592
23593# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023599$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023600if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023601 $as_echo_n "(cached) " >&6
23602else
cristy8b350f62009-11-15 23:12:43 +000023603 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 +000023604
cristy3ed852e2009-09-05 21:47:34 +000023605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$ac_cv_type_unsigned_long" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023609as_fn_error 77 "cannot compute sizeof (unsigned long)
23610See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023611 else
23612 ac_cv_sizeof_unsigned_long=0
23613 fi
23614fi
cristy8b350f62009-11-15 23:12:43 +000023615
cristy3ed852e2009-09-05 21:47:34 +000023616fi
cristy8b350f62009-11-15 23:12:43 +000023617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023618$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23624_ACEOF
23625
23626
23627
23628# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23629# 'signed long long' is not supported then the value defined is zero.
23630# The cast to long int works around a bug in the HP C Compiler
23631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23633# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023636if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023637 $as_echo_n "(cached) " >&6
23638else
cristy8b350f62009-11-15 23:12:43 +000023639 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 +000023640
cristy3ed852e2009-09-05 21:47:34 +000023641else
cristy8b350f62009-11-15 23:12:43 +000023642 if test "$ac_cv_type_signed_long_long" = yes; then
23643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023645as_fn_error 77 "cannot compute sizeof (signed long long)
23646See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023647 else
23648 ac_cv_sizeof_signed_long_long=0
23649 fi
23650fi
cristy8b350f62009-11-15 23:12:43 +000023651
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23655
23656
23657
23658cat >>confdefs.h <<_ACEOF
23659#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23660_ACEOF
23661
23662
23663
23664# Obtain size of a 'unsigned long long' and define as
23665# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23666# supported then the value defined is zero.
23667# The cast to long int works around a bug in the HP C Compiler
23668# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23669# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23670# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023672$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023673if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023674 $as_echo_n "(cached) " >&6
23675else
cristy8b350f62009-11-15 23:12:43 +000023676 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 +000023677
cristy3ed852e2009-09-05 21:47:34 +000023678else
cristy8b350f62009-11-15 23:12:43 +000023679 if test "$ac_cv_type_unsigned_long_long" = yes; then
23680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023682as_fn_error 77 "cannot compute sizeof (unsigned long long)
23683See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023684 else
23685 ac_cv_sizeof_unsigned_long_long=0
23686 fi
23687fi
cristy8b350f62009-11-15 23:12:43 +000023688
cristy3ed852e2009-09-05 21:47:34 +000023689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23692
23693
23694
23695cat >>confdefs.h <<_ACEOF
23696#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23697_ACEOF
23698
23699
23700
cristyfec31822013-05-23 12:32:12 +000023701# Obtain size of off_t and define as SIZEOF_OFF_T
23702# The cast to long int works around a bug in the HP C Compiler
23703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23705# This bug is HP SR number 8606223364.
23706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23707$as_echo_n "checking size of off_t... " >&6; }
23708if ${ac_cv_sizeof_off_t+:} false; then :
23709 $as_echo_n "(cached) " >&6
23710else
23711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23712
23713else
23714 if test "$ac_cv_type_off_t" = yes; then
23715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23717as_fn_error 77 "cannot compute sizeof (off_t)
23718See \`config.log' for more details" "$LINENO" 5; }
23719 else
23720 ac_cv_sizeof_off_t=0
23721 fi
23722fi
23723
23724fi
23725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23726$as_echo "$ac_cv_sizeof_off_t" >&6; }
23727
23728
23729
23730cat >>confdefs.h <<_ACEOF
23731#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23732_ACEOF
23733
23734
23735
23736# Obtain size of size_t and define as SIZEOF_SIZE_T
23737# The cast to long int works around a bug in the HP C Compiler
23738# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23739# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23740# This bug is HP SR number 8606223364.
23741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23742$as_echo_n "checking size of size_t... " >&6; }
23743if ${ac_cv_sizeof_size_t+:} false; then :
23744 $as_echo_n "(cached) " >&6
23745else
23746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23747
23748else
23749 if test "$ac_cv_type_size_t" = yes; then
23750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23752as_fn_error 77 "cannot compute sizeof (size_t)
23753See \`config.log' for more details" "$LINENO" 5; }
23754 else
23755 ac_cv_sizeof_size_t=0
23756 fi
23757fi
23758
23759fi
23760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23761$as_echo "$ac_cv_sizeof_size_t" >&6; }
23762
23763
23764
23765cat >>confdefs.h <<_ACEOF
23766#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23767_ACEOF
23768
23769
23770
23771# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23772# The cast to long int works around a bug in the HP C Compiler
23773# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23774# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23775# This bug is HP SR number 8606223364.
23776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23777$as_echo_n "checking size of ssize_t... " >&6; }
23778if ${ac_cv_sizeof_ssize_t+:} false; then :
23779 $as_echo_n "(cached) " >&6
23780else
23781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23782
23783else
23784 if test "$ac_cv_type_ssize_t" = yes; then
23785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23787as_fn_error 77 "cannot compute sizeof (ssize_t)
23788See \`config.log' for more details" "$LINENO" 5; }
23789 else
23790 ac_cv_sizeof_ssize_t=0
23791 fi
23792fi
23793
23794fi
23795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23796$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23797
23798
23799
23800cat >>confdefs.h <<_ACEOF
23801#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23802_ACEOF
23803
23804
23805
cristy3ed852e2009-09-05 21:47:34 +000023806# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23807# The cast to long int works around a bug in the HP C Compiler
23808# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23809# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23810# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023813if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 $as_echo_n "(cached) " >&6
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 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 +000023817
cristy3ed852e2009-09-05 21:47:34 +000023818else
cristy8b350f62009-11-15 23:12:43 +000023819 if test "$ac_cv_type_unsigned_intp" = yes; then
23820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023822as_fn_error 77 "cannot compute sizeof (unsigned int*)
23823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023824 else
23825 ac_cv_sizeof_unsigned_intp=0
23826 fi
23827fi
cristy8b350f62009-11-15 23:12:43 +000023828
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023831$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23832
23833
23834
23835cat >>confdefs.h <<_ACEOF
23836#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23837_ACEOF
23838
23839
23840
23841#
23842# Compute sized types for current CPU and compiler options.
23843#
23844
cristy8b350f62009-11-15 23:12:43 +000023845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023846$as_echo_n "checking for signed 8-bit type... " >&6; }
23847INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23849$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023850
23851
cristy8b350f62009-11-15 23:12:43 +000023852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023853$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23854UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23856$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023857
23858
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking for signed 16-bit type... " >&6; }
23861INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23863$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023864
23865
cristy8b350f62009-11-15 23:12:43 +000023866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023867$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23868UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23870$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023871
23872
cristy8b350f62009-11-15 23:12:43 +000023873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023874$as_echo_n "checking for signed 32-bit type... " >&6; }
23875INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023876INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023877if test $ac_cv_sizeof_signed_int -eq 4; then
23878 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023879 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023880elif test $ac_cv_sizeof_signed_long -eq 4; then
23881 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023882 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023883fi
cristyad38abe2012-12-23 23:03:21 +000023884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23885$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023886
23887
cristy6d5e20f2011-04-25 13:48:54 +000023888
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23891UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023892UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023893if test $ac_cv_sizeof_unsigned_int -eq 4; then
23894 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023895 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023896elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23897 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023898 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023899fi
cristyad38abe2012-12-23 23:03:21 +000023900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23901$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023902
23903
cristy6d5e20f2011-04-25 13:48:54 +000023904
cristy8b350f62009-11-15 23:12:43 +000023905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023906$as_echo_n "checking for signed 64-bit type... " >&6; }
23907INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023908INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023909if test $ac_cv_sizeof_signed_long -eq 8; then
23910 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023911 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023912elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23913 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023914 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023915fi
cristy3a99dcf2011-12-17 01:29:40 +000023916case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023917 mingw* )
23918 INT64_F='"I64"'
23919 ;;
23920esac
cristyad38abe2012-12-23 23:03:21 +000023921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23922$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023923
23924
cristy6d5e20f2011-04-25 13:48:54 +000023925
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23928UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023929UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023930if test $ac_cv_sizeof_unsigned_long -eq 8; then
23931 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023932 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023933elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23934 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023935 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023936fi
cristy3a99dcf2011-12-17 01:29:40 +000023937case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023938 mingw* )
23939 UINT64_F='"I64"'
23940 ;;
23941esac
cristyad38abe2012-12-23 23:03:21 +000023942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23943$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023944
23945
cristy6d5e20f2011-04-25 13:48:54 +000023946
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking for unsigned maximum type... " >&6; }
23949UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023950UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023951if test "$UINT64_T" != 'none'; then
23952 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023953 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023954elif test "$UINT32_T" != 'none'; then
23955 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023956 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023957fi
cristyad38abe2012-12-23 23:03:21 +000023958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23959$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023960
23961
cristy6d5e20f2011-04-25 13:48:54 +000023962
cristy8b350f62009-11-15 23:12:43 +000023963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023964$as_echo_n "checking for pointer difference type... " >&6; }
23965UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023966UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023967if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23968 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023969 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023970elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23971 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023972 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023973fi
cristyad38abe2012-12-23 23:03:21 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23975$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023976
23977
cristy6d5e20f2011-04-25 13:48:54 +000023978
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023982/* end confdefs.h. */
23983
23984int
23985main ()
23986{
23987{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23988 ;
23989 return 0;
23990}
23991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023992if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23994$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023995else
cristyad38abe2012-12-23 23:03:21 +000023996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23997$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024001/* end confdefs.h. */
24002
24003int
24004main ()
24005{
24006{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24007 ;
24008 return 0;
24009}
24010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024011if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24013$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024014
cristy8b350f62009-11-15 23:12:43 +000024015$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024016
24017else
cristyad38abe2012-12-23 23:03:21 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024020
cristy8b350f62009-11-15 23:12:43 +000024021$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024022
24023fi
cristy3ed852e2009-09-05 21:47:34 +000024024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025fi
cristy3ed852e2009-09-05 21:47:34 +000024026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027
24028########
24029#
24030# Check for functions
24031#
24032########
cristy73bd4a52010-10-05 11:24:23 +000024033for ac_header in stdlib.h unistd.h
24034do :
24035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024038 cat >>confdefs.h <<_ACEOF
24039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24040_ACEOF
24041
24042fi
24043
24044done
24045
24046for ac_func in getpagesize
24047do :
24048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024049if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024050 cat >>confdefs.h <<_ACEOF
24051#define HAVE_GETPAGESIZE 1
24052_ACEOF
24053
24054fi
24055done
24056
24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24058$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024059if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024060 $as_echo_n "(cached) " >&6
24061else
24062 if test "$cross_compiling" = yes; then :
24063 magick_cv_func_mmap_fileio=no
24064else
24065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24066/* end confdefs.h. */
24067$ac_includes_default
24068/* malloc might have been renamed as rpl_malloc. */
24069#undef malloc
24070
24071/*
24072 This test is derived from GNU Autoconf's similar macro.
24073 The purpose of this test is to verify that files may be memory
24074 mapped, and that memory mapping and file I/O are coherent.
24075
24076 The test creates a test file, memory maps the file, updates
24077 the file using the memory map, and then reads the file using
24078 file I/O to verify that the file contains the updates.
24079*/
24080
24081#include <fcntl.h>
24082#include <sys/mman.h>
24083
24084#if !STDC_HEADERS && !HAVE_STDLIB_H
24085char *malloc ();
24086#endif
24087
24088/* This mess was copied from the GNU getpagesize.h. */
24089#if !HAVE_GETPAGESIZE
24090/* Assume that all systems that can run configure have sys/param.h. */
24091# if !HAVE_SYS_PARAM_H
24092# define HAVE_SYS_PARAM_H 1
24093# endif
24094
24095# ifdef _SC_PAGESIZE
24096# define getpagesize() sysconf(_SC_PAGESIZE)
24097# else /* no _SC_PAGESIZE */
24098# if HAVE_SYS_PARAM_H
24099# include <sys/param.h>
24100# ifdef EXEC_PAGESIZE
24101# define getpagesize() EXEC_PAGESIZE
24102# else /* no EXEC_PAGESIZE */
24103# ifdef NBPG
24104# define getpagesize() NBPG * CLSIZE
24105# ifndef CLSIZE
24106# define CLSIZE 1
24107# endif /* no CLSIZE */
24108# else /* no NBPG */
24109# ifdef NBPC
24110# define getpagesize() NBPC
24111# else /* no NBPC */
24112# ifdef PAGESIZE
24113# define getpagesize() PAGESIZE
24114# endif /* PAGESIZE */
24115# endif /* no NBPC */
24116# endif /* no NBPG */
24117# endif /* no EXEC_PAGESIZE */
24118# else /* no HAVE_SYS_PARAM_H */
24119# define getpagesize() 8192 /* punt totally */
24120# endif /* no HAVE_SYS_PARAM_H */
24121# endif /* no _SC_PAGESIZE */
24122
24123#endif /* no HAVE_GETPAGESIZE */
24124
24125int
24126main ()
24127{
24128 char *data, *data2, *data3;
24129 int i, pagesize;
24130 int fd;
24131
24132 pagesize = getpagesize ();
24133
24134 /* First, make a file with some known garbage in it. */
24135 data = (char *) malloc (pagesize);
24136 if (!data)
24137 exit (1);
24138 for (i = 0; i < pagesize; ++i)
24139 *(data + i) = rand ();
24140 umask (0);
24141 fd = creat ("conftest.mmap", 0600);
24142 if (fd < 0)
24143 exit (1);
24144 if (write (fd, data, pagesize) != pagesize)
24145 exit (1);
24146 close (fd);
24147
24148 /* Mmap the file as read/write/shared and verify that we see the
24149 same garbage. */
24150 fd = open ("conftest.mmap", O_RDWR);
24151 if (fd < 0)
24152 exit (1);
24153 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24154 if (data2 == 0)
24155 exit (1);
24156 for (i = 0; i < pagesize; ++i)
24157 if (*(data + i) != *(data2 + i))
24158 exit (1);
24159
24160 /* Finally, make sure that changes to the mapped area
24161 percolate back to the file as seen by read(). */
24162 for (i = 0; i < pagesize; ++i)
24163 *(data2 + i) = *(data2 + i) + 1;
24164 data3 = (char *) malloc (pagesize);
24165 if (!data3)
24166 exit (1);
24167 if (read (fd, data3, pagesize) != pagesize)
24168 exit (1);
24169 for (i = 0; i < pagesize; ++i)
24170 if (*(data2 + i) != *(data3 + i))
24171 exit (1);
24172 close (fd);
24173 exit (0);
24174}
24175_ACEOF
24176if ac_fn_c_try_run "$LINENO"; then :
24177 magick_cv_func_mmap_fileio=yes
24178else
24179 magick_cv_func_mmap_fileio=no
24180fi
24181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24182 conftest.$ac_objext conftest.beam conftest.$ac_ext
24183fi
24184
24185fi
24186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24187$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24188if test $magick_cv_func_mmap_fileio = yes; then
24189
24190$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24191
24192fi
24193rm -f conftest.mmap
24194
cristy8b350f62009-11-15 23:12:43 +000024195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024197if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024198 $as_echo_n "(cached) " >&6
24199else
cristy8b350f62009-11-15 23:12:43 +000024200 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 ac_cv_func_closedir_void=yes
24202else
cristy8b350f62009-11-15 23:12:43 +000024203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024204/* end confdefs.h. */
24205$ac_includes_default
24206#include <$ac_header_dirent>
24207#ifndef __cplusplus
24208int closedir ();
24209#endif
24210
24211int
24212main ()
24213{
24214return closedir (opendir (".")) != 0;
24215 ;
24216 return 0;
24217}
24218_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024219if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024220 ac_cv_func_closedir_void=no
24221else
cristy8b350f62009-11-15 23:12:43 +000024222 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024223fi
cristy8b350f62009-11-15 23:12:43 +000024224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24225 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024226fi
24227
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristy8b350f62009-11-15 23:12:43 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024230$as_echo "$ac_cv_func_closedir_void" >&6; }
24231if test $ac_cv_func_closedir_void = yes; then
24232
cristy8b350f62009-11-15 23:12:43 +000024233$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024234
24235fi
24236
cristycd4c5312009-11-22 01:19:08 +000024237
24238
24239
24240 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024241do :
24242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24244"
cristy98dddb52010-11-04 00:30:15 +000024245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024246 cat >>confdefs.h <<_ACEOF
24247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24248_ACEOF
24249
24250fi
24251
24252done
24253
cristycd4c5312009-11-22 01:19:08 +000024254
24255
24256
24257
24258
24259
24260
cristy3ed852e2009-09-05 21:47:34 +000024261for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024262do :
24263 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024264if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024266#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024267_ACEOF
24268
24269fi
24270done
24271
cristy8b350f62009-11-15 23:12:43 +000024272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024273$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024274if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 $as_echo_n "(cached) " >&6
24276else
cristy8b350f62009-11-15 23:12:43 +000024277 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024278 ac_cv_func_mmap_fixed_mapped=no
24279else
cristy8b350f62009-11-15 23:12:43 +000024280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024281/* end confdefs.h. */
24282$ac_includes_default
24283/* malloc might have been renamed as rpl_malloc. */
24284#undef malloc
24285
24286/* Thanks to Mike Haertel and Jim Avera for this test.
24287 Here is a matrix of mmap possibilities:
24288 mmap private not fixed
24289 mmap private fixed at somewhere currently unmapped
24290 mmap private fixed at somewhere already mapped
24291 mmap shared not fixed
24292 mmap shared fixed at somewhere currently unmapped
24293 mmap shared fixed at somewhere already mapped
24294 For private mappings, we should verify that changes cannot be read()
24295 back from the file, nor mmap's back from the file at a different
24296 address. (There have been systems where private was not correctly
24297 implemented like the infamous i386 svr4.0, and systems where the
24298 VM page cache was not coherent with the file system buffer cache
24299 like early versions of FreeBSD and possibly contemporary NetBSD.)
24300 For shared mappings, we should conversely verify that changes get
24301 propagated back to all the places they're supposed to be.
24302
24303 Grep wants private fixed already mapped.
24304 The main things grep needs to know about mmap are:
24305 * does it exist and is it safe to write into the mmap'd area
24306 * how to use it (BSD variants) */
24307
24308#include <fcntl.h>
24309#include <sys/mman.h>
24310
24311#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24312char *malloc ();
24313#endif
24314
24315/* This mess was copied from the GNU getpagesize.h. */
24316#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024317# ifdef _SC_PAGESIZE
24318# define getpagesize() sysconf(_SC_PAGESIZE)
24319# else /* no _SC_PAGESIZE */
24320# ifdef HAVE_SYS_PARAM_H
24321# include <sys/param.h>
24322# ifdef EXEC_PAGESIZE
24323# define getpagesize() EXEC_PAGESIZE
24324# else /* no EXEC_PAGESIZE */
24325# ifdef NBPG
24326# define getpagesize() NBPG * CLSIZE
24327# ifndef CLSIZE
24328# define CLSIZE 1
24329# endif /* no CLSIZE */
24330# else /* no NBPG */
24331# ifdef NBPC
24332# define getpagesize() NBPC
24333# else /* no NBPC */
24334# ifdef PAGESIZE
24335# define getpagesize() PAGESIZE
24336# endif /* PAGESIZE */
24337# endif /* no NBPC */
24338# endif /* no NBPG */
24339# endif /* no EXEC_PAGESIZE */
24340# else /* no HAVE_SYS_PARAM_H */
24341# define getpagesize() 8192 /* punt totally */
24342# endif /* no HAVE_SYS_PARAM_H */
24343# endif /* no _SC_PAGESIZE */
24344
24345#endif /* no HAVE_GETPAGESIZE */
24346
24347int
24348main ()
24349{
24350 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024351 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024352 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024353 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024354
24355 pagesize = getpagesize ();
24356
24357 /* First, make a file with some known garbage in it. */
24358 data = (char *) malloc (pagesize);
24359 if (!data)
24360 return 1;
24361 for (i = 0; i < pagesize; ++i)
24362 *(data + i) = rand ();
24363 umask (0);
24364 fd = creat ("conftest.mmap", 0600);
24365 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024366 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024367 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024368 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024369 close (fd);
24370
cristycd4c5312009-11-22 01:19:08 +000024371 /* Next, check that the tail of a page is zero-filled. File must have
24372 non-zero length, otherwise we risk SIGBUS for entire page. */
24373 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24374 if (fd2 < 0)
24375 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024376 cdata2 = "";
24377 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024378 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024379 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024380 if (data2 == MAP_FAILED)
24381 return 6;
24382 for (i = 0; i < pagesize; ++i)
24383 if (*(data2 + i))
24384 return 7;
24385 close (fd2);
24386 if (munmap (data2, pagesize))
24387 return 8;
24388
cristy3ed852e2009-09-05 21:47:34 +000024389 /* Next, try to mmap the file at a fixed address which already has
24390 something else allocated at it. If we can, also make sure that
24391 we see the same garbage. */
24392 fd = open ("conftest.mmap", O_RDWR);
24393 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024394 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024395 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24396 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024397 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024398 for (i = 0; i < pagesize; ++i)
24399 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024400 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024401
24402 /* Finally, make sure that changes to the mapped area do not
24403 percolate back to the file as seen by read(). (This is a bug on
24404 some variants of i386 svr4.0.) */
24405 for (i = 0; i < pagesize; ++i)
24406 *(data2 + i) = *(data2 + i) + 1;
24407 data3 = (char *) malloc (pagesize);
24408 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024409 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024410 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024411 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024412 for (i = 0; i < pagesize; ++i)
24413 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024414 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024415 close (fd);
24416 return 0;
24417}
24418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024419if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 ac_cv_func_mmap_fixed_mapped=yes
24421else
cristy8b350f62009-11-15 23:12:43 +000024422 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024423fi
cristy8b350f62009-11-15 23:12:43 +000024424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24425 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024426fi
24427
cristy3ed852e2009-09-05 21:47:34 +000024428fi
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24431if test $ac_cv_func_mmap_fixed_mapped = yes; then
24432
cristy8b350f62009-11-15 23:12:43 +000024433$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024434
24435fi
cristycd4c5312009-11-22 01:19:08 +000024436rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024437
cristy3ed852e2009-09-05 21:47:34 +000024438for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024439do :
24440 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024441if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024443#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024444_ACEOF
24445
24446fi
24447
24448done
24449
cristy3ed852e2009-09-05 21:47:34 +000024450for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024451do :
24452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024454if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024455 cat >>confdefs.h <<_ACEOF
24456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24457_ACEOF
24458
24459fi
24460done
24461
24462if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024465if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024466 $as_echo_n "(cached) " >&6
24467else
cristy8b350f62009-11-15 23:12:43 +000024468 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 ac_cv_func_fork_works=cross
24470else
cristy8b350f62009-11-15 23:12:43 +000024471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024472/* end confdefs.h. */
24473$ac_includes_default
24474int
24475main ()
24476{
24477
24478 /* By Ruediger Kuhlmann. */
24479 return fork () < 0;
24480
24481 ;
24482 return 0;
24483}
24484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024485if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024486 ac_cv_func_fork_works=yes
24487else
cristy8b350f62009-11-15 23:12:43 +000024488 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024489fi
cristy8b350f62009-11-15 23:12:43 +000024490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24491 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024492fi
24493
cristy3ed852e2009-09-05 21:47:34 +000024494fi
cristy8b350f62009-11-15 23:12:43 +000024495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024496$as_echo "$ac_cv_func_fork_works" >&6; }
24497
24498else
24499 ac_cv_func_fork_works=$ac_cv_func_fork
24500fi
24501if test "x$ac_cv_func_fork_works" = xcross; then
24502 case $host in
24503 *-*-amigaos* | *-*-msdosdjgpp*)
24504 # Override, as these systems have only a dummy fork() stub
24505 ac_cv_func_fork_works=no
24506 ;;
24507 *)
24508 ac_cv_func_fork_works=yes
24509 ;;
24510 esac
cristy8b350f62009-11-15 23:12:43 +000024511 { $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 +000024512$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24513fi
24514ac_cv_func_vfork_works=$ac_cv_func_vfork
24515if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024522 ac_cv_func_vfork_works=cross
24523else
cristy8b350f62009-11-15 23:12:43 +000024524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024525/* end confdefs.h. */
24526/* Thanks to Paul Eggert for this test. */
24527$ac_includes_default
24528#include <sys/wait.h>
24529#ifdef HAVE_VFORK_H
24530# include <vfork.h>
24531#endif
24532/* On some sparc systems, changes by the child to local and incoming
24533 argument registers are propagated back to the parent. The compiler
24534 is told about this with #include <vfork.h>, but some compilers
24535 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24536 static variable whose address is put into a register that is
24537 clobbered by the vfork. */
24538static void
24539#ifdef __cplusplus
24540sparc_address_test (int arg)
24541# else
24542sparc_address_test (arg) int arg;
24543#endif
24544{
24545 static pid_t child;
24546 if (!child) {
24547 child = vfork ();
24548 if (child < 0) {
24549 perror ("vfork");
24550 _exit(2);
24551 }
24552 if (!child) {
24553 arg = getpid();
24554 write(-1, "", 0);
24555 _exit (arg);
24556 }
24557 }
24558}
24559
24560int
24561main ()
24562{
24563 pid_t parent = getpid ();
24564 pid_t child;
24565
24566 sparc_address_test (0);
24567
24568 child = vfork ();
24569
24570 if (child == 0) {
24571 /* Here is another test for sparc vfork register problems. This
24572 test uses lots of local variables, at least as many local
24573 variables as main has allocated so far including compiler
24574 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24575 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24576 reuse the register of parent for one of the local variables,
24577 since it will think that parent can't possibly be used any more
24578 in this routine. Assigning to the local variable will thus
24579 munge parent in the parent process. */
24580 pid_t
24581 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24582 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24583 /* Convince the compiler that p..p7 are live; otherwise, it might
24584 use the same hardware register for all 8 local variables. */
24585 if (p != p1 || p != p2 || p != p3 || p != p4
24586 || p != p5 || p != p6 || p != p7)
24587 _exit(1);
24588
24589 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24590 from child file descriptors. If the child closes a descriptor
24591 before it execs or exits, this munges the parent's descriptor
24592 as well. Test for this by closing stdout in the child. */
24593 _exit(close(fileno(stdout)) != 0);
24594 } else {
24595 int status;
24596 struct stat st;
24597
24598 while (wait(&status) != child)
24599 ;
24600 return (
24601 /* Was there some problem with vforking? */
24602 child < 0
24603
24604 /* Did the child fail? (This shouldn't happen.) */
24605 || status
24606
24607 /* Did the vfork/compiler bug occur? */
24608 || parent != getpid()
24609
24610 /* Did the file descriptor bug occur? */
24611 || fstat(fileno(stdout), &st) != 0
24612 );
24613 }
24614}
24615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024616if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024617 ac_cv_func_vfork_works=yes
24618else
cristy8b350f62009-11-15 23:12:43 +000024619 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024620fi
cristy8b350f62009-11-15 23:12:43 +000024621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24622 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024623fi
24624
cristy3ed852e2009-09-05 21:47:34 +000024625fi
cristy8b350f62009-11-15 23:12:43 +000024626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024627$as_echo "$ac_cv_func_vfork_works" >&6; }
24628
24629fi;
24630if test "x$ac_cv_func_fork_works" = xcross; then
24631 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024632 { $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 +000024633$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24634fi
24635
24636if test "x$ac_cv_func_vfork_works" = xyes; then
24637
cristy8b350f62009-11-15 23:12:43 +000024638$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024639
24640else
24641
cristy8b350f62009-11-15 23:12:43 +000024642$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024643
24644fi
24645if test "x$ac_cv_func_fork_works" = xyes; then
24646
cristy8b350f62009-11-15 23:12:43 +000024647$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024648
24649fi
24650
cristy8b350f62009-11-15 23:12:43 +000024651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024652$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024653if ${ac_cv_func_memcmp_working+:} 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_memcmp_working=no
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
24662int
24663main ()
24664{
24665
24666 /* Some versions of memcmp are not 8-bit clean. */
24667 char c0 = '\100', c1 = '\200', c2 = '\201';
24668 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24669 return 1;
24670
24671 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24672 or more and with at least one buffer not starting on a 4-byte boundary.
24673 William Lewis provided this test program. */
24674 {
24675 char foo[21];
24676 char bar[21];
24677 int i;
24678 for (i = 0; i < 4; i++)
24679 {
24680 char *a = foo + i;
24681 char *b = bar + i;
24682 strcpy (a, "--------01111111");
24683 strcpy (b, "--------10000000");
24684 if (memcmp (a, b, 16) >= 0)
24685 return 1;
24686 }
24687 return 0;
24688 }
24689
24690 ;
24691 return 0;
24692}
24693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024694if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024695 ac_cv_func_memcmp_working=yes
24696else
cristy8b350f62009-11-15 23:12:43 +000024697 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024698fi
cristy8b350f62009-11-15 23:12:43 +000024699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24700 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024701fi
24702
cristy3ed852e2009-09-05 21:47:34 +000024703fi
cristy8b350f62009-11-15 23:12:43 +000024704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024705$as_echo "$ac_cv_func_memcmp_working" >&6; }
24706test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24707 *" memcmp.$ac_objext "* ) ;;
24708 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24709 ;;
24710esac
24711
24712
cristy3ed852e2009-09-05 21:47:34 +000024713for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024714do :
24715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24716ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024717if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 cat >>confdefs.h <<_ACEOF
24719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24720_ACEOF
24721
24722fi
24723
24724done
24725
cristy8b350f62009-11-15 23:12:43 +000024726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024727$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024728if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 $as_echo_n "(cached) " >&6
24730else
24731 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24732 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24733 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024735/* end confdefs.h. */
24736$ac_includes_default
24737#ifdef HAVE_SYS_SELECT_H
24738# include <sys/select.h>
24739#endif
24740#ifdef HAVE_SYS_SOCKET_H
24741# include <sys/socket.h>
24742#endif
24743
24744int
24745main ()
24746{
24747extern int select ($ac_arg1,
24748 $ac_arg234, $ac_arg234, $ac_arg234,
24749 $ac_arg5);
24750 ;
24751 return 0;
24752}
24753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024755 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024756fi
cristy3ed852e2009-09-05 21:47:34 +000024757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 done
24759 done
24760done
24761# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024762: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024763
24764fi
cristy8b350f62009-11-15 23:12:43 +000024765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024766$as_echo "$ac_cv_func_select_args" >&6; }
24767ac_save_IFS=$IFS; IFS=','
24768set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24769IFS=$ac_save_IFS
24770shift
24771
24772cat >>confdefs.h <<_ACEOF
24773#define SELECT_TYPE_ARG1 $1
24774_ACEOF
24775
24776
24777cat >>confdefs.h <<_ACEOF
24778#define SELECT_TYPE_ARG234 ($2)
24779_ACEOF
24780
24781
24782cat >>confdefs.h <<_ACEOF
24783#define SELECT_TYPE_ARG5 ($3)
24784_ACEOF
24785
24786rm -f conftest*
24787
cristyda16f162011-02-19 23:52:17 +000024788if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 $as_echo_n "(cached) " >&6
24790else
24791 ac_cv_func_setvbuf_reversed=no
24792fi
24793
24794
cristy8b350f62009-11-15 23:12:43 +000024795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024796$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024797if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024798 $as_echo_n "(cached) " >&6
24799else
cristy8b350f62009-11-15 23:12:43 +000024800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024801/* end confdefs.h. */
24802#include <sys/types.h>
24803#include <signal.h>
24804
24805int
24806main ()
24807{
24808return *(signal (0, 0)) (0) == 1;
24809 ;
24810 return 0;
24811}
24812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024814 ac_cv_type_signal=int
24815else
cristy8b350f62009-11-15 23:12:43 +000024816 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024817fi
cristy3ed852e2009-09-05 21:47:34 +000024818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819fi
cristy8b350f62009-11-15 23:12:43 +000024820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821$as_echo "$ac_cv_type_signal" >&6; }
24822
24823cat >>confdefs.h <<_ACEOF
24824#define RETSIGTYPE $ac_cv_type_signal
24825_ACEOF
24826
24827
cristy8b350f62009-11-15 23:12:43 +000024828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024829$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024830if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 $as_echo_n "(cached) " >&6
24832else
cristy8b350f62009-11-15 23:12:43 +000024833 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024834 ac_cv_func_strtod=no
24835else
cristy8b350f62009-11-15 23:12:43 +000024836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024837/* end confdefs.h. */
24838
24839$ac_includes_default
24840#ifndef strtod
24841double strtod ();
24842#endif
24843int
24844main()
24845{
24846 {
24847 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24848 char *string = " +69";
24849 char *term;
24850 double value;
24851 value = strtod (string, &term);
24852 if (value != 69 || term != (string + 4))
24853 return 1;
24854 }
24855
24856 {
24857 /* Under Solaris 2.4, strtod returns the wrong value for the
24858 terminating character under some conditions. */
24859 char *string = "NaN";
24860 char *term;
24861 strtod (string, &term);
24862 if (term != string && *(term - 1) == 0)
24863 return 1;
24864 }
24865 return 0;
24866}
24867
24868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024869if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 ac_cv_func_strtod=yes
24871else
cristy8b350f62009-11-15 23:12:43 +000024872 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024873fi
cristy8b350f62009-11-15 23:12:43 +000024874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24875 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024876fi
24877
cristy3ed852e2009-09-05 21:47:34 +000024878fi
cristy8b350f62009-11-15 23:12:43 +000024879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024880$as_echo "$ac_cv_func_strtod" >&6; }
24881if test $ac_cv_func_strtod = no; then
24882 case " $LIBOBJS " in
24883 *" strtod.$ac_objext "* ) ;;
24884 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24885 ;;
24886esac
24887
cristy8b350f62009-11-15 23:12:43 +000024888ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024889if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024890
cristy3ed852e2009-09-05 21:47:34 +000024891fi
24892
cristy3ed852e2009-09-05 21:47:34 +000024893if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024895$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024896if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024897 $as_echo_n "(cached) " >&6
24898else
24899 ac_check_lib_save_LIBS=$LIBS
24900LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024902/* end confdefs.h. */
24903
24904/* Override any GCC internal prototype to avoid an error.
24905 Use char because int might match the return type of a GCC
24906 builtin and then its argument prototype would still apply. */
24907#ifdef __cplusplus
24908extern "C"
24909#endif
24910char pow ();
24911int
24912main ()
24913{
24914return pow ();
24915 ;
24916 return 0;
24917}
24918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024920 ac_cv_lib_m_pow=yes
24921else
cristy8b350f62009-11-15 23:12:43 +000024922 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024923fi
cristy8b350f62009-11-15 23:12:43 +000024924rm -f core conftest.err conftest.$ac_objext \
24925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024926LIBS=$ac_check_lib_save_LIBS
24927fi
cristy8b350f62009-11-15 23:12:43 +000024928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024929$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024930if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024931 POW_LIB=-lm
24932else
cristy8b350f62009-11-15 23:12:43 +000024933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024934$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24935fi
24936
24937fi
24938
24939fi
24940
cristy7d4a1d62011-10-13 15:54:12 +000024941ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24942if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24943 ac_have_decl=1
24944else
24945 ac_have_decl=0
24946fi
24947
24948cat >>confdefs.h <<_ACEOF
24949#define HAVE_DECL_STRERROR_R $ac_have_decl
24950_ACEOF
24951
24952for ac_func in strerror_r
24953do :
24954 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24955if test "x$ac_cv_func_strerror_r" = xyes; then :
24956 cat >>confdefs.h <<_ACEOF
24957#define HAVE_STRERROR_R 1
24958_ACEOF
24959
24960fi
24961done
24962
24963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24964$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24965if ${ac_cv_func_strerror_r_char_p+:} false; then :
24966 $as_echo_n "(cached) " >&6
24967else
24968
24969 ac_cv_func_strerror_r_char_p=no
24970 if test $ac_cv_have_decl_strerror_r = yes; then
24971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24972/* end confdefs.h. */
24973$ac_includes_default
24974int
24975main ()
24976{
24977
24978 char buf[100];
24979 char x = *strerror_r (0, buf, sizeof buf);
24980 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024981 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024982
24983 ;
24984 return 0;
24985}
24986_ACEOF
24987if ac_fn_c_try_compile "$LINENO"; then :
24988 ac_cv_func_strerror_r_char_p=yes
24989fi
24990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 else
24992 # strerror_r is not declared. Choose between
24993 # systems that have relatively inaccessible declarations for the
24994 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24995 # former has a strerror_r that returns char*, while the latter
24996 # has a strerror_r that returns `int'.
24997 # This test should segfault on the DEC system.
24998 if test "$cross_compiling" = yes; then :
24999 :
25000else
25001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002/* end confdefs.h. */
25003$ac_includes_default
25004 extern char *strerror_r ();
25005int
25006main ()
25007{
25008char buf[100];
25009 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025010 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025011 ;
25012 return 0;
25013}
25014_ACEOF
25015if ac_fn_c_try_run "$LINENO"; then :
25016 ac_cv_func_strerror_r_char_p=yes
25017fi
25018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25019 conftest.$ac_objext conftest.beam conftest.$ac_ext
25020fi
25021
25022 fi
25023
25024fi
25025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25026$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25027if test $ac_cv_func_strerror_r_char_p = yes; then
25028
25029$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25030
25031fi
25032
cristy3ed852e2009-09-05 21:47:34 +000025033for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025034do :
25035 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025036if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025037 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025038#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025039_ACEOF
25040
cristy8b350f62009-11-15 23:12:43 +000025041ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025042if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025043
cristy8b350f62009-11-15 23:12:43 +000025044$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025045
25046fi
25047
25048fi
25049done
25050
25051
25052
cristy161b9262010-03-20 19:34:32 +000025053#
25054# Find math library
25055#
25056MATH_LIBS=''
25057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25058$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025059if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025060 $as_echo_n "(cached) " >&6
25061else
25062 ac_check_lib_save_LIBS=$LIBS
25063LIBS="-lm $LIBS"
25064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065/* end confdefs.h. */
25066
25067/* Override any GCC internal prototype to avoid an error.
25068 Use char because int might match the return type of a GCC
25069 builtin and then its argument prototype would still apply. */
25070#ifdef __cplusplus
25071extern "C"
25072#endif
25073char sqrt ();
25074int
25075main ()
25076{
25077return sqrt ();
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082if ac_fn_c_try_link "$LINENO"; then :
25083 ac_cv_lib_m_sqrt=yes
25084else
25085 ac_cv_lib_m_sqrt=no
25086fi
25087rm -f core conftest.err conftest.$ac_objext \
25088 conftest$ac_exeext conftest.$ac_ext
25089LIBS=$ac_check_lib_save_LIBS
25090fi
25091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25092$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025093if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025094 MATH_LIBS="-lm"
25095fi
25096
25097LIBS="$MATH_LIBS $LIBS"
25098
25099
cristy85572162013-01-04 19:19:32 +000025100#
25101# Find socket library
25102#
cristy8a5d7f42013-01-06 15:24:33 +000025103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25104$as_echo_n "checking for library containing gethostbyname... " >&6; }
25105if ${ac_cv_search_gethostbyname+:} false; then :
25106 $as_echo_n "(cached) " >&6
25107else
25108 ac_func_search_save_LIBS=$LIBS
25109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110/* end confdefs.h. */
25111
25112/* Override any GCC internal prototype to avoid an error.
25113 Use char because int might match the return type of a GCC
25114 builtin and then its argument prototype would still apply. */
25115#ifdef __cplusplus
25116extern "C"
25117#endif
25118char gethostbyname ();
25119int
25120main ()
25121{
25122return gethostbyname ();
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127for ac_lib in '' resolv nsl; do
25128 if test -z "$ac_lib"; then
25129 ac_res="none required"
25130 else
25131 ac_res=-l$ac_lib
25132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25133 fi
25134 if ac_fn_c_try_link "$LINENO"; then :
25135 ac_cv_search_gethostbyname=$ac_res
25136fi
25137rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext
25139 if ${ac_cv_search_gethostbyname+:} false; then :
25140 break
25141fi
25142done
25143if ${ac_cv_search_gethostbyname+:} false; then :
25144
25145else
25146 ac_cv_search_gethostbyname=no
25147fi
25148rm conftest.$ac_ext
25149LIBS=$ac_func_search_save_LIBS
25150fi
25151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25152$as_echo "$ac_cv_search_gethostbyname" >&6; }
25153ac_res=$ac_cv_search_gethostbyname
25154if test "$ac_res" != no; then :
25155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25156
25157fi
25158
cristy85572162013-01-04 19:19:32 +000025159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25160$as_echo_n "checking for library containing socket... " >&6; }
25161if ${ac_cv_search_socket+:} false; then :
25162 $as_echo_n "(cached) " >&6
25163else
25164 ac_func_search_save_LIBS=$LIBS
25165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25166/* end confdefs.h. */
25167
25168/* Override any GCC internal prototype to avoid an error.
25169 Use char because int might match the return type of a GCC
25170 builtin and then its argument prototype would still apply. */
25171#ifdef __cplusplus
25172extern "C"
25173#endif
25174char socket ();
25175int
25176main ()
25177{
25178return socket ();
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183for ac_lib in '' socket; do
25184 if test -z "$ac_lib"; then
25185 ac_res="none required"
25186 else
25187 ac_res=-l$ac_lib
25188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25189 fi
25190 if ac_fn_c_try_link "$LINENO"; then :
25191 ac_cv_search_socket=$ac_res
25192fi
25193rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext
25195 if ${ac_cv_search_socket+:} false; then :
25196 break
25197fi
25198done
25199if ${ac_cv_search_socket+:} false; then :
25200
25201else
25202 ac_cv_search_socket=no
25203fi
25204rm conftest.$ac_ext
25205LIBS=$ac_func_search_save_LIBS
25206fi
25207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25208$as_echo "$ac_cv_search_socket" >&6; }
25209ac_res=$ac_cv_search_socket
25210if test "$ac_res" != no; then :
25211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25212
cristy85572162013-01-04 19:19:32 +000025213
cristy8a5d7f42013-01-06 15:24:33 +000025214$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025215
cristy03f187e2013-01-24 00:22:19 +000025216 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025217
25218fi
25219
25220
25221for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025222do :
25223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25224ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025225if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025226 cat >>confdefs.h <<_ACEOF
25227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25228_ACEOF
25229
25230fi
25231done
25232
25233
cristye43a45e2009-09-28 14:49:00 +000025234#
25235# Check for clock_gettime().
25236#
cristy8b350f62009-11-15 23:12:43 +000025237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025238$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025239if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025240 $as_echo_n "(cached) " >&6
25241else
25242 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025244/* end confdefs.h. */
25245
25246/* Override any GCC internal prototype to avoid an error.
25247 Use char because int might match the return type of a GCC
25248 builtin and then its argument prototype would still apply. */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252char clock_gettime ();
25253int
25254main ()
25255{
25256return clock_gettime ();
25257 ;
25258 return 0;
25259}
25260_ACEOF
25261for ac_lib in '' rt; do
25262 if test -z "$ac_lib"; then
25263 ac_res="none required"
25264 else
25265 ac_res=-l$ac_lib
25266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25267 fi
cristy8b350f62009-11-15 23:12:43 +000025268 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025269 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025270fi
cristy8b350f62009-11-15 23:12:43 +000025271rm -f core conftest.err conftest.$ac_objext \
25272 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025273 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025274 break
25275fi
25276done
cristyda16f162011-02-19 23:52:17 +000025277if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025278
cristye43a45e2009-09-28 14:49:00 +000025279else
25280 ac_cv_search_clock_gettime=no
25281fi
25282rm conftest.$ac_ext
25283LIBS=$ac_func_search_save_LIBS
25284fi
cristy8b350f62009-11-15 23:12:43 +000025285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025286$as_echo "$ac_cv_search_clock_gettime" >&6; }
25287ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025288if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25290
25291
cristy8b350f62009-11-15 23:12:43 +000025292$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025293
cristy8b350f62009-11-15 23:12:43 +000025294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025295$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025297/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025298
25299 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025300int
25301main ()
25302{
25303clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025304 ;
25305 return 0;
25306}
25307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025308if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025309
cristyad38abe2012-12-23 23:03:21 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25311$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025312
cristy8b350f62009-11-15 23:12:43 +000025313$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025314
25315
25316else
cristyad38abe2012-12-23 23:03:21 +000025317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25318$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025319
25320fi
cristye43a45e2009-09-28 14:49:00 +000025321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322
25323else
25324
cristy8b350f62009-11-15 23:12:43 +000025325 for ac_func in gettimeofday ftime
25326do :
25327 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25328ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025329if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025330 cat >>confdefs.h <<_ACEOF
25331#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25332_ACEOF
25333 break
25334fi
25335done
25336
25337
25338
25339fi
25340
25341
cristy3ed852e2009-09-05 21:47:34 +000025342########
25343#
25344# Check for function prototypes
25345#
25346########
25347
cristy8b350f62009-11-15 23:12:43 +000025348ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025349#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025350"
cristyda16f162011-02-19 23:52:17 +000025351if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025352 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025353else
cristy8b350f62009-11-15 23:12:43 +000025354 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025355fi
25356
cristy3ed852e2009-09-05 21:47:34 +000025357cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025358#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025360ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025361#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025362"
cristyda16f162011-02-19 23:52:17 +000025363if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025364 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025365else
cristy8b350f62009-11-15 23:12:43 +000025366 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025367fi
25368
cristy3ed852e2009-09-05 21:47:34 +000025369cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025370#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025371_ACEOF
25372
25373
cristy8b350f62009-11-15 23:12:43 +000025374ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025375#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025376"
cristyda16f162011-02-19 23:52:17 +000025377if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025378 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025379else
cristy8b350f62009-11-15 23:12:43 +000025380 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025381fi
25382
cristy3ed852e2009-09-05 21:47:34 +000025383cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025384#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025385_ACEOF
25386
25387
cristy8b350f62009-11-15 23:12:43 +000025388ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025389#include <stdio.h>
25390#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025391"
cristyda16f162011-02-19 23:52:17 +000025392if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025393 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025394else
cristy8b350f62009-11-15 23:12:43 +000025395 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025396fi
25397
cristy3ed852e2009-09-05 21:47:34 +000025398cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025399#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025400_ACEOF
25401
25402
cristy3ed852e2009-09-05 21:47:34 +000025403########
25404#
25405# C++ Support Tests (For Magick++)
25406#
25407########
25408have_magick_plus_plus='no'
25409if test "$with_magick_plus_plus" = 'yes'; then
25410 OLIBS="$LIBS"
25411 LIBS=''
25412 ac_ext=cpp
25413ac_cpp='$CXXCPP $CPPFLAGS'
25414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25417
25418
25419 # Full set of headers used...
25420 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25421 # functional iomanip iosfwd iostream iterator list string strstream utility
25422 ac_ext=cpp
25423ac_cpp='$CXXCPP $CPPFLAGS'
25424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25427
25428 ac_ext=cpp
25429ac_cpp='$CXXCPP $CPPFLAGS'
25430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25433if test -z "$CXX"; then
25434 if test -n "$CCC"; then
25435 CXX=$CCC
25436 else
25437 if test -n "$ac_tool_prefix"; then
25438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25439 do
25440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025444if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025445 $as_echo_n "(cached) " >&6
25446else
25447 if test -n "$CXX"; then
25448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25449else
25450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25451for as_dir in $PATH
25452do
25453 IFS=$as_save_IFS
25454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459 break 2
25460 fi
25461done
cristy8b350f62009-11-15 23:12:43 +000025462 done
cristy3ed852e2009-09-05 21:47:34 +000025463IFS=$as_save_IFS
25464
25465fi
25466fi
25467CXX=$ac_cv_prog_CXX
25468if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025470$as_echo "$CXX" >&6; }
25471else
cristy8b350f62009-11-15 23:12:43 +000025472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025473$as_echo "no" >&6; }
25474fi
25475
25476
25477 test -n "$CXX" && break
25478 done
25479fi
25480if test -z "$CXX"; then
25481 ac_ct_CXX=$CXX
25482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25483do
25484 # Extract the first word of "$ac_prog", so it can be a program name with args.
25485set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025487$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025488if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 $as_echo_n "(cached) " >&6
25490else
25491 if test -n "$ac_ct_CXX"; then
25492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25493else
25494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25495for as_dir in $PATH
25496do
25497 IFS=$as_save_IFS
25498 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025499 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025501 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025503 break 2
25504 fi
25505done
cristy8b350f62009-11-15 23:12:43 +000025506 done
cristy3ed852e2009-09-05 21:47:34 +000025507IFS=$as_save_IFS
25508
25509fi
25510fi
25511ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25512if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025514$as_echo "$ac_ct_CXX" >&6; }
25515else
cristy8b350f62009-11-15 23:12:43 +000025516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025517$as_echo "no" >&6; }
25518fi
25519
25520
25521 test -n "$ac_ct_CXX" && break
25522done
25523
25524 if test "x$ac_ct_CXX" = x; then
25525 CXX="g++"
25526 else
25527 case $cross_compiling:$ac_tool_warned in
25528yes:)
cristy8b350f62009-11-15 23:12:43 +000025529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25531ac_tool_warned=yes ;;
25532esac
25533 CXX=$ac_ct_CXX
25534 fi
25535fi
25536
25537 fi
25538fi
25539# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025541set X $ac_compile
25542ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025543for ac_option in --version -v -V -qversion; do
25544 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025545case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548esac
cristy8b350f62009-11-15 23:12:43 +000025549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25550$as_echo "$ac_try_echo"; } >&5
25551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025552 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025553 if test -s conftest.err; then
25554 sed '10a\
25555... rest of stderr output deleted ...
25556 10q' conftest.err >conftest.er1
25557 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025558 fi
cristycd4c5312009-11-22 01:19:08 +000025559 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561 test $ac_status = 0; }
25562done
cristy3ed852e2009-09-05 21:47:34 +000025563
cristy8b350f62009-11-15 23:12:43 +000025564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025565$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025566if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025567 $as_echo_n "(cached) " >&6
25568else
cristy8b350f62009-11-15 23:12:43 +000025569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025570/* end confdefs.h. */
25571
25572int
25573main ()
25574{
25575#ifndef __GNUC__
25576 choke me
25577#endif
25578
25579 ;
25580 return 0;
25581}
25582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025583if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025584 ac_compiler_gnu=yes
25585else
cristy8b350f62009-11-15 23:12:43 +000025586 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025587fi
cristy3ed852e2009-09-05 21:47:34 +000025588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25590
25591fi
cristy8b350f62009-11-15 23:12:43 +000025592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025593$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25594if test $ac_compiler_gnu = yes; then
25595 GXX=yes
25596else
25597 GXX=
25598fi
25599ac_test_CXXFLAGS=${CXXFLAGS+set}
25600ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025602$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025603if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025604 $as_echo_n "(cached) " >&6
25605else
25606 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25607 ac_cxx_werror_flag=yes
25608 ac_cv_prog_cxx_g=no
25609 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025611/* end confdefs.h. */
25612
25613int
25614main ()
25615{
25616
25617 ;
25618 return 0;
25619}
25620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025621if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025622 ac_cv_prog_cxx_g=yes
25623else
cristy8b350f62009-11-15 23:12:43 +000025624 CXXFLAGS=""
25625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025626/* end confdefs.h. */
25627
25628int
25629main ()
25630{
25631
25632 ;
25633 return 0;
25634}
25635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025636if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025637
cristy8b350f62009-11-15 23:12:43 +000025638else
25639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025640 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025642/* end confdefs.h. */
25643
25644int
25645main ()
25646{
25647
25648 ;
25649 return 0;
25650}
25651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025652if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025653 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025654fi
cristy3ed852e2009-09-05 21:47:34 +000025655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656fi
cristy3ed852e2009-09-05 21:47:34 +000025657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658fi
cristy3ed852e2009-09-05 21:47:34 +000025659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25661fi
cristy8b350f62009-11-15 23:12:43 +000025662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo "$ac_cv_prog_cxx_g" >&6; }
25664if test "$ac_test_CXXFLAGS" = set; then
25665 CXXFLAGS=$ac_save_CXXFLAGS
25666elif test $ac_cv_prog_cxx_g = yes; then
25667 if test "$GXX" = yes; then
25668 CXXFLAGS="-g -O2"
25669 else
25670 CXXFLAGS="-g"
25671 fi
25672else
25673 if test "$GXX" = yes; then
25674 CXXFLAGS="-O2"
25675 else
25676 CXXFLAGS=
25677 fi
25678fi
25679ac_ext=cpp
25680ac_cpp='$CXXCPP $CPPFLAGS'
25681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25684
cristy73bd4a52010-10-05 11:24:23 +000025685depcc="$CXX" am_compiler_list=
25686
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25688$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025689if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025690 $as_echo_n "(cached) " >&6
25691else
25692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25693 # We make a subdir and do the tests there. Otherwise we can end up
25694 # making bogus files that we don't know about and never remove. For
25695 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025696 # making a dummy file named 'D' -- because '-MD' means "put the output
25697 # in D".
cristy7247bba2012-02-05 16:37:27 +000025698 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025699 mkdir conftest.dir
25700 # Copy depcomp to subdir because otherwise we won't find it if we're
25701 # using a relative directory.
25702 cp "$am_depcomp" conftest.dir
25703 cd conftest.dir
25704 # We will build objects and dependencies in a subdirectory because
25705 # it helps to detect inapplicable dependency modes. For instance
25706 # both Tru64's cc and ICC support -MD to output dependencies as a
25707 # side effect of compilation, but ICC will put the dependencies in
25708 # the current directory while Tru64 will put them in the object
25709 # directory.
25710 mkdir sub
25711
25712 am_cv_CXX_dependencies_compiler_type=none
25713 if test "$am_compiler_list" = ""; then
25714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25715 fi
25716 am__universal=false
25717 case " $depcc " in #(
25718 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25719 esac
25720
25721 for depmode in $am_compiler_list; do
25722 # Setup a source with many dependencies, because some compilers
25723 # like to wrap large dependency lists on column 80 (with \), and
25724 # we should not choose a depcomp mode which is confused by this.
25725 #
25726 # We need to recreate these files for each test, as the compiler may
25727 # overwrite some of them when testing with obscure command lines.
25728 # This happens at least with the AIX C compiler.
25729 : > sub/conftest.c
25730 for i in 1 2 3 4 5 6; do
25731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025732 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25733 # Solaris 10 /bin/sh.
25734 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025735 done
25736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25737
cristyc0890a62012-07-19 00:18:20 +000025738 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025739 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025740 # handle '-M -o', and we need to detect this. Also, some Intel
25741 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025742 am__obj=sub/conftest.${OBJEXT-o}
25743 am__minus_obj="-o $am__obj"
25744 case $depmode in
25745 gcc)
25746 # This depmode causes a compiler race in universal mode.
25747 test "$am__universal" = false || continue
25748 ;;
25749 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025750 # After this tag, mechanisms are not by side-effect, so they'll
25751 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025752 if test "x$enable_dependency_tracking" = xyes; then
25753 continue
25754 else
25755 break
25756 fi
25757 ;;
cristy7247bba2012-02-05 16:37:27 +000025758 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025759 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025760 # not run yet. These depmodes are late enough in the game, and
25761 # so weak that their functioning should not be impacted.
25762 am__obj=conftest.${OBJEXT-o}
25763 am__minus_obj=
25764 ;;
25765 none) break ;;
25766 esac
25767 if depmode=$depmode \
25768 source=sub/conftest.c object=$am__obj \
25769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25771 >/dev/null 2>conftest.err &&
25772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25776 # icc doesn't choke on unknown options, it will just issue warnings
25777 # or remarks (even with -Werror). So we grep stderr for any message
25778 # that says an option was ignored or not supported.
25779 # When given -MP, icc 7.0 and 7.1 complain thusly:
25780 # icc: Command line warning: ignoring option '-M'; no argument required
25781 # The diagnosis changed in icc 8.0:
25782 # icc: Command line remark: option '-MP' not supported
25783 if (grep 'ignoring option' conftest.err ||
25784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25785 am_cv_CXX_dependencies_compiler_type=$depmode
25786 break
25787 fi
25788 fi
25789 done
25790
25791 cd ..
25792 rm -rf conftest.dir
25793else
25794 am_cv_CXX_dependencies_compiler_type=none
25795fi
25796
25797fi
25798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25799$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25801
25802 if
25803 test "x$enable_dependency_tracking" != xno \
25804 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25805 am__fastdepCXX_TRUE=
25806 am__fastdepCXX_FALSE='#'
25807else
25808 am__fastdepCXX_TRUE='#'
25809 am__fastdepCXX_FALSE=
25810fi
25811
25812
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25814$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025815if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025816 $as_echo_n "(cached) " >&6
25817else
25818
25819 ac_ext=cpp
25820ac_cpp='$CXXCPP $CPPFLAGS'
25821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25824
25825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826/* end confdefs.h. */
25827
25828int f(int x){return 1;}
25829int f(char x){return 1;}
25830int f(bool x){return 1;}
25831
25832int
25833main ()
25834{
25835bool b = true; return f(b);
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840if ac_fn_cxx_try_compile "$LINENO"; then :
25841 ax_cv_cxx_bool=yes
25842else
25843 ax_cv_cxx_bool=no
25844fi
25845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846 ac_ext=cpp
25847ac_cpp='$CXXCPP $CPPFLAGS'
25848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25851
25852
25853fi
25854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25855$as_echo "$ax_cv_cxx_bool" >&6; }
25856if test "$ax_cv_cxx_bool" = yes; then
25857
25858$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25859
25860fi
25861
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25863$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025864if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025865 $as_echo_n "(cached) " >&6
25866else
25867
25868 ac_ext=cpp
25869ac_cpp='$CXXCPP $CPPFLAGS'
25870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25873
25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875/* end confdefs.h. */
25876namespace Outer { namespace Inner { int i = 0; }}
25877int
25878main ()
25879{
25880using namespace Outer::Inner; return i;
25881 ;
25882 return 0;
25883}
25884_ACEOF
25885if ac_fn_cxx_try_compile "$LINENO"; then :
25886 ax_cv_cxx_namespaces=yes
25887else
25888 ax_cv_cxx_namespaces=no
25889fi
25890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 ac_ext=cpp
25892ac_cpp='$CXXCPP $CPPFLAGS'
25893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25896
25897
25898fi
25899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25900$as_echo "$ax_cv_cxx_namespaces" >&6; }
25901if test "$ax_cv_cxx_namespaces" = yes; then
25902
25903$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25904
25905fi
25906
25907
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25909$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025910if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025911 $as_echo_n "(cached) " >&6
25912else
25913
25914 ac_ext=cpp
25915ac_cpp='$CXXCPP $CPPFLAGS'
25916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25919
25920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25921/* end confdefs.h. */
25922#include <iostream>
25923 std::istream& is = std::cin;
25924int
25925main ()
25926{
25927
25928 ;
25929 return 0;
25930}
25931_ACEOF
25932if ac_fn_cxx_try_compile "$LINENO"; then :
25933 ax_cv_cxx_have_std_namespace=yes
25934else
25935 ax_cv_cxx_have_std_namespace=no
25936fi
25937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938 ac_ext=cpp
25939ac_cpp='$CXXCPP $CPPFLAGS'
25940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25943
25944
25945fi
25946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25947$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25948 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25949
25950$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25951
25952 fi
25953
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25955$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025957 $as_echo_n "(cached) " >&6
25958else
25959
25960
25961 ac_ext=cpp
25962ac_cpp='$CXXCPP $CPPFLAGS'
25963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25966
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968/* end confdefs.h. */
25969#include <iostream>
25970#include <map>
25971#include <iomanip>
25972#include <cmath>
25973#ifdef HAVE_NAMESPACES
25974using namespace std;
25975#endif
25976int
25977main ()
25978{
25979return 0;
25980 ;
25981 return 0;
25982}
25983_ACEOF
25984if ac_fn_cxx_try_compile "$LINENO"; then :
25985 ac_cv_cxx_have_std_libs=yes
25986else
25987 ac_cv_cxx_have_std_libs=no
25988fi
25989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25990 ac_ext=cpp
25991ac_cpp='$CXXCPP $CPPFLAGS'
25992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25995
25996
25997fi
25998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25999$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26000if test "$ac_cv_cxx_have_std_libs" = yes; then
26001
26002$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26003
26004fi
26005
cristy3ed852e2009-09-05 21:47:34 +000026006
26007 OPENMP_CXXFLAGS=
26008 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026009if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 enableval=$enable_openmp;
26011fi
26012
26013 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26015$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026016if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 $as_echo_n "(cached) " >&6
26018else
cristy8b350f62009-11-15 23:12:43 +000026019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026021
26022#ifndef _OPENMP
26023 choke me
26024#endif
26025#include <omp.h>
26026int main () { return omp_get_num_threads (); }
26027
26028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026029if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 ac_cv_prog_cxx_openmp='none needed'
26031else
cristy8b350f62009-11-15 23:12:43 +000026032 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026033 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26034 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026035 ac_save_CXXFLAGS=$CXXFLAGS
26036 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026039
26040#ifndef _OPENMP
26041 choke me
26042#endif
26043#include <omp.h>
26044int main () { return omp_get_num_threads (); }
26045
26046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026047if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026048 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026049fi
cristy8b350f62009-11-15 23:12:43 +000026050rm -f core conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026052 CXXFLAGS=$ac_save_CXXFLAGS
26053 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26054 break
26055 fi
26056 done
26057fi
cristy8b350f62009-11-15 23:12:43 +000026058rm -f core conftest.err conftest.$ac_objext \
26059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026060fi
cristy8b350f62009-11-15 23:12:43 +000026061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026062$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26063 case $ac_cv_prog_cxx_openmp in #(
26064 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026065 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026066 *)
cristy8b350f62009-11-15 23:12:43 +000026067 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026068 esac
26069 fi
26070
26071
26072 ac_ext=c
26073ac_cpp='$CPP $CPPFLAGS'
26074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26076ac_compiler_gnu=$ac_cv_c_compiler_gnu
26077
26078
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26081 if \
cristy964cb7f2010-04-25 23:18:00 +000026082 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026083 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026084 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026085 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026086 have_magick_plus_plus='yes'
26087 else
26088 have_magick_plus_plus='no (failed tests)'
26089 fi
cristyad38abe2012-12-23 23:03:21 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26091$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026092 LIBS="$OLIBS"
26093fi
cristy73bd4a52010-10-05 11:24:23 +000026094 if test "$have_magick_plus_plus" = 'yes'; then
26095 WITH_MAGICK_PLUS_PLUS_TRUE=
26096 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26097else
26098 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26099 WITH_MAGICK_PLUS_PLUS_FALSE=
26100fi
26101
cristy3ed852e2009-09-05 21:47:34 +000026102
26103# Only check for delegate libraries in subdirectories if requested.
26104if test "$enable_delegate_build" != 'no'; then
26105 # Check for delegate sub-directories and add -I & -L options as required.
26106 # This presumes that delegates are installed as detailed in the ImageMagick
26107 # README. If delegates are installed in a standard location where the
26108 # compiler will automatically find them then these options should not be
26109 # required.
26110
26111 #
26112 # Most delegates have includes in the same directory as the library, but not all...
26113 #
26114 # Includes
cristy2542fc62011-12-06 17:50:25 +000026115 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 +000026116 if test -d "$builddir/$dir"; then
26117 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26118 else
26119 if test -d "$srcdirfull/$dir"; then
26120 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26121 fi
26122 fi
26123 done
26124
26125 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026126 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 +000026127 if test -d "$builddir/$dir/.libs"; then
26128 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26129 else
26130 if test -d "$srcdirfull/$dir/.libs"; then
26131 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26132 fi
26133 fi
26134 if test -d "$builddir/$dir"; then
26135 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26136 else
26137 if test -d "$srcdirfull/$dir"; then
26138 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26139 fi
26140 fi
26141 done
26142fi
26143
26144# Assume that delegate headers reside under same directory as ImageMagick
26145# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026146MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026147
26148#
26149# Find the X11 RGB database
26150#
cristy8b350f62009-11-15 23:12:43 +000026151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026152$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026153if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026154 $as_echo_n "(cached) " >&6
26155else
26156 # Look for the header file in a standard set of common directories.
26157# Check X11 before X11Rn because it is often a symlink to the current release.
26158 for ac_dir in \
26159 /lib/usr/lib/X11 \
26160 /usr/X11/lib \
26161 /usr/X11R4/lib \
26162 /usr/X11R5/lib \
26163 /usr/X11R6/lib \
26164 /usr/X11R7/lib \
26165 /usr/X386/lib \
26166 /usr/XFree86/lib/X11 \
26167 /usr/athena/lib \
26168 /usr/lib \
26169 /usr/lib/X11 \
26170 /usr/lib/X11R4 \
26171 /usr/lib/X11R5 \
26172 /usr/lib/X11R6 \
26173 /usr/lib/X11R7 \
26174 /usr/local/X11/lib \
26175 /usr/local/X11R4/lib \
26176 /usr/local/X11R5/lib \
26177 /usr/local/X11R6/lib \
26178 /usr/local/lib \
26179 /usr/local/lib/X11 \
26180 /usr/local/lib/X11R4 \
26181 /usr/local/lib/X11R5 \
26182 /usr/local/lib/X11R6 \
26183 /usr/local/lib/X11R7 \
26184 /usr/local/x11r5/lib \
26185 /usr/lpp/Xamples/lib \
26186 /usr/openwin/lib \
26187 /usr/openwin/share/lib \
26188 /usr/unsupported/lib \
26189 /usr/x386/lib \
26190 ; do
26191 if test -f "$ac_dir/X11/rgb.txt"; then
26192 im_cv_x_configure="$ac_dir/X11/"
26193 break
26194 elif test -f "$ac_dir/rgb.txt"; then
26195 im_cv_x_configure="$ac_dir/"
26196 break
26197 fi
26198
26199 done
26200fi
cristy8b350f62009-11-15 23:12:43 +000026201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026202$as_echo "$im_cv_x_configure" >&6; }
26203X11_CONFIGURE_PATH="$im_cv_x_configure"
26204case "${build_os}" in
26205 mingw* )
26206 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26207 ;;
26208esac
26209
26210cat >>confdefs.h <<_ACEOF
26211#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26212_ACEOF
26213
26214
26215#
26216# Find OpenMP library
26217#
26218GOMP_LIBS=''
26219if test "$enable_openmp" != 'no'; then
26220 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026221 # Open64 (passes for GCC but uses different OpenMP implementation)
26222 if test "x$GOMP_LIBS" = x ; then
26223 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26225$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26226if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26227 $as_echo_n "(cached) " >&6
26228else
26229 ac_check_lib_save_LIBS=$LIBS
26230LIBS="-lopenmp $LIBS"
26231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232/* end confdefs.h. */
26233
26234/* Override any GCC internal prototype to avoid an error.
26235 Use char because int might match the return type of a GCC
26236 builtin and then its argument prototype would still apply. */
26237#ifdef __cplusplus
26238extern "C"
26239#endif
26240char omp_get_num_procs ();
26241int
26242main ()
26243{
26244return omp_get_num_procs ();
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249if ac_fn_c_try_link "$LINENO"; then :
26250 ac_cv_lib_openmp_omp_get_num_procs=yes
26251else
26252 ac_cv_lib_openmp_omp_get_num_procs=no
26253fi
26254rm -f core conftest.err conftest.$ac_objext \
26255 conftest$ac_exeext conftest.$ac_ext
26256LIBS=$ac_check_lib_save_LIBS
26257fi
26258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26259$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26260if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26261 GOMP_LIBS="-lopenmp"
26262fi
26263
26264 fi
26265 fi
26266 # GCC
26267 if test "x$GOMP_LIBS" = x ; then
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026270if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 $as_echo_n "(cached) " >&6
26272else
26273 ac_check_lib_save_LIBS=$LIBS
26274LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026276/* end confdefs.h. */
26277
26278/* Override any GCC internal prototype to avoid an error.
26279 Use char because int might match the return type of a GCC
26280 builtin and then its argument prototype would still apply. */
26281#ifdef __cplusplus
26282extern "C"
26283#endif
26284char GOMP_parallel_start ();
26285int
26286main ()
26287{
26288return GOMP_parallel_start ();
26289 ;
26290 return 0;
26291}
26292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026294 ac_cv_lib_gomp_GOMP_parallel_start=yes
26295else
cristy8b350f62009-11-15 23:12:43 +000026296 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026297fi
cristy8b350f62009-11-15 23:12:43 +000026298rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026300LIBS=$ac_check_lib_save_LIBS
26301fi
cristy8b350f62009-11-15 23:12:43 +000026302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026303$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 GOMP_LIBS="-lgomp"
26306fi
cristy18307f12011-12-30 01:20:16 +000026307
26308 fi
cristy3ed852e2009-09-05 21:47:34 +000026309 else
cristy18307f12011-12-30 01:20:16 +000026310 # Sun CC
26311 if test "x$GOMP_LIBS" = x ; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026313$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026314if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026315 $as_echo_n "(cached) " >&6
26316else
26317 ac_check_lib_save_LIBS=$LIBS
26318LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026320/* end confdefs.h. */
26321
26322/* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26325#ifdef __cplusplus
26326extern "C"
26327#endif
26328char sunw_mp_register_warn ();
26329int
26330main ()
26331{
26332return sunw_mp_register_warn ();
26333 ;
26334 return 0;
26335}
26336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026338 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26339else
cristy8b350f62009-11-15 23:12:43 +000026340 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026341fi
cristy8b350f62009-11-15 23:12:43 +000026342rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026344LIBS=$ac_check_lib_save_LIBS
26345fi
cristy8b350f62009-11-15 23:12:43 +000026346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026348if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 GOMP_LIBS="-lmtsk"
26350fi
cristy18307f12011-12-30 01:20:16 +000026351
26352 fi
26353 # AIX xlc
26354 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026357if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 $as_echo_n "(cached) " >&6
26359else
26360 ac_check_lib_save_LIBS=$LIBS
26361LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026363/* end confdefs.h. */
26364
26365/* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26368#ifdef __cplusplus
26369extern "C"
26370#endif
26371char _xlsmpFlush ();
26372int
26373main ()
26374{
26375return _xlsmpFlush ();
26376 ;
26377 return 0;
26378}
26379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 ac_cv_lib_xlsmp__xlsmpFlush=yes
26382else
cristy8b350f62009-11-15 23:12:43 +000026383 ac_cv_lib_xlsmp__xlsmpFlush=no
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 +000026387LIBS=$ac_check_lib_save_LIBS
26388fi
cristy8b350f62009-11-15 23:12:43 +000026389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026390$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 GOMP_LIBS="-lxlsmp"
26393fi
cristy18307f12011-12-30 01:20:16 +000026394
26395 fi
26396 # SGI IRIX 6.5 MIPSpro C/C++
26397 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026400if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026401 $as_echo_n "(cached) " >&6
26402else
26403 ac_check_lib_save_LIBS=$LIBS
26404LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026406/* end confdefs.h. */
26407
26408/* Override any GCC internal prototype to avoid an error.
26409 Use char because int might match the return type of a GCC
26410 builtin and then its argument prototype would still apply. */
26411#ifdef __cplusplus
26412extern "C"
26413#endif
26414char mp_destroy ();
26415int
26416main ()
26417{
26418return mp_destroy ();
26419 ;
26420 return 0;
26421}
26422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 ac_cv_lib_mp_mp_destroy=yes
26425else
cristy8b350f62009-11-15 23:12:43 +000026426 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026427fi
cristy8b350f62009-11-15 23:12:43 +000026428rm -f core conftest.err conftest.$ac_objext \
26429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026430LIBS=$ac_check_lib_save_LIBS
26431fi
cristy8b350f62009-11-15 23:12:43 +000026432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026434if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 GOMP_LIBS="-lmp"
26436fi
cristy18307f12011-12-30 01:20:16 +000026437
26438 fi
cristy3ed852e2009-09-05 21:47:34 +000026439 fi
26440 LIBS="$GOMP_LIBS $LIBS"
26441fi
26442
26443
26444#
26445# Find Posix threads library
26446#
26447THREAD_LIBS=''
26448if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26449
26450 if test "x$PTHREAD_LIBS" = "x"; then
26451 case "${host_cpu}-${host_os}" in
26452 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026453
26454
26455
26456ac_ext=c
26457ac_cpp='$CPP $CPPFLAGS'
26458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26460ac_compiler_gnu=$ac_cv_c_compiler_gnu
26461
26462magick_pthread_lib_ok=no
26463
26464LIB=-lc_r
26465save_LIBS="$LIBS"
26466LIBS="$LIBS $LIB"
26467
26468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26469$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26471/* end confdefs.h. */
26472#include <pthread.h>
26473int
26474main ()
26475{
26476 pthread_t th;
26477 pthread_join(th, 0);
26478 pthread_attr_init(0);
26479 pthread_cleanup_push(0, 0);
26480 pthread_create(0,0,0,0);
26481 pthread_cleanup_pop(0);
26482 ;
26483 return 0;
26484}
26485_ACEOF
26486if ac_fn_c_try_link "$LINENO"; then :
26487 magick_pthread_lib_ok=yes
26488fi
26489rm -f core conftest.err conftest.$ac_objext \
26490 conftest$ac_exeext conftest.$ac_ext
26491
26492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26493$as_echo "${magick_pthread_lib_ok}" >&6; }
26494if test "$magick_pthread_lib_ok" = yes
26495then
26496 PTHREAD_LIBS=-lc_r
26497 :
26498else
26499
26500 :
26501fi
26502
26503LIBS="$save_LIBS"
26504
26505ac_ext=c
26506ac_cpp='$CPP $CPPFLAGS'
26507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26509ac_compiler_gnu=$ac_cv_c_compiler_gnu
26510
26511 ;;
cristy3ed852e2009-09-05 21:47:34 +000026512 esac
26513 fi
26514
26515 for lib in pthread pthreads; do
26516 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026517
26518
26519
26520ac_ext=c
26521ac_cpp='$CPP $CPPFLAGS'
26522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524ac_compiler_gnu=$ac_cv_c_compiler_gnu
26525
26526magick_pthread_lib_ok=no
26527
26528LIB=-l$lib
26529save_LIBS="$LIBS"
26530LIBS="$LIBS $LIB"
26531
26532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26533$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26535/* end confdefs.h. */
26536#include <pthread.h>
26537int
26538main ()
26539{
26540 pthread_t th;
26541 pthread_join(th, 0);
26542 pthread_attr_init(0);
26543 pthread_cleanup_push(0, 0);
26544 pthread_create(0,0,0,0);
26545 pthread_cleanup_pop(0);
26546 ;
26547 return 0;
26548}
26549_ACEOF
26550if ac_fn_c_try_link "$LINENO"; then :
26551 magick_pthread_lib_ok=yes
26552fi
26553rm -f core conftest.err conftest.$ac_objext \
26554 conftest$ac_exeext conftest.$ac_ext
26555
26556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26557$as_echo "${magick_pthread_lib_ok}" >&6; }
26558if test "$magick_pthread_lib_ok" = yes
26559then
26560 PTHREAD_LIBS=-l$lib
26561 :
26562else
26563
26564 :
26565fi
26566
26567LIBS="$save_LIBS"
26568
26569ac_ext=c
26570ac_cpp='$CPP $CPPFLAGS'
26571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26573ac_compiler_gnu=$ac_cv_c_compiler_gnu
26574
26575
cristy3ed852e2009-09-05 21:47:34 +000026576 fi
26577 done
26578
26579 THREAD_LIBS="$PTHREAD_LIBS"
26580 LIBS="$LIBS $THREAD_LIBS"
26581fi
26582
26583
26584#
26585# Check for umem.
26586#
26587have_umem='no'
26588UMEM_LIBS=''
26589if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026591$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26593$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026594 failed=0
26595 passed=0
cristy8b350f62009-11-15 23:12:43 +000026596 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026597if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026598 passed=`expr $passed + 1`
26599else
26600 failed=`expr $failed + 1`
26601fi
26602
26603
cristy8b350f62009-11-15 23:12:43 +000026604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026606if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026607 $as_echo_n "(cached) " >&6
26608else
26609 ac_check_lib_save_LIBS=$LIBS
26610LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026612/* end confdefs.h. */
26613
26614/* Override any GCC internal prototype to avoid an error.
26615 Use char because int might match the return type of a GCC
26616 builtin and then its argument prototype would still apply. */
26617#ifdef __cplusplus
26618extern "C"
26619#endif
26620char umem_alloc ();
26621int
26622main ()
26623{
26624return umem_alloc ();
26625 ;
26626 return 0;
26627}
26628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026630 ac_cv_lib_umem_umem_alloc=yes
26631else
cristy8b350f62009-11-15 23:12:43 +000026632 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026633fi
cristy8b350f62009-11-15 23:12:43 +000026634rm -f core conftest.err conftest.$ac_objext \
26635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026636LIBS=$ac_check_lib_save_LIBS
26637fi
cristy8b350f62009-11-15 23:12:43 +000026638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026639$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026640if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026641 passed=`expr $passed + 1`
26642else
26643 failed=`expr $failed + 1`
26644fi
26645
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026648if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 $as_echo_n "(cached) " >&6
26650else
26651 ac_check_lib_save_LIBS=$LIBS
26652LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654/* end confdefs.h. */
26655
26656/* Override any GCC internal prototype to avoid an error.
26657 Use char because int might match the return type of a GCC
26658 builtin and then its argument prototype would still apply. */
26659#ifdef __cplusplus
26660extern "C"
26661#endif
26662char umem_free ();
26663int
26664main ()
26665{
26666return umem_free ();
26667 ;
26668 return 0;
26669}
26670_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026671if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026672 ac_cv_lib_umem_umem_free=yes
26673else
cristy8b350f62009-11-15 23:12:43 +000026674 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026675fi
cristy8b350f62009-11-15 23:12:43 +000026676rm -f core conftest.err conftest.$ac_objext \
26677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026678LIBS=$ac_check_lib_save_LIBS
26679fi
cristy8b350f62009-11-15 23:12:43 +000026680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026682if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026683 passed=`expr $passed + 1`
26684else
26685 failed=`expr $failed + 1`
26686fi
26687
cristy8b350f62009-11-15 23:12:43 +000026688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026689$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26690 if test $passed -gt 0; then
26691 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26693$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026694 have_umem='no (failed tests)'
26695 else
26696 UMEM_LIBS='-lumem'
26697 LIBS="$UMEM_LIBS $LIBS"
26698
cristy8b350f62009-11-15 23:12:43 +000026699$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026700
cristyad38abe2012-12-23 23:03:21 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26702$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026703 have_umem='yes'
26704 fi
26705 else
cristyad38abe2012-12-23 23:03:21 +000026706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26707$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026708 fi
26709fi
cristy73bd4a52010-10-05 11:24:23 +000026710 if test "$have_umem" = 'yes'; then
26711 HasUMEM_TRUE=
26712 HasUMEM_FALSE='#'
26713else
26714 HasUMEM_TRUE='#'
26715 HasUMEM_FALSE=
26716fi
26717
cristy3ed852e2009-09-05 21:47:34 +000026718
26719
26720#
26721# Add support for ccmalloc memory debugging library if requested
26722#
26723have_ccmalloc='no'
26724CCMALLOC_LIBS=''
26725if test "$enable_ccmalloc" = 'yes'; then
26726 # Extract the first word of "ccmalloc", so it can be a program name with args.
26727set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 case $CCMALLOCDelegate in
26734 [\\/]* | ?:[\\/]*)
26735 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26736 ;;
26737 *)
26738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26739for as_dir in $PATH
26740do
26741 IFS=$as_save_IFS
26742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026745 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747 break 2
26748 fi
26749done
cristy8b350f62009-11-15 23:12:43 +000026750 done
cristy3ed852e2009-09-05 21:47:34 +000026751IFS=$as_save_IFS
26752
26753 ;;
26754esac
26755fi
26756CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26757if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo "$CCMALLOCDelegate" >&6; }
26760else
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo "no" >&6; }
26763fi
26764
26765
26766 if test -n "$CCMALLOCDelegate"; then
26767 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26768 OLIBS="$LIBS"
26769 # Assume that gcc is used with ccmalloc.
26770 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026772$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026773if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026774 $as_echo_n "(cached) " >&6
26775else
26776 ac_check_lib_save_LIBS=$LIBS
26777LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026779/* end confdefs.h. */
26780
26781/* Override any GCC internal prototype to avoid an error.
26782 Use char because int might match the return type of a GCC
26783 builtin and then its argument prototype would still apply. */
26784#ifdef __cplusplus
26785extern "C"
26786#endif
26787char ccmalloc_malloc ();
26788int
26789main ()
26790{
26791return ccmalloc_malloc ();
26792 ;
26793 return 0;
26794}
26795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026796if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026797 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26798else
cristy8b350f62009-11-15 23:12:43 +000026799 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026800fi
cristy8b350f62009-11-15 23:12:43 +000026801rm -f core conftest.err conftest.$ac_objext \
26802 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026803LIBS=$ac_check_lib_save_LIBS
26804fi
cristy8b350f62009-11-15 23:12:43 +000026805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026807if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26809fi
26810
26811 if test -n "$CCMALLOC_LIBS"; then
26812 LIBS="$OLIBS"
26813 LIBS="$LIBS $CCMALLOC_LIBS"
26814 have_ccmalloc='yes'
26815 else
26816 LIBS="$OLIBS"
26817 fi
26818 fi
26819fi
26820
26821#
cristy944e51f2013-04-16 18:45:02 +000026822# Add support for 'huge pages' if requested
26823#
26824if test "x$enable_hugepages" != "xno"; then :
26825
26826
26827$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26828
26829
26830fi
26831
26832#
cristy3ed852e2009-09-05 21:47:34 +000026833# Add support for efence memory debugging library if requested
26834#
26835if test "$enable_efence" = 'yes'; then
26836 EFENCE_LIBS='-lefence'
26837 LIBS="$EFENCE_LIBS $LIBS"
26838fi
26839
cristy3ed852e2009-09-05 21:47:34 +000026840
26841#
26842# Check for BZLIB
26843#
26844
26845
26846# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026847if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 withval=$with_bzlib; with_bzlib=$withval
26849else
26850 with_bzlib='yes'
26851fi
26852
26853
26854if test "$with_bzlib" != 'yes'; then
26855 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26856fi
26857
26858have_bzlib='no'
26859if test "$with_bzlib" != 'no'; then
26860 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26862$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026864$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26866$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026867 failed=0
26868 passed=0
26869 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026870 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026871if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026872 passed=`expr $passed + 1`
26873else
26874 failed=`expr $failed + 1`
26875fi
26876
26877
cristy8b350f62009-11-15 23:12:43 +000026878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026879$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026880if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026881 $as_echo_n "(cached) " >&6
26882else
26883 ac_check_lib_save_LIBS=$LIBS
26884LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026886/* end confdefs.h. */
26887
26888/* Override any GCC internal prototype to avoid an error.
26889 Use char because int might match the return type of a GCC
26890 builtin and then its argument prototype would still apply. */
26891#ifdef __cplusplus
26892extern "C"
26893#endif
26894char BZ2_bzDecompress ();
26895int
26896main ()
26897{
26898return BZ2_bzDecompress ();
26899 ;
26900 return 0;
26901}
26902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26905else
cristy8b350f62009-11-15 23:12:43 +000026906 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026907fi
cristy8b350f62009-11-15 23:12:43 +000026908rm -f core conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026910LIBS=$ac_check_lib_save_LIBS
26911fi
cristy8b350f62009-11-15 23:12:43 +000026912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026913$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026914if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 found_libbz=`expr $found_libbz + 1`
26916fi
26917
26918 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026921if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026922 $as_echo_n "(cached) " >&6
26923else
26924 ac_check_lib_save_LIBS=$LIBS
26925LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026927/* end confdefs.h. */
26928
26929/* Override any GCC internal prototype to avoid an error.
26930 Use char because int might match the return type of a GCC
26931 builtin and then its argument prototype would still apply. */
26932#ifdef __cplusplus
26933extern "C"
26934#endif
26935char _imp__BZ2_decompress ();
26936int
26937main ()
26938{
26939return _imp__BZ2_decompress ();
26940 ;
26941 return 0;
26942}
26943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026945 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26946else
cristy8b350f62009-11-15 23:12:43 +000026947 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026948fi
cristy8b350f62009-11-15 23:12:43 +000026949rm -f core conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026951LIBS=$ac_check_lib_save_LIBS
26952fi
cristy8b350f62009-11-15 23:12:43 +000026953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026954$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026955if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026956 found_libbz=`expr $found_libbz + 1`
26957fi
26958
26959 fi
26960 if test $found_libbz -gt 0; then
26961 passed=`expr $passed + 1`
26962 else
26963 failed=`expr $failed + 1`
26964 fi
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026966$as_echo_n "checking if BZLIB package is complete... " >&6; }
26967 if test $passed -gt 0; then
26968 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26970$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026971 have_bzlib='no (failed tests)'
26972 else
26973 BZLIB_LIBS='-lbz2'
26974 LIBS="$BZLIB_LIBS $LIBS"
26975
cristy8b350f62009-11-15 23:12:43 +000026976$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026977
cristyad38abe2012-12-23 23:03:21 +000026978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26979$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026980 have_bzlib='yes'
26981 fi
26982 else
cristyad38abe2012-12-23 23:03:21 +000026983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26984$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026985 fi
26986fi
cristy73bd4a52010-10-05 11:24:23 +000026987 if test "$have_bzlib" = 'yes'; then
26988 BZLIB_DELEGATE_TRUE=
26989 BZLIB_DELEGATE_FALSE='#'
26990else
26991 BZLIB_DELEGATE_TRUE='#'
26992 BZLIB_DELEGATE_FALSE=
26993fi
26994
cristy3ed852e2009-09-05 21:47:34 +000026995
26996
26997#
26998# Find the X11 include and library directories.
26999#
27000IPC_LIBS=''
27001X11_LIBS=''
27002XEXT_LIBS=''
27003XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027005$as_echo_n "checking for X... " >&6; }
27006
27007
27008# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027009if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027010 withval=$with_x;
27011fi
27012
27013# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27014if test "x$with_x" = xno; then
27015 # The user explicitly disabled X.
27016 have_x=disabled
27017else
27018 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027019 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027020 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027021 $as_echo_n "(cached) " >&6
27022else
27023 # One or both of the vars are not set, and there is no cached value.
27024ac_x_includes=no ac_x_libraries=no
27025rm -f -r conftest.dir
27026if mkdir conftest.dir; then
27027 cd conftest.dir
27028 cat >Imakefile <<'_ACEOF'
27029incroot:
27030 @echo incroot='${INCROOT}'
27031usrlibdir:
27032 @echo usrlibdir='${USRLIBDIR}'
27033libdir:
27034 @echo libdir='${LIBDIR}'
27035_ACEOF
27036 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027037 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027038 for ac_var in incroot usrlibdir libdir; do
27039 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27040 done
27041 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27042 for ac_extension in a so sl dylib la dll; do
27043 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27044 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27045 ac_im_usrlibdir=$ac_im_libdir; break
27046 fi
27047 done
27048 # Screen out bogus values from the imake configuration. They are
27049 # bogus both because they are the default anyway, and because
27050 # using them would break gcc on systems where it needs fixed includes.
27051 case $ac_im_incroot in
27052 /usr/include) ac_x_includes= ;;
27053 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27054 esac
27055 case $ac_im_usrlibdir in
27056 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27057 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27058 esac
27059 fi
27060 cd ..
27061 rm -f -r conftest.dir
27062fi
27063
27064# Standard set of common directories for X headers.
27065# Check X11 before X11Rn because it is often a symlink to the current release.
27066ac_x_header_dirs='
27067/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027068/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027069/usr/X11R6/include
27070/usr/X11R5/include
27071/usr/X11R4/include
27072
27073/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027074/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027075/usr/include/X11R6
27076/usr/include/X11R5
27077/usr/include/X11R4
27078
27079/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027080/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027081/usr/local/X11R6/include
27082/usr/local/X11R5/include
27083/usr/local/X11R4/include
27084
27085/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027086/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027087/usr/local/include/X11R6
27088/usr/local/include/X11R5
27089/usr/local/include/X11R4
27090
27091/usr/X386/include
27092/usr/x386/include
27093/usr/XFree86/include/X11
27094
27095/usr/include
27096/usr/local/include
27097/usr/unsupported/include
27098/usr/athena/include
27099/usr/local/x11r5/include
27100/usr/lpp/Xamples/include
27101
27102/usr/openwin/include
27103/usr/openwin/share/include'
27104
27105if test "$ac_x_includes" = no; then
27106 # Guess where to find include files, by looking for Xlib.h.
27107 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027109/* end confdefs.h. */
27110#include <X11/Xlib.h>
27111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027112if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027113 # We can compile using X headers with no special include directory.
27114ac_x_includes=
27115else
cristyc7083c12009-10-14 03:16:55 +000027116 for ac_dir in $ac_x_header_dirs; do
27117 if test -r "$ac_dir/X11/Xlib.h"; then
27118 ac_x_includes=$ac_dir
27119 break
27120 fi
27121done
27122fi
cristyda16f162011-02-19 23:52:17 +000027123rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027124fi # $ac_x_includes = no
27125
27126if test "$ac_x_libraries" = no; then
27127 # Check for the libraries.
27128 # See if we find them without any special options.
27129 # Don't add to $LIBS permanently.
27130 ac_save_LIBS=$LIBS
27131 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027133/* end confdefs.h. */
27134#include <X11/Xlib.h>
27135int
27136main ()
27137{
27138XrmInitialize ()
27139 ;
27140 return 0;
27141}
27142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027143if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027144 LIBS=$ac_save_LIBS
27145# We can link X programs with no special library path.
27146ac_x_libraries=
27147else
cristy8b350f62009-11-15 23:12:43 +000027148 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027149for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27150do
27151 # Don't even attempt the hair of trying to link an X program!
27152 for ac_extension in a so sl dylib la dll; do
27153 if test -r "$ac_dir/libX11.$ac_extension"; then
27154 ac_x_libraries=$ac_dir
27155 break 2
27156 fi
27157 done
27158done
27159fi
cristy8b350f62009-11-15 23:12:43 +000027160rm -f core conftest.err conftest.$ac_objext \
27161 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027162fi # $ac_x_libraries = no
27163
27164case $ac_x_includes,$ac_x_libraries in #(
27165 no,* | *,no | *\'*)
27166 # Didn't find X, or a directory has "'" in its name.
27167 ac_cv_have_x="have_x=no";; #(
27168 *)
27169 # Record where we found X for the cache.
27170 ac_cv_have_x="have_x=yes\
27171 ac_x_includes='$ac_x_includes'\
27172 ac_x_libraries='$ac_x_libraries'"
27173esac
27174fi
27175;; #(
27176 *) have_x=yes;;
27177 esac
27178 eval "$ac_cv_have_x"
27179fi # $with_x != no
27180
27181if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027183$as_echo "$have_x" >&6; }
27184 no_x=yes
27185else
27186 # If each of the values was on the command line, it overrides each guess.
27187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27189 # Update the cache value to reflect the command line values.
27190 ac_cv_have_x="have_x=yes\
27191 ac_x_includes='$x_includes'\
27192 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027194$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27195fi
27196
cristy3ed852e2009-09-05 21:47:34 +000027197if test "$no_x" = yes; then
27198 # Not all programs may use this symbol, but it does not hurt to define it.
27199
cristy8b350f62009-11-15 23:12:43 +000027200$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027201
27202 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27203else
27204 if test -n "$x_includes"; then
27205 X_CFLAGS="$X_CFLAGS -I$x_includes"
27206 fi
27207
27208 # It would also be nice to do this for all -L options, not just this one.
27209 if test -n "$x_libraries"; then
27210 X_LIBS="$X_LIBS -L$x_libraries"
27211 # For Solaris; some versions of Sun CC require a space after -R and
27212 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27215 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27216 ac_xsave_c_werror_flag=$ac_c_werror_flag
27217 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027219/* end confdefs.h. */
27220
27221int
27222main ()
27223{
27224
27225 ;
27226 return 0;
27227}
27228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027229if ac_fn_c_try_link "$LINENO"; then :
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027231$as_echo "no" >&6; }
27232 X_LIBS="$X_LIBS -R$x_libraries"
27233else
cristy8b350f62009-11-15 23:12:43 +000027234 LIBS="$ac_xsave_LIBS -R $x_libraries"
27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027236/* end confdefs.h. */
27237
27238int
27239main ()
27240{
27241
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo "yes" >&6; }
27249 X_LIBS="$X_LIBS -R $x_libraries"
27250else
cristy8b350f62009-11-15 23:12:43 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "neither works" >&6; }
27253fi
cristy8b350f62009-11-15 23:12:43 +000027254rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027256fi
cristy8b350f62009-11-15 23:12:43 +000027257rm -f core conftest.err conftest.$ac_objext \
27258 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027259 ac_c_werror_flag=$ac_xsave_c_werror_flag
27260 LIBS=$ac_xsave_LIBS
27261 fi
27262
27263 # Check for system-dependent libraries X programs must link with.
27264 # Do this before checking for the system-independent R6 libraries
27265 # (-lICE), since we may need -lsocket or whatever for X linking.
27266
27267 if test "$ISC" = yes; then
27268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27269 else
27270 # Martyn Johnson says this is needed for Ultrix, if the X
27271 # libraries were built with DECnet support. And Karl Berry says
27272 # the Alpha needs dnet_stub (dnet does not exist).
27273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027275/* end confdefs.h. */
27276
27277/* Override any GCC internal prototype to avoid an error.
27278 Use char because int might match the return type of a GCC
27279 builtin and then its argument prototype would still apply. */
27280#ifdef __cplusplus
27281extern "C"
27282#endif
27283char XOpenDisplay ();
27284int
27285main ()
27286{
27287return XOpenDisplay ();
27288 ;
27289 return 0;
27290}
27291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027292if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027293
cristy8b350f62009-11-15 23:12:43 +000027294else
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027297if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 $as_echo_n "(cached) " >&6
27299else
27300 ac_check_lib_save_LIBS=$LIBS
27301LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027303/* end confdefs.h. */
27304
27305/* Override any GCC internal prototype to avoid an error.
27306 Use char because int might match the return type of a GCC
27307 builtin and then its argument prototype would still apply. */
27308#ifdef __cplusplus
27309extern "C"
27310#endif
27311char dnet_ntoa ();
27312int
27313main ()
27314{
27315return dnet_ntoa ();
27316 ;
27317 return 0;
27318}
27319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027321 ac_cv_lib_dnet_dnet_ntoa=yes
27322else
cristy8b350f62009-11-15 23:12:43 +000027323 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027324fi
cristy8b350f62009-11-15 23:12:43 +000027325rm -f core conftest.err conftest.$ac_objext \
27326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027327LIBS=$ac_check_lib_save_LIBS
27328fi
cristy8b350f62009-11-15 23:12:43 +000027329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027330$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027331if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27333fi
27334
27335 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027338if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 $as_echo_n "(cached) " >&6
27340else
27341 ac_check_lib_save_LIBS=$LIBS
27342LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027344/* end confdefs.h. */
27345
27346/* Override any GCC internal prototype to avoid an error.
27347 Use char because int might match the return type of a GCC
27348 builtin and then its argument prototype would still apply. */
27349#ifdef __cplusplus
27350extern "C"
27351#endif
27352char dnet_ntoa ();
27353int
27354main ()
27355{
27356return dnet_ntoa ();
27357 ;
27358 return 0;
27359}
27360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27363else
cristy8b350f62009-11-15 23:12:43 +000027364 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027365fi
cristy8b350f62009-11-15 23:12:43 +000027366rm -f core conftest.err conftest.$ac_objext \
27367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027368LIBS=$ac_check_lib_save_LIBS
27369fi
cristy8b350f62009-11-15 23:12:43 +000027370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027371$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027372if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27374fi
27375
27376 fi
27377fi
cristy8b350f62009-11-15 23:12:43 +000027378rm -f core conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027380 LIBS="$ac_xsave_LIBS"
27381
27382 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27383 # to get the SysV transport functions.
27384 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27385 # needs -lnsl.
27386 # The nsl library prevents programs from opening the X display
27387 # on Irix 5.2, according to T.E. Dickey.
27388 # The functions gethostbyname, getservbyname, and inet_addr are
27389 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027390 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027391if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027392
cristy3ed852e2009-09-05 21:47:34 +000027393fi
27394
cristy3ed852e2009-09-05 21:47:34 +000027395 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027398if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 $as_echo_n "(cached) " >&6
27400else
27401 ac_check_lib_save_LIBS=$LIBS
27402LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027404/* end confdefs.h. */
27405
27406/* Override any GCC internal prototype to avoid an error.
27407 Use char because int might match the return type of a GCC
27408 builtin and then its argument prototype would still apply. */
27409#ifdef __cplusplus
27410extern "C"
27411#endif
27412char gethostbyname ();
27413int
27414main ()
27415{
27416return gethostbyname ();
27417 ;
27418 return 0;
27419}
27420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 ac_cv_lib_nsl_gethostbyname=yes
27423else
cristy8b350f62009-11-15 23:12:43 +000027424 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027425fi
cristy8b350f62009-11-15 23:12:43 +000027426rm -f core conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428LIBS=$ac_check_lib_save_LIBS
27429fi
cristy8b350f62009-11-15 23:12:43 +000027430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027431$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027432if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27434fi
27435
27436 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027438$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027439if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027440 $as_echo_n "(cached) " >&6
27441else
27442 ac_check_lib_save_LIBS=$LIBS
27443LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027445/* end confdefs.h. */
27446
27447/* Override any GCC internal prototype to avoid an error.
27448 Use char because int might match the return type of a GCC
27449 builtin and then its argument prototype would still apply. */
27450#ifdef __cplusplus
27451extern "C"
27452#endif
27453char gethostbyname ();
27454int
27455main ()
27456{
27457return gethostbyname ();
27458 ;
27459 return 0;
27460}
27461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 ac_cv_lib_bsd_gethostbyname=yes
27464else
cristy8b350f62009-11-15 23:12:43 +000027465 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027466fi
cristy8b350f62009-11-15 23:12:43 +000027467rm -f core conftest.err conftest.$ac_objext \
27468 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027469LIBS=$ac_check_lib_save_LIBS
27470fi
cristy8b350f62009-11-15 23:12:43 +000027471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027473if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27475fi
27476
27477 fi
27478 fi
27479
27480 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27481 # socket/setsockopt and other routines are undefined under SCO ODT
27482 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27483 # on later versions), says Simon Leinen: it contains gethostby*
27484 # variants that don't use the name server (or something). -lsocket
27485 # must be given before -lnsl if both are needed. We assume that
27486 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027487 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027488if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027489
cristy3ed852e2009-09-05 21:47:34 +000027490fi
27491
cristy3ed852e2009-09-05 21:47:34 +000027492 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027494$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027495if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 $as_echo_n "(cached) " >&6
27497else
27498 ac_check_lib_save_LIBS=$LIBS
27499LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027501/* end confdefs.h. */
27502
27503/* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27506#ifdef __cplusplus
27507extern "C"
27508#endif
27509char connect ();
27510int
27511main ()
27512{
27513return connect ();
27514 ;
27515 return 0;
27516}
27517_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027518if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027519 ac_cv_lib_socket_connect=yes
27520else
cristy8b350f62009-11-15 23:12:43 +000027521 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027522fi
cristy8b350f62009-11-15 23:12:43 +000027523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027525LIBS=$ac_check_lib_save_LIBS
27526fi
cristy8b350f62009-11-15 23:12:43 +000027527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027529if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27531fi
27532
27533 fi
27534
27535 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027536 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027537if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027538
cristy3ed852e2009-09-05 21:47:34 +000027539fi
27540
cristy3ed852e2009-09-05 21:47:34 +000027541 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027543$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027544if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027545 $as_echo_n "(cached) " >&6
27546else
27547 ac_check_lib_save_LIBS=$LIBS
27548LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027550/* end confdefs.h. */
27551
27552/* Override any GCC internal prototype to avoid an error.
27553 Use char because int might match the return type of a GCC
27554 builtin and then its argument prototype would still apply. */
27555#ifdef __cplusplus
27556extern "C"
27557#endif
27558char remove ();
27559int
27560main ()
27561{
27562return remove ();
27563 ;
27564 return 0;
27565}
27566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027567if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 ac_cv_lib_posix_remove=yes
27569else
cristy8b350f62009-11-15 23:12:43 +000027570 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027571fi
cristy8b350f62009-11-15 23:12:43 +000027572rm -f core conftest.err conftest.$ac_objext \
27573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027574LIBS=$ac_check_lib_save_LIBS
27575fi
cristy8b350f62009-11-15 23:12:43 +000027576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027577$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027578if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27580fi
27581
27582 fi
27583
27584 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027585 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027586if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027587
cristy3ed852e2009-09-05 21:47:34 +000027588fi
27589
cristy3ed852e2009-09-05 21:47:34 +000027590 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027593if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 $as_echo_n "(cached) " >&6
27595else
27596 ac_check_lib_save_LIBS=$LIBS
27597LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027598cat 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 shmat ();
27608int
27609main ()
27610{
27611return shmat ();
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 ac_cv_lib_ipc_shmat=yes
27618else
cristy8b350f62009-11-15 23:12:43 +000027619 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027620fi
cristy8b350f62009-11-15 23:12:43 +000027621rm -f core conftest.err conftest.$ac_objext \
27622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027623LIBS=$ac_check_lib_save_LIBS
27624fi
cristy8b350f62009-11-15 23:12:43 +000027625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027626$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027627if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27629fi
27630
27631 fi
27632 fi
27633
27634 # Check for libraries that X11R6 Xt/Xaw programs need.
27635 ac_save_LDFLAGS=$LDFLAGS
27636 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27637 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27638 # check for ICE first), but we must link in the order -lSM -lICE or
27639 # we get undefined symbols. So assume we have SM if we have ICE.
27640 # These have to be linked with before -lX11, unlike the other
27641 # libraries we check for below, so use a different variable.
27642 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027645if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027646 $as_echo_n "(cached) " >&6
27647else
27648 ac_check_lib_save_LIBS=$LIBS
27649LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651/* end confdefs.h. */
27652
27653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27656#ifdef __cplusplus
27657extern "C"
27658#endif
27659char IceConnectionNumber ();
27660int
27661main ()
27662{
27663return IceConnectionNumber ();
27664 ;
27665 return 0;
27666}
27667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 ac_cv_lib_ICE_IceConnectionNumber=yes
27670else
cristy8b350f62009-11-15 23:12:43 +000027671 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027672fi
cristy8b350f62009-11-15 23:12:43 +000027673rm -f core conftest.err conftest.$ac_objext \
27674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027675LIBS=$ac_check_lib_save_LIBS
27676fi
cristy8b350f62009-11-15 23:12:43 +000027677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027679if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27681fi
27682
27683 LDFLAGS=$ac_save_LDFLAGS
27684
27685fi
27686
27687if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27689$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27693$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027694 LDFLAGS="$LDFLAGS $X_LIBS"
27695 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27696 LIBS="$X11_LIBS $LIBS"
27697 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27698
27699
cristy8b350f62009-11-15 23:12:43 +000027700$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027701
27702 #
27703 # Check for X11 shared memory extension
27704 #
27705 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027706 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027707if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 have_shmctl='yes'
27709fi
27710
27711 if test "$have_shmctl" != 'yes'; then
27712 PERSIST_LIBS=$LIBS
27713 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027715/* end confdefs.h. */
27716
27717/* Override any GCC internal prototype to avoid an error.
27718 Use char because int might match the return type of a GCC
27719 builtin and then its argument prototype would still apply. */
27720#ifdef __cplusplus
27721extern "C"
27722#endif
27723char shmctl ();
27724int
27725main ()
27726{
27727return shmctl ();
27728 ;
27729 return 0;
27730}
27731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027734fi
cristy8b350f62009-11-15 23:12:43 +000027735rm -f core conftest.err conftest.$ac_objext \
27736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027737 LIBS=$PERSIST_LIBS
27738 fi
27739
27740 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027742$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027743if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 $as_echo_n "(cached) " >&6
27745else
27746 ac_check_lib_save_LIBS=$LIBS
27747LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027749/* end confdefs.h. */
27750
27751/* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27754#ifdef __cplusplus
27755extern "C"
27756#endif
27757char XShmAttach ();
27758int
27759main ()
27760{
27761return XShmAttach ();
27762 ;
27763 return 0;
27764}
27765_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027766if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027767 ac_cv_lib_Xext_XShmAttach=yes
27768else
cristy8b350f62009-11-15 23:12:43 +000027769 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027770fi
cristy8b350f62009-11-15 23:12:43 +000027771rm -f core conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027773LIBS=$ac_check_lib_save_LIBS
27774fi
cristy8b350f62009-11-15 23:12:43 +000027775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027777if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027779$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027780
27781fi
27782
27783 fi
27784
27785 #
27786 # Check for X11 shape extension
27787 #
cristy8b350f62009-11-15 23:12:43 +000027788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027790if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 $as_echo_n "(cached) " >&6
27792else
27793 ac_check_lib_save_LIBS=$LIBS
27794LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027796/* end confdefs.h. */
27797
27798/* Override any GCC internal prototype to avoid an error.
27799 Use char because int might match the return type of a GCC
27800 builtin and then its argument prototype would still apply. */
27801#ifdef __cplusplus
27802extern "C"
27803#endif
27804char XShapeCombineMask ();
27805int
27806main ()
27807{
27808return XShapeCombineMask ();
27809 ;
27810 return 0;
27811}
27812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027814 ac_cv_lib_Xext_XShapeCombineMask=yes
27815else
cristy8b350f62009-11-15 23:12:43 +000027816 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027817fi
cristy8b350f62009-11-15 23:12:43 +000027818rm -f core conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027820LIBS=$ac_check_lib_save_LIBS
27821fi
cristy8b350f62009-11-15 23:12:43 +000027822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027824if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027826$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027827
27828fi
27829
cristy8b350f62009-11-15 23:12:43 +000027830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 $as_echo_n "(cached) " >&6
27834else
27835 ac_check_lib_save_LIBS=$LIBS
27836LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027838/* end confdefs.h. */
27839
27840/* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27843#ifdef __cplusplus
27844extern "C"
27845#endif
27846char XtSetEventDispatcher ();
27847int
27848main ()
27849{
27850return XtSetEventDispatcher ();
27851 ;
27852 return 0;
27853}
27854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27857else
cristy8b350f62009-11-15 23:12:43 +000027858 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027859fi
cristy8b350f62009-11-15 23:12:43 +000027860rm -f core conftest.err conftest.$ac_objext \
27861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027862LIBS=$ac_check_lib_save_LIBS
27863fi
cristy8b350f62009-11-15 23:12:43 +000027864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027866if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 XT_LIBS='-lXt'
27868fi
27869
27870 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27871fi
27872if test "$no_x" != 'yes'; then
27873 have_x='yes'
27874else
27875 have_x='no'
27876fi
cristy73bd4a52010-10-05 11:24:23 +000027877 if test "$have_x" = 'yes'; then
27878 X11_DELEGATE_TRUE=
27879 X11_DELEGATE_FALSE='#'
27880else
27881 X11_DELEGATE_TRUE='#'
27882 X11_DELEGATE_FALSE=
27883fi
27884
cristy3ed852e2009-09-05 21:47:34 +000027885
27886
27887
27888
27889#
27890# Check for ZLIB
27891#
27892
27893# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027894if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 withval=$with_zlib; with_zlib=$withval
27896else
27897 with_zlib='yes'
27898fi
27899
27900
27901if test "$with_zlib" != 'yes'; then
27902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27903fi
27904
27905have_zlib='no'
27906ZLIB_LIBS=''
27907if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27909$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027911$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27913$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027914 ZLIB_LIBS=''
27915 failed=0
27916 passed=0
cristy8b350f62009-11-15 23:12:43 +000027917 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027918if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027919 passed=`expr $passed + 1`
27920else
27921 failed=`expr $failed + 1`
27922fi
27923
27924
cristy8b350f62009-11-15 23:12:43 +000027925 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027926if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 passed=`expr $passed + 1`
27928else
27929 failed=`expr $failed + 1`
27930fi
27931
27932
cristy8b350f62009-11-15 23:12:43 +000027933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027934$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027935if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027936 $as_echo_n "(cached) " >&6
27937else
27938 ac_check_lib_save_LIBS=$LIBS
27939LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027941/* end confdefs.h. */
27942
27943/* Override any GCC internal prototype to avoid an error.
27944 Use char because int might match the return type of a GCC
27945 builtin and then its argument prototype would still apply. */
27946#ifdef __cplusplus
27947extern "C"
27948#endif
27949char compress ();
27950int
27951main ()
27952{
27953return compress ();
27954 ;
27955 return 0;
27956}
27957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 ac_cv_lib_z_compress=yes
27960else
cristy8b350f62009-11-15 23:12:43 +000027961 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027962fi
cristy8b350f62009-11-15 23:12:43 +000027963rm -f core conftest.err conftest.$ac_objext \
27964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027965LIBS=$ac_check_lib_save_LIBS
27966fi
cristy8b350f62009-11-15 23:12:43 +000027967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027969if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027970 passed=`expr $passed + 1`
27971else
27972 failed=`expr $failed + 1`
27973fi
27974
cristy8b350f62009-11-15 23:12:43 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027976$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027977if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027978 $as_echo_n "(cached) " >&6
27979else
27980 ac_check_lib_save_LIBS=$LIBS
27981LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027983/* end confdefs.h. */
27984
27985/* Override any GCC internal prototype to avoid an error.
27986 Use char because int might match the return type of a GCC
27987 builtin and then its argument prototype would still apply. */
27988#ifdef __cplusplus
27989extern "C"
27990#endif
27991char uncompress ();
27992int
27993main ()
27994{
27995return uncompress ();
27996 ;
27997 return 0;
27998}
27999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 ac_cv_lib_z_uncompress=yes
28002else
cristy8b350f62009-11-15 23:12:43 +000028003 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028004fi
cristy8b350f62009-11-15 23:12:43 +000028005rm -f core conftest.err conftest.$ac_objext \
28006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028007LIBS=$ac_check_lib_save_LIBS
28008fi
cristy8b350f62009-11-15 23:12:43 +000028009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028010$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028011if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 passed=`expr $passed + 1`
28013else
28014 failed=`expr $failed + 1`
28015fi
28016
cristy8b350f62009-11-15 23:12:43 +000028017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028018$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028019if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028020 $as_echo_n "(cached) " >&6
28021else
28022 ac_check_lib_save_LIBS=$LIBS
28023LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028025/* end confdefs.h. */
28026
28027/* Override any GCC internal prototype to avoid an error.
28028 Use char because int might match the return type of a GCC
28029 builtin and then its argument prototype would still apply. */
28030#ifdef __cplusplus
28031extern "C"
28032#endif
28033char deflate ();
28034int
28035main ()
28036{
28037return deflate ();
28038 ;
28039 return 0;
28040}
28041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028043 ac_cv_lib_z_deflate=yes
28044else
cristy8b350f62009-11-15 23:12:43 +000028045 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028046fi
cristy8b350f62009-11-15 23:12:43 +000028047rm -f core conftest.err conftest.$ac_objext \
28048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028049LIBS=$ac_check_lib_save_LIBS
28050fi
cristy8b350f62009-11-15 23:12:43 +000028051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028052$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028053if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 passed=`expr $passed + 1`
28055else
28056 failed=`expr $failed + 1`
28057fi
28058
cristy8b350f62009-11-15 23:12:43 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028060$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028061if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 $as_echo_n "(cached) " >&6
28063else
28064 ac_check_lib_save_LIBS=$LIBS
28065LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067/* end confdefs.h. */
28068
28069/* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
28072#ifdef __cplusplus
28073extern "C"
28074#endif
28075char inflate ();
28076int
28077main ()
28078{
28079return inflate ();
28080 ;
28081 return 0;
28082}
28083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028085 ac_cv_lib_z_inflate=yes
28086else
cristy8b350f62009-11-15 23:12:43 +000028087 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028088fi
cristy8b350f62009-11-15 23:12:43 +000028089rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028091LIBS=$ac_check_lib_save_LIBS
28092fi
cristy8b350f62009-11-15 23:12:43 +000028093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028095if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028096 passed=`expr $passed + 1`
28097else
28098 failed=`expr $failed + 1`
28099fi
28100
cristy8b350f62009-11-15 23:12:43 +000028101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028102$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028103if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028104 $as_echo_n "(cached) " >&6
28105else
28106 ac_check_lib_save_LIBS=$LIBS
28107LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109/* end confdefs.h. */
28110
28111/* Override any GCC internal prototype to avoid an error.
28112 Use char because int might match the return type of a GCC
28113 builtin and then its argument prototype would still apply. */
28114#ifdef __cplusplus
28115extern "C"
28116#endif
28117char gzseek ();
28118int
28119main ()
28120{
28121return gzseek ();
28122 ;
28123 return 0;
28124}
28125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028127 ac_cv_lib_z_gzseek=yes
28128else
cristy8b350f62009-11-15 23:12:43 +000028129 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028130fi
cristy8b350f62009-11-15 23:12:43 +000028131rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133LIBS=$ac_check_lib_save_LIBS
28134fi
cristy8b350f62009-11-15 23:12:43 +000028135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028137if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028138 passed=`expr $passed + 1`
28139else
28140 failed=`expr $failed + 1`
28141fi
28142
cristy8b350f62009-11-15 23:12:43 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028144$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028145if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028146 $as_echo_n "(cached) " >&6
28147else
28148 ac_check_lib_save_LIBS=$LIBS
28149LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028151/* end confdefs.h. */
28152
28153/* Override any GCC internal prototype to avoid an error.
28154 Use char because int might match the return type of a GCC
28155 builtin and then its argument prototype would still apply. */
28156#ifdef __cplusplus
28157extern "C"
28158#endif
28159char gztell ();
28160int
28161main ()
28162{
28163return gztell ();
28164 ;
28165 return 0;
28166}
28167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028169 ac_cv_lib_z_gztell=yes
28170else
cristy8b350f62009-11-15 23:12:43 +000028171 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028172fi
cristy8b350f62009-11-15 23:12:43 +000028173rm -f core conftest.err conftest.$ac_objext \
28174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028175LIBS=$ac_check_lib_save_LIBS
28176fi
cristy8b350f62009-11-15 23:12:43 +000028177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028179if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028180 passed=`expr $passed + 1`
28181else
28182 failed=`expr $failed + 1`
28183fi
28184
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking if ZLIB package is complete... " >&6; }
28187 if test $passed -gt 0; then
28188 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28190$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028191 have_zlib='no (failed tests)'
28192 else
28193 ZLIB_LIBS='-lz'
28194 LIBS="$ZLIB_LIBS $LIBS"
28195
cristy8b350f62009-11-15 23:12:43 +000028196$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028197
cristyad38abe2012-12-23 23:03:21 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28199$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028200 have_zlib='yes'
28201 fi
28202 else
cristyad38abe2012-12-23 23:03:21 +000028203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28204$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028205 fi
28206fi
cristy73bd4a52010-10-05 11:24:23 +000028207 if test "$have_zlib" = 'yes'; then
28208 ZLIB_DELEGATE_TRUE=
28209 ZLIB_DELEGATE_FALSE='#'
28210else
28211 ZLIB_DELEGATE_TRUE='#'
28212 ZLIB_DELEGATE_FALSE=
28213fi
28214
cristy3ed852e2009-09-05 21:47:34 +000028215
28216
cristy5eef09f2012-10-16 12:08:28 +000028217# whether modules are built or not.
28218with_ltdl='yes'
28219have_ltdl='no'
28220LTDL_LIBS=''
28221if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28223$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28225$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28227$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028228 failed=0
28229 passed=0
28230 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28231if test "x$ac_cv_header_ltdl_h" = xyes; then :
28232 passed=`expr $passed + 1`
28233else
28234 failed=`expr $failed + 1`
28235fi
28236
28237
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28239$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28240if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28241 $as_echo_n "(cached) " >&6
28242else
28243 ac_check_lib_save_LIBS=$LIBS
28244LIBS="-lltdl $LIBS"
28245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28246/* end confdefs.h. */
28247
28248/* Override any GCC internal prototype to avoid an error.
28249 Use char because int might match the return type of a GCC
28250 builtin and then its argument prototype would still apply. */
28251#ifdef __cplusplus
28252extern "C"
28253#endif
28254char lt_dlinit ();
28255int
28256main ()
28257{
28258return lt_dlinit ();
28259 ;
28260 return 0;
28261}
28262_ACEOF
28263if ac_fn_c_try_link "$LINENO"; then :
28264 ac_cv_lib_ltdl_lt_dlinit=yes
28265else
28266 ac_cv_lib_ltdl_lt_dlinit=no
28267fi
28268rm -f core conftest.err conftest.$ac_objext \
28269 conftest$ac_exeext conftest.$ac_ext
28270LIBS=$ac_check_lib_save_LIBS
28271fi
28272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28273$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28274if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28275 passed=`expr $passed + 1`
28276else
28277 failed=`expr $failed + 1`
28278fi
28279
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28281$as_echo_n "checking if libltdl package is complete... " >&6; }
28282 if test $passed -gt 0 ; then
28283 if test $failed -gt 0 ; then
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28285$as_echo "no -- some components failed test" >&6; }
28286 have_ltdl='no (failed tests)'
28287 else
28288 LTDL_LIBS='-lltdl'
28289 LIBS="$LTDL_LIBS $LIBS"
28290
28291$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28292
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28294$as_echo "yes" >&6; }
28295 have_ltdl='yes'
28296 fi
28297 else
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28299$as_echo "no" >&6; }
28300 fi
cristyaf4cbf32012-10-16 23:47:41 +000028301 if test "$have_ltdl" != 'yes' ; then
28302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28304as_fn_error 1 "libltdl is required for modules build
28305See \`config.log' for more details" "$LINENO" 5; }
28306 fi
cristy5eef09f2012-10-16 12:08:28 +000028307fi
28308 if test "$have_ltdl" != 'no'; then
28309 WITH_LTDL_TRUE=
28310 WITH_LTDL_FALSE='#'
28311else
28312 WITH_LTDL_TRUE='#'
28313 WITH_LTDL_FALSE=
28314fi
28315
28316
cristy3ed852e2009-09-05 21:47:34 +000028317#
28318# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28319#
28320LIB_DL=''
28321if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028324if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 $as_echo_n "(cached) " >&6
28326else
28327 ac_check_lib_save_LIBS=$LIBS
28328LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028330/* end confdefs.h. */
28331
28332/* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
28335#ifdef __cplusplus
28336extern "C"
28337#endif
28338char dlopen ();
28339int
28340main ()
28341{
28342return dlopen ();
28343 ;
28344 return 0;
28345}
28346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028348 ac_cv_lib_dl_dlopen=yes
28349else
cristy8b350f62009-11-15 23:12:43 +000028350 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028351fi
cristy8b350f62009-11-15 23:12:43 +000028352rm -f core conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028354LIBS=$ac_check_lib_save_LIBS
28355fi
cristy8b350f62009-11-15 23:12:43 +000028356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028358if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028359 LIB_DL='-ldl'
28360fi
28361
28362 LIBS="$LIB_DL $LIBS"
28363fi
28364
28365
28366
28367#
28368# Check for Autotrace delegate library.
28369#
28370
28371# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028372if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028373 withval=$with_autotrace; with_autotrace=$withval
28374else
28375 with_autotrace='no'
28376fi
28377
28378
28379if test "$with_autotrace" != 'yes'; then
28380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28381fi
28382
28383have_autotrace='no'
28384AUTOTRACE_CFLAGS=""
28385AUTOTRACE_LIBS=""
28386AUTOTRACE_PKG=""
28387if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28389$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028390
28391pkg_failed=no
28392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28393$as_echo_n "checking for AUTOTRACE... " >&6; }
28394
28395if test -n "$AUTOTRACE_CFLAGS"; then
28396 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28397 elif test -n "$PKG_CONFIG"; then
28398 if test -n "$PKG_CONFIG" && \
28399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28400 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28401 ac_status=$?
28402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28403 test $ac_status = 0; }; then
28404 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28405else
28406 pkg_failed=yes
28407fi
28408 else
28409 pkg_failed=untried
28410fi
28411if test -n "$AUTOTRACE_LIBS"; then
28412 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28413 elif test -n "$PKG_CONFIG"; then
28414 if test -n "$PKG_CONFIG" && \
28415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28416 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28417 ac_status=$?
28418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28419 test $ac_status = 0; }; then
28420 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28421else
28422 pkg_failed=yes
28423fi
28424 else
28425 pkg_failed=untried
28426fi
28427
28428
28429
28430if test $pkg_failed = yes; then
28431
28432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28433 _pkg_short_errors_supported=yes
28434else
28435 _pkg_short_errors_supported=no
28436fi
28437 if test $_pkg_short_errors_supported = yes; then
28438 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28439 else
28440 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28441 fi
28442 # Put the nasty error message in config.log where it belongs
28443 echo "$AUTOTRACE_PKG_ERRORS" >&5
28444
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28446$as_echo "no" >&6; }
28447 have_autotrace=no
28448elif test $pkg_failed = untried; then
28449 have_autotrace=no
28450else
28451 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28452 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28454$as_echo "yes" >&6; }
28455 have_autotrace=yes
28456fi
cristyad38abe2012-12-23 23:03:21 +000028457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28458$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028459fi
28460
28461if test "$have_autotrace" = 'yes'; then
28462 failed=0
28463
cristy8b350f62009-11-15 23:12:43 +000028464$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028465
cristyc6722092012-10-14 00:19:31 +000028466 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028467 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028468 fi
28469fi
28470
cristy73bd4a52010-10-05 11:24:23 +000028471 if test "$have_autotrace" = 'yes'; then
28472 AUTOTRACE_DELEGATE_TRUE=
28473 AUTOTRACE_DELEGATE_FALSE='#'
28474else
28475 AUTOTRACE_DELEGATE_TRUE='#'
28476 AUTOTRACE_DELEGATE_FALSE=
28477fi
28478
cristy3ed852e2009-09-05 21:47:34 +000028479
28480
28481
28482
28483#
28484# Check for Display Postscript delegate library.
28485#
28486
28487# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028488if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 withval=$with_dps; with_dps=$withval
28490else
28491 with_dps='yes'
28492fi
28493
28494
28495if test "$with_dps" != 'yes'; then
28496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28497fi
28498
28499have_dps='no'
28500DPS_LIBS=''
28501if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28503$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28507$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028508 failed=0
28509 passed=0
28510 PERSIST_CPPFLAGS="$CPPFLAGS"
28511 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028512 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 +000028513if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028514 passed=`expr $passed + 1`
28515else
28516 failed=`expr $failed + 1`
28517fi
28518
28519
28520 # DPS issues:
28521 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28522 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28523 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28524 # ImageMagick itself doesn't use -lXt.
28525 have_libdps='no'
28526 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028529if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 $as_echo_n "(cached) " >&6
28531else
28532 ac_check_lib_save_LIBS=$LIBS
28533LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028535/* end confdefs.h. */
28536
28537/* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543char DPSInitialize ();
28544int
28545main ()
28546{
28547return DPSInitialize ();
28548 ;
28549 return 0;
28550}
28551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 ac_cv_lib_dps_DPSInitialize=yes
28554else
cristy8b350f62009-11-15 23:12:43 +000028555 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028556fi
cristy8b350f62009-11-15 23:12:43 +000028557rm -f core conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028559LIBS=$ac_check_lib_save_LIBS
28560fi
cristy8b350f62009-11-15 23:12:43 +000028561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 have_libdps='yes'
28565else
28566 have_libdps='no'
28567fi
28568
28569 if test "$have_libdps" != 'yes'; then
28570 # Unset cache variable so we can try again.
28571 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028573$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028574if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028575 $as_echo_n "(cached) " >&6
28576else
28577 ac_check_lib_save_LIBS=$LIBS
28578LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028580/* end confdefs.h. */
28581
28582/* Override any GCC internal prototype to avoid an error.
28583 Use char because int might match the return type of a GCC
28584 builtin and then its argument prototype would still apply. */
28585#ifdef __cplusplus
28586extern "C"
28587#endif
28588char DPSInitialize ();
28589int
28590main ()
28591{
28592return DPSInitialize ();
28593 ;
28594 return 0;
28595}
28596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028598 ac_cv_lib_dps_DPSInitialize=yes
28599else
cristy8b350f62009-11-15 23:12:43 +000028600 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028601fi
cristy8b350f62009-11-15 23:12:43 +000028602rm -f core conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028604LIBS=$ac_check_lib_save_LIBS
28605fi
cristy8b350f62009-11-15 23:12:43 +000028606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028607$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028608if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028609 have_libdps='yes'
28610else
28611 have_libdps='no'
28612fi
28613
28614 if test "$have_libdps" = 'yes'; then
28615 LIBDPS_XT='-lXt'
28616 fi
28617 fi
28618 if test "$have_libdps" = 'yes'; then
28619 passed=`expr $passed + 1`
28620 else
28621 failed=`expr $failed + 1`
28622 fi
cristy8b350f62009-11-15 23:12:43 +000028623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028625if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028626 $as_echo_n "(cached) " >&6
28627else
28628 ac_check_lib_save_LIBS=$LIBS
28629LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028631/* end confdefs.h. */
28632
28633/* Override any GCC internal prototype to avoid an error.
28634 Use char because int might match the return type of a GCC
28635 builtin and then its argument prototype would still apply. */
28636#ifdef __cplusplus
28637extern "C"
28638#endif
28639char XDPSPixelsPerPoint ();
28640int
28641main ()
28642{
28643return XDPSPixelsPerPoint ();
28644 ;
28645 return 0;
28646}
28647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028648if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028649 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28650else
cristy8b350f62009-11-15 23:12:43 +000028651 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028652fi
cristy8b350f62009-11-15 23:12:43 +000028653rm -f core conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028655LIBS=$ac_check_lib_save_LIBS
28656fi
cristy8b350f62009-11-15 23:12:43 +000028657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028658$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028659if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028660 passed=`expr $passed + 1`
28661else
28662 failed=`expr $failed + 1`
28663fi
28664
cristy8b350f62009-11-15 23:12:43 +000028665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028666$as_echo_n "checking if DPS package is complete... " >&6; }
28667 if test $passed -gt 0; then
28668 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28670$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028671 have_dps='no (failed tests)'
28672 CPPFLAGS="$PERSIST_CPPFLAGS"
28673 else
28674 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28675 LIBS="$DPS_LIBS $LIBS"
28676
cristy8b350f62009-11-15 23:12:43 +000028677$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028678
cristyad38abe2012-12-23 23:03:21 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28680$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028681 have_dps='yes'
28682 fi
28683 else
cristyad38abe2012-12-23 23:03:21 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28685$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028686 CPPFLAGS=$PERSIST_CPPFLAGS
28687 fi
28688fi
cristy73bd4a52010-10-05 11:24:23 +000028689 if test "$have_dps" = 'yes'; then
28690 DPS_DELEGATE_TRUE=
28691 DPS_DELEGATE_FALSE='#'
28692else
28693 DPS_DELEGATE_TRUE='#'
28694 DPS_DELEGATE_FALSE=
28695fi
28696
cristy3ed852e2009-09-05 21:47:34 +000028697
28698
28699
28700#
28701# Check for DJVU delegate library.
28702#
28703
28704# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028705if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028706 withval=$with_djvu; with_djvu=$withval
28707else
28708 with_djvu='yes'
28709fi
28710
28711
28712if test "$with_djvu" != 'yes'; then
28713 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28714fi
28715
28716have_djvu='no'
28717DJVU_LIBS=''
28718if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28720$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028722$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28724$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028725 failed=0
28726 passed=0
cristy8b350f62009-11-15 23:12:43 +000028727 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 +000028728if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028729 passed=`expr $passed + 1`
28730else
28731 failed=`expr $failed + 1`
28732fi
28733
28734
cristy8b350f62009-11-15 23:12:43 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028736$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028737if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028738 $as_echo_n "(cached) " >&6
28739else
28740 ac_check_lib_save_LIBS=$LIBS
28741LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028743/* end confdefs.h. */
28744
28745/* Override any GCC internal prototype to avoid an error.
28746 Use char because int might match the return type of a GCC
28747 builtin and then its argument prototype would still apply. */
28748#ifdef __cplusplus
28749extern "C"
28750#endif
28751char ddjvu_context_create ();
28752int
28753main ()
28754{
28755return ddjvu_context_create ();
28756 ;
28757 return 0;
28758}
28759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028761 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28762else
cristy8b350f62009-11-15 23:12:43 +000028763 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028764fi
cristy8b350f62009-11-15 23:12:43 +000028765rm -f core conftest.err conftest.$ac_objext \
28766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028767LIBS=$ac_check_lib_save_LIBS
28768fi
cristy8b350f62009-11-15 23:12:43 +000028769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028770$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028771if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028772 passed=`expr $passed + 1`
28773else
28774 failed=`expr $failed + 1`
28775fi
28776
cristy8b350f62009-11-15 23:12:43 +000028777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028778$as_echo_n "checking if DJVU package is complete... " >&6; }
28779 if test $passed -gt 0; then
28780 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28782$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028783 have_djvu='no (failed tests)'
28784 else
28785 DJVU_LIBS='-ldjvulibre'
28786 LIBS="$DJVU_LIBS $LIBS"
28787
cristy8b350f62009-11-15 23:12:43 +000028788$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028789
cristyad38abe2012-12-23 23:03:21 +000028790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28791$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028792 have_djvu='yes'
28793 fi
28794 else
cristyad38abe2012-12-23 23:03:21 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28796$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028797 fi
28798fi
cristy73bd4a52010-10-05 11:24:23 +000028799 if test "$have_djvu" = 'yes'; then
28800 DJVU_DELEGATE_TRUE=
28801 DJVU_DELEGATE_FALSE='#'
28802else
28803 DJVU_DELEGATE_TRUE='#'
28804 DJVU_DELEGATE_FALSE=
28805fi
28806
cristy3ed852e2009-09-05 21:47:34 +000028807
28808
28809
28810#
cristy430a7312010-01-21 20:44:04 +000028811# Set DejaVu font directory.
28812#
28813
28814# Check whether --with-dejavu-font-dir was given.
28815if test "${with_dejavu_font_dir+set}" = set; then :
28816 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28817else
28818 with_dejavu_font_dir='default'
28819fi
28820
28821
28822if test "$with_dejavu_font_dir" != 'default'; then
28823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28824fi
28825
28826
28827#
cristy3ed852e2009-09-05 21:47:34 +000028828# Check for FFTW delegate library.
28829#
28830
28831# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028832if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028833 withval=$with_fftw; with_fftw=$withval
28834else
28835 with_fftw='yes'
28836fi
28837
28838
28839if test "$with_fftw" != 'yes'; then
28840 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28841fi
28842
cristy81beccd2011-10-03 18:17:24 +000028843have_fftw='no'
28844FFTW_LIBS=''
28845if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28847$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28849$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28851$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028852 failed=0
28853 passed=0
28854 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28855if test "x$ac_cv_header_fftw3_h" = xyes; then :
28856 passed=`expr $passed + 1`
28857else
28858 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028859fi
28860
cristy81beccd2011-10-03 18:17:24 +000028861
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28863$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28864if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28865 $as_echo_n "(cached) " >&6
28866else
28867 ac_check_lib_save_LIBS=$LIBS
28868LIBS="-lfftw3 $LIBS"
28869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28870/* end confdefs.h. */
28871
28872/* Override any GCC internal prototype to avoid an error.
28873 Use char because int might match the return type of a GCC
28874 builtin and then its argument prototype would still apply. */
28875#ifdef __cplusplus
28876extern "C"
28877#endif
28878char fftw_execute ();
28879int
28880main ()
28881{
28882return fftw_execute ();
28883 ;
28884 return 0;
28885}
28886_ACEOF
28887if ac_fn_c_try_link "$LINENO"; then :
28888 ac_cv_lib_fftw3_fftw_execute=yes
28889else
28890 ac_cv_lib_fftw3_fftw_execute=no
28891fi
28892rm -f core conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
28894LIBS=$ac_check_lib_save_LIBS
28895fi
28896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28897$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28898if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28899 passed=`expr $passed + 1`
28900else
28901 failed=`expr $failed + 1`
28902fi
28903
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28905$as_echo_n "checking if FFTW package is complete... " >&6; }
28906 if test $passed -gt 0; then
28907 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28909$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028910 have_fftw='no (failed tests)'
28911 else
28912 FFTW_LIBS='-lfftw3'
28913 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028914
cristy8b350f62009-11-15 23:12:43 +000028915$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028916
cristyad38abe2012-12-23 23:03:21 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28918$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028919 have_fftw='yes'
28920 fi
28921 else
cristyad38abe2012-12-23 23:03:21 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28923$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028924 fi
28925fi
cristy73bd4a52010-10-05 11:24:23 +000028926 if test "$have_fftw" = 'yes'; then
28927 FFTW_DELEGATE_TRUE=
28928 FFTW_DELEGATE_FALSE='#'
28929else
28930 FFTW_DELEGATE_TRUE='#'
28931 FFTW_DELEGATE_FALSE=
28932fi
28933
cristy3ed852e2009-09-05 21:47:34 +000028934
28935
28936
28937#
28938# Check for FlashPIX delegate library.
28939#
28940
28941# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028942if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028943 withval=$with_fpx; with_fpx=$withval
28944else
28945 with_fpx='yes'
28946fi
28947
28948
28949if test "$with_fpx" != 'yes'; then
28950 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28951fi
28952
28953have_fpx='no'
28954FPX_LIBS=''
28955if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28957$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028959$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28961$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028962 failed=0
28963 passed=0
28964 ac_ext=cpp
28965ac_cpp='$CXXCPP $CPPFLAGS'
28966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28969
28970
cristy8b350f62009-11-15 23:12:43 +000028971ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028972if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028973 passed=`expr $passed + 1`
28974else
28975 failed=`expr $failed + 1`
28976fi
28977
28978
cristy8b350f62009-11-15 23:12:43 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028980$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028981if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 $as_echo_n "(cached) " >&6
28983else
28984 ac_check_lib_save_LIBS=$LIBS
28985LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028987/* end confdefs.h. */
28988
28989/* Override any GCC internal prototype to avoid an error.
28990 Use char because int might match the return type of a GCC
28991 builtin and then its argument prototype would still apply. */
28992#ifdef __cplusplus
28993extern "C"
28994#endif
28995char FPX_OpenImageByFilename ();
28996int
28997main ()
28998{
28999return FPX_OpenImageByFilename ();
29000 ;
29001 return 0;
29002}
29003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029004if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029005 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29006else
cristy8b350f62009-11-15 23:12:43 +000029007 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029008fi
cristy8b350f62009-11-15 23:12:43 +000029009rm -f core conftest.err conftest.$ac_objext \
29010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029011LIBS=$ac_check_lib_save_LIBS
29012fi
cristy8b350f62009-11-15 23:12:43 +000029013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029014$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029015if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 passed=`expr $passed + 1`
29017else
29018 failed=`expr $failed + 1`
29019fi
29020
29021 ac_ext=c
29022ac_cpp='$CPP $CPPFLAGS'
29023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29025ac_compiler_gnu=$ac_cv_c_compiler_gnu
29026
cristy8b350f62009-11-15 23:12:43 +000029027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029028$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29029 if test $passed -gt 0; then
29030 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29032$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029033 have_fpx='no (failed tests)'
29034 else
29035 FPX_LIBS='-lfpx'
29036
cristy8b350f62009-11-15 23:12:43 +000029037$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029038
cristyad38abe2012-12-23 23:03:21 +000029039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29040$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029041 have_fpx='yes'
29042 PERLMAINCC="$CXX"
29043 fi
29044 else
cristyad38abe2012-12-23 23:03:21 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29046$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029047 fi
29048fi
cristy73bd4a52010-10-05 11:24:23 +000029049 if test "$have_fpx" = 'yes'; then
29050 FPX_DELEGATE_TRUE=
29051 FPX_DELEGATE_FALSE='#'
29052else
29053 FPX_DELEGATE_TRUE='#'
29054 FPX_DELEGATE_FALSE=
29055fi
29056
cristy3ed852e2009-09-05 21:47:34 +000029057
29058
29059
29060#
29061# Check for fontconfig delegate library.
29062#
29063
29064# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029065if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 withval=$with_fontconfig; with_fontconfig=$withval
29067else
cristyfc3d0222012-02-07 15:05:57 +000029068 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029069fi
29070
29071
29072if test "$with_fontconfig" != 'yes'; then
29073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29074fi
29075
29076have_fontconfig='no'
29077FONTCONFIG_CFLAGS=""
29078FONTCONFIG_LIBS=""
29079FONTCONFIG_PKG=""
29080if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29082$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029083
29084pkg_failed=no
29085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29086$as_echo_n "checking for FONTCONFIG... " >&6; }
29087
29088if test -n "$FONTCONFIG_CFLAGS"; then
29089 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29090 elif test -n "$PKG_CONFIG"; then
29091 if test -n "$PKG_CONFIG" && \
29092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29093 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29094 ac_status=$?
29095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29096 test $ac_status = 0; }; then
29097 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29098else
29099 pkg_failed=yes
29100fi
29101 else
29102 pkg_failed=untried
29103fi
29104if test -n "$FONTCONFIG_LIBS"; then
29105 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29106 elif test -n "$PKG_CONFIG"; then
29107 if test -n "$PKG_CONFIG" && \
29108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29109 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29110 ac_status=$?
29111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112 test $ac_status = 0; }; then
29113 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29114else
29115 pkg_failed=yes
29116fi
29117 else
29118 pkg_failed=untried
29119fi
29120
29121
29122
29123if test $pkg_failed = yes; then
29124
29125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29126 _pkg_short_errors_supported=yes
29127else
29128 _pkg_short_errors_supported=no
29129fi
29130 if test $_pkg_short_errors_supported = yes; then
29131 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29132 else
29133 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29134 fi
29135 # Put the nasty error message in config.log where it belongs
29136 echo "$FONTCONFIG_PKG_ERRORS" >&5
29137
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139$as_echo "no" >&6; }
29140 have_fontconfig=no
29141elif test $pkg_failed = untried; then
29142 have_fontconfig=no
29143else
29144 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29145 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29147$as_echo "yes" >&6; }
29148 have_fontconfig=yes
29149fi
cristyad38abe2012-12-23 23:03:21 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29151$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029152fi
29153
29154if test "$have_fontconfig" = 'yes'; then
29155
cristy8b350f62009-11-15 23:12:43 +000029156$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029157
cristyc6722092012-10-14 00:19:31 +000029158 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029159 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029160 fi
cristy3ed852e2009-09-05 21:47:34 +000029161fi
29162
cristy73bd4a52010-10-05 11:24:23 +000029163 if test "$have_fontconfig" = 'yes'; then
29164 FONTCONFIG_DELEGATE_TRUE=
29165 FONTCONFIG_DELEGATE_FALSE='#'
29166else
29167 FONTCONFIG_DELEGATE_TRUE='#'
29168 FONTCONFIG_DELEGATE_FALSE=
29169fi
29170
cristy3ed852e2009-09-05 21:47:34 +000029171
29172
29173
29174
29175#
cristy03f187e2013-01-24 00:22:19 +000029176# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029177#
29178
29179# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029180if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029181 withval=$with_freetype; with_freetype=$withval
29182else
29183 with_freetype='yes'
29184fi
29185
29186
cristy3ed852e2009-09-05 21:47:34 +000029187if test "$with_freetype" != 'yes'; then
29188 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29189fi
29190
cristy81beccd2011-10-03 18:17:24 +000029191have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029192FREETYPE_CFLAGS=""
29193FREETYPE_LIBS=""
29194FREETYPE_PKG=""
29195if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29197$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029198
29199pkg_failed=no
29200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29201$as_echo_n "checking for FREETYPE... " >&6; }
29202
29203if test -n "$FREETYPE_CFLAGS"; then
29204 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29205 elif test -n "$PKG_CONFIG"; then
29206 if test -n "$PKG_CONFIG" && \
29207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29208 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29209 ac_status=$?
29210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29211 test $ac_status = 0; }; then
29212 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29213else
29214 pkg_failed=yes
29215fi
29216 else
29217 pkg_failed=untried
29218fi
29219if test -n "$FREETYPE_LIBS"; then
29220 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29221 elif test -n "$PKG_CONFIG"; then
29222 if test -n "$PKG_CONFIG" && \
29223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29224 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29225 ac_status=$?
29226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29227 test $ac_status = 0; }; then
29228 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29229else
29230 pkg_failed=yes
29231fi
29232 else
29233 pkg_failed=untried
29234fi
29235
29236
29237
29238if test $pkg_failed = yes; then
29239
29240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29241 _pkg_short_errors_supported=yes
29242else
29243 _pkg_short_errors_supported=no
29244fi
29245 if test $_pkg_short_errors_supported = yes; then
29246 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29247 else
29248 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29249 fi
29250 # Put the nasty error message in config.log where it belongs
29251 echo "$FREETYPE_PKG_ERRORS" >&5
29252
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29254$as_echo "no" >&6; }
29255 have_freetype=no
29256elif test $pkg_failed = untried; then
29257 have_freetype=no
29258else
29259 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29260 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29262$as_echo "yes" >&6; }
29263 have_freetype=yes
29264fi
cristyad38abe2012-12-23 23:03:21 +000029265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29266$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029267fi
29268
cristy03f187e2013-01-24 00:22:19 +000029269if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029270
cristy8b350f62009-11-15 23:12:43 +000029271$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029272
cristy03f187e2013-01-24 00:22:19 +000029273 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029274fi
cristy03f187e2013-01-24 00:22:19 +000029275
cristy73bd4a52010-10-05 11:24:23 +000029276 if test "$have_freetype" = 'yes'; then
29277 FREETYPE_DELEGATE_TRUE=
29278 FREETYPE_DELEGATE_FALSE='#'
29279else
29280 FREETYPE_DELEGATE_TRUE='#'
29281 FREETYPE_DELEGATE_FALSE=
29282fi
29283
cristy3ed852e2009-09-05 21:47:34 +000029284
29285
29286
cristy03f187e2013-01-24 00:22:19 +000029287
cristy3ed852e2009-09-05 21:47:34 +000029288#
29289# Check for Ghostscript library or framework.
29290#
29291# Test for iapi.h & test for gsapi_new_instance in -lgs
29292# or -framework Ghostscript
29293
29294
29295# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029296if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 withval=$with_gslib; with_gslib=$withval
29298else
29299 with_gslib='no'
29300fi
29301
29302
cristyb7931f12009-09-25 10:22:21 +000029303gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029304if test "$with_gslib" != 'yes'; then
29305 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29306fi
29307
29308have_gslib='no'
29309GS_LIBS=''
29310if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29312$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29316$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029317 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029318 failed=0
29319 passed=0
cristy8b350f62009-11-15 23:12:43 +000029320 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 +000029321if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029322 passed=`expr $passed + 1`
29323else
29324 failed=`expr $failed + 1`
29325fi
29326
29327
cristy8b350f62009-11-15 23:12:43 +000029328 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 +000029329if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029330 passed=`expr $passed + 1`
29331else
29332 failed=`expr $failed + 1`
29333fi
29334
29335
cristy73bd4a52010-10-05 11:24:23 +000029336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29337$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029338if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029339 $as_echo_n "(cached) " >&6
29340else
29341 ac_check_framework_save_LIBS=$LIBS
29342LIBS="-framework Ghostscript $LIBS"
29343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29344/* end confdefs.h. */
29345
29346/* Override any GCC internal prototype to avoid an error.
29347 Use char because int might match the return type of a GCC
29348 builtin and then its argument prototype would still apply. */
29349#ifdef __cplusplus
29350extern "C"
29351#endif
29352char gsapi_new_instance ();
29353int
29354main ()
29355{
29356return gsapi_new_instance ();
29357 ;
29358 return 0;
29359}
29360_ACEOF
29361if ac_fn_c_try_link "$LINENO"; then :
29362 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29363else
29364 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29365fi
29366rm -f core conftest.err conftest.$ac_objext \
29367 conftest$ac_exeext conftest.$ac_ext
29368LIBS=$ac_check_framework_save_LIBS
29369fi
29370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29371$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29372if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29373 framework=`expr $framework + 1`
29374else
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029377if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029378 $as_echo_n "(cached) " >&6
29379else
29380 ac_check_lib_save_LIBS=$LIBS
29381LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029383/* end confdefs.h. */
29384
29385/* Override any GCC internal prototype to avoid an error.
29386 Use char because int might match the return type of a GCC
29387 builtin and then its argument prototype would still apply. */
29388#ifdef __cplusplus
29389extern "C"
29390#endif
29391char gsapi_new_instance ();
29392int
29393main ()
29394{
29395return gsapi_new_instance ();
29396 ;
29397 return 0;
29398}
29399_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029400if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029401 ac_cv_lib_gs_gsapi_new_instance=yes
29402else
cristy8b350f62009-11-15 23:12:43 +000029403 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029404fi
cristy8b350f62009-11-15 23:12:43 +000029405rm -f core conftest.err conftest.$ac_objext \
29406 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029407LIBS=$ac_check_lib_save_LIBS
29408fi
cristy8b350f62009-11-15 23:12:43 +000029409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029410$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029411if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029412 passed=`expr $passed + 1`
29413else
29414 failed=`expr $failed + 1`
29415fi
cristy73bd4a52010-10-05 11:24:23 +000029416
29417fi
cristy8b350f62009-11-15 23:12:43 +000029418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029419$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29420 if test $passed -gt 0; then
29421 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29423$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029424 have_gslib='no (failed tests)'
29425 else
29426 if test $framework -gt 0; then
29427 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029428 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29430$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029431 else
cristyad38abe2012-12-23 23:03:21 +000029432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29433$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029434 GS_LIBS='-lgs'
29435 fi
29436 LIBS="$GS_LIBS $LIBS"
29437
cristy8b350f62009-11-15 23:12:43 +000029438$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029439
29440 have_gslib='yes'
29441 fi
29442 else
cristyad38abe2012-12-23 23:03:21 +000029443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29444$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029445 fi
29446fi
cristy73bd4a52010-10-05 11:24:23 +000029447 if test "$have_gslib" = 'yes'; then
29448 GS_DELEGATE_TRUE=
29449 GS_DELEGATE_FALSE='#'
29450else
29451 GS_DELEGATE_TRUE='#'
29452 GS_DELEGATE_FALSE=
29453fi
29454
cristy3ed852e2009-09-05 21:47:34 +000029455
29456
29457# Set default font search path
29458
29459# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029460if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029461 withval=$with_fontpath; with_fontpath=$withval
29462else
29463 with_fontpath=''
29464fi
29465
29466
29467if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29468 with_fontpath=''
29469else
29470
29471cat >>confdefs.h <<_ACEOF
29472#define MAGICK_FONT_PATH "$with_fontpath"
29473_ACEOF
29474
29475fi
29476if test "$with_fontpath=" != ''; then
29477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29478fi
29479
29480# Set Ghostscript font directory
29481
29482# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029483if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029484 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29485else
29486 with_gs_font_dir='default'
29487fi
29488
29489
29490if test "$with_gs_font_dir" != 'default'; then
29491 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29492fi
29493
29494
29495#
29496# Check for GVC delegate library.
29497#
29498
29499# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029500if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029501 withval=$with_gvc; with_gvc=$withval
29502else
cristy1b70dc82012-07-01 23:15:05 +000029503 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029504fi
29505
29506
29507if test "$with_gvc" != 'yes'; then
29508 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29509fi
29510
29511GVC_PKG=""
29512if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29514$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029515
29516pkg_failed=no
29517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29518$as_echo_n "checking for GVC... " >&6; }
29519
29520if test -n "$GVC_CFLAGS"; then
29521 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29522 elif test -n "$PKG_CONFIG"; then
29523 if test -n "$PKG_CONFIG" && \
29524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29525 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29526 ac_status=$?
29527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29528 test $ac_status = 0; }; then
29529 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29530else
29531 pkg_failed=yes
29532fi
29533 else
29534 pkg_failed=untried
29535fi
29536if test -n "$GVC_LIBS"; then
29537 pkg_cv_GVC_LIBS="$GVC_LIBS"
29538 elif test -n "$PKG_CONFIG"; then
29539 if test -n "$PKG_CONFIG" && \
29540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29541 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29542 ac_status=$?
29543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29544 test $ac_status = 0; }; then
29545 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29546else
29547 pkg_failed=yes
29548fi
29549 else
29550 pkg_failed=untried
29551fi
29552
29553
29554
29555if test $pkg_failed = yes; then
29556
29557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29558 _pkg_short_errors_supported=yes
29559else
29560 _pkg_short_errors_supported=no
29561fi
29562 if test $_pkg_short_errors_supported = yes; then
29563 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29564 else
29565 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29566 fi
29567 # Put the nasty error message in config.log where it belongs
29568 echo "$GVC_PKG_ERRORS" >&5
29569
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29571$as_echo "no" >&6; }
29572 have_gvc=no
29573elif test $pkg_failed = untried; then
29574 have_gvc=no
29575else
29576 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29577 GVC_LIBS=$pkg_cv_GVC_LIBS
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29579$as_echo "yes" >&6; }
29580 have_gvc=yes
29581fi
cristyad38abe2012-12-23 23:03:21 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29583$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029584fi
29585
29586if test "$have_gvc" = 'yes'; then
29587
cristy8b350f62009-11-15 23:12:43 +000029588$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029589
cristyc6722092012-10-14 00:19:31 +000029590 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029591 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29592 fi
29593fi
29594
cristy73bd4a52010-10-05 11:24:23 +000029595 if test "$have_gvc" = 'yes'; then
29596 GVC_DELEGATE_TRUE=
29597 GVC_DELEGATE_FALSE='#'
29598else
29599 GVC_DELEGATE_TRUE='#'
29600 GVC_DELEGATE_FALSE=
29601fi
29602
cristy3ed852e2009-09-05 21:47:34 +000029603
29604
29605
29606
29607#
29608# Check for JBIG delegate library.
29609#
29610
29611
29612# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029613if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 withval=$with_jbig; with_jbig=$withval
29615else
29616 with_jbig='yes'
29617fi
29618
29619
29620have_jbig='no'
29621JBIG_LIBS=''
29622if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29624$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029626$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29628$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029629 failed=0
29630 passed=0
cristy8b350f62009-11-15 23:12:43 +000029631 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029632if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029633 passed=`expr $passed + 1`
29634else
29635 failed=`expr $failed + 1`
29636fi
29637
29638
cristy8b350f62009-11-15 23:12:43 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029641if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029642 $as_echo_n "(cached) " >&6
29643else
29644 ac_check_lib_save_LIBS=$LIBS
29645LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029647/* end confdefs.h. */
29648
29649/* Override any GCC internal prototype to avoid an error.
29650 Use char because int might match the return type of a GCC
29651 builtin and then its argument prototype would still apply. */
29652#ifdef __cplusplus
29653extern "C"
29654#endif
29655char jbg_dec_init ();
29656int
29657main ()
29658{
29659return jbg_dec_init ();
29660 ;
29661 return 0;
29662}
29663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029664if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 ac_cv_lib_jbig_jbg_dec_init=yes
29666else
cristy8b350f62009-11-15 23:12:43 +000029667 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029668fi
cristy8b350f62009-11-15 23:12:43 +000029669rm -f core conftest.err conftest.$ac_objext \
29670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029671LIBS=$ac_check_lib_save_LIBS
29672fi
cristy8b350f62009-11-15 23:12:43 +000029673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029674$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029675if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029676 passed=`expr $passed + 1`
29677else
29678 failed=`expr $failed + 1`
29679fi
29680
cristy8b350f62009-11-15 23:12:43 +000029681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029682$as_echo_n "checking if JBIG package is complete... " >&6; }
29683 if test $passed -gt 0; then
29684 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29686$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029687 have_jbig='no (failed tests)'
29688 else
29689 JBIG_LIBS='-ljbig'
29690 LIBS="$JBIG_LIBS $LIBS"
29691
cristy8b350f62009-11-15 23:12:43 +000029692$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029693
cristyad38abe2012-12-23 23:03:21 +000029694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29695$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029696 have_jbig='yes'
29697 fi
29698 else
cristyad38abe2012-12-23 23:03:21 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029701 fi
29702fi
cristy73bd4a52010-10-05 11:24:23 +000029703 if test "$have_jbig" = 'yes'; then
29704 JBIG_DELEGATE_TRUE=
29705 JBIG_DELEGATE_FALSE='#'
29706else
29707 JBIG_DELEGATE_TRUE='#'
29708 JBIG_DELEGATE_FALSE=
29709fi
29710
cristy3ed852e2009-09-05 21:47:34 +000029711
29712
29713
29714#
29715# Check for JPEG delegate library.
29716#
29717
29718# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029719if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029720 withval=$with_jpeg; with_jpeg=$withval
29721else
29722 with_jpeg='yes'
29723fi
29724
29725
29726if test "$with_jpeg" != 'yes'; then
29727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29728fi
29729
29730have_jpeg='no'
29731JPEG_LIBS=''
29732if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29734$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29738$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029739 failed=0
29740 passed=0
cristy8b350f62009-11-15 23:12:43 +000029741 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029742if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029743 passed=`expr $passed + 1`
29744else
29745 failed=`expr $failed + 1`
29746fi
29747
29748
cristy8b350f62009-11-15 23:12:43 +000029749 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029750if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029751 passed=`expr $passed + 1`
29752else
29753 failed=`expr $failed + 1`
29754fi
29755
29756
cristy8b350f62009-11-15 23:12:43 +000029757 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029758if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029759 passed=`expr $passed + 1`
29760else
29761 failed=`expr $failed + 1`
29762fi
29763
29764
cristy8b350f62009-11-15 23:12:43 +000029765 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029766if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029767 passed=`expr $passed + 1`
29768else
29769 failed=`expr $failed + 1`
29770fi
29771
29772
cristy8b350f62009-11-15 23:12:43 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029775if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029776 $as_echo_n "(cached) " >&6
29777else
29778 ac_check_lib_save_LIBS=$LIBS
29779LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029781/* end confdefs.h. */
29782
29783/* Override any GCC internal prototype to avoid an error.
29784 Use char because int might match the return type of a GCC
29785 builtin and then its argument prototype would still apply. */
29786#ifdef __cplusplus
29787extern "C"
29788#endif
29789char jpeg_read_header ();
29790int
29791main ()
29792{
29793return jpeg_read_header ();
29794 ;
29795 return 0;
29796}
29797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029799 ac_cv_lib_jpeg_jpeg_read_header=yes
29800else
cristy8b350f62009-11-15 23:12:43 +000029801 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029802fi
cristy8b350f62009-11-15 23:12:43 +000029803rm -f core conftest.err conftest.$ac_objext \
29804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029805LIBS=$ac_check_lib_save_LIBS
29806fi
cristy8b350f62009-11-15 23:12:43 +000029807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029808$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029809if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029810 passed=`expr $passed + 1`
29811else
29812 failed=`expr $failed + 1`
29813fi
29814
29815
29816# Test for compatible JPEG library
29817if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029819$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029820if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029821 $as_echo_n "(cached) " >&6
29822else
cristy8b350f62009-11-15 23:12:43 +000029823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029824/* end confdefs.h. */
29825#include <stdio.h>
29826#include <stdlib.h>
29827#include <jpeglib.h>
29828
29829int
29830main ()
29831{
29832
29833#if JPEG_LIB_VERSION < 62
29834#error IJG JPEG library must be version 6b or newer!
29835#endif
29836return 0;
29837
29838 ;
29839 return 0;
29840}
29841_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029842if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029843 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29844else
cristy8b350f62009-11-15 23:12:43 +000029845 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029846fi
cristy3ed852e2009-09-05 21:47:34 +000029847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848fi
cristy8b350f62009-11-15 23:12:43 +000029849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29851fi
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo_n "checking if JPEG package is complete... " >&6; }
29854 if test $passed -gt 0; then
29855 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29857$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029858 have_jpeg='no (failed tests)'
29859 else
29860 JPEG_LIBS='-ljpeg'
29861 LIBS="$JPEG_LIBS $LIBS"
29862
cristy8b350f62009-11-15 23:12:43 +000029863$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029864
cristyad38abe2012-12-23 23:03:21 +000029865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29866$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029867 have_jpeg='yes'
29868 fi
29869 else
cristyad38abe2012-12-23 23:03:21 +000029870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29871$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029872 fi
29873fi
cristy73bd4a52010-10-05 11:24:23 +000029874 if test "$have_jpeg" = 'yes'; then
29875 JPEG_DELEGATE_TRUE=
29876 JPEG_DELEGATE_FALSE='#'
29877else
29878 JPEG_DELEGATE_TRUE='#'
29879 JPEG_DELEGATE_FALSE=
29880fi
29881
cristy3ed852e2009-09-05 21:47:34 +000029882
29883
29884
29885#
29886# Check for JPEG Version 2 delegate library.
29887#
29888
29889# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029890if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029891 withval=$with_jp2; with_jp2=$withval
29892else
29893 with_jp2='yes'
29894fi
29895
29896
29897if test "$with_jp2" != 'yes'; then
29898 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29899fi
29900
29901have_jp2='no'
29902JP2_LIBS=''
29903if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29905$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29909$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029910 failed=0
29911 passed=0
cristy8b350f62009-11-15 23:12:43 +000029912 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 +000029913if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 passed=`expr $passed + 1`
29915else
29916 failed=`expr $failed + 1`
29917fi
29918
29919
cristy8b350f62009-11-15 23:12:43 +000029920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029921$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029922if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029923 $as_echo_n "(cached) " >&6
29924else
29925 ac_check_lib_save_LIBS=$LIBS
29926LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029928/* end confdefs.h. */
29929
29930/* Override any GCC internal prototype to avoid an error.
29931 Use char because int might match the return type of a GCC
29932 builtin and then its argument prototype would still apply. */
29933#ifdef __cplusplus
29934extern "C"
29935#endif
29936char jas_stream_fopen ();
29937int
29938main ()
29939{
29940return jas_stream_fopen ();
29941 ;
29942 return 0;
29943}
29944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029946 ac_cv_lib_jasper_jas_stream_fopen=yes
29947else
cristy8b350f62009-11-15 23:12:43 +000029948 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029949fi
cristy8b350f62009-11-15 23:12:43 +000029950rm -f core conftest.err conftest.$ac_objext \
29951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029952LIBS=$ac_check_lib_save_LIBS
29953fi
cristy8b350f62009-11-15 23:12:43 +000029954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029955$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029956if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 passed=`expr $passed + 1`
29958else
29959 failed=`expr $failed + 1`
29960fi
29961
cristy8b350f62009-11-15 23:12:43 +000029962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29964 if test $passed -gt 0; then
29965 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29967$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029968 have_jp2='no (failed tests)'
29969 else
29970 JP2_LIBS='-ljasper'
29971 LIBS="$JP2_LIBS $LIBS"
29972
cristy8b350f62009-11-15 23:12:43 +000029973$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029974
cristyad38abe2012-12-23 23:03:21 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29976$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029977 have_jp2='yes'
29978 fi
29979 else
cristyad38abe2012-12-23 23:03:21 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29981$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029982 fi
29983fi
cristy73bd4a52010-10-05 11:24:23 +000029984 if test "$have_jp2" = 'yes'; then
29985 JP2_DELEGATE_TRUE=
29986 JP2_DELEGATE_FALSE='#'
29987else
29988 JP2_DELEGATE_TRUE='#'
29989 JP2_DELEGATE_FALSE=
29990fi
29991
cristy3ed852e2009-09-05 21:47:34 +000029992
29993
29994
29995#
29996# Check for LCMS delegate library.
29997#
cristy71203402010-06-18 13:12:03 +000029998# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029999
30000# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030001if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030002 withval=$with_lcms; with_lcms=$withval
30003else
30004 with_lcms='yes'
30005fi
30006
cristy71203402010-06-18 13:12:03 +000030007if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30009fi
30010
cristy71203402010-06-18 13:12:03 +000030011# Disable LCMS2.
30012
30013# Check whether --with-lcms2 was given.
30014if test "${with_lcms2+set}" = set; then :
30015 withval=$with_lcms2; with_lcms2=$withval
30016else
30017 with_lcms2='yes'
30018fi
30019
30020if test "$with_lcms2" != 'yes' ; then
30021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30022fi
30023
30024have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030025LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030026if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30028$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30030$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30032$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030033 failed=0
30034 passed=0
30035 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030036
30037 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030038 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030039if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030040 have_lcms_header='yes'
30041fi
30042
30043
30044 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030045
30046$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30047
cristy71203402010-06-18 13:12:03 +000030048 passed=`expr $passed + 1`
30049 fi
30050
30051 # Check for <lcms2/lcms2.h)
30052 if test "$have_lcms_header" != 'yes'; then
30053 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 +000030054if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030055 have_lcms_header='yes'
30056fi
30057
30058
cristy71203402010-06-18 13:12:03 +000030059 if test "$have_lcms_header" = 'yes'; then
30060 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030061
cristy71203402010-06-18 13:12:03 +000030062$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030063
cristy71203402010-06-18 13:12:03 +000030064 fi
cristyd09bcf92010-03-25 03:04:45 +000030065 fi
cristy71203402010-06-18 13:12:03 +000030066
30067 # Failed to find lcms header?
30068 if test "$have_lcms_header" != 'yes'; then
30069 failed=`expr $failed + 1`
30070 fi
30071
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30073$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030074if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030075 $as_echo_n "(cached) " >&6
30076else
30077 ac_check_lib_save_LIBS=$LIBS
30078LIBS="-llcms2 $LIBS"
30079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30080/* end confdefs.h. */
30081
30082/* Override any GCC internal prototype to avoid an error.
30083 Use char because int might match the return type of a GCC
30084 builtin and then its argument prototype would still apply. */
30085#ifdef __cplusplus
30086extern "C"
30087#endif
cristy71203402010-06-18 13:12:03 +000030088char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030089int
30090main ()
30091{
cristy71203402010-06-18 13:12:03 +000030092return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030093 ;
30094 return 0;
30095}
30096_ACEOF
30097if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030098 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030099else
cristy71203402010-06-18 13:12:03 +000030100 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030101fi
30102rm -f core conftest.err conftest.$ac_objext \
30103 conftest$ac_exeext conftest.$ac_ext
30104LIBS=$ac_check_lib_save_LIBS
30105fi
cristy71203402010-06-18 13:12:03 +000030106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30107$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030108if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030109 passed=`expr $passed + 1`
30110else
30111 failed=`expr $failed + 1`
30112fi
30113
cristy71203402010-06-18 13:12:03 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30115$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030116 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030117 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30119$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030120 have_lcms2='no (failed tests)'
30121 else
30122 LCMS_LIBS='-llcms2'
30123 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030126 have_lcms2='yes'
30127 fi
cristyd09bcf92010-03-25 03:04:45 +000030128 else
cristyad38abe2012-12-23 23:03:21 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30130$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030131 fi
30132fi
30133
cristy71203402010-06-18 13:12:03 +000030134#
30135# Check for LCMS v1 (1.11 or later)
30136#
30137if test $have_lcms2 = 'yes'; then
30138 with_lcms='no'
30139fi
30140
30141have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030142if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30144$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30146$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30148$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030149 failed=0
30150 passed=0
30151 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030152
30153 # Check for <lcms.h>
30154 if test "$have_lcms_header" != 'yes'; then
30155 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030156if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030157 have_lcms_header='yes'
30158fi
30159
30160
cristy71203402010-06-18 13:12:03 +000030161 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030162 passed=`expr $passed + 1`
30163
cristy8b350f62009-11-15 23:12:43 +000030164$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030165
cristy71203402010-06-18 13:12:03 +000030166 fi
30167 fi
30168
30169 # Check for <lcms/lcms.h>
30170 if test "$have_lcms_header" != 'yes'; then
30171 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 +000030172if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030173 have_lcms_header='yes'
30174fi
30175
30176
cristy71203402010-06-18 13:12:03 +000030177 if test "$have_lcms_header" = 'yes'; then
30178 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030179
cristy8b350f62009-11-15 23:12:43 +000030180$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030181
cristy71203402010-06-18 13:12:03 +000030182 fi
cristy3ed852e2009-09-05 21:47:34 +000030183 fi
cristy71203402010-06-18 13:12:03 +000030184
30185 # Failed to find lcms header?
30186 if test "$have_lcms_header" != 'yes'; then
30187 failed=`expr $failed + 1`
30188 fi
30189
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30191$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030192if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030193 $as_echo_n "(cached) " >&6
30194else
30195 ac_check_lib_save_LIBS=$LIBS
30196LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030198/* end confdefs.h. */
30199
30200/* Override any GCC internal prototype to avoid an error.
30201 Use char because int might match the return type of a GCC
30202 builtin and then its argument prototype would still apply. */
30203#ifdef __cplusplus
30204extern "C"
30205#endif
cristy71203402010-06-18 13:12:03 +000030206char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030207int
30208main ()
30209{
cristy71203402010-06-18 13:12:03 +000030210return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030211 ;
30212 return 0;
30213}
30214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030215if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030216 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030217else
cristy71203402010-06-18 13:12:03 +000030218 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030219fi
cristy8b350f62009-11-15 23:12:43 +000030220rm -f core conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030222LIBS=$ac_check_lib_save_LIBS
30223fi
cristy71203402010-06-18 13:12:03 +000030224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30225$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030226if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030227 passed=`expr $passed + 1`
30228else
30229 failed=`expr $failed + 1`
30230fi
30231
cristy8b350f62009-11-15 23:12:43 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo_n "checking if LCMS package is complete... " >&6; }
30234 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030235 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30237$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030238 have_lcms='no (failed tests)'
30239 else
30240 LCMS_LIBS='-llcms'
30241 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30243$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030244 have_lcms='yes'
30245 fi
cristy3ed852e2009-09-05 21:47:34 +000030246 else
cristyad38abe2012-12-23 23:03:21 +000030247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30248$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030249 fi
30250fi
cristy71203402010-06-18 13:12:03 +000030251
cristy73bd4a52010-10-05 11:24:23 +000030252 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30253 LCMS_DELEGATE_TRUE=
30254 LCMS_DELEGATE_FALSE='#'
30255else
30256 LCMS_DELEGATE_TRUE='#'
30257 LCMS_DELEGATE_FALSE=
30258fi
30259
cristy71203402010-06-18 13:12:03 +000030260if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30261
30262$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30263
30264fi
30265
cristy3ed852e2009-09-05 21:47:34 +000030266
30267
30268
30269#
30270# Check for the LQR (Liquid Rescale) delegate library.
30271#
30272
30273# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030274if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030275 withval=$with_lqr; with_lqr=$withval
30276else
30277 with_lqr='yes'
30278fi
30279
30280
30281if test "$with_lqr" != 'yes'; then
30282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30283fi
30284
30285have_lqr='no'
30286LQR_CFLAGS=""
30287LQR_LIBS=""
30288LQR_PKG=""
30289if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30291$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030292
30293pkg_failed=no
30294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30295$as_echo_n "checking for LQR... " >&6; }
30296
30297if test -n "$LQR_CFLAGS"; then
30298 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30299 elif test -n "$PKG_CONFIG"; then
30300 if test -n "$PKG_CONFIG" && \
30301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30302 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30303 ac_status=$?
30304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30305 test $ac_status = 0; }; then
30306 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30307else
30308 pkg_failed=yes
30309fi
30310 else
30311 pkg_failed=untried
30312fi
30313if test -n "$LQR_LIBS"; then
30314 pkg_cv_LQR_LIBS="$LQR_LIBS"
30315 elif test -n "$PKG_CONFIG"; then
30316 if test -n "$PKG_CONFIG" && \
30317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30318 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30319 ac_status=$?
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; then
30322 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30323else
30324 pkg_failed=yes
30325fi
30326 else
30327 pkg_failed=untried
30328fi
30329
30330
30331
30332if test $pkg_failed = yes; then
30333
30334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30335 _pkg_short_errors_supported=yes
30336else
30337 _pkg_short_errors_supported=no
30338fi
30339 if test $_pkg_short_errors_supported = yes; then
30340 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30341 else
30342 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30343 fi
30344 # Put the nasty error message in config.log where it belongs
30345 echo "$LQR_PKG_ERRORS" >&5
30346
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30348$as_echo "no" >&6; }
30349 have_lqr=no
30350elif test $pkg_failed = untried; then
30351 have_lqr=no
30352else
30353 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30354 LQR_LIBS=$pkg_cv_LQR_LIBS
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30356$as_echo "yes" >&6; }
30357 have_lqr=yes
30358fi
cristyad38abe2012-12-23 23:03:21 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30360$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030361fi
30362
30363if test "$have_lqr" = 'yes'; then
30364
cristy8b350f62009-11-15 23:12:43 +000030365$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030366
30367 CFLAGS="$LQR_CFLAGS $CFLAGS"
30368fi
30369
cristy73bd4a52010-10-05 11:24:23 +000030370 if test "$have_lqr" = 'yes'; then
30371 LQR_DELEGATE_TRUE=
30372 LQR_DELEGATE_FALSE='#'
30373else
30374 LQR_DELEGATE_TRUE='#'
30375 LQR_DELEGATE_FALSE=
30376fi
30377
cristy3ed852e2009-09-05 21:47:34 +000030378
30379
30380
30381
cristy81beccd2011-10-03 18:17:24 +000030382# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030383
30384# Check whether --with-lzma was given.
30385if test "${with_lzma+set}" = set; then :
30386 withval=$with_lzma; with_lzma=$withval
30387else
30388 with_lzma='yes'
30389fi
30390
cristy81beccd2011-10-03 18:17:24 +000030391if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30393fi
30394
cristyb94e5002011-11-14 13:20:10 +000030395LZMA_PKG=""
30396if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30398$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030399
30400pkg_failed=no
30401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030402$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030403
30404if test -n "$LZMA_CFLAGS"; then
30405 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30406 elif test -n "$PKG_CONFIG"; then
30407 if test -n "$PKG_CONFIG" && \
30408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30409 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30410 ac_status=$?
30411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30412 test $ac_status = 0; }; then
30413 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30414else
30415 pkg_failed=yes
30416fi
30417 else
30418 pkg_failed=untried
30419fi
30420if test -n "$LZMA_LIBS"; then
30421 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30422 elif test -n "$PKG_CONFIG"; then
30423 if test -n "$PKG_CONFIG" && \
30424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30425 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30426 ac_status=$?
30427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30428 test $ac_status = 0; }; then
30429 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30430else
30431 pkg_failed=yes
30432fi
30433 else
30434 pkg_failed=untried
30435fi
30436
30437
30438
30439if test $pkg_failed = yes; then
30440
30441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30442 _pkg_short_errors_supported=yes
30443else
30444 _pkg_short_errors_supported=no
30445fi
30446 if test $_pkg_short_errors_supported = yes; then
30447 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30448 else
30449 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30450 fi
30451 # Put the nasty error message in config.log where it belongs
30452 echo "$LZMA_PKG_ERRORS" >&5
30453
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30455$as_echo "no" >&6; }
30456 have_lzma=no
30457elif test $pkg_failed = untried; then
30458 have_lzma=no
30459else
30460 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30461 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30463$as_echo "yes" >&6; }
30464 have_lzma=yes
30465fi
cristyad38abe2012-12-23 23:03:21 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30467$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030468fi
30469
cristyb94e5002011-11-14 13:20:10 +000030470if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030471
30472$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30473
cristyc6722092012-10-14 00:19:31 +000030474 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030475 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030476 fi
cristyfbb0ef02010-12-19 02:32:11 +000030477fi
cristyb94e5002011-11-14 13:20:10 +000030478
cristyfbb0ef02010-12-19 02:32:11 +000030479 if test "$have_lzma" = 'yes'; then
30480 LZMA_DELEGATE_TRUE=
30481 LZMA_DELEGATE_FALSE='#'
30482else
30483 LZMA_DELEGATE_TRUE='#'
30484 LZMA_DELEGATE_FALSE=
30485fi
30486
30487
30488
30489
cristyb94e5002011-11-14 13:20:10 +000030490
cristy3ed852e2009-09-05 21:47:34 +000030491#
30492# Check for the OpenEXR delegate library.
30493#
30494
30495# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030496if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030497 withval=$with_openexr; with_openexr=$withval
30498else
30499 with_openexr='yes'
30500fi
30501
30502
30503if test "$with_openexr" != 'yes'; then
30504 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30505fi
30506
30507have_openexr='no'
30508OPENEXR_CFLAGS=""
30509OPENEXR_LIBS=""
30510OPENEXR_PKG=""
30511if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30513$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030514
30515pkg_failed=no
30516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30517$as_echo_n "checking for OPENEXR... " >&6; }
30518
30519if test -n "$OPENEXR_CFLAGS"; then
30520 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30521 elif test -n "$PKG_CONFIG"; then
30522 if test -n "$PKG_CONFIG" && \
30523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30524 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30525 ac_status=$?
30526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30527 test $ac_status = 0; }; then
30528 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30529else
30530 pkg_failed=yes
30531fi
30532 else
30533 pkg_failed=untried
30534fi
30535if test -n "$OPENEXR_LIBS"; then
30536 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30537 elif test -n "$PKG_CONFIG"; then
30538 if test -n "$PKG_CONFIG" && \
30539 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30540 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30541 ac_status=$?
30542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30543 test $ac_status = 0; }; then
30544 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30545else
30546 pkg_failed=yes
30547fi
30548 else
30549 pkg_failed=untried
30550fi
30551
30552
30553
30554if test $pkg_failed = yes; then
30555
30556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30557 _pkg_short_errors_supported=yes
30558else
30559 _pkg_short_errors_supported=no
30560fi
30561 if test $_pkg_short_errors_supported = yes; then
30562 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30563 else
30564 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30565 fi
30566 # Put the nasty error message in config.log where it belongs
30567 echo "$OPENEXR_PKG_ERRORS" >&5
30568
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30570$as_echo "no" >&6; }
30571 have_openexr=no
30572elif test $pkg_failed = untried; then
30573 have_openexr=no
30574else
30575 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30576 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30578$as_echo "yes" >&6; }
30579 have_openexr=yes
30580fi
cristyad38abe2012-12-23 23:03:21 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30582$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030583fi
30584
30585if test "$have_openexr" = 'yes'; then
30586
cristy8b350f62009-11-15 23:12:43 +000030587$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030588
cristyc6722092012-10-14 00:19:31 +000030589 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030590 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30591 fi
30592fi
30593
cristy73bd4a52010-10-05 11:24:23 +000030594 if test "$have_openexr" = 'yes'; then
30595 OPENEXR_DELEGATE_TRUE=
30596 OPENEXR_DELEGATE_FALSE='#'
30597else
30598 OPENEXR_DELEGATE_TRUE='#'
30599 OPENEXR_DELEGATE_FALSE=
30600fi
30601
cristy3ed852e2009-09-05 21:47:34 +000030602
30603
30604
30605
30606#
cristy41cbe8a2011-10-27 01:35:18 +000030607# Check for PANGO delegate library.
30608#
30609
30610# Check whether --with-pango was given.
30611if test "${with_pango+set}" = set; then :
30612 withval=$with_pango; with_pango=$withval
30613else
cristyfc3d0222012-02-07 15:05:57 +000030614 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030615fi
30616
30617
30618if test "$with_pango" != 'yes'; then
30619 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30620fi
30621
30622have_pango='no'
cristya054b762012-03-26 23:16:00 +000030623have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030624PANGO_CFLAGS=""
30625PANGO_LIBS=""
30626PANGO_PKG=""
30627if test "x$with_pango" = "xyes"; then
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30629$as_echo "-------------------------------------------------------------" >&6; }
30630
30631pkg_failed=no
30632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30633$as_echo_n "checking for PANGO... " >&6; }
30634
30635if test -n "$PANGO_CFLAGS"; then
30636 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30637 elif test -n "$PKG_CONFIG"; then
30638 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30640 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030641 ac_status=$?
30642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30643 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030644 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030645else
30646 pkg_failed=yes
30647fi
30648 else
30649 pkg_failed=untried
30650fi
30651if test -n "$PANGO_LIBS"; then
30652 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30653 elif test -n "$PKG_CONFIG"; then
30654 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30656 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030657 ac_status=$?
30658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30659 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030660 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030661else
30662 pkg_failed=yes
30663fi
30664 else
30665 pkg_failed=untried
30666fi
30667
30668
30669
30670if test $pkg_failed = yes; then
30671
30672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30673 _pkg_short_errors_supported=yes
30674else
30675 _pkg_short_errors_supported=no
30676fi
30677 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030678 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030679 else
cristya054b762012-03-26 23:16:00 +000030680 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030681 fi
30682 # Put the nasty error message in config.log where it belongs
30683 echo "$PANGO_PKG_ERRORS" >&5
30684
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030687 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030688elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030689 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030690else
30691 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30692 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030695 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030696fi
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30698$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030699
30700pkg_failed=no
30701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30702$as_echo_n "checking for PANGO... " >&6; }
30703
30704if test -n "$PANGO_CFLAGS"; then
30705 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30706 elif test -n "$PKG_CONFIG"; then
30707 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30709 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030710 ac_status=$?
30711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030713 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030714else
30715 pkg_failed=yes
30716fi
30717 else
30718 pkg_failed=untried
30719fi
30720if test -n "$PANGO_LIBS"; then
30721 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30722 elif test -n "$PKG_CONFIG"; then
30723 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30725 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030726 ac_status=$?
30727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30728 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030729 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030730else
30731 pkg_failed=yes
30732fi
30733 else
30734 pkg_failed=untried
30735fi
30736
30737
30738
30739if test $pkg_failed = yes; then
30740
30741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30742 _pkg_short_errors_supported=yes
30743else
30744 _pkg_short_errors_supported=no
30745fi
30746 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030747 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030748 else
cristy2542fc62011-12-06 17:50:25 +000030749 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030750 fi
30751 # Put the nasty error message in config.log where it belongs
30752 echo "$PANGO_PKG_ERRORS" >&5
30753
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755$as_echo "no" >&6; }
30756 have_pango=no
30757elif test $pkg_failed = untried; then
30758 have_pango=no
30759else
30760 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30761 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30763$as_echo "yes" >&6; }
30764 have_pango=yes
30765fi
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30767$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030768fi
30769
30770if test "$have_pango" = 'yes'; then
30771
30772$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30773
cristyc6722092012-10-14 00:19:31 +000030774 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030775 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30776 fi
30777fi
30778
cristya054b762012-03-26 23:16:00 +000030779if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030780
cristya054b762012-03-26 23:16:00 +000030781$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030782
cristyc6722092012-10-14 00:19:31 +000030783 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030784 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030785 fi
30786fi
30787
30788 if test "$have_pango" = 'yes'; then
30789 PANGO_DELEGATE_TRUE=
30790 PANGO_DELEGATE_FALSE='#'
30791else
30792 PANGO_DELEGATE_TRUE='#'
30793 PANGO_DELEGATE_FALSE=
30794fi
30795
cristya054b762012-03-26 23:16:00 +000030796 if test "$have_pangocairo" = 'yes'; then
30797 PANGOCAIRO_DELEGATE_TRUE=
30798 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030799else
cristya054b762012-03-26 23:16:00 +000030800 PANGOCAIRO_DELEGATE_TRUE='#'
30801 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030802fi
30803
30804
30805
30806
30807
30808#
cristy3ed852e2009-09-05 21:47:34 +000030809# Check for PNG delegate library.
30810#
30811
30812# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030813if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 withval=$with_png; with_png=$withval
30815else
30816 with_png='yes'
30817fi
30818
30819
30820if test "$with_png" != 'yes'; then
30821 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30822fi
30823
cristy81beccd2011-10-03 18:17:24 +000030824have_png='no'
30825PNG_LIBS=''
30826
30827if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30829$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30831$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30833$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030834 failed=0
30835 passed=0
30836 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30837if test "x$ac_cv_header_png_h" = xyes; then :
30838 passed=`expr $passed + 1`
30839else
30840 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030841fi
30842
cristy81beccd2011-10-03 18:17:24 +000030843
30844
30845 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030846 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030847 if test "$have_png" = 'no' ; then
30848 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030849 pnglib='png'
30850 else
30851 pnglib="png1${var}"
30852 fi
30853
30854# Test for compatible LIBPNG library
30855 failed=0
30856 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030857 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030858 if test "${pnglib}" != 'png' ; then
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30860$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30862/* end confdefs.h. */
30863#include <stdio.h>
30864#include <stdlib.h>
30865#include <png.h>
30866
30867int
30868main ()
30869{
30870
30871#if PNG_LIBPNG_VER_MINOR != ${var}
30872#error LIBPNG library must be version 1${var}!
30873Kaboom, Kaboom
30874#endif
30875return 0;
30876
30877 ;
30878 return 0;
30879}
30880_ACEOF
30881if ac_fn_c_try_compile "$LINENO"; then :
30882 ac_cv_libpng_ok='yes'
30883else
30884 ac_cv_libpng_ok='no'
30885fi
30886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887 if test "$ac_cv_libpng_ok" = 'yes' ; then
30888 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30890$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030891 else
30892 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030895 fi
30896 else
30897 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030900 fi
30901 fi
30902
30903 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030904 if test "1${var}" = '17' ; then
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30906$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30907if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30908 $as_echo_n "(cached) " >&6
30909else
30910 ac_check_lib_save_LIBS=$LIBS
30911LIBS="-lpng17 $LIBS"
30912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30913/* end confdefs.h. */
30914
30915/* Override any GCC internal prototype to avoid an error.
30916 Use char because int might match the return type of a GCC
30917 builtin and then its argument prototype would still apply. */
30918#ifdef __cplusplus
30919extern "C"
30920#endif
30921char png_get_io_ptr ();
30922int
30923main ()
30924{
30925return png_get_io_ptr ();
30926 ;
30927 return 0;
30928}
30929_ACEOF
30930if ac_fn_c_try_link "$LINENO"; then :
30931 ac_cv_lib_png17_png_get_io_ptr=yes
30932else
30933 ac_cv_lib_png17_png_get_io_ptr=no
30934fi
30935rm -f core conftest.err conftest.$ac_objext \
30936 conftest$ac_exeext conftest.$ac_ext
30937LIBS=$ac_check_lib_save_LIBS
30938fi
30939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30940$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30941if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30942 passed=`expr $passed + 1`
30943else
30944 failed=`expr $failed + 1`
30945fi
30946
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30948$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30949if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30950 $as_echo_n "(cached) " >&6
30951else
30952 ac_check_lib_save_LIBS=$LIBS
30953LIBS="-lpng17 $LIBS"
30954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30955/* end confdefs.h. */
30956
30957/* Override any GCC internal prototype to avoid an error.
30958 Use char because int might match the return type of a GCC
30959 builtin and then its argument prototype would still apply. */
30960#ifdef __cplusplus
30961extern "C"
30962#endif
30963char png_longjmp ();
30964int
30965main ()
30966{
30967return png_longjmp ();
30968 ;
30969 return 0;
30970}
30971_ACEOF
30972if ac_fn_c_try_link "$LINENO"; then :
30973 ac_cv_lib_png17_png_longjmp=yes
30974else
30975 ac_cv_lib_png17_png_longjmp=no
30976fi
30977rm -f core conftest.err conftest.$ac_objext \
30978 conftest$ac_exeext conftest.$ac_ext
30979LIBS=$ac_check_lib_save_LIBS
30980fi
30981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30982$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30983if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30984 passed=`expr $passed + 1`
30985else
30986 failed=`expr $failed + 1`
30987fi
30988
30989 fi
30990 if test "1${var}" = '16' ; then
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30992$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30993if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30994 $as_echo_n "(cached) " >&6
30995else
30996 ac_check_lib_save_LIBS=$LIBS
30997LIBS="-lpng16 $LIBS"
30998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30999/* end confdefs.h. */
31000
31001/* Override any GCC internal prototype to avoid an error.
31002 Use char because int might match the return type of a GCC
31003 builtin and then its argument prototype would still apply. */
31004#ifdef __cplusplus
31005extern "C"
31006#endif
31007char png_get_io_ptr ();
31008int
31009main ()
31010{
31011return png_get_io_ptr ();
31012 ;
31013 return 0;
31014}
31015_ACEOF
31016if ac_fn_c_try_link "$LINENO"; then :
31017 ac_cv_lib_png16_png_get_io_ptr=yes
31018else
31019 ac_cv_lib_png16_png_get_io_ptr=no
31020fi
31021rm -f core conftest.err conftest.$ac_objext \
31022 conftest$ac_exeext conftest.$ac_ext
31023LIBS=$ac_check_lib_save_LIBS
31024fi
31025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31026$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31027if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31028 passed=`expr $passed + 1`
31029else
31030 failed=`expr $failed + 1`
31031fi
31032
31033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31034$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31035if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31036 $as_echo_n "(cached) " >&6
31037else
31038 ac_check_lib_save_LIBS=$LIBS
31039LIBS="-lpng16 $LIBS"
31040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31041/* end confdefs.h. */
31042
31043/* Override any GCC internal prototype to avoid an error.
31044 Use char because int might match the return type of a GCC
31045 builtin and then its argument prototype would still apply. */
31046#ifdef __cplusplus
31047extern "C"
31048#endif
31049char png_longjmp ();
31050int
31051main ()
31052{
31053return png_longjmp ();
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058if ac_fn_c_try_link "$LINENO"; then :
31059 ac_cv_lib_png16_png_longjmp=yes
31060else
31061 ac_cv_lib_png16_png_longjmp=no
31062fi
31063rm -f core conftest.err conftest.$ac_objext \
31064 conftest$ac_exeext conftest.$ac_ext
31065LIBS=$ac_check_lib_save_LIBS
31066fi
31067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31068$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31069if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31070 passed=`expr $passed + 1`
31071else
31072 failed=`expr $failed + 1`
31073fi
31074
31075 fi
cristy81beccd2011-10-03 18:17:24 +000031076 if test "1${var}" = '15' ; then
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31078$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31079if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31080 $as_echo_n "(cached) " >&6
31081else
31082 ac_check_lib_save_LIBS=$LIBS
31083LIBS="-lpng15 $LIBS"
31084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31085/* end confdefs.h. */
31086
31087/* Override any GCC internal prototype to avoid an error.
31088 Use char because int might match the return type of a GCC
31089 builtin and then its argument prototype would still apply. */
31090#ifdef __cplusplus
31091extern "C"
31092#endif
31093char png_get_io_ptr ();
31094int
31095main ()
31096{
31097return png_get_io_ptr ();
31098 ;
31099 return 0;
31100}
31101_ACEOF
31102if ac_fn_c_try_link "$LINENO"; then :
31103 ac_cv_lib_png15_png_get_io_ptr=yes
31104else
31105 ac_cv_lib_png15_png_get_io_ptr=no
31106fi
31107rm -f core conftest.err conftest.$ac_objext \
31108 conftest$ac_exeext conftest.$ac_ext
31109LIBS=$ac_check_lib_save_LIBS
31110fi
31111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31112$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31113if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31114 passed=`expr $passed + 1`
31115else
31116 failed=`expr $failed + 1`
31117fi
31118
31119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31120$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31121if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31122 $as_echo_n "(cached) " >&6
31123else
31124 ac_check_lib_save_LIBS=$LIBS
31125LIBS="-lpng15 $LIBS"
31126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31127/* end confdefs.h. */
31128
31129/* Override any GCC internal prototype to avoid an error.
31130 Use char because int might match the return type of a GCC
31131 builtin and then its argument prototype would still apply. */
31132#ifdef __cplusplus
31133extern "C"
31134#endif
31135char png_longjmp ();
31136int
31137main ()
31138{
31139return png_longjmp ();
31140 ;
31141 return 0;
31142}
31143_ACEOF
31144if ac_fn_c_try_link "$LINENO"; then :
31145 ac_cv_lib_png15_png_longjmp=yes
31146else
31147 ac_cv_lib_png15_png_longjmp=no
31148fi
31149rm -f core conftest.err conftest.$ac_objext \
31150 conftest$ac_exeext conftest.$ac_ext
31151LIBS=$ac_check_lib_save_LIBS
31152fi
31153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31154$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31155if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31156 passed=`expr $passed + 1`
31157else
31158 failed=`expr $failed + 1`
31159fi
31160
31161 fi
31162 if test "1${var}" = '14' ; then
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31164$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31165if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31166 $as_echo_n "(cached) " >&6
31167else
31168 ac_check_lib_save_LIBS=$LIBS
31169LIBS="-lpng14 $LIBS"
31170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31171/* end confdefs.h. */
31172
31173/* Override any GCC internal prototype to avoid an error.
31174 Use char because int might match the return type of a GCC
31175 builtin and then its argument prototype would still apply. */
31176#ifdef __cplusplus
31177extern "C"
31178#endif
31179char png_get_io_ptr ();
31180int
31181main ()
31182{
31183return png_get_io_ptr ();
31184 ;
31185 return 0;
31186}
31187_ACEOF
31188if ac_fn_c_try_link "$LINENO"; then :
31189 ac_cv_lib_png14_png_get_io_ptr=yes
31190else
31191 ac_cv_lib_png14_png_get_io_ptr=no
31192fi
31193rm -f core conftest.err conftest.$ac_objext \
31194 conftest$ac_exeext conftest.$ac_ext
31195LIBS=$ac_check_lib_save_LIBS
31196fi
31197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31198$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31199if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31200 passed=`expr $passed + 1`
31201else
31202 failed=`expr $failed + 1`
31203fi
31204
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31206$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31207if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31208 $as_echo_n "(cached) " >&6
31209else
31210 ac_check_lib_save_LIBS=$LIBS
31211LIBS="-lpng14 $LIBS"
31212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31213/* end confdefs.h. */
31214
31215/* Override any GCC internal prototype to avoid an error.
31216 Use char because int might match the return type of a GCC
31217 builtin and then its argument prototype would still apply. */
31218#ifdef __cplusplus
31219extern "C"
31220#endif
31221char png_get_io_state ();
31222int
31223main ()
31224{
31225return png_get_io_state ();
31226 ;
31227 return 0;
31228}
31229_ACEOF
31230if ac_fn_c_try_link "$LINENO"; then :
31231 ac_cv_lib_png14_png_get_io_state=yes
31232else
31233 ac_cv_lib_png14_png_get_io_state=no
31234fi
31235rm -f core conftest.err conftest.$ac_objext \
31236 conftest$ac_exeext conftest.$ac_ext
31237LIBS=$ac_check_lib_save_LIBS
31238fi
31239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31240$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31241if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31242 passed=`expr $passed + 1`
31243else
31244 failed=`expr $failed + 1`
31245fi
31246
31247 fi
31248 if test "1${var}" = '12' ; then
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31250$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31251if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31252 $as_echo_n "(cached) " >&6
31253else
31254 ac_check_lib_save_LIBS=$LIBS
31255LIBS="-lpng12 $LIBS"
31256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31257/* end confdefs.h. */
31258
31259/* Override any GCC internal prototype to avoid an error.
31260 Use char because int might match the return type of a GCC
31261 builtin and then its argument prototype would still apply. */
31262#ifdef __cplusplus
31263extern "C"
31264#endif
31265char png_get_io_ptr ();
31266int
31267main ()
31268{
31269return png_get_io_ptr ();
31270 ;
31271 return 0;
31272}
31273_ACEOF
31274if ac_fn_c_try_link "$LINENO"; then :
31275 ac_cv_lib_png12_png_get_io_ptr=yes
31276else
31277 ac_cv_lib_png12_png_get_io_ptr=no
31278fi
31279rm -f core conftest.err conftest.$ac_objext \
31280 conftest$ac_exeext conftest.$ac_ext
31281LIBS=$ac_check_lib_save_LIBS
31282fi
31283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31284$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31285if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31286 passed=`expr $passed + 1`
31287else
31288 failed=`expr $failed + 1`
31289fi
31290
31291 fi
31292 if test "1${var}" = '1' ; then
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31294$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31295if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31296 $as_echo_n "(cached) " >&6
31297else
31298 ac_check_lib_save_LIBS=$LIBS
31299LIBS="-lpng $LIBS"
31300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31301/* end confdefs.h. */
31302
31303/* Override any GCC internal prototype to avoid an error.
31304 Use char because int might match the return type of a GCC
31305 builtin and then its argument prototype would still apply. */
31306#ifdef __cplusplus
31307extern "C"
31308#endif
31309char png_get_io_ptr ();
31310int
31311main ()
31312{
31313return png_get_io_ptr ();
31314 ;
31315 return 0;
31316}
31317_ACEOF
31318if ac_fn_c_try_link "$LINENO"; then :
31319 ac_cv_lib_png_png_get_io_ptr=yes
31320else
31321 ac_cv_lib_png_png_get_io_ptr=no
31322fi
31323rm -f core conftest.err conftest.$ac_objext \
31324 conftest$ac_exeext conftest.$ac_ext
31325LIBS=$ac_check_lib_save_LIBS
31326fi
31327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31328$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31329if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31330 passed=`expr $passed + 1`
31331else
31332 failed=`expr $failed + 1`
31333fi
31334
31335 fi
31336 if test $passed -gt 0 -a $failed -le 0 ; then
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31338$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31339 if test $passed -gt 0 ; then
31340 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31342$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031343 have_png='no (failed tests)'
31344 else
31345 PNG_LIBS="-l${pnglib}"
31346 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031347
cristy8b350f62009-11-15 23:12:43 +000031348$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031349
cristyad38abe2012-12-23 23:03:21 +000031350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31351$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031352 have_png='yes'
31353 fi
31354 fi
31355 fi
31356 fi
31357 fi
31358 done
31359 fi
cristy3ed852e2009-09-05 21:47:34 +000031360fi
cristy64877302011-08-23 19:10:31 +000031361
cristy73bd4a52010-10-05 11:24:23 +000031362 if test "$have_png" = 'yes'; then
31363 PNG_DELEGATE_TRUE=
31364 PNG_DELEGATE_FALSE='#'
31365else
31366 PNG_DELEGATE_TRUE='#'
31367 PNG_DELEGATE_FALSE=
31368fi
31369
cristy3ed852e2009-09-05 21:47:34 +000031370
cristy50d3f5c2011-09-10 20:09:06 +000031371
cristy3ed852e2009-09-05 21:47:34 +000031372
31373
31374#
31375# Check for RSVG delegate library.
31376#
31377
31378# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031379if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031380 withval=$with_rsvg; with_rsvg=$withval
31381else
cristy1164d5f2012-08-15 00:58:25 +000031382 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031383fi
31384
31385
31386if test "$with_rsvg" != 'yes'; then
31387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31388fi
31389
31390have_rsvg='no'
31391have_cairo='no'
31392RSVG_CFLAGS=""
31393RSVG_LIBS=""
31394RSVG_PKG=""
31395if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31397$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031398
31399pkg_failed=no
31400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31401$as_echo_n "checking for RSVG... " >&6; }
31402
31403if test -n "$RSVG_CFLAGS"; then
31404 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31405 elif test -n "$PKG_CONFIG"; then
31406 if test -n "$PKG_CONFIG" && \
31407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31408 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31409 ac_status=$?
31410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31411 test $ac_status = 0; }; then
31412 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31413else
31414 pkg_failed=yes
31415fi
31416 else
31417 pkg_failed=untried
31418fi
31419if test -n "$RSVG_LIBS"; then
31420 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31421 elif test -n "$PKG_CONFIG"; then
31422 if test -n "$PKG_CONFIG" && \
31423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31424 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31425 ac_status=$?
31426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31427 test $ac_status = 0; }; then
31428 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31429else
31430 pkg_failed=yes
31431fi
31432 else
31433 pkg_failed=untried
31434fi
31435
31436
31437
31438if test $pkg_failed = yes; then
31439
31440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31441 _pkg_short_errors_supported=yes
31442else
31443 _pkg_short_errors_supported=no
31444fi
31445 if test $_pkg_short_errors_supported = yes; then
31446 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31447 else
31448 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31449 fi
31450 # Put the nasty error message in config.log where it belongs
31451 echo "$RSVG_PKG_ERRORS" >&5
31452
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31454$as_echo "no" >&6; }
31455 have_rsvg=no
31456elif test $pkg_failed = untried; then
31457 have_rsvg=no
31458else
31459 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31460 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31462$as_echo "yes" >&6; }
31463 have_rsvg=yes
31464fi
cristyad38abe2012-12-23 23:03:21 +000031465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31466$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031467
31468pkg_failed=no
31469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31470$as_echo_n "checking for CAIRO_SVG... " >&6; }
31471
31472if test -n "$CAIRO_SVG_CFLAGS"; then
31473 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31474 elif test -n "$PKG_CONFIG"; then
31475 if test -n "$PKG_CONFIG" && \
31476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31477 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31478 ac_status=$?
31479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31480 test $ac_status = 0; }; then
31481 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31482else
31483 pkg_failed=yes
31484fi
31485 else
31486 pkg_failed=untried
31487fi
31488if test -n "$CAIRO_SVG_LIBS"; then
31489 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31490 elif test -n "$PKG_CONFIG"; then
31491 if test -n "$PKG_CONFIG" && \
31492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31493 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31494 ac_status=$?
31495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31496 test $ac_status = 0; }; then
31497 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31498else
31499 pkg_failed=yes
31500fi
31501 else
31502 pkg_failed=untried
31503fi
31504
31505
31506
31507if test $pkg_failed = yes; then
31508
31509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31510 _pkg_short_errors_supported=yes
31511else
31512 _pkg_short_errors_supported=no
31513fi
31514 if test $_pkg_short_errors_supported = yes; then
31515 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31516 else
31517 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31518 fi
31519 # Put the nasty error message in config.log where it belongs
31520 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31521
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31523$as_echo "no" >&6; }
31524 have_cairo=no
31525elif test $pkg_failed = untried; then
31526 have_cairo=no
31527else
31528 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31529 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31531$as_echo "yes" >&6; }
31532 have_cairo=yes
31533fi
cristyad38abe2012-12-23 23:03:21 +000031534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31535$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031536fi
31537
31538if test "$have_rsvg" = 'yes'; then
31539
cristy8b350f62009-11-15 23:12:43 +000031540$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031541
cristyc6722092012-10-14 00:19:31 +000031542 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031543 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31544 fi
31545fi
31546
31547if test "$have_cairo" = 'yes'; then
31548
cristy8b350f62009-11-15 23:12:43 +000031549$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031550
cristyc6722092012-10-14 00:19:31 +000031551 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031552 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31553 fi
31554fi
31555
cristy73bd4a52010-10-05 11:24:23 +000031556 if test "$have_rsvg" = 'yes'; then
31557 RSVG_DELEGATE_TRUE=
31558 RSVG_DELEGATE_FALSE='#'
31559else
31560 RSVG_DELEGATE_TRUE='#'
31561 RSVG_DELEGATE_FALSE=
31562fi
31563
31564 if test "$have_cairo" = 'yes'; then
31565 CAIRO_DELEGATE_TRUE=
31566 CAIRO_DELEGATE_FALSE='#'
31567else
31568 CAIRO_DELEGATE_TRUE='#'
31569 CAIRO_DELEGATE_FALSE=
31570fi
31571
cristy3ed852e2009-09-05 21:47:34 +000031572
31573
31574
31575
31576#
31577# Check for TIFF delegate library.
31578#
31579
31580# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031581if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031582 withval=$with_tiff; with_tiff=$withval
31583else
31584 with_tiff='yes'
31585fi
31586
31587
31588if test "$with_tiff" != 'yes'; then
31589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31590fi
31591
31592have_tiff='no'
31593TIFF_LIBS=''
31594if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31596$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031598$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31600$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031601 failed=0
31602 passed=0
cristy8b350f62009-11-15 23:12:43 +000031603 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031604if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031605 passed=`expr $passed + 1`
31606else
31607 failed=`expr $failed + 1`
31608fi
31609
31610
cristy8b350f62009-11-15 23:12:43 +000031611 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031612if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031613 passed=`expr $passed + 1`
31614else
31615 failed=`expr $failed + 1`
31616fi
31617
31618
cristy8b350f62009-11-15 23:12:43 +000031619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031620$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031621if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031622 $as_echo_n "(cached) " >&6
31623else
31624 ac_check_lib_save_LIBS=$LIBS
31625LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031627/* end confdefs.h. */
31628
31629/* Override any GCC internal prototype to avoid an error.
31630 Use char because int might match the return type of a GCC
31631 builtin and then its argument prototype would still apply. */
31632#ifdef __cplusplus
31633extern "C"
31634#endif
31635char TIFFOpen ();
31636int
31637main ()
31638{
31639return TIFFOpen ();
31640 ;
31641 return 0;
31642}
31643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031645 ac_cv_lib_tiff_TIFFOpen=yes
31646else
cristy8b350f62009-11-15 23:12:43 +000031647 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031648fi
cristy8b350f62009-11-15 23:12:43 +000031649rm -f core conftest.err conftest.$ac_objext \
31650 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031651LIBS=$ac_check_lib_save_LIBS
31652fi
cristy8b350f62009-11-15 23:12:43 +000031653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031654$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031655if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031656 passed=`expr $passed + 1`
31657else
31658 failed=`expr $failed + 1`
31659fi
31660
cristy8b350f62009-11-15 23:12:43 +000031661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031663if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031664 $as_echo_n "(cached) " >&6
31665else
31666 ac_check_lib_save_LIBS=$LIBS
31667LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031669/* end confdefs.h. */
31670
31671/* Override any GCC internal prototype to avoid an error.
31672 Use char because int might match the return type of a GCC
31673 builtin and then its argument prototype would still apply. */
31674#ifdef __cplusplus
31675extern "C"
31676#endif
31677char TIFFClientOpen ();
31678int
31679main ()
31680{
31681return TIFFClientOpen ();
31682 ;
31683 return 0;
31684}
31685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031687 ac_cv_lib_tiff_TIFFClientOpen=yes
31688else
cristy8b350f62009-11-15 23:12:43 +000031689 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031690fi
cristy8b350f62009-11-15 23:12:43 +000031691rm -f core conftest.err conftest.$ac_objext \
31692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031693LIBS=$ac_check_lib_save_LIBS
31694fi
cristy8b350f62009-11-15 23:12:43 +000031695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031696$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031697if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031698 passed=`expr $passed + 1`
31699else
31700 failed=`expr $failed + 1`
31701fi
31702
cristy8b350f62009-11-15 23:12:43 +000031703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031704$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031705if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031706 $as_echo_n "(cached) " >&6
31707else
31708 ac_check_lib_save_LIBS=$LIBS
31709LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031711/* end confdefs.h. */
31712
31713/* Override any GCC internal prototype to avoid an error.
31714 Use char because int might match the return type of a GCC
31715 builtin and then its argument prototype would still apply. */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719char TIFFIsByteSwapped ();
31720int
31721main ()
31722{
31723return TIFFIsByteSwapped ();
31724 ;
31725 return 0;
31726}
31727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031729 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31730else
cristy8b350f62009-11-15 23:12:43 +000031731 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031732fi
cristy8b350f62009-11-15 23:12:43 +000031733rm -f core conftest.err conftest.$ac_objext \
31734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031735LIBS=$ac_check_lib_save_LIBS
31736fi
cristy8b350f62009-11-15 23:12:43 +000031737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031739if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031740 passed=`expr $passed + 1`
31741else
31742 failed=`expr $failed + 1`
31743fi
31744
cristy8b350f62009-11-15 23:12:43 +000031745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031746$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031747if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031748 $as_echo_n "(cached) " >&6
31749else
31750 ac_check_lib_save_LIBS=$LIBS
31751LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031753/* end confdefs.h. */
31754
31755/* Override any GCC internal prototype to avoid an error.
31756 Use char because int might match the return type of a GCC
31757 builtin and then its argument prototype would still apply. */
31758#ifdef __cplusplus
31759extern "C"
31760#endif
31761char TIFFReadRGBATile ();
31762int
31763main ()
31764{
31765return TIFFReadRGBATile ();
31766 ;
31767 return 0;
31768}
31769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031771 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31772else
cristy8b350f62009-11-15 23:12:43 +000031773 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031774fi
cristy8b350f62009-11-15 23:12:43 +000031775rm -f core conftest.err conftest.$ac_objext \
31776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031777LIBS=$ac_check_lib_save_LIBS
31778fi
cristy8b350f62009-11-15 23:12:43 +000031779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031780$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031781if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031782 passed=`expr $passed + 1`
31783else
31784 failed=`expr $failed + 1`
31785fi
31786
cristy8b350f62009-11-15 23:12:43 +000031787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031788$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031789if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031790 $as_echo_n "(cached) " >&6
31791else
31792 ac_check_lib_save_LIBS=$LIBS
31793LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031795/* end confdefs.h. */
31796
31797/* Override any GCC internal prototype to avoid an error.
31798 Use char because int might match the return type of a GCC
31799 builtin and then its argument prototype would still apply. */
31800#ifdef __cplusplus
31801extern "C"
31802#endif
31803char TIFFReadRGBAStrip ();
31804int
31805main ()
31806{
31807return TIFFReadRGBAStrip ();
31808 ;
31809 return 0;
31810}
31811_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031812if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031813 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31814else
cristy8b350f62009-11-15 23:12:43 +000031815 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031816fi
cristy8b350f62009-11-15 23:12:43 +000031817rm -f core conftest.err conftest.$ac_objext \
31818 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031819LIBS=$ac_check_lib_save_LIBS
31820fi
cristy8b350f62009-11-15 23:12:43 +000031821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031822$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031823if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031824 passed=`expr $passed + 1`
31825else
31826 failed=`expr $failed + 1`
31827fi
31828
cristy8b350f62009-11-15 23:12:43 +000031829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031830$as_echo_n "checking if TIFF package is complete... " >&6; }
31831 if test $passed -gt 0; then
31832 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31834$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031835 have_tiff='no (failed tests)'
31836 else
31837 TIFF_LIBS='-ltiff'
31838 LIBS="$TIFF_LIBS $LIBS"
31839
cristy8b350f62009-11-15 23:12:43 +000031840$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031841
cristyad38abe2012-12-23 23:03:21 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31843$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031844 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031845 for ac_header in tiffconf.h
31846do :
31847 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031848if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031849 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031850#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031851_ACEOF
31852
31853fi
31854
31855done
31856
cristy8b350f62009-11-15 23:12:43 +000031857 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031858 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31859 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31860 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031861do :
31862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031864if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 cat >>confdefs.h <<_ACEOF
31866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31867_ACEOF
31868
31869fi
31870done
31871
31872 fi
31873 else
cristyad38abe2012-12-23 23:03:21 +000031874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31875$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031876 fi
31877fi
cristy73bd4a52010-10-05 11:24:23 +000031878 if test "$have_tiff" = 'yes'; then
31879 TIFF_DELEGATE_TRUE=
31880 TIFF_DELEGATE_FALSE='#'
31881else
31882 TIFF_DELEGATE_TRUE='#'
31883 TIFF_DELEGATE_FALSE=
31884fi
31885
cristy3ed852e2009-09-05 21:47:34 +000031886
31887
31888
31889#
cristyb1860752011-03-14 00:27:46 +000031890# Check for WEBP delegate library.
31891#
31892
31893# Check whether --with-webp was given.
31894if test "${with_webp+set}" = set; then :
31895 withval=$with_webp; with_webp=$withval
31896else
31897 with_webp='yes'
31898fi
31899
31900
31901if test "$with_webp" != 'yes'; then
31902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31903fi
31904
31905have_webp='no'
31906WEBP_LIBS=''
31907if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31909$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31911$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31913$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031914 failed=0
31915 passed=0
31916 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31917if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31918 passed=`expr $passed + 1`
31919else
31920 failed=`expr $failed + 1`
31921fi
31922
31923
cristy6d670312013-03-22 23:23:01 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
31925$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
31926if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000031927 $as_echo_n "(cached) " >&6
31928else
31929 ac_check_lib_save_LIBS=$LIBS
31930LIBS="-lwebp $LIBS"
31931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31932/* 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
cristy6d670312013-03-22 23:23:01 +000031940char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031941int
31942main ()
31943{
cristy6d670312013-03-22 23:23:01 +000031944return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000031945 ;
31946 return 0;
31947}
31948_ACEOF
31949if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000031950 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000031951else
cristy6d670312013-03-22 23:23:01 +000031952 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000031953fi
31954rm -f core conftest.err conftest.$ac_objext \
31955 conftest$ac_exeext conftest.$ac_ext
31956LIBS=$ac_check_lib_save_LIBS
31957fi
cristy6d670312013-03-22 23:23:01 +000031958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
31959$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
31960if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000031961 passed=`expr $passed + 1`
31962else
31963 failed=`expr $failed + 1`
31964fi
31965
31966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31967$as_echo_n "checking if WEBP package is complete... " >&6; }
31968 if test $passed -gt 0; then
31969 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31971$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031972 have_webp='no (failed tests)'
31973 else
31974 WEBP_LIBS='-lwebp'
31975 LIBS="$WEBP_LIBS $LIBS"
31976
31977$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31978
cristyad38abe2012-12-23 23:03:21 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31980$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031981 have_webp='yes'
31982 fi
31983 else
cristyad38abe2012-12-23 23:03:21 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31985$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031986 fi
31987fi
31988 if test "$have_webp" = 'yes'; then
31989 WEBP_DELEGATE_TRUE=
31990 WEBP_DELEGATE_FALSE='#'
31991else
31992 WEBP_DELEGATE_TRUE='#'
31993 WEBP_DELEGATE_FALSE=
31994fi
31995
31996
31997
31998
31999#
cristy3ed852e2009-09-05 21:47:34 +000032000# Set Windows font directory.
32001#
32002
32003# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032004if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032005 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32006else
32007 with_windows_font_dir=''
32008fi
32009
32010if test "$with_windows_font_dir" != '' ; then
32011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32012fi
32013
32014
32015#
32016# Check for WMF delegate library.
32017#
32018
32019# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032020if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032021 withval=$with_wmf; with_wmf=$withval
32022else
cristyfc3d0222012-02-07 15:05:57 +000032023 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032024fi
32025
32026
32027if test "$with_wmf" != 'yes'; then
32028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32029fi
32030
32031have_wmf='no'
32032WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032033WMF_LIBS_DEPS=''
32034OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032035if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32037$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32041$as_echo "" >&6; }
32042 have_libwmf='no'
32043 have_libwmflite='no'
32044 have_libwmf_ipa_h='no'
32045
32046 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32047"
32048if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32049 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032050fi
32051
32052
cristy03f7cf92011-12-15 01:40:41 +000032053 if test "$have_libwmf_ipa_h" = 'yes'; then
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32055$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32056if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032057 $as_echo_n "(cached) " >&6
32058else
32059 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032060LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032062/* end confdefs.h. */
32063
32064/* Override any GCC internal prototype to avoid an error.
32065 Use char because int might match the return type of a GCC
32066 builtin and then its argument prototype would still apply. */
32067#ifdef __cplusplus
32068extern "C"
32069#endif
cristy03f7cf92011-12-15 01:40:41 +000032070char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032071int
32072main ()
32073{
cristy03f7cf92011-12-15 01:40:41 +000032074return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032075 ;
32076 return 0;
32077}
32078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032079if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032080 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032081else
cristy03f7cf92011-12-15 01:40:41 +000032082 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032083fi
cristy8b350f62009-11-15 23:12:43 +000032084rm -f core conftest.err conftest.$ac_objext \
32085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032086LIBS=$ac_check_lib_save_LIBS
32087fi
cristy03f7cf92011-12-15 01:40:41 +000032088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32089$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32090if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32091 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032092fi
32093
cristy03f7cf92011-12-15 01:40:41 +000032094 if test "$have_libwmflite" = 'yes'; then
32095
32096$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32097
32098 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032099 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032100 have_wmf='yes'
32101 else
32102 WMF_LIBS_DEPS=''
32103 WMF_CONFIG_LIBS=`libwmf-config --libs`
32104 for lib in xml2 expat freetype jpeg png z; do
32105 testlib="-l${lib}"
32106 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32107 done
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32109$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32110if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32111 $as_echo_n "(cached) " >&6
32112else
32113 ac_check_lib_save_LIBS=$LIBS
32114LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32116/* end confdefs.h. */
32117
32118/* Override any GCC internal prototype to avoid an error.
32119 Use char because int might match the return type of a GCC
32120 builtin and then its argument prototype would still apply. */
32121#ifdef __cplusplus
32122extern "C"
32123#endif
32124char wmf_api_create ();
32125int
32126main ()
32127{
32128return wmf_api_create ();
32129 ;
32130 return 0;
32131}
32132_ACEOF
32133if ac_fn_c_try_link "$LINENO"; then :
32134 ac_cv_lib_wmf_wmf_api_create=yes
32135else
32136 ac_cv_lib_wmf_wmf_api_create=no
32137fi
32138rm -f core conftest.err conftest.$ac_objext \
32139 conftest$ac_exeext conftest.$ac_ext
32140LIBS=$ac_check_lib_save_LIBS
32141fi
32142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32143$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32144if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32145 have_libwmf='yes'
32146fi
32147
32148 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032149
cristy8b350f62009-11-15 23:12:43 +000032150$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032151
cristy03f7cf92011-12-15 01:40:41 +000032152 WMF_LIBS='-lwmf'
32153 LIBS="$WMF_LIBS $LIBS"
32154 have_wmf='yes'
32155 else
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32157$as_echo "no -- some components failed test" >&6; }
32158 have_wmf='no (failed tests)'
32159 have_wmflite='no (failed tests)'
32160 LIBS="$OLIBS"
32161 WMF_LIBS=''
32162 fi
glennrp33e524b2011-08-24 17:41:57 +000032163 fi
cristy03f7cf92011-12-15 01:40:41 +000032164 fi
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32166$as_echo_n "checking if WMF package is complete... " >&6; }
32167 if test "$have_wmf" = 'yes'; then
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32169$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032170 else
cristy03f7cf92011-12-15 01:40:41 +000032171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32172$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032173 fi
cristy3ed852e2009-09-05 21:47:34 +000032174fi
cristy73bd4a52010-10-05 11:24:23 +000032175 if test "$have_wmf" = 'yes'; then
32176 WMF_DELEGATE_TRUE=
32177 WMF_DELEGATE_FALSE='#'
32178else
32179 WMF_DELEGATE_TRUE='#'
32180 WMF_DELEGATE_FALSE=
32181fi
32182
cristy3ed852e2009-09-05 21:47:34 +000032183
32184
32185
cristy81beccd2011-10-03 18:17:24 +000032186
32187
cristy3ed852e2009-09-05 21:47:34 +000032188#
32189# Check for XML delegate library.
32190#
32191
32192# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032193if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032194 withval=$with_xml; with_xml=$withval
32195else
cristyfc3d0222012-02-07 15:05:57 +000032196 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032197fi
32198
32199
cristy81beccd2011-10-03 18:17:24 +000032200if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32202fi
32203
cristy81beccd2011-10-03 18:17:24 +000032204have_xml='no'
32205XML_LIBS=''
32206if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32208$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32210$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32212$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032213 PERSIST_LDFLAGS=$LDFLAGS
32214 PERSIST_CPPFLAGS=$CPPFLAGS
32215 xml2_config=''
32216 # Extract the first word of "xml2-config", so it can be a program name with args.
32217set dummy xml2-config; ac_word=$2
32218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32219$as_echo_n "checking for $ac_word... " >&6; }
32220if ${ac_cv_path_xml2_config+:} false; then :
32221 $as_echo_n "(cached) " >&6
32222else
32223 case $xml2_config in
32224 [\\/]* | ?:[\\/]*)
32225 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32226 ;;
32227 *)
32228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32229for as_dir in $PATH
32230do
32231 IFS=$as_save_IFS
32232 test -z "$as_dir" && as_dir=.
32233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032235 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32237 break 2
32238 fi
32239done
32240 done
32241IFS=$as_save_IFS
32242
32243 ;;
32244esac
32245fi
32246xml2_config=$ac_cv_path_xml2_config
32247if test -n "$xml2_config"; then
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32249$as_echo "$xml2_config" >&6; }
32250else
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32252$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032253fi
32254
cristy81beccd2011-10-03 18:17:24 +000032255 if test -n "$xml2_config"; then
32256 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32257 # the shared library installed under /usr/lib, whereas the package
32258 # installs itself under $prefix/libxml and $prefix/lib.
32259 xml2_prefix=`xml2-config --prefix`
32260 if test -d "${xml2_prefix}/include/libxml2"; then
32261 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32262 fi
32263 if test "${xml2_prefix}" != '/usr'; then
32264 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32265 fi
32266 fi
32267 failed=0
32268 passed=0
32269 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32270if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32271 passed=`expr $passed + 1`
32272else
32273 failed=`expr $failed + 1`
32274fi
32275
32276
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32278$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32279if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32280 $as_echo_n "(cached) " >&6
32281else
32282 ac_check_lib_save_LIBS=$LIBS
32283LIBS="-lxml2 $LIBS"
32284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32285/* end confdefs.h. */
32286
32287/* Override any GCC internal prototype to avoid an error.
32288 Use char because int might match the return type of a GCC
32289 builtin and then its argument prototype would still apply. */
32290#ifdef __cplusplus
32291extern "C"
32292#endif
32293char xmlSAXVersion ();
32294int
32295main ()
32296{
32297return xmlSAXVersion ();
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302if ac_fn_c_try_link "$LINENO"; then :
32303 ac_cv_lib_xml2_xmlSAXVersion=yes
32304else
32305 ac_cv_lib_xml2_xmlSAXVersion=no
32306fi
32307rm -f core conftest.err conftest.$ac_objext \
32308 conftest$ac_exeext conftest.$ac_ext
32309LIBS=$ac_check_lib_save_LIBS
32310fi
32311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32312$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32313if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32314 passed=`expr $passed + 1`
32315else
32316 failed=`expr $failed + 1`
32317fi
32318
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32320$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32321if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32322 $as_echo_n "(cached) " >&6
32323else
32324 ac_check_lib_save_LIBS=$LIBS
32325LIBS="-lxml2 $LIBS"
32326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32327/* end confdefs.h. */
32328
32329/* Override any GCC internal prototype to avoid an error.
32330 Use char because int might match the return type of a GCC
32331 builtin and then its argument prototype would still apply. */
32332#ifdef __cplusplus
32333extern "C"
32334#endif
32335char xmlParseChunk ();
32336int
32337main ()
32338{
32339return xmlParseChunk ();
32340 ;
32341 return 0;
32342}
32343_ACEOF
32344if ac_fn_c_try_link "$LINENO"; then :
32345 ac_cv_lib_xml2_xmlParseChunk=yes
32346else
32347 ac_cv_lib_xml2_xmlParseChunk=no
32348fi
32349rm -f core conftest.err conftest.$ac_objext \
32350 conftest$ac_exeext conftest.$ac_ext
32351LIBS=$ac_check_lib_save_LIBS
32352fi
32353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32354$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32355if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32356 passed=`expr $passed + 1`
32357else
32358 failed=`expr $failed + 1`
32359fi
32360
32361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32362$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32363if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32364 $as_echo_n "(cached) " >&6
32365else
32366 ac_check_lib_save_LIBS=$LIBS
32367LIBS="-lxml2 $LIBS"
32368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369/* end confdefs.h. */
32370
32371/* Override any GCC internal prototype to avoid an error.
32372 Use char because int might match the return type of a GCC
32373 builtin and then its argument prototype would still apply. */
32374#ifdef __cplusplus
32375extern "C"
32376#endif
32377char xmlCreatePushParserCtxt ();
32378int
32379main ()
32380{
32381return xmlCreatePushParserCtxt ();
32382 ;
32383 return 0;
32384}
32385_ACEOF
32386if ac_fn_c_try_link "$LINENO"; then :
32387 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32388else
32389 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32390fi
32391rm -f core conftest.err conftest.$ac_objext \
32392 conftest$ac_exeext conftest.$ac_ext
32393LIBS=$ac_check_lib_save_LIBS
32394fi
32395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32396$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32397if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32398 passed=`expr $passed + 1`
32399else
32400 failed=`expr $failed + 1`
32401fi
32402
32403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32404$as_echo_n "checking if XML package is complete... " >&6; }
32405 if test $passed -gt 0; then
32406 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32408$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032409 have_xml='no (failed tests)'
32410 LDFLAGS="$PERSIST_LDFLAGS"
32411 CPPFLAGS="$PERSIST_CPPFLAGS"
32412 else
32413 XML_LIBS='-lxml2'
32414 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032415
cristy8b350f62009-11-15 23:12:43 +000032416$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032417
cristyad38abe2012-12-23 23:03:21 +000032418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32419$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032420 have_xml='yes'
32421 fi
32422 else
cristyad38abe2012-12-23 23:03:21 +000032423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32424$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032425 fi
32426fi
cristy73bd4a52010-10-05 11:24:23 +000032427 if test "$have_xml" = 'yes'; then
32428 XML_DELEGATE_TRUE=
32429 XML_DELEGATE_FALSE='#'
32430else
32431 XML_DELEGATE_TRUE='#'
32432 XML_DELEGATE_FALSE=
32433fi
32434
cristy3ed852e2009-09-05 21:47:34 +000032435
32436
32437
32438# Substitute compiler name to build/link PerlMagick
32439#
32440
32441
32442#
32443# Configure install Paths
32444#
cristy7def36a2011-10-28 19:04:41 +000032445
cristy2a11bef2011-10-28 18:33:11 +000032446# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032447INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032448INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32449DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032450case "${build_os}" in
32451 mingw* )
32452 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32453 ;;
32454esac
32455
32456cat >>confdefs.h <<_ACEOF
32457#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32458_ACEOF
32459
32460
cristy3ed852e2009-09-05 21:47:34 +000032461
cristye52f12f2012-12-31 15:32:36 +000032462# Path to ImageMagick header files (arch part)
32463INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32464DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32465case "${build_os}" in
32466 mingw* )
32467 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32468 ;;
32469esac
32470
32471cat >>confdefs.h <<_ACEOF
32472#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32473_ACEOF
32474
32475
32476
cristy3ed852e2009-09-05 21:47:34 +000032477# Subdirectory under lib to place ImageMagick lib files
32478LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32479
32480cat >>confdefs.h <<_ACEOF
32481#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32482_ACEOF
32483
32484
32485# Path to ImageMagick bin directory
32486EXECUTABLE_PATH="${BIN_DIR}"
32487DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32488case "${build_os}" in
32489 mingw* )
32490 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32491 ;;
32492esac
32493
32494cat >>confdefs.h <<_ACEOF
32495#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32496_ACEOF
32497
32498
32499
32500# Path to ImageMagick lib
32501LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32502DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32503case "${build_os}" in
32504 mingw* )
32505 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32506 ;;
32507esac
32508
32509cat >>confdefs.h <<_ACEOF
32510#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32511_ACEOF
32512
32513
32514
cristy3ed852e2009-09-05 21:47:34 +000032515#
cristy8d0ff762013-03-10 20:33:28 +000032516# path to local binaries
32517if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32518 LIB_BIN_BASEDIRNAME="bin"
32519fi
32520
32521cat >>confdefs.h <<_ACEOF
32522#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32523_ACEOF
32524
32525
32526
32527if test "x$LIB_BIN_DIR" = "x"; then
32528 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32529fi
32530
32531
32532LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32533
32534LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32535
32536
32537#
cristy01ff9f32012-12-01 18:15:29 +000032538# path to modules lib
32539if test "x$MODULES_BASEDIRNAME" = "x"; then
32540 MODULES_BASEDIRNAME="modules"
32541fi
cristy3ed852e2009-09-05 21:47:34 +000032542
32543cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032544#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032545_ACEOF
32546
cristy01ff9f32012-12-01 18:15:29 +000032547
32548
32549if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032550 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32551else
cristy3ed852e2009-09-05 21:47:34 +000032552
32553cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032554#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032555_ACEOF
32556
cristycf4a3c22012-12-02 21:47:25 +000032557fi
cristy01ff9f32012-12-01 18:15:29 +000032558
32559
cristy371d4812012-12-01 19:48:10 +000032560MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032561
32562MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32563
32564
32565#
32566# path to coders lib
32567if test "x$CODER_DIRNAME" = "x"; then
32568 CODER_DIRNAME="coders"
32569fi
32570
32571cat >>confdefs.h <<_ACEOF
32572#define CODER_DIRNAME "$CODER_DIRNAME"
32573_ACEOF
32574
32575
32576
cristy371d4812012-12-01 19:48:10 +000032577CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032578CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032579
32580
32581#
32582# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032583#
32584# path to coders lib
32585if test "x$FILTER_DIRNAME" = "x"; then
32586 FILTER_DIRNAME="filters"
32587fi
cristy3ed852e2009-09-05 21:47:34 +000032588
32589cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032590#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032591_ACEOF
32592
cristy3ed852e2009-09-05 21:47:34 +000032593
cristy3ed852e2009-09-05 21:47:34 +000032594
cristy371d4812012-12-01 19:48:10 +000032595FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032596FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032597
32598
32599#
32600# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032601DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032602DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32603DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032604case "${build_os}" in
32605 mingw* )
32606 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32607 ;;
32608esac
32609
32610cat >>confdefs.h <<_ACEOF
32611#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32612_ACEOF
32613
32614
32615
cristy2a11bef2011-10-28 18:33:11 +000032616# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032617CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032618
32619cat >>confdefs.h <<_ACEOF
32620#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32621_ACEOF
32622
cristy7def36a2011-10-28 19:04:41 +000032623CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032624DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32625case "${build_os}" in
32626 mingw* )
32627 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32628 ;;
32629esac
32630
32631cat >>confdefs.h <<_ACEOF
32632#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32633_ACEOF
32634
32635
32636
cristy2a11bef2011-10-28 18:33:11 +000032637# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032638SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032639
32640cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032641#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032642_ACEOF
32643
cristy670aa3c2011-11-03 00:54:00 +000032644SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032645DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032646case "${build_os}" in
32647 mingw* )
cristy4f820712011-04-01 12:35:43 +000032648 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032649 ;;
32650esac
32651
32652cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032653#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032654_ACEOF
32655
32656
32657
cristy54378032012-12-04 15:52:20 +000032658#
32659# Subdirectory to place architecture-dependent configuration files.
32660if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32661 SHAREARCH_BASEDIRNAME="config"
32662fi
cristy670aa3c2011-11-03 00:54:00 +000032663
32664cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032665#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032666_ACEOF
32667
cristy54378032012-12-04 15:52:20 +000032668
32669
32670if test "x$SHAREARCH_DIRNAME" = "x"; then
32671 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32672else
cristy670aa3c2011-11-03 00:54:00 +000032673
32674cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032675#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032676_ACEOF
32677
cristy54378032012-12-04 15:52:20 +000032678fi
32679
32680
32681SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32682
32683SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032684
32685
cristy3ed852e2009-09-05 21:47:34 +000032686#
32687# program_transform_name is formed for use in a Makefile, so create a
32688# modified version for use in a shell script.
32689configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32690
32691# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32693$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032695$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32697$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032698AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032699BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032700BZIPDelegateDefault='bzip2'
32701BrowseDelegateDefault='xdg-open'
32702CGMDecodeDelegateDefault='ralcgm'
32703CatDelegateDefault='cat'
32704DNGDecodeDelegateDefault='ufraw-batch'
32705GVCDecodeDelegateDefault='dot'
32706DVIDecodeDelegateDefault='dvips'
32707EchoDelegateDefault='echo'
32708EditorDelegateDefault='xterm'
32709FIGDecodeDelegateDefault='fig2dev'
32710ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32711DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32712MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32713GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032714HPGLDecodeDelegateDefault='hp2xx'
32715HTMLDecodeDelegateDefault='html2ps'
32716ILBMDecodeDelegateDefault='ilbmtoppm'
32717ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032718JXRDecodeDelegateDefault='JxrDecApp'
32719JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032720LPDelegateDefault='lp'
32721LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032722LaunchDelegateDefault='gimp'
32723MANDelegateDefault='groff'
32724MPEGDecodeDelegateDefault='ffmpeg'
32725MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032726MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032727MVDelegateDefault='mv'
32728PCLDelegateDefault='pcl6'
32729PGPDecodeDelegateDefault='pgpv'
32730POVDelegateDefault='povray'
32731if test "$native_win32_build" = 'yes'; then
32732 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032733elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032734 PSDelegateDefault='gsc'
32735else
32736 PSDelegateDefault='gs'
32737fi
32738RLEEncodeDelegateDefault='rawtorle'
32739RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032740RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032741SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032742SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032743TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032744UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032745WMFDecodeDelegateDefault='wmf2eps'
32746WWWDecodeDelegateDefault='curl'
32747XPSDelegateDefault='gxps'
32748ZipDelegateDefault='gzip'
32749
32750# Search for delegates
32751# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32752set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032755if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032756 $as_echo_n "(cached) " >&6
32757else
32758 case $AutotraceDecodeDelegate in
32759 [\\/]* | ?:[\\/]*)
32760 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32761 ;;
32762 *)
32763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32764for as_dir in $PATH
32765do
32766 IFS=$as_save_IFS
32767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032770 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772 break 2
32773 fi
32774done
cristy8b350f62009-11-15 23:12:43 +000032775 done
cristy3ed852e2009-09-05 21:47:34 +000032776IFS=$as_save_IFS
32777
32778 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32779 ;;
32780esac
32781fi
32782AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32783if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785$as_echo "$AutotraceDecodeDelegate" >&6; }
32786else
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "no" >&6; }
32789fi
32790
32791
cristy3ed852e2009-09-05 21:47:34 +000032792# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32793set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032796if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032797 $as_echo_n "(cached) " >&6
32798else
32799 case $BlenderDecodeDelegate in
32800 [\\/]* | ?:[\\/]*)
32801 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32802 ;;
32803 *)
32804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32805for as_dir in $PATH
32806do
32807 IFS=$as_save_IFS
32808 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032809 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032811 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813 break 2
32814 fi
32815done
cristy8b350f62009-11-15 23:12:43 +000032816 done
cristy3ed852e2009-09-05 21:47:34 +000032817IFS=$as_save_IFS
32818
32819 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32820 ;;
32821esac
32822fi
32823BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32824if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826$as_echo "$BlenderDecodeDelegate" >&6; }
32827else
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "no" >&6; }
32830fi
32831
32832
32833# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32834set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032837if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032838 $as_echo_n "(cached) " >&6
32839else
32840 case $BZIPDelegate in
32841 [\\/]* | ?:[\\/]*)
32842 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32843 ;;
32844 *)
32845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32846for as_dir in $PATH
32847do
32848 IFS=$as_save_IFS
32849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032852 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854 break 2
32855 fi
32856done
cristy8b350f62009-11-15 23:12:43 +000032857 done
cristy3ed852e2009-09-05 21:47:34 +000032858IFS=$as_save_IFS
32859
32860 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32861 ;;
32862esac
32863fi
32864BZIPDelegate=$ac_cv_path_BZIPDelegate
32865if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo "$BZIPDelegate" >&6; }
32868else
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "no" >&6; }
32871fi
32872
32873
cristyc59f0e72012-08-27 12:59:33 +000032874for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32875do
32876 # Extract the first word of "$ac_prog", so it can be a program name with args.
32877set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032880if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032881 $as_echo_n "(cached) " >&6
32882else
32883 case $BrowseDelegate in
32884 [\\/]* | ?:[\\/]*)
32885 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32886 ;;
32887 *)
32888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32889for as_dir in $PATH
32890do
32891 IFS=$as_save_IFS
32892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032895 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032897 break 2
32898 fi
32899done
cristy8b350f62009-11-15 23:12:43 +000032900 done
cristy3ed852e2009-09-05 21:47:34 +000032901IFS=$as_save_IFS
32902
cristy3ed852e2009-09-05 21:47:34 +000032903 ;;
32904esac
32905fi
32906BrowseDelegate=$ac_cv_path_BrowseDelegate
32907if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032909$as_echo "$BrowseDelegate" >&6; }
32910else
cristy8b350f62009-11-15 23:12:43 +000032911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912$as_echo "no" >&6; }
32913fi
32914
32915
cristyc59f0e72012-08-27 12:59:33 +000032916 test -n "$BrowseDelegate" && break
32917done
32918test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32919
cristy3ed852e2009-09-05 21:47:34 +000032920# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32921set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032924if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032925 $as_echo_n "(cached) " >&6
32926else
32927 case $CGMDecodeDelegate in
32928 [\\/]* | ?:[\\/]*)
32929 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32930 ;;
32931 *)
32932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32933for as_dir in $PATH
32934do
32935 IFS=$as_save_IFS
32936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032939 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941 break 2
32942 fi
32943done
cristy8b350f62009-11-15 23:12:43 +000032944 done
cristy3ed852e2009-09-05 21:47:34 +000032945IFS=$as_save_IFS
32946
32947 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32948 ;;
32949esac
32950fi
32951CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32952if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954$as_echo "$CGMDecodeDelegate" >&6; }
32955else
cristy8b350f62009-11-15 23:12:43 +000032956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo "no" >&6; }
32958fi
32959
32960
32961# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32962set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032965if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032966 $as_echo_n "(cached) " >&6
32967else
32968 case $CatDelegate in
32969 [\\/]* | ?:[\\/]*)
32970 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32971 ;;
32972 *)
32973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32974for as_dir in $PATH
32975do
32976 IFS=$as_save_IFS
32977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032980 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982 break 2
32983 fi
32984done
cristy8b350f62009-11-15 23:12:43 +000032985 done
cristy3ed852e2009-09-05 21:47:34 +000032986IFS=$as_save_IFS
32987
32988 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32989 ;;
32990esac
32991fi
32992CatDelegate=$ac_cv_path_CatDelegate
32993if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995$as_echo "$CatDelegate" >&6; }
32996else
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "no" >&6; }
32999fi
33000
33001
33002# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33003set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033006if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033007 $as_echo_n "(cached) " >&6
33008else
33009 case $DNGDecodeDelegate in
33010 [\\/]* | ?:[\\/]*)
33011 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33012 ;;
33013 *)
33014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033021 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023 break 2
33024 fi
33025done
cristy8b350f62009-11-15 23:12:43 +000033026 done
cristy3ed852e2009-09-05 21:47:34 +000033027IFS=$as_save_IFS
33028
33029 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33030 ;;
33031esac
33032fi
33033DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33034if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "$DNGDecodeDelegate" >&6; }
33037else
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "no" >&6; }
33040fi
33041
33042
33043# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33044set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033047if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033048 $as_echo_n "(cached) " >&6
33049else
33050 case $GVCDecodeDelegate in
33051 [\\/]* | ?:[\\/]*)
33052 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33053 ;;
33054 *)
33055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33056for as_dir in $PATH
33057do
33058 IFS=$as_save_IFS
33059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033062 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033064 break 2
33065 fi
33066done
cristy8b350f62009-11-15 23:12:43 +000033067 done
cristy3ed852e2009-09-05 21:47:34 +000033068IFS=$as_save_IFS
33069
33070 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33071 ;;
33072esac
33073fi
33074GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33075if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077$as_echo "$GVCDecodeDelegate" >&6; }
33078else
cristy8b350f62009-11-15 23:12:43 +000033079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo "no" >&6; }
33081fi
33082
33083
33084# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33085set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033088if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033089 $as_echo_n "(cached) " >&6
33090else
33091 case $DVIDecodeDelegate in
33092 [\\/]* | ?:[\\/]*)
33093 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33094 ;;
33095 *)
33096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33097for as_dir in $PATH
33098do
33099 IFS=$as_save_IFS
33100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033103 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033105 break 2
33106 fi
33107done
cristy8b350f62009-11-15 23:12:43 +000033108 done
cristy3ed852e2009-09-05 21:47:34 +000033109IFS=$as_save_IFS
33110
33111 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33112 ;;
33113esac
33114fi
33115DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33116if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118$as_echo "$DVIDecodeDelegate" >&6; }
33119else
cristy8b350f62009-11-15 23:12:43 +000033120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo "no" >&6; }
33122fi
33123
33124
33125# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33126set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033129if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033130 $as_echo_n "(cached) " >&6
33131else
33132 case $EchoDelegate in
33133 [\\/]* | ?:[\\/]*)
33134 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33135 ;;
33136 *)
33137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33138for as_dir in $PATH
33139do
33140 IFS=$as_save_IFS
33141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033144 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033146 break 2
33147 fi
33148done
cristy8b350f62009-11-15 23:12:43 +000033149 done
cristy3ed852e2009-09-05 21:47:34 +000033150IFS=$as_save_IFS
33151
33152 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33153 ;;
33154esac
33155fi
33156EchoDelegate=$ac_cv_path_EchoDelegate
33157if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "$EchoDelegate" >&6; }
33160else
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "no" >&6; }
33163fi
33164
33165
33166# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33167set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033170if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033171 $as_echo_n "(cached) " >&6
33172else
33173 case $EditorDelegate in
33174 [\\/]* | ?:[\\/]*)
33175 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33176 ;;
33177 *)
33178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179for as_dir in $PATH
33180do
33181 IFS=$as_save_IFS
33182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033185 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033187 break 2
33188 fi
33189done
cristy8b350f62009-11-15 23:12:43 +000033190 done
cristy3ed852e2009-09-05 21:47:34 +000033191IFS=$as_save_IFS
33192
33193 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33194 ;;
33195esac
33196fi
33197EditorDelegate=$ac_cv_path_EditorDelegate
33198if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200$as_echo "$EditorDelegate" >&6; }
33201else
cristy8b350f62009-11-15 23:12:43 +000033202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo "no" >&6; }
33204fi
33205
33206
33207# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33208set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033211if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033212 $as_echo_n "(cached) " >&6
33213else
33214 case $FIGDecodeDelegate in
33215 [\\/]* | ?:[\\/]*)
33216 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33217 ;;
33218 *)
33219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33220for as_dir in $PATH
33221do
33222 IFS=$as_save_IFS
33223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033226 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228 break 2
33229 fi
33230done
cristy8b350f62009-11-15 23:12:43 +000033231 done
cristy3ed852e2009-09-05 21:47:34 +000033232IFS=$as_save_IFS
33233
33234 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33235 ;;
33236esac
33237fi
33238FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33239if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241$as_echo "$FIGDecodeDelegate" >&6; }
33242else
cristy8b350f62009-11-15 23:12:43 +000033243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo "no" >&6; }
33245fi
33246
33247
33248# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33249set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033252if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033253 $as_echo_n "(cached) " >&6
33254else
33255 case $ConvertDelegate in
33256 [\\/]* | ?:[\\/]*)
33257 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33258 ;;
33259 *)
33260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33261for as_dir in $PATH
33262do
33263 IFS=$as_save_IFS
33264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033267 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033269 break 2
33270 fi
33271done
cristy8b350f62009-11-15 23:12:43 +000033272 done
cristy3ed852e2009-09-05 21:47:34 +000033273IFS=$as_save_IFS
33274
33275 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33276 ;;
33277esac
33278fi
33279ConvertDelegate=$ac_cv_path_ConvertDelegate
33280if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282$as_echo "$ConvertDelegate" >&6; }
33283else
cristy8b350f62009-11-15 23:12:43 +000033284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo "no" >&6; }
33286fi
33287
33288
33289# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33290set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033293if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033294 $as_echo_n "(cached) " >&6
33295else
33296 case $DisplayDelegate in
33297 [\\/]* | ?:[\\/]*)
33298 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33299 ;;
33300 *)
33301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33302for as_dir in $PATH
33303do
33304 IFS=$as_save_IFS
33305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033308 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310 break 2
33311 fi
33312done
cristy8b350f62009-11-15 23:12:43 +000033313 done
cristy3ed852e2009-09-05 21:47:34 +000033314IFS=$as_save_IFS
33315
33316 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33317 ;;
33318esac
33319fi
33320DisplayDelegate=$ac_cv_path_DisplayDelegate
33321if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323$as_echo "$DisplayDelegate" >&6; }
33324else
cristy8b350f62009-11-15 23:12:43 +000033325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo "no" >&6; }
33327fi
33328
33329
33330# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33331set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033334if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033335 $as_echo_n "(cached) " >&6
33336else
33337 case $MogrifyDelegate in
33338 [\\/]* | ?:[\\/]*)
33339 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33340 ;;
33341 *)
33342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33343for as_dir in $PATH
33344do
33345 IFS=$as_save_IFS
33346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033349 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033351 break 2
33352 fi
33353done
cristy8b350f62009-11-15 23:12:43 +000033354 done
cristy3ed852e2009-09-05 21:47:34 +000033355IFS=$as_save_IFS
33356
33357 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33358 ;;
33359esac
33360fi
33361MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33362if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364$as_echo "$MogrifyDelegate" >&6; }
33365else
cristy8b350f62009-11-15 23:12:43 +000033366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo "no" >&6; }
33368fi
33369
33370
33371# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33372set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033375if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033376 $as_echo_n "(cached) " >&6
33377else
33378 case $GnuplotDecodeDelegate in
33379 [\\/]* | ?:[\\/]*)
33380 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33381 ;;
33382 *)
33383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33384for as_dir in $PATH
33385do
33386 IFS=$as_save_IFS
33387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033390 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033392 break 2
33393 fi
33394done
cristy8b350f62009-11-15 23:12:43 +000033395 done
cristy3ed852e2009-09-05 21:47:34 +000033396IFS=$as_save_IFS
33397
33398 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33399 ;;
33400esac
33401fi
33402GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33403if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405$as_echo "$GnuplotDecodeDelegate" >&6; }
33406else
cristy8b350f62009-11-15 23:12:43 +000033407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo "no" >&6; }
33409fi
33410
33411
cristy3ed852e2009-09-05 21:47:34 +000033412# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33413set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033416if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033417 $as_echo_n "(cached) " >&6
33418else
33419 case $HPGLDecodeDelegate in
33420 [\\/]* | ?:[\\/]*)
33421 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33422 ;;
33423 *)
33424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33425for as_dir in $PATH
33426do
33427 IFS=$as_save_IFS
33428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033431 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033433 break 2
33434 fi
33435done
cristy8b350f62009-11-15 23:12:43 +000033436 done
cristy3ed852e2009-09-05 21:47:34 +000033437IFS=$as_save_IFS
33438
33439 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33440 ;;
33441esac
33442fi
33443HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33444if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446$as_echo "$HPGLDecodeDelegate" >&6; }
33447else
cristy8b350f62009-11-15 23:12:43 +000033448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo "no" >&6; }
33450fi
33451
33452
33453# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33454set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $HTMLDecodeDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33481 ;;
33482esac
33483fi
33484HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33485if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487$as_echo "$HTMLDecodeDelegate" >&6; }
33488else
cristy8b350f62009-11-15 23:12:43 +000033489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo "no" >&6; }
33491fi
33492
33493
33494# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33495set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033498if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033499 $as_echo_n "(cached) " >&6
33500else
33501 case $ILBMDecodeDelegate in
33502 [\\/]* | ?:[\\/]*)
33503 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33504 ;;
33505 *)
33506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33507for as_dir in $PATH
33508do
33509 IFS=$as_save_IFS
33510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033511 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033513 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033515 break 2
33516 fi
33517done
cristy8b350f62009-11-15 23:12:43 +000033518 done
cristy3ed852e2009-09-05 21:47:34 +000033519IFS=$as_save_IFS
33520
33521 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33522 ;;
33523esac
33524fi
33525ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33526if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "$ILBMDecodeDelegate" >&6; }
33529else
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "no" >&6; }
33532fi
33533
33534
33535# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33536set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033539if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033540 $as_echo_n "(cached) " >&6
33541else
33542 case $ILBMEncodeDelegate in
33543 [\\/]* | ?:[\\/]*)
33544 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33545 ;;
33546 *)
33547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33548for as_dir in $PATH
33549do
33550 IFS=$as_save_IFS
33551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033554 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033556 break 2
33557 fi
33558done
cristy8b350f62009-11-15 23:12:43 +000033559 done
cristy3ed852e2009-09-05 21:47:34 +000033560IFS=$as_save_IFS
33561
33562 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33563 ;;
33564esac
33565fi
33566ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33567if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569$as_echo "$ILBMEncodeDelegate" >&6; }
33570else
cristy8b350f62009-11-15 23:12:43 +000033571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo "no" >&6; }
33573fi
33574
33575
cristy71f53d52013-04-27 13:33:59 +000033576# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33577set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33579$as_echo_n "checking for $ac_word... " >&6; }
33580if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33581 $as_echo_n "(cached) " >&6
33582else
33583 case $JXRDecodeDelegate in
33584 [\\/]* | ?:[\\/]*)
33585 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33586 ;;
33587 *)
33588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33589for as_dir in $PATH
33590do
33591 IFS=$as_save_IFS
33592 test -z "$as_dir" && as_dir=.
33593 for ac_exec_ext in '' $ac_executable_extensions; do
33594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33595 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33597 break 2
33598 fi
33599done
33600 done
33601IFS=$as_save_IFS
33602
33603 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33604 ;;
33605esac
33606fi
33607JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33608if test -n "$JXRDecodeDelegate"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33610$as_echo "$JXRDecodeDelegate" >&6; }
33611else
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614fi
33615
33616
33617# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33618set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33620$as_echo_n "checking for $ac_word... " >&6; }
33621if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33622 $as_echo_n "(cached) " >&6
33623else
33624 case $JXREncodeDelegate in
33625 [\\/]* | ?:[\\/]*)
33626 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33627 ;;
33628 *)
33629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33630for as_dir in $PATH
33631do
33632 IFS=$as_save_IFS
33633 test -z "$as_dir" && as_dir=.
33634 for ac_exec_ext in '' $ac_executable_extensions; do
33635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33636 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33638 break 2
33639 fi
33640done
33641 done
33642IFS=$as_save_IFS
33643
33644 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33645 ;;
33646esac
33647fi
33648JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33649if test -n "$JXREncodeDelegate"; then
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33651$as_echo "$JXREncodeDelegate" >&6; }
33652else
33653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33654$as_echo "no" >&6; }
33655fi
33656
33657
cristy3ed852e2009-09-05 21:47:34 +000033658# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33659set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033662if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033663 $as_echo_n "(cached) " >&6
33664else
33665 case $LPDelegate in
33666 [\\/]* | ?:[\\/]*)
33667 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33668 ;;
33669 *)
33670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33671for as_dir in $PATH
33672do
33673 IFS=$as_save_IFS
33674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033677 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033679 break 2
33680 fi
33681done
cristy8b350f62009-11-15 23:12:43 +000033682 done
cristy3ed852e2009-09-05 21:47:34 +000033683IFS=$as_save_IFS
33684
33685 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33686 ;;
33687esac
33688fi
33689LPDelegate=$ac_cv_path_LPDelegate
33690if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692$as_echo "$LPDelegate" >&6; }
33693else
cristy8b350f62009-11-15 23:12:43 +000033694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695$as_echo "no" >&6; }
33696fi
33697
33698
33699# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33700set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033703if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033704 $as_echo_n "(cached) " >&6
33705else
33706 case $LPRDelegate in
33707 [\\/]* | ?:[\\/]*)
33708 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33709 ;;
33710 *)
33711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33712for as_dir in $PATH
33713do
33714 IFS=$as_save_IFS
33715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033718 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033720 break 2
33721 fi
33722done
cristy8b350f62009-11-15 23:12:43 +000033723 done
cristy3ed852e2009-09-05 21:47:34 +000033724IFS=$as_save_IFS
33725
33726 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33727 ;;
33728esac
33729fi
33730LPRDelegate=$ac_cv_path_LPRDelegate
33731if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "$LPRDelegate" >&6; }
33734else
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "no" >&6; }
33737fi
33738
33739
cristy3ed852e2009-09-05 21:47:34 +000033740# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33741set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033744if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033745 $as_echo_n "(cached) " >&6
33746else
33747 case $LaunchDelegate in
33748 [\\/]* | ?:[\\/]*)
33749 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33750 ;;
33751 *)
33752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33753for as_dir in $PATH
33754do
33755 IFS=$as_save_IFS
33756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033759 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033761 break 2
33762 fi
33763done
cristy8b350f62009-11-15 23:12:43 +000033764 done
cristy3ed852e2009-09-05 21:47:34 +000033765IFS=$as_save_IFS
33766
33767 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33768 ;;
33769esac
33770fi
33771LaunchDelegate=$ac_cv_path_LaunchDelegate
33772if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774$as_echo "$LaunchDelegate" >&6; }
33775else
cristy8b350f62009-11-15 23:12:43 +000033776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo "no" >&6; }
33778fi
33779
33780
33781# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33782set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033785if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033786 $as_echo_n "(cached) " >&6
33787else
33788 case $MANDelegate in
33789 [\\/]* | ?:[\\/]*)
33790 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33791 ;;
33792 *)
33793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794for as_dir in $PATH
33795do
33796 IFS=$as_save_IFS
33797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033800 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033802 break 2
33803 fi
33804done
cristy8b350f62009-11-15 23:12:43 +000033805 done
cristy3ed852e2009-09-05 21:47:34 +000033806IFS=$as_save_IFS
33807
33808 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33809 ;;
33810esac
33811fi
33812MANDelegate=$ac_cv_path_MANDelegate
33813if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815$as_echo "$MANDelegate" >&6; }
33816else
cristy8b350f62009-11-15 23:12:43 +000033817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo "no" >&6; }
33819fi
33820
33821
33822# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33823set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033826if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033827 $as_echo_n "(cached) " >&6
33828else
33829 case $MPEGDecodeDelegate in
33830 [\\/]* | ?:[\\/]*)
33831 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33832 ;;
33833 *)
33834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33835for as_dir in $PATH
33836do
33837 IFS=$as_save_IFS
33838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033841 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033843 break 2
33844 fi
33845done
cristy8b350f62009-11-15 23:12:43 +000033846 done
cristy3ed852e2009-09-05 21:47:34 +000033847IFS=$as_save_IFS
33848
33849 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33850 ;;
33851esac
33852fi
33853MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33854if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo "$MPEGDecodeDelegate" >&6; }
33857else
cristy8b350f62009-11-15 23:12:43 +000033858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "no" >&6; }
33860fi
33861
33862
33863# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33864set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033867if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033868 $as_echo_n "(cached) " >&6
33869else
33870 case $MPEGEncodeDelegate in
33871 [\\/]* | ?:[\\/]*)
33872 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33873 ;;
33874 *)
33875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33876for as_dir in $PATH
33877do
33878 IFS=$as_save_IFS
33879 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033880 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033882 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033884 break 2
33885 fi
33886done
cristy8b350f62009-11-15 23:12:43 +000033887 done
cristy3ed852e2009-09-05 21:47:34 +000033888IFS=$as_save_IFS
33889
33890 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33891 ;;
33892esac
33893fi
33894MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33895if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897$as_echo "$MPEGEncodeDelegate" >&6; }
33898else
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "no" >&6; }
33901fi
33902
33903
cristy935c86e2010-06-05 23:50:07 +000033904# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33905set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033908if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033909 $as_echo_n "(cached) " >&6
33910else
33911 case $MrSIDDecodeDelegate in
33912 [\\/]* | ?:[\\/]*)
33913 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33914 ;;
33915 *)
33916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33917for as_dir in $PATH
33918do
33919 IFS=$as_save_IFS
33920 test -z "$as_dir" && as_dir=.
33921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033923 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33925 break 2
33926 fi
33927done
33928 done
33929IFS=$as_save_IFS
33930
33931 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33932 ;;
33933esac
33934fi
33935MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33936if test -n "$MrSIDDecodeDelegate"; then
33937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33938$as_echo "$MrSIDDecodeDelegate" >&6; }
33939else
33940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33941$as_echo "no" >&6; }
33942fi
33943
33944
cristy3ed852e2009-09-05 21:47:34 +000033945# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33946set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033948$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033949if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033950 $as_echo_n "(cached) " >&6
33951else
33952 case $MVDelegate in
33953 [\\/]* | ?:[\\/]*)
33954 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33955 ;;
33956 *)
33957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33958for as_dir in $PATH
33959do
33960 IFS=$as_save_IFS
33961 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033962 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033964 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033966 break 2
33967 fi
33968done
cristy8b350f62009-11-15 23:12:43 +000033969 done
cristy3ed852e2009-09-05 21:47:34 +000033970IFS=$as_save_IFS
33971
33972 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33973 ;;
33974esac
33975fi
33976MVDelegate=$ac_cv_path_MVDelegate
33977if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979$as_echo "$MVDelegate" >&6; }
33980else
cristy8b350f62009-11-15 23:12:43 +000033981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo "no" >&6; }
33983fi
33984
33985
33986# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33987set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033990if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033991 $as_echo_n "(cached) " >&6
33992else
33993 case $PCLDelegate in
33994 [\\/]* | ?:[\\/]*)
33995 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33996 ;;
33997 *)
33998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33999for as_dir in $PATH
34000do
34001 IFS=$as_save_IFS
34002 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034003 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034005 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007 break 2
34008 fi
34009done
cristy8b350f62009-11-15 23:12:43 +000034010 done
cristy3ed852e2009-09-05 21:47:34 +000034011IFS=$as_save_IFS
34012
34013 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34014 ;;
34015esac
34016fi
34017PCLDelegate=$ac_cv_path_PCLDelegate
34018if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034020$as_echo "$PCLDelegate" >&6; }
34021else
cristy8b350f62009-11-15 23:12:43 +000034022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034023$as_echo "no" >&6; }
34024fi
34025
34026
34027# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34028set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034031if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034032 $as_echo_n "(cached) " >&6
34033else
34034 case $PGPDecodeDelegate in
34035 [\\/]* | ?:[\\/]*)
34036 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34037 ;;
34038 *)
34039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34040for as_dir in $PATH
34041do
34042 IFS=$as_save_IFS
34043 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034046 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034048 break 2
34049 fi
34050done
cristy8b350f62009-11-15 23:12:43 +000034051 done
cristy3ed852e2009-09-05 21:47:34 +000034052IFS=$as_save_IFS
34053
34054 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34055 ;;
34056esac
34057fi
34058PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34059if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034061$as_echo "$PGPDecodeDelegate" >&6; }
34062else
cristy8b350f62009-11-15 23:12:43 +000034063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064$as_echo "no" >&6; }
34065fi
34066
34067
34068# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34069set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034072if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034073 $as_echo_n "(cached) " >&6
34074else
34075 case $POVDelegate in
34076 [\\/]* | ?:[\\/]*)
34077 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34078 ;;
34079 *)
34080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34081for as_dir in $PATH
34082do
34083 IFS=$as_save_IFS
34084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034087 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034089 break 2
34090 fi
34091done
cristy8b350f62009-11-15 23:12:43 +000034092 done
cristy3ed852e2009-09-05 21:47:34 +000034093IFS=$as_save_IFS
34094
34095 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34096 ;;
34097esac
34098fi
34099POVDelegate=$ac_cv_path_POVDelegate
34100if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034102$as_echo "$POVDelegate" >&6; }
34103else
cristy8b350f62009-11-15 23:12:43 +000034104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105$as_echo "no" >&6; }
34106fi
34107
34108
34109for ac_prog in gsx gsc "$PSDelegateDefault"
34110do
34111 # Extract the first word of "$ac_prog", so it can be a program name with args.
34112set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034115if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034116 $as_echo_n "(cached) " >&6
34117else
34118 case $PSDelegate in
34119 [\\/]* | ?:[\\/]*)
34120 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34121 ;;
34122 *)
34123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34124for as_dir in $PATH
34125do
34126 IFS=$as_save_IFS
34127 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034128 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034130 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034132 break 2
34133 fi
34134done
cristy8b350f62009-11-15 23:12:43 +000034135 done
cristy3ed852e2009-09-05 21:47:34 +000034136IFS=$as_save_IFS
34137
34138 ;;
34139esac
34140fi
34141PSDelegate=$ac_cv_path_PSDelegate
34142if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034144$as_echo "$PSDelegate" >&6; }
34145else
cristy8b350f62009-11-15 23:12:43 +000034146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034147$as_echo "no" >&6; }
34148fi
34149
34150
34151 test -n "$PSDelegate" && break
34152done
34153test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34154
34155# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34156set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034159if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034160 $as_echo_n "(cached) " >&6
34161else
34162 case $RLEEncodeDelegate in
34163 [\\/]* | ?:[\\/]*)
34164 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34165 ;;
34166 *)
34167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34168for as_dir in $PATH
34169do
34170 IFS=$as_save_IFS
34171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034174 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034176 break 2
34177 fi
34178done
cristy8b350f62009-11-15 23:12:43 +000034179 done
cristy3ed852e2009-09-05 21:47:34 +000034180IFS=$as_save_IFS
34181
34182 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34183 ;;
34184esac
34185fi
34186RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34187if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189$as_echo "$RLEEncodeDelegate" >&6; }
34190else
cristy8b350f62009-11-15 23:12:43 +000034191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034192$as_echo "no" >&6; }
34193fi
34194
34195
34196# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34197set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034200if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034201 $as_echo_n "(cached) " >&6
34202else
34203 case $RMDelegate in
34204 [\\/]* | ?:[\\/]*)
34205 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34206 ;;
34207 *)
34208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34209for as_dir in $PATH
34210do
34211 IFS=$as_save_IFS
34212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034215 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034217 break 2
34218 fi
34219done
cristy8b350f62009-11-15 23:12:43 +000034220 done
cristy3ed852e2009-09-05 21:47:34 +000034221IFS=$as_save_IFS
34222
34223 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34224 ;;
34225esac
34226fi
34227RMDelegate=$ac_cv_path_RMDelegate
34228if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230$as_echo "$RMDelegate" >&6; }
34231else
cristy8b350f62009-11-15 23:12:43 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034233$as_echo "no" >&6; }
34234fi
34235
34236
cristy4689cf02010-02-17 21:15:45 +000034237# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34238set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034241if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034242 $as_echo_n "(cached) " >&6
34243else
34244 case $RSVGDecodeDelegate in
34245 [\\/]* | ?:[\\/]*)
34246 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34247 ;;
34248 *)
34249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34250for as_dir in $PATH
34251do
34252 IFS=$as_save_IFS
34253 test -z "$as_dir" && as_dir=.
34254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034256 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34258 break 2
34259 fi
34260done
34261 done
34262IFS=$as_save_IFS
34263
34264 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34265 ;;
34266esac
34267fi
34268RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34269if test -n "$RSVGDecodeDelegate"; then
34270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34271$as_echo "$RSVGDecodeDelegate" >&6; }
34272else
34273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34274$as_echo "no" >&6; }
34275fi
34276
34277
cristy3ed852e2009-09-05 21:47:34 +000034278# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34279set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034282if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034283 $as_echo_n "(cached) " >&6
34284else
34285 case $SCANDecodeDelegate in
34286 [\\/]* | ?:[\\/]*)
34287 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34288 ;;
34289 *)
34290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34291for as_dir in $PATH
34292do
34293 IFS=$as_save_IFS
34294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034297 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299 break 2
34300 fi
34301done
cristy8b350f62009-11-15 23:12:43 +000034302 done
cristy3ed852e2009-09-05 21:47:34 +000034303IFS=$as_save_IFS
34304
34305 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34306 ;;
34307esac
34308fi
34309SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34310if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo "$SCANDecodeDelegate" >&6; }
34313else
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "no" >&6; }
34316fi
34317
34318
cristyec6934f2012-08-14 18:38:40 +000034319# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34320set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34322$as_echo_n "checking for $ac_word... " >&6; }
34323if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34324 $as_echo_n "(cached) " >&6
34325else
34326 case $SVGDecodeDelegate in
34327 [\\/]* | ?:[\\/]*)
34328 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34329 ;;
34330 *)
34331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34332for as_dir in $PATH
34333do
34334 IFS=$as_save_IFS
34335 test -z "$as_dir" && as_dir=.
34336 for ac_exec_ext in '' $ac_executable_extensions; do
34337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34338 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34340 break 2
34341 fi
34342done
34343 done
34344IFS=$as_save_IFS
34345
34346 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34347 ;;
34348esac
34349fi
34350SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34351if test -n "$SVGDecodeDelegate"; then
34352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34353$as_echo "$SVGDecodeDelegate" >&6; }
34354else
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34356$as_echo "no" >&6; }
34357fi
34358
34359
cristy3ed852e2009-09-05 21:47:34 +000034360# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34361set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034364if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034365 $as_echo_n "(cached) " >&6
34366else
34367 case $TXTDelegate in
34368 [\\/]* | ?:[\\/]*)
34369 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34370 ;;
34371 *)
34372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34373for as_dir in $PATH
34374do
34375 IFS=$as_save_IFS
34376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034379 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381 break 2
34382 fi
34383done
cristy8b350f62009-11-15 23:12:43 +000034384 done
cristy3ed852e2009-09-05 21:47:34 +000034385IFS=$as_save_IFS
34386
34387 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34388 ;;
34389esac
34390fi
34391TXTDelegate=$ac_cv_path_TXTDelegate
34392if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo "$TXTDelegate" >&6; }
34395else
cristy8b350f62009-11-15 23:12:43 +000034396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397$as_echo "no" >&6; }
34398fi
34399
34400
cristy5ac9ac82010-07-29 13:24:24 +000034401# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34402set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034405if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034406 $as_echo_n "(cached) " >&6
34407else
34408 case $UniconvertorDelegate in
34409 [\\/]* | ?:[\\/]*)
34410 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34411 ;;
34412 *)
34413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414for as_dir in $PATH
34415do
34416 IFS=$as_save_IFS
34417 test -z "$as_dir" && as_dir=.
34418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034420 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34422 break 2
34423 fi
34424done
34425 done
34426IFS=$as_save_IFS
34427
34428 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34429 ;;
34430esac
34431fi
34432UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34433if test -n "$UniconvertorDelegate"; then
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34435$as_echo "$UniconvertorDelegate" >&6; }
34436else
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34438$as_echo "no" >&6; }
34439fi
34440
34441
cristy3ed852e2009-09-05 21:47:34 +000034442# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34443set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034446if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034447 $as_echo_n "(cached) " >&6
34448else
34449 case $WMFDecodeDelegate in
34450 [\\/]* | ?:[\\/]*)
34451 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34452 ;;
34453 *)
34454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34455for as_dir in $PATH
34456do
34457 IFS=$as_save_IFS
34458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034461 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463 break 2
34464 fi
34465done
cristy8b350f62009-11-15 23:12:43 +000034466 done
cristy3ed852e2009-09-05 21:47:34 +000034467IFS=$as_save_IFS
34468
34469 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34470 ;;
34471esac
34472fi
34473WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34474if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo "$WMFDecodeDelegate" >&6; }
34477else
cristy8b350f62009-11-15 23:12:43 +000034478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479$as_echo "no" >&6; }
34480fi
34481
34482
34483# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34484set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034486$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034487if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034488 $as_echo_n "(cached) " >&6
34489else
34490 case $WWWDecodeDelegate in
34491 [\\/]* | ?:[\\/]*)
34492 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34493 ;;
34494 *)
34495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34496for as_dir in $PATH
34497do
34498 IFS=$as_save_IFS
34499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034502 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504 break 2
34505 fi
34506done
cristy8b350f62009-11-15 23:12:43 +000034507 done
cristy3ed852e2009-09-05 21:47:34 +000034508IFS=$as_save_IFS
34509
34510 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34511 ;;
34512esac
34513fi
34514WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34515if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517$as_echo "$WWWDecodeDelegate" >&6; }
34518else
cristy8b350f62009-11-15 23:12:43 +000034519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034520$as_echo "no" >&6; }
34521fi
34522
34523
34524# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34525set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034528if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034529 $as_echo_n "(cached) " >&6
34530else
34531 case $XPSDelegate in
34532 [\\/]* | ?:[\\/]*)
34533 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34534 ;;
34535 *)
34536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34537for as_dir in $PATH
34538do
34539 IFS=$as_save_IFS
34540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034543 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034545 break 2
34546 fi
34547done
cristy8b350f62009-11-15 23:12:43 +000034548 done
cristy3ed852e2009-09-05 21:47:34 +000034549IFS=$as_save_IFS
34550
34551 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34552 ;;
34553esac
34554fi
34555XPSDelegate=$ac_cv_path_XPSDelegate
34556if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034558$as_echo "$XPSDelegate" >&6; }
34559else
cristy8b350f62009-11-15 23:12:43 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561$as_echo "no" >&6; }
34562fi
34563
34564
34565# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34566set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034569if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034570 $as_echo_n "(cached) " >&6
34571else
34572 case $ZipDelegate in
34573 [\\/]* | ?:[\\/]*)
34574 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34575 ;;
34576 *)
34577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34578for as_dir in $PATH
34579do
34580 IFS=$as_save_IFS
34581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034584 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034586 break 2
34587 fi
34588done
cristy8b350f62009-11-15 23:12:43 +000034589 done
cristy3ed852e2009-09-05 21:47:34 +000034590IFS=$as_save_IFS
34591
34592 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34593 ;;
34594esac
34595fi
34596ZipDelegate=$ac_cv_path_ZipDelegate
34597if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo "$ZipDelegate" >&6; }
34600else
cristy8b350f62009-11-15 23:12:43 +000034601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo "no" >&6; }
34603fi
34604
34605
34606
34607# Prefer lpr to lp; lp needs options tacked on.
34608if test "$LPRDelegate" != no; then
34609 PrintDelegate="$LPRDelegate"
34610else
34611 PrintDelegate="$LPDelegate -c -s"
34612fi
34613
34614
34615# Installed ImageMagick utiltity paths
34616ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34617DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34618MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34619
34620# Set delegate booleans
34621have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34622have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34623have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34624have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34625have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034626have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034627have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34628have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034629have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34630have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34631
34632#
34633# Test for font directories
34634#
34635type_include_files=''
34636
cristy430a7312010-01-21 20:44:04 +000034637# Dejavu fonts.
34638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34639$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34640dejavu_font_dir=''
34641if test "${with_dejavu_font_dir}" != 'default'; then
34642 dejavu_font_dir="${with_dejavu_font_dir}/"
34643else
34644 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34645 if test -f "${font_dir}DejaVuSerif.ttf"; then
34646 dejavu_font_dir="${font_dir}"
34647 break 1
34648 fi
34649 done
34650fi
34651if test "${dejavu_font_dir}x" != 'x'; then
34652 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34654$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034655else
cristyad38abe2012-12-23 23:03:21 +000034656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34657$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034658fi
34659
34660
cristy3ed852e2009-09-05 21:47:34 +000034661# Windows
34662windows_font_dir=''
34663if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34664 windows_font_dir="${with_windows_font_dir}/"
34665fi
cristy430a7312010-01-21 20:44:04 +000034666if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034667 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34668 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34669 fi
34670 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34671 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34672 fi
34673 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34674 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34675 fi
34676fi
cristy430a7312010-01-21 20:44:04 +000034677if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034678 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34679fi
34680
34681
34682# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34685ghostscript_font_dir=''
34686if test "${with_gs_font_dir}" != 'default'; then
34687 ghostscript_font_dir="${with_gs_font_dir}/"
34688else
34689 if test "${native_win32_build}" = 'yes'; then
34690 # Native Windows Build
34691 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34692 if test -f "${font_dir}a010013l.pfb"; then
34693 ghostscript_font_dir="$font_dir"
34694 break 1
34695 fi
34696 done
34697 if test "${PSDelegate}" != 'gswin32c'; then
34698 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34699 fi
34700 else
34701 # Linux / Mac OS X / Unix Build
34702 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
34703 if test -f "${font_dir}a010013l.pfb"; then
34704 ghostscript_font_dir="${font_dir}"
34705 break 1
34706 fi
34707 done
34708 if test "${ghostscript_font_dir}x" = 'x'; then
34709 if test "$PSDelegate" != 'gs'; then
34710 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34711 fi
34712 fi
34713 fi
34714fi
34715if test "${ghostscript_font_dir}x" != 'x'; then
34716 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34718$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034719else
cristyad38abe2012-12-23 23:03:21 +000034720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34721$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034722fi
34723
34724case "${build_os}" in
34725 mingw* )
34726 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34727 ;;
34728esac
34729
34730
34731
34732#
34733# Handle case where user doesn't want frozen paths
34734#
34735if test "$with_frozenpaths" != 'yes'; then
34736 # Re-set delegate definitions to default (no paths)
34737 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034738 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34739 BZIPDelegate="$BZIPDelegateDefault"
34740 BrowseDelegate="$BrowseDelegateDefault"
34741 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34742 CatDelegate="$CatDelegateDefault"
34743 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034744 DisplayDelegate="$DisplayDelegateDefault"
34745 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034746 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34747 EchoDelegate="$EchoDelegateDefault"
34748 EditorDelegate="$EditorDelegateDefault"
34749 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34750 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034751 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034752 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34753 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34754 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34755 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034756 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34757 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034758 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034759 LaunchDelegate="$LaunchDelegateDefault"
34760 MANDelegate="$MANDelegateDefault"
34761 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34762 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034763 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034764 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34765 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034766 PCLDelegate="$PCLDelegateDefault"
34767 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34768 POVDelegate="$POVDelegateDefault"
34769 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034770 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34771 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034772 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034773 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034774 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034775 ShowImageDelegate="$ShowImageDelegateDefault"
34776 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034777 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034778 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34779 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34780 XPSDelegate="$XPSDelegateDefault"
34781 ZipDelegate="$ZipDelegateDefault"
34782fi
34783
34784# Delegate substitutions
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
cristy71f53d52013-04-27 13:33:59 +000034825
34826
cristy3ed852e2009-09-05 21:47:34 +000034827#
34828# RPM support.
34829#
34830RPM=''
34831for ac_prog in gnutar gtar tar
34832do
34833 # Extract the first word of "$ac_prog", so it can be a program name with args.
34834set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034837if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034838 $as_echo_n "(cached) " >&6
34839else
34840 if test -n "$TAR"; then
34841 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34842else
34843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34844for as_dir in $PATH
34845do
34846 IFS=$as_save_IFS
34847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034850 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034852 break 2
34853 fi
34854done
cristy8b350f62009-11-15 23:12:43 +000034855 done
cristy3ed852e2009-09-05 21:47:34 +000034856IFS=$as_save_IFS
34857
34858fi
34859fi
34860TAR=$ac_cv_prog_TAR
34861if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034863$as_echo "$TAR" >&6; }
34864else
cristy8b350f62009-11-15 23:12:43 +000034865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034866$as_echo "no" >&6; }
34867fi
34868
34869
34870 test -n "$TAR" && break
34871done
34872
34873for ac_prog in perl
34874do
34875 # Extract the first word of "$ac_prog", so it can be a program name with args.
34876set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034879if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034880 $as_echo_n "(cached) " >&6
34881else
34882 if test -n "$PERL"; then
34883 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34884else
34885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34886for as_dir in $PATH
34887do
34888 IFS=$as_save_IFS
34889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034892 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034894 break 2
34895 fi
34896done
cristy8b350f62009-11-15 23:12:43 +000034897 done
cristy3ed852e2009-09-05 21:47:34 +000034898IFS=$as_save_IFS
34899
34900fi
34901fi
34902PERL=$ac_cv_prog_PERL
34903if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905$as_echo "$PERL" >&6; }
34906else
cristy8b350f62009-11-15 23:12:43 +000034907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034908$as_echo "no" >&6; }
34909fi
34910
34911
34912 test -n "$PERL" && break
34913done
34914
34915for ac_prog in rpmbuild rpm
34916do
34917 # Extract the first word of "$ac_prog", so it can be a program name with args.
34918set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034921if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034922 $as_echo_n "(cached) " >&6
34923else
34924 if test -n "$RPM"; then
34925 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34926else
34927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34928for as_dir in $PATH
34929do
34930 IFS=$as_save_IFS
34931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034934 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034936 break 2
34937 fi
34938done
cristy8b350f62009-11-15 23:12:43 +000034939 done
cristy3ed852e2009-09-05 21:47:34 +000034940IFS=$as_save_IFS
34941
34942fi
34943fi
34944RPM=$ac_cv_prog_RPM
34945if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo "$RPM" >&6; }
34948else
cristy8b350f62009-11-15 23:12:43 +000034949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034950$as_echo "no" >&6; }
34951fi
34952
34953
34954 test -n "$RPM" && break
34955done
34956
34957
cristy73bd4a52010-10-05 11:24:23 +000034958ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34959
34960
34961AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34962
34963
34964AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34965
34966
34967AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34968
34969
34970 if test "x$RPM" != "x" ; then
34971 RPM_DELEGATE_TRUE=
34972 RPM_DELEGATE_FALSE='#'
34973else
34974 RPM_DELEGATE_TRUE='#'
34975 RPM_DELEGATE_FALSE=
34976fi
34977
cristy3ed852e2009-09-05 21:47:34 +000034978
34979#
34980# 7ZIP support (http://p7zip.sourceforge.net/)
34981#
34982P7ZIP=''
34983for ac_prog in 7za
34984do
34985 # Extract the first word of "$ac_prog", so it can be a program name with args.
34986set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034989if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034990 $as_echo_n "(cached) " >&6
34991else
34992 if test -n "$P7ZIP"; then
34993 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34994else
34995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34996for as_dir in $PATH
34997do
34998 IFS=$as_save_IFS
34999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035002 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035004 break 2
35005 fi
35006done
cristy8b350f62009-11-15 23:12:43 +000035007 done
cristy3ed852e2009-09-05 21:47:34 +000035008IFS=$as_save_IFS
35009
35010fi
35011fi
35012P7ZIP=$ac_cv_prog_P7ZIP
35013if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035015$as_echo "$P7ZIP" >&6; }
35016else
cristy8b350f62009-11-15 23:12:43 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035018$as_echo "no" >&6; }
35019fi
35020
35021
35022 test -n "$P7ZIP" && break
35023done
35024
35025
cristy73bd4a52010-10-05 11:24:23 +000035026 if test "x$P7ZIP" != "x" ; then
35027 P7ZIP_DELEGATE_TRUE=
35028 P7ZIP_DELEGATE_FALSE='#'
35029else
35030 P7ZIP_DELEGATE_TRUE='#'
35031 P7ZIP_DELEGATE_FALSE=
35032fi
35033
cristy3ed852e2009-09-05 21:47:34 +000035034
35035#
35036# ZIP support (http://www.info-zip.org/Zip.html)
35037#
35038ZIP=''
35039for ac_prog in zip
35040do
35041 # Extract the first word of "$ac_prog", so it can be a program name with args.
35042set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035045if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035046 $as_echo_n "(cached) " >&6
35047else
35048 if test -n "$ZIP"; then
35049 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35050else
35051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35052for as_dir in $PATH
35053do
35054 IFS=$as_save_IFS
35055 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035058 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060 break 2
35061 fi
35062done
cristy8b350f62009-11-15 23:12:43 +000035063 done
cristy3ed852e2009-09-05 21:47:34 +000035064IFS=$as_save_IFS
35065
35066fi
35067fi
35068ZIP=$ac_cv_prog_ZIP
35069if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035071$as_echo "$ZIP" >&6; }
35072else
cristy8b350f62009-11-15 23:12:43 +000035073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035074$as_echo "no" >&6; }
35075fi
35076
35077
35078 test -n "$ZIP" && break
35079done
35080
35081
cristy73bd4a52010-10-05 11:24:23 +000035082 if test "x$ZIP" != "x" ; then
35083 ZIP_DELEGATE_TRUE=
35084 ZIP_DELEGATE_FALSE='#'
35085else
35086 ZIP_DELEGATE_TRUE='#'
35087 ZIP_DELEGATE_FALSE=
35088fi
35089
cristy3ed852e2009-09-05 21:47:34 +000035090
35091#
35092# GhostPCL related configuration.
35093#
35094PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035095PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035096PCLMonoDevice=pbmraw
35097if test -z "$PCLVersion"; then
35098 PCLVersion='unknown'
35099fi
35100if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35102$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035104$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35106$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035107 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035109$as_echo_n "checking for pcl color device... " >&6; }
35110 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35111 :
35112 else
35113 PCLColorDevice=ppmraw
35114 fi
cristyad38abe2012-12-23 23:03:21 +000035115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35116$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035117
35118 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035120$as_echo_n "checking for pcl CMYK device... " >&6; }
35121 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35122 :
35123 else
35124 PCLCMYKDevice=$PCLColorDevice
35125 fi
cristyad38abe2012-12-23 23:03:21 +000035126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35127$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035128
35129 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035131$as_echo_n "checking for pcl mono device... " >&6; }
35132 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35133 :
35134 else
35135 PCLMonoDevice=$PCLColorDevice
35136 fi
cristyad38abe2012-12-23 23:03:21 +000035137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35138$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035139fi
35140
35141
35142
35143
35144
35145
35146#
35147# GhostXPS related configuration.
35148#
35149XPSColorDevice=ppmraw
35150XPSCMYKDevice=bmpsep8
35151XPSMonoDevice=pbmraw
35152if test -z "$XPSVersion"; then
35153 XPSVersion='unknown'
35154fi
35155if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35157$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035159$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35161$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035162 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035164$as_echo_n "checking for xps color device... " >&6; }
35165 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35166 :
35167 else
35168 XPSColorDevice=ppmraw
35169 fi
cristyad38abe2012-12-23 23:03:21 +000035170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35171$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035172
35173 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035175$as_echo_n "checking for xps CMYK device... " >&6; }
35176 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35177 :
35178 else
35179 XPSCMYKDevice=$XPSColorDevice
35180 fi
cristyad38abe2012-12-23 23:03:21 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35182$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035183
35184 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035186$as_echo_n "checking for xps mono device... " >&6; }
35187 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35188 :
35189 else
35190 XPSMonoDevice=$XPSColorDevice
35191 fi
cristyad38abe2012-12-23 23:03:21 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35193$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035194fi
35195
35196
35197
35198
35199
35200
35201#
35202# Ghostscript related configuration.
35203#
cristya97426c2011-02-04 01:41:27 +000035204GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035205GSColorDevice=pnmraw
35206GSCMYKDevice=pam
35207GSMonoDevice=pbmraw
35208GSPDFDevice=pdfwrite
35209GSPSDevice=pswrite
35210GSEPSDevice=epswrite
35211GSVersion='unknown'
35212if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35214$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035216$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35218$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035220$as_echo_n "checking for Ghostscript version... " >&6; }
35221 if GSVersion=`$PSDelegate --version`; then
35222 :
35223 else
35224 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35225 fi
cristyad38abe2012-12-23 23:03:21 +000035226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35227$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035228
35229 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035231$as_echo_n "checking for gs alpha device... " >&6; }
35232 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35233 :
35234 else
35235 GSAlphaDevice=pnmraw
35236 fi
cristyad38abe2012-12-23 23:03:21 +000035237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35238$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035239
35240 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035242$as_echo_n "checking for gs color device... " >&6; }
35243 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35244 :
35245 else
35246 GSColorDevice=pnmraw
35247 fi
cristyad38abe2012-12-23 23:03:21 +000035248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35249$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035250
35251 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035253$as_echo_n "checking for gs CMYK device... " >&6; }
35254 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35255 :
35256 else
35257 GSCMYKDevice=bmpsep8
35258 fi
cristyad38abe2012-12-23 23:03:21 +000035259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35260$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035261
35262 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264$as_echo_n "checking for gs mono device... " >&6; }
35265 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35266 :
35267 else
35268 GSMonoDevice=$GSColorDevice
35269 fi
cristyad38abe2012-12-23 23:03:21 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35271$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035272
35273 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035275$as_echo_n "checking for gs PDF writing device... " >&6; }
35276 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35277 :
35278 else
35279 GSPDFDevice=nodevice
35280 fi
cristyad38abe2012-12-23 23:03:21 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35282$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035283
35284 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035286$as_echo_n "checking for gs PS writing device... " >&6; }
35287 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35288 :
35289 else
35290 GSPSDevice=nodevice
35291 fi
cristyad38abe2012-12-23 23:03:21 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35293$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035294
35295 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035297$as_echo_n "checking for gs EPS writing device... " >&6; }
35298 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35299 :
35300 else
35301 GSEPSDevice=nodevice
35302 fi
cristyad38abe2012-12-23 23:03:21 +000035303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35304$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035305fi
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316#
35317# PerlMagick-related configuration
35318#
35319
35320# Look for PERL if PerlMagick requested
35321# If name/path of desired PERL interpreter is specified, look for that one first
35322have_perl='no'
35323if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35325$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035327$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35329$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035330 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035332$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035333if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035334 $as_echo_n "(cached) " >&6
35335else
35336 ac_cv_path_PERL="$with_perl"
35337fi
cristy8b350f62009-11-15 23:12:43 +000035338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035339$as_echo "$ac_cv_path_PERL" >&6; };
35340 PERL=$ac_cv_path_PERL
35341 have_perl="$ac_cv_path_PERL"
35342 else
35343 for ac_prog in perl perl5
35344do
35345 # Extract the first word of "$ac_prog", so it can be a program name with args.
35346set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035348$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035349if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035350 $as_echo_n "(cached) " >&6
35351else
35352 case $PERL in
35353 [\\/]* | ?:[\\/]*)
35354 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35355 ;;
35356 *)
35357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35358for as_dir in $PATH
35359do
35360 IFS=$as_save_IFS
35361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035364 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035366 break 2
35367 fi
35368done
cristy8b350f62009-11-15 23:12:43 +000035369 done
cristy3ed852e2009-09-05 21:47:34 +000035370IFS=$as_save_IFS
35371
35372 ;;
35373esac
35374fi
35375PERL=$ac_cv_path_PERL
35376if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035378$as_echo "$PERL" >&6; }
35379else
cristy8b350f62009-11-15 23:12:43 +000035380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035381$as_echo "no" >&6; }
35382fi
35383
35384
35385 test -n "$PERL" && break
35386done
35387 if test "$ac_cv_path_PERL"; then
35388 have_perl="$ac_cv_path_PERL"
35389 fi
35390 fi
35391fi
35392
cristy949301e2010-01-06 01:38:40 +000035393if test "$with_perl" != 'yes' ; then
35394 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35395fi
35396
35397PERL_SUPPORTS_DESTDIR='no'
35398
cristy3ed852e2009-09-05 21:47:34 +000035399with_perl_static='no'
35400with_perl_dynamic='no'
35401if test "$have_perl" != 'no'; then
35402 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35403 with_perl_static='yes'
35404 fi
35405 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35406 with_perl_dynamic='yes'
35407 fi
35408 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035409
35410
35411
35412
35413 if test -n "$PERL"; then :
35414
35415 ax_perl_version="5.8.1"
35416
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35418$as_echo_n "checking for perl version... " >&6; }
35419
35420 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35421
35422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35423$as_echo "$perl_version" >&6; }
35424
35425 PERL_VERSION=$perl_version
35426
35427
35428
35429
35430
35431 # Used to indicate true or false condition
35432 ax_compare_version=false
35433
35434 # Convert the two version strings to be compared into a format that
35435 # allows a simple string comparison. The end result is that a version
35436 # string of the form 1.12.5-r617 will be converted to the form
35437 # 0001001200050617. In other words, each number is zero padded to four
35438 # digits, and non digits are removed.
35439
35440 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35441 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35442 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35443 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35444 -e 's/[^0-9]//g'`
35445
35446
35447 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35448 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35449 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35450 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35451 -e 's/[^0-9]//g'`
35452
35453
35454 ax_compare_version=`echo "x$ax_compare_version_A
35455x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35456
35457
35458
35459 if test "$ax_compare_version" = "true" ; then
35460
35461 :
35462 PERL_SUPPORTS_DESTDIR='yes'
35463
35464 else
35465 :
35466 PERL_SUPPORTS_DESTDIR='no'
35467
35468 fi
35469
35470
35471else
35472
35473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35474$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35475 PERL_SUPPORTS_DESTDIR='no'
35476
cristy3ed852e2009-09-05 21:47:34 +000035477fi
cristy73bd4a52010-10-05 11:24:23 +000035478
35479fi
35480 if test "$have_perl" != 'no'; then
35481 WITH_PERL_TRUE=
35482 WITH_PERL_FALSE='#'
35483else
35484 WITH_PERL_TRUE='#'
35485 WITH_PERL_FALSE=
35486fi
35487
35488 if test $with_perl_static = 'yes'; then
35489 WITH_PERL_STATIC_TRUE=
35490 WITH_PERL_STATIC_FALSE='#'
35491else
35492 WITH_PERL_STATIC_TRUE='#'
35493 WITH_PERL_STATIC_FALSE=
35494fi
35495
35496 if test $with_perl_dynamic = 'yes'; then
35497 WITH_PERL_DYNAMIC_TRUE=
35498 WITH_PERL_DYNAMIC_FALSE='#'
35499else
35500 WITH_PERL_DYNAMIC_TRUE='#'
35501 WITH_PERL_DYNAMIC_FALSE=
35502fi
35503
cristy3ed852e2009-09-05 21:47:34 +000035504
35505
35506# Determine path to pick up MagickCore library from for use with building PerlMagick
35507MAGICKCORE_PATH="${LIB_DIR}"
35508if test $with_perl_static = 'yes'; then
35509 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35510 libtool_objdir=$objdir
35511
35512 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035513 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035514fi
35515
35516
cristy2a3eb392012-12-17 13:39:20 +000035517# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035518MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035519if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035520 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035521fi
cristy2a3eb392012-12-17 13:39:20 +000035522if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035523 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035524fi
35525if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035526 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035527fi
35528if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035529 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035530fi
35531if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035532 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035533fi
35534if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035535 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035536fi
35537if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035538 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035539fi
35540if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035541 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035542fi
35543if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035544 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035545fi
35546if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035547 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035548fi
35549if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035550 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035551fi
35552if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035553 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035554fi
35555if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035556 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035557fi
35558if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035559 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035560fi
35561if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035562 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035563fi
35564if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035565 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035566fi
35567if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035568 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035569fi
35570if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035571 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035572fi
35573if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035574 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035575fi
35576if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035577 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035578fi
35579if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035580 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035581fi
35582have_ps='no'
35583if test "$have_dps" = 'yes' || \
35584 test "$have_gs" = 'yes' || \
35585 test "${native_win32_build}" = 'yes' ; then
35586 have_ps='yes'
35587fi
35588if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035589 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035590fi
35591if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035592 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035593fi
35594if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035595 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035596fi
35597if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035598 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035599fi
35600if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035601 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035602fi
35603if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035604 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035605fi
35606if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035607 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035608fi
35609if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035610 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035611fi
35612if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035613 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035614fi
35615if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035616 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035617fi
cristy2a3eb392012-12-17 13:39:20 +000035618# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035619MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035620MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035621
35622
cristyfa161182012-12-19 15:45:28 +000035623
cristy3ed852e2009-09-05 21:47:34 +000035624#
35625# Handle special compiler flags
35626#
35627
35628# Add '-p' if prof source profiling support enabled
35629if test "$enable_prof" = 'yes'; then
35630 CFLAGS="-p $CFLAGS"
35631 CXXFLAGS="-p $CXXFLAGS"
35632 LDFLAGS="-p $LDFLAGS"
35633fi
35634
35635# Add '-pg' if gprof source profiling support enabled
35636if test "$enable_gprof" = 'yes'; then
35637 CFLAGS="-pg $CFLAGS"
35638 CXXFLAGS="-pg $CXXFLAGS"
35639 LDFLAGS="-pg $LDFLAGS"
35640fi
35641
35642# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35643# This is a gcc-specific feature
35644if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035646$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035647if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035648 $as_echo_n "(cached) " >&6
35649else
35650 ac_check_lib_save_LIBS=$LIBS
35651LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035653/* end confdefs.h. */
35654
35655/* Override any GCC internal prototype to avoid an error.
35656 Use char because int might match the return type of a GCC
35657 builtin and then its argument prototype would still apply. */
35658#ifdef __cplusplus
35659extern "C"
35660#endif
35661char _gcov_init ();
35662int
35663main ()
35664{
35665return _gcov_init ();
35666 ;
35667 return 0;
35668}
35669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035671 ac_cv_lib_gcov__gcov_init=yes
35672else
cristy8b350f62009-11-15 23:12:43 +000035673 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035674fi
cristy8b350f62009-11-15 23:12:43 +000035675rm -f core conftest.err conftest.$ac_objext \
35676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035677LIBS=$ac_check_lib_save_LIBS
35678fi
cristy8b350f62009-11-15 23:12:43 +000035679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035680$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035681if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035682 cat >>confdefs.h <<_ACEOF
35683#define HAVE_LIBGCOV 1
35684_ACEOF
35685
35686 LIBS="-lgcov $LIBS"
35687
35688fi
35689
cristy8b350f62009-11-15 23:12:43 +000035690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035691$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035692if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035693 $as_echo_n "(cached) " >&6
35694else
35695 ac_check_lib_save_LIBS=$LIBS
35696LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035698/* end confdefs.h. */
35699
35700/* Override any GCC internal prototype to avoid an error.
35701 Use char because int might match the return type of a GCC
35702 builtin and then its argument prototype would still apply. */
35703#ifdef __cplusplus
35704extern "C"
35705#endif
35706char __gcov_init ();
35707int
35708main ()
35709{
35710return __gcov_init ();
35711 ;
35712 return 0;
35713}
35714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035716 ac_cv_lib_gcov___gcov_init=yes
35717else
cristy8b350f62009-11-15 23:12:43 +000035718 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035719fi
cristy8b350f62009-11-15 23:12:43 +000035720rm -f core conftest.err conftest.$ac_objext \
35721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035722LIBS=$ac_check_lib_save_LIBS
35723fi
cristy8b350f62009-11-15 23:12:43 +000035724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035725$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035726if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035727 cat >>confdefs.h <<_ACEOF
35728#define HAVE_LIBGCOV 1
35729_ACEOF
35730
35731 LIBS="-lgcov $LIBS"
35732
35733fi
35734
35735 case "$target_os" in
35736 darwin*)
35737 OSX_GCOV_LDFLAG="-Wl,-single_module"
35738 ;;
35739 *)
35740 OSX_GCOV_LDFLAG=""
35741 ;;
35742 esac
35743
35744 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35745 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35746 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35747fi
35748
35749#
35750# Build library dependency list for libMagickCore
35751#
35752
cristyc6722092012-10-14 00:19:31 +000035753if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035754 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035755else
cristy3a75f062012-09-08 23:29:40 +000035756 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035757fi
35758
35759
35760#
35761# Remove extraneous spaces from output variables (asthetic)
35762#
35763X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35764X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35765X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35766X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35767
35768CC=`echo $CC | sed -e 's/ */ /g'`
35769CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35770CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35771CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035772DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35773LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35774TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35775MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35776#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35777
35778# Pass only user-provided LIBS as "global" libraries
35779LIBS=$USER_LIBS
35780
35781#AC_SUBST(CPPFLAGS)
35782
35783#AC_SUBST(LDFLAGS)
35784#AC_SUBST(X_PRE_LIBS)
35785#AC_SUBST(X_LIBS)
35786#AC_SUBST(X_EXTRA_LIBS)
35787
35788MAGICK_CFLAGS=$CFLAGS
35789MAGICK_CXXFLAGS="$CXXFLAGS"
35790MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35791MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35792MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035793MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035794
35795
35796
35797
35798
35799
35800
35801
35802# Set configured scripts to executable.
35803ac_config_commands="$ac_config_commands default"
35804
cristy2bd4b6e2012-07-22 15:29:11 +000035805ac_config_commands="$ac_config_commands magick.sh.in"
35806
cristy3ed852e2009-09-05 21:47:34 +000035807ac_config_commands="$ac_config_commands MagickCore-config.in"
35808
cristy3ed852e2009-09-05 21:47:34 +000035809ac_config_commands="$ac_config_commands MagickWand-config.in"
35810
cristy3ed852e2009-09-05 21:47:34 +000035811ac_config_commands="$ac_config_commands Magick++-config.in"
35812
35813ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35814
35815
cristyad38abe2012-12-23 23:03:21 +000035816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35817$as_echo "-------------------------------------------------------------" >&6; }
35818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35819$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035820cat >confcache <<\_ACEOF
35821# This file is a shell script that caches the results of configure
35822# tests run on this system so they can be shared between configure
35823# scripts and configure runs, see configure's option --config-cache.
35824# It is not useful on other systems. If it contains results you don't
35825# want to keep, you may remove or edit it.
35826#
35827# config.status only pays attention to the cache file if you give it
35828# the --recheck option to rerun configure.
35829#
35830# `ac_cv_env_foo' variables (set or unset) will be overridden when
35831# loading this file, other *unset* `ac_cv_foo' will be assigned the
35832# following values.
35833
35834_ACEOF
35835
35836# The following way of writing the cache mishandles newlines in values,
35837# but we know of no workaround that is simple, portable, and efficient.
35838# So, we kill variables containing newlines.
35839# Ultrix sh set writes to stderr and can't be redirected directly,
35840# and sets the high bit in the cache file unless we assign to the vars.
35841(
35842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35843 eval ac_val=\$$ac_var
35844 case $ac_val in #(
35845 *${as_nl}*)
35846 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035847 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035848$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35849 esac
35850 case $ac_var in #(
35851 _ | IFS | as_nl) ;; #(
35852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035853 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035854 esac ;;
35855 esac
35856 done
35857
35858 (set) 2>&1 |
35859 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35860 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035861 # `set' does not quote correctly, so add quotes: double-quote
35862 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035863 sed -n \
35864 "s/'/'\\\\''/g;
35865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35866 ;; #(
35867 *)
35868 # `set' quotes correctly as required by POSIX, so do not add quotes.
35869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35870 ;;
35871 esac |
35872 sort
35873) |
35874 sed '
35875 /^ac_cv_env_/b end
35876 t clear
35877 :clear
35878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35879 t end
35880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35881 :end' >>confcache
35882if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35883 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035884 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035886$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035887 if test ! -f "$cache_file" || test -h "$cache_file"; then
35888 cat confcache >"$cache_file"
35889 else
35890 case $cache_file in #(
35891 */* | ?:*)
35892 mv -f confcache "$cache_file"$$ &&
35893 mv -f "$cache_file"$$ "$cache_file" ;; #(
35894 *)
35895 mv -f confcache "$cache_file" ;;
35896 esac
35897 fi
35898 fi
cristy3ed852e2009-09-05 21:47:34 +000035899 else
cristy8b350f62009-11-15 23:12:43 +000035900 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035901$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35902 fi
35903fi
35904rm -f confcache
35905
35906test "x$prefix" = xNONE && prefix=$ac_default_prefix
35907# Let make expand exec_prefix.
35908test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35909
35910DEFS=-DHAVE_CONFIG_H
35911
35912ac_libobjs=
35913ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035914U=
cristy3ed852e2009-09-05 21:47:34 +000035915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35916 # 1. Remove the extension, and $U if already installed.
35917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35920 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035921 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35922 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035923done
35924LIBOBJS=$ac_libobjs
35925
35926LTLIBOBJS=$ac_ltlibobjs
35927
35928
cristyc0890a62012-07-19 00:18:20 +000035929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35930$as_echo_n "checking that generated files are newer than configure... " >&6; }
35931 if test -n "$am_sleep_pid"; then
35932 # Hide warnings about reused PIDs.
35933 wait $am_sleep_pid 2>/dev/null
35934 fi
35935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35936$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035937 if test -n "$EXEEXT"; then
35938 am__EXEEXT_TRUE=
35939 am__EXEEXT_FALSE='#'
35940else
35941 am__EXEEXT_TRUE='#'
35942 am__EXEEXT_FALSE=
35943fi
cristy3ed852e2009-09-05 21:47:34 +000035944
cristy73bd4a52010-10-05 11:24:23 +000035945if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035947Usually this means the macro was only invoked conditionally." "$LINENO" 5
35948fi
35949if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035950 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035951Usually this means the macro was only invoked conditionally." "$LINENO" 5
35952fi
35953if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035954 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035955Usually this means the macro was only invoked conditionally." "$LINENO" 5
35956fi
35957if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035958 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035959Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960fi
cristy9b86f202012-11-28 21:55:35 +000035961if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35962 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
cristy73bd4a52010-10-05 11:24:23 +000035965if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
35973if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035974 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
35977if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035978 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
cristy73bd4a52010-10-05 11:24:23 +000035981if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035982 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
cristy73bd4a52010-10-05 11:24:23 +000035989if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
cristy71d8c202012-03-20 17:05:01 +000035993if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35994 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
cristy73bd4a52010-10-05 11:24:23 +000035997
35998if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
36002if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036003 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036007 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
36010if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036011 as_fn_error $? "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036015 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036019 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036020Usually this means the macro was only invoked conditionally." "$LINENO" 5
36021fi
cristy5eef09f2012-10-16 12:08:28 +000036022if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36023 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36024Usually this means the macro was only invoked conditionally." "$LINENO" 5
36025fi
cristy73bd4a52010-10-05 11:24:23 +000036026if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036027 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036031 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036035 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036039 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036043 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036047 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036051 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036055 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036059 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036060Usually this means the macro was only invoked conditionally." "$LINENO" 5
36061fi
36062if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036063 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036064Usually this means the macro was only invoked conditionally." "$LINENO" 5
36065fi
36066if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036067 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036068Usually this means the macro was only invoked conditionally." "$LINENO" 5
36069fi
36070if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036071 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036072Usually this means the macro was only invoked conditionally." "$LINENO" 5
36073fi
36074if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036075 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036076Usually this means the macro was only invoked conditionally." "$LINENO" 5
36077fi
36078if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036079 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036080Usually this means the macro was only invoked conditionally." "$LINENO" 5
36081fi
cristyfbb0ef02010-12-19 02:32:11 +000036082if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36083 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36084Usually this means the macro was only invoked conditionally." "$LINENO" 5
36085fi
cristy73bd4a52010-10-05 11:24:23 +000036086if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036087 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036088Usually this means the macro was only invoked conditionally." "$LINENO" 5
36089fi
cristy41cbe8a2011-10-27 01:35:18 +000036090if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36091 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36092Usually this means the macro was only invoked conditionally." "$LINENO" 5
36093fi
cristya054b762012-03-26 23:16:00 +000036094if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36095 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036096Usually this means the macro was only invoked conditionally." "$LINENO" 5
36097fi
cristy73bd4a52010-10-05 11:24:23 +000036098if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036099 as_fn_error $? "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036103 as_fn_error $? "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036107 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036111 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036112Usually this means the macro was only invoked conditionally." "$LINENO" 5
36113fi
cristyb1860752011-03-14 00:27:46 +000036114if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36115 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36116Usually this means the macro was only invoked conditionally." "$LINENO" 5
36117fi
cristy73bd4a52010-10-05 11:24:23 +000036118if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036119 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036120Usually this means the macro was only invoked conditionally." "$LINENO" 5
36121fi
36122if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036123 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036124Usually this means the macro was only invoked conditionally." "$LINENO" 5
36125fi
36126if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036127 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036128Usually this means the macro was only invoked conditionally." "$LINENO" 5
36129fi
36130if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036131 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036132Usually this means the macro was only invoked conditionally." "$LINENO" 5
36133fi
36134if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036135 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036136Usually this means the macro was only invoked conditionally." "$LINENO" 5
36137fi
36138if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036139 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036140Usually this means the macro was only invoked conditionally." "$LINENO" 5
36141fi
36142if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036143 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036144Usually this means the macro was only invoked conditionally." "$LINENO" 5
36145fi
36146if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036147 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036148Usually this means the macro was only invoked conditionally." "$LINENO" 5
36149fi
cristy3ed852e2009-09-05 21:47:34 +000036150
cristyda16f162011-02-19 23:52:17 +000036151: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036152ac_write_fail=0
36153ac_clean_files_save=$ac_clean_files
36154ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036155{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036156$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036157as_write_fail=0
36158cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036159#! $SHELL
36160# Generated by $as_me.
36161# Run this file to recreate the current configuration.
36162# Compiler output produced by configure, useful for debugging
36163# configure, is in config.log if it exists.
36164
36165debug=false
36166ac_cs_recheck=false
36167ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036168
cristy8b350f62009-11-15 23:12:43 +000036169SHELL=\${CONFIG_SHELL-$SHELL}
36170export SHELL
36171_ASEOF
36172cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36173## -------------------- ##
36174## M4sh Initialization. ##
36175## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036176
36177# Be more Bourne compatible
36178DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036179if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036180 emulate sh
36181 NULLCMD=:
36182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36183 # is contrary to our usage. Disable this feature.
36184 alias -g '${1+"$@"}'='"$@"'
36185 setopt NO_GLOB_SUBST
36186else
cristy8b350f62009-11-15 23:12:43 +000036187 case `(set -o) 2>/dev/null` in #(
36188 *posix*) :
36189 set -o posix ;; #(
36190 *) :
36191 ;;
cristy3ed852e2009-09-05 21:47:34 +000036192esac
cristy3ed852e2009-09-05 21:47:34 +000036193fi
36194
36195
cristy3ed852e2009-09-05 21:47:34 +000036196as_nl='
36197'
36198export as_nl
36199# Printing a long string crashes Solaris 7 /usr/bin/printf.
36200as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36202as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036203# Prefer a ksh shell builtin over an external printf program on Solaris,
36204# but without wasting forks for bash or zsh.
36205if test -z "$BASH_VERSION$ZSH_VERSION" \
36206 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36207 as_echo='print -r --'
36208 as_echo_n='print -rn --'
36209elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036210 as_echo='printf %s\n'
36211 as_echo_n='printf %s'
36212else
36213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36215 as_echo_n='/usr/ucb/echo -n'
36216 else
36217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36218 as_echo_n_body='eval
36219 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036220 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036221 *"$as_nl"*)
36222 expr "X$arg" : "X\\(.*\\)$as_nl";
36223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36224 esac;
36225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36226 '
36227 export as_echo_n_body
36228 as_echo_n='sh -c $as_echo_n_body as_echo'
36229 fi
36230 export as_echo_body
36231 as_echo='sh -c $as_echo_body as_echo'
36232fi
36233
36234# The user is always right.
36235if test "${PATH_SEPARATOR+set}" != set; then
36236 PATH_SEPARATOR=:
36237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36239 PATH_SEPARATOR=';'
36240 }
36241fi
36242
cristy3ed852e2009-09-05 21:47:34 +000036243
36244# IFS
36245# We need space, tab and new line, in precisely that order. Quoting is
36246# there to prevent editors from complaining about space-tab.
36247# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36248# splitting by setting IFS to empty value.)
36249IFS=" "" $as_nl"
36250
36251# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036252as_myself=
cristy8b350f62009-11-15 23:12:43 +000036253case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036254 *[\\/]* ) as_myself=$0 ;;
36255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36256for as_dir in $PATH
36257do
36258 IFS=$as_save_IFS
36259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36261 done
cristy3ed852e2009-09-05 21:47:34 +000036262IFS=$as_save_IFS
36263
36264 ;;
36265esac
36266# We did not find ourselves, most probably we were run as `sh COMMAND'
36267# in which case we are not to be found in the path.
36268if test "x$as_myself" = x; then
36269 as_myself=$0
36270fi
36271if test ! -f "$as_myself"; then
36272 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036273 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036274fi
36275
cristy8b350f62009-11-15 23:12:43 +000036276# Unset variables that we do not need and which cause bugs (e.g. in
36277# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36278# suppresses any "Segmentation fault" message there. '((' could
36279# trigger a bug in pdksh 5.2.14.
36280for as_var in BASH_ENV ENV MAIL MAILPATH
36281do eval test x\${$as_var+set} = xset \
36282 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036283done
36284PS1='$ '
36285PS2='> '
36286PS4='+ '
36287
36288# NLS nuisances.
36289LC_ALL=C
36290export LC_ALL
36291LANGUAGE=C
36292export LANGUAGE
36293
cristy8b350f62009-11-15 23:12:43 +000036294# CDPATH.
36295(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36296
36297
cristy98dddb52010-11-04 00:30:15 +000036298# as_fn_error STATUS ERROR [LINENO LOG_FD]
36299# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036300# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36301# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036302# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036303as_fn_error ()
36304{
cristy98dddb52010-11-04 00:30:15 +000036305 as_status=$1; test $as_status -eq 0 && as_status=1
36306 if test "$4"; then
36307 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36308 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036309 fi
cristy98dddb52010-11-04 00:30:15 +000036310 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036311 as_fn_exit $as_status
36312} # as_fn_error
36313
36314
36315# as_fn_set_status STATUS
36316# -----------------------
36317# Set $? to STATUS, without forking.
36318as_fn_set_status ()
36319{
36320 return $1
36321} # as_fn_set_status
36322
36323# as_fn_exit STATUS
36324# -----------------
36325# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36326as_fn_exit ()
36327{
36328 set +e
36329 as_fn_set_status $1
36330 exit $1
36331} # as_fn_exit
36332
36333# as_fn_unset VAR
36334# ---------------
36335# Portably unset VAR.
36336as_fn_unset ()
36337{
36338 { eval $1=; unset $1;}
36339}
36340as_unset=as_fn_unset
36341# as_fn_append VAR VALUE
36342# ----------------------
36343# Append the text in VALUE to the end of the definition contained in VAR. Take
36344# advantage of any shell optimizations that allow amortized linear growth over
36345# repeated appends, instead of the typical quadratic growth present in naive
36346# implementations.
36347if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36348 eval 'as_fn_append ()
36349 {
36350 eval $1+=\$2
36351 }'
36352else
36353 as_fn_append ()
36354 {
36355 eval $1=\$$1\$2
36356 }
36357fi # as_fn_append
36358
36359# as_fn_arith ARG...
36360# ------------------
36361# Perform arithmetic evaluation on the ARGs, and store the result in the
36362# global $as_val. Take advantage of shells that can avoid forks. The arguments
36363# must be portable across $(()) and expr.
36364if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36365 eval 'as_fn_arith ()
36366 {
36367 as_val=$(( $* ))
36368 }'
36369else
36370 as_fn_arith ()
36371 {
36372 as_val=`expr "$@" || test $? -eq 1`
36373 }
36374fi # as_fn_arith
36375
36376
cristy3ed852e2009-09-05 21:47:34 +000036377if expr a : '\(a\)' >/dev/null 2>&1 &&
36378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36379 as_expr=expr
36380else
36381 as_expr=false
36382fi
36383
36384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36385 as_basename=basename
36386else
36387 as_basename=false
36388fi
36389
cristy8b350f62009-11-15 23:12:43 +000036390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36391 as_dirname=dirname
36392else
36393 as_dirname=false
36394fi
cristy3ed852e2009-09-05 21:47:34 +000036395
cristy3ed852e2009-09-05 21:47:34 +000036396as_me=`$as_basename -- "$0" ||
36397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36398 X"$0" : 'X\(//\)$' \| \
36399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36400$as_echo X/"$0" |
36401 sed '/^.*\/\([^/][^/]*\)\/*$/{
36402 s//\1/
36403 q
36404 }
36405 /^X\/\(\/\/\)$/{
36406 s//\1/
36407 q
36408 }
36409 /^X\/\(\/\).*/{
36410 s//\1/
36411 q
36412 }
36413 s/.*/./; q'`
36414
cristy8b350f62009-11-15 23:12:43 +000036415# Avoid depending upon Character Ranges.
36416as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36418as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36419as_cr_digits='0123456789'
36420as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036421
36422ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036423case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036424-n*)
cristy8b350f62009-11-15 23:12:43 +000036425 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036427 xy) ECHO_C='\c';;
36428 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36429 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036430 esac;;
36431*)
36432 ECHO_N='-n';;
36433esac
cristy3ed852e2009-09-05 21:47:34 +000036434
36435rm -f conf$$ conf$$.exe conf$$.file
36436if test -d conf$$.dir; then
36437 rm -f conf$$.dir/conf$$.file
36438else
36439 rm -f conf$$.dir
36440 mkdir conf$$.dir 2>/dev/null
36441fi
36442if (echo >conf$$.file) 2>/dev/null; then
36443 if ln -s conf$$.file conf$$ 2>/dev/null; then
36444 as_ln_s='ln -s'
36445 # ... but there are two gotchas:
36446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036448 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036450 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036451 elif ln conf$$.file conf$$ 2>/dev/null; then
36452 as_ln_s=ln
36453 else
cristy14fefe52012-05-21 00:59:18 +000036454 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036455 fi
36456else
cristy14fefe52012-05-21 00:59:18 +000036457 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036458fi
36459rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36460rmdir conf$$.dir 2>/dev/null
36461
cristy8b350f62009-11-15 23:12:43 +000036462
36463# as_fn_mkdir_p
36464# -------------
36465# Create "$as_dir" as a directory, including parents if necessary.
36466as_fn_mkdir_p ()
36467{
36468
36469 case $as_dir in #(
36470 -*) as_dir=./$as_dir;;
36471 esac
36472 test -d "$as_dir" || eval $as_mkdir_p || {
36473 as_dirs=
36474 while :; do
36475 case $as_dir in #(
36476 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36477 *) as_qdir=$as_dir;;
36478 esac
36479 as_dirs="'$as_qdir' $as_dirs"
36480 as_dir=`$as_dirname -- "$as_dir" ||
36481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36482 X"$as_dir" : 'X\(//\)[^/]' \| \
36483 X"$as_dir" : 'X\(//\)$' \| \
36484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36485$as_echo X"$as_dir" |
36486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36487 s//\1/
36488 q
36489 }
36490 /^X\(\/\/\)[^/].*/{
36491 s//\1/
36492 q
36493 }
36494 /^X\(\/\/\)$/{
36495 s//\1/
36496 q
36497 }
36498 /^X\(\/\).*/{
36499 s//\1/
36500 q
36501 }
36502 s/.*/./; q'`
36503 test -d "$as_dir" && break
36504 done
36505 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036506 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036507
36508
36509} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036510if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036511 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036512else
36513 test -d ./-p && rmdir ./-p
36514 as_mkdir_p=false
36515fi
36516
cristy14fefe52012-05-21 00:59:18 +000036517
36518# as_fn_executable_p FILE
36519# -----------------------
36520# Test if FILE is an executable regular file.
36521as_fn_executable_p ()
36522{
36523 test -f "$1" && test -x "$1"
36524} # as_fn_executable_p
36525as_test_x='test -x'
36526as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036527
36528# Sed expression to map a string onto a valid CPP name.
36529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36530
36531# Sed expression to map a string onto a valid variable name.
36532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36533
36534
36535exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036536## ----------------------------------- ##
36537## Main body of $CONFIG_STATUS script. ##
36538## ----------------------------------- ##
36539_ASEOF
36540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036541
cristy8b350f62009-11-15 23:12:43 +000036542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36543# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036544# report actual input values of CONFIG_FILES etc. instead of their
36545# values after options handling.
36546ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036547This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036548generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036549
36550 CONFIG_FILES = $CONFIG_FILES
36551 CONFIG_HEADERS = $CONFIG_HEADERS
36552 CONFIG_LINKS = $CONFIG_LINKS
36553 CONFIG_COMMANDS = $CONFIG_COMMANDS
36554 $ $0 $@
36555
36556on `(hostname || uname -n) 2>/dev/null | sed 1q`
36557"
36558
36559_ACEOF
36560
36561case $ac_config_files in *"
36562"*) set x $ac_config_files; shift; ac_config_files=$*;;
36563esac
36564
36565case $ac_config_headers in *"
36566"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36567esac
36568
36569
36570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36571# Files that config.status was made for.
36572config_files="$ac_config_files"
36573config_headers="$ac_config_headers"
36574config_commands="$ac_config_commands"
36575
36576_ACEOF
36577
36578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36579ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036580\`$as_me' instantiates files and other configuration actions
36581from templates according to the current configuration. Unless the files
36582and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036583
cristy8b350f62009-11-15 23:12:43 +000036584Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036585
36586 -h, --help print this help, then exit
36587 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036588 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036589 -q, --quiet, --silent
36590 do not print progress messages
36591 -d, --debug don't remove temporary files
36592 --recheck update $as_me by reconfiguring in the same conditions
36593 --file=FILE[:TEMPLATE]
36594 instantiate the configuration file FILE
36595 --header=FILE[:TEMPLATE]
36596 instantiate the configuration header FILE
36597
36598Configuration files:
36599$config_files
36600
36601Configuration headers:
36602$config_headers
36603
36604Configuration commands:
36605$config_commands
36606
cristy8b350f62009-11-15 23:12:43 +000036607Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036608
36609_ACEOF
36610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036612ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036613ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036614configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036615 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036616
cristy14fefe52012-05-21 00:59:18 +000036617Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036618This config.status script is free software; the Free Software Foundation
36619gives unlimited permission to copy, distribute and modify it."
36620
36621ac_pwd='$ac_pwd'
36622srcdir='$srcdir'
36623INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036624MKDIR_P='$MKDIR_P'
36625AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036626test -n "\$AWK" || AWK=awk
36627_ACEOF
36628
36629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36630# The default lists apply if the user does not specify any file.
36631ac_need_defaults=:
36632while test $# != 0
36633do
36634 case $1 in
cristyda16f162011-02-19 23:52:17 +000036635 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036636 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36637 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36638 ac_shift=:
36639 ;;
cristyda16f162011-02-19 23:52:17 +000036640 --*=)
36641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36642 ac_optarg=
36643 ac_shift=:
36644 ;;
cristy3ed852e2009-09-05 21:47:34 +000036645 *)
36646 ac_option=$1
36647 ac_optarg=$2
36648 ac_shift=shift
36649 ;;
36650 esac
36651
36652 case $ac_option in
36653 # Handling of the options.
36654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36655 ac_cs_recheck=: ;;
36656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36657 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036658 --config | --confi | --conf | --con | --co | --c )
36659 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036660 --debug | --debu | --deb | --de | --d | -d )
36661 debug=: ;;
36662 --file | --fil | --fi | --f )
36663 $ac_shift
36664 case $ac_optarg in
36665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036666 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036667 esac
cristy8b350f62009-11-15 23:12:43 +000036668 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036669 ac_need_defaults=false;;
36670 --header | --heade | --head | --hea )
36671 $ac_shift
36672 case $ac_optarg in
36673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36674 esac
cristy8b350f62009-11-15 23:12:43 +000036675 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036676 ac_need_defaults=false;;
36677 --he | --h)
36678 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036679 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036680Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036681 --help | --hel | -h )
36682 $as_echo "$ac_cs_usage"; exit ;;
36683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36685 ac_cs_silent=: ;;
36686
36687 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036688 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036689Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036690
cristy8b350f62009-11-15 23:12:43 +000036691 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036692 ac_need_defaults=false ;;
36693
36694 esac
36695 shift
36696done
36697
36698ac_configure_extra_args=
36699
36700if $ac_cs_silent; then
36701 exec 6>/dev/null
36702 ac_configure_extra_args="$ac_configure_extra_args --silent"
36703fi
36704
36705_ACEOF
36706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36707if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036708 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036709 shift
36710 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36711 CONFIG_SHELL='$SHELL'
36712 export CONFIG_SHELL
36713 exec "\$@"
36714fi
36715
36716_ACEOF
36717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36718exec 5>>config.log
36719{
36720 echo
36721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36722## Running $as_me. ##
36723_ASBOX
36724 $as_echo "$ac_log"
36725} >&5
36726
36727_ACEOF
36728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036729#
36730# INIT-COMMANDS
36731#
36732PACKAGE="$PACKAGE"
36733AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36734
36735
36736# The HP-UX ksh and POSIX shell print the target directory to stdout
36737# if CDPATH is set.
36738(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36739
36740sed_quote_subst='$sed_quote_subst'
36741double_quote_subst='$double_quote_subst'
36742delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036743SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36744Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36745GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36746EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36747FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36748SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36749ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36750LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36751macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36752macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36753AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36754DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36755OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36756enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36757enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36758pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36759enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036760PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036761host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36762host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36763host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36764build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36765build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36766build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36767NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36768LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36769max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36770ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36771exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36772lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36773lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36774lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036775lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36776lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036777reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36778reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36779deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36780file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036781file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36782want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36783sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036784AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36785AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036786archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036787STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36788RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36789old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36790old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36791old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36792lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36793CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36794CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36795compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36796GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36797lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36798lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36799lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36800lt_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 +000036801nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36802lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036803objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36804MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36805lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036806lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036807lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036808lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36809lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36810need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036811MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036812DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36813NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36814LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36815OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36816OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36817libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36818shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36819extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36820archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36821enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36822export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36823whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36824compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36825old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36826old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36827archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36828archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36829module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36830module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36831with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36832allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36833no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36834hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036835hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36836hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36837hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36838hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36839hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36840hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36841inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36842link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036843always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36844export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36845exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36846include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36847prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036848postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036849file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36850variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36851need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36852need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36853version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36854runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36855shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36856shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36857libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36858library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36859soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36860install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36861postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36862postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36863finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36864finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36865hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36866sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36867sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36868hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36869enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36870enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36871enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36872old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36873striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36874compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36875predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36876postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36877predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36878postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36879compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36880LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36881reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36882reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36883old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36884compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36885GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36886lt_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 +000036887lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036888lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036889lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36890lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36891archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36892enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36893export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36894whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36895compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36896old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36897old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36898archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36899archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36900module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36901module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36902with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36903allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36904no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36905hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036906hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36907hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36908hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36909hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36910hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36911hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36912inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36913link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036914always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36915export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36916exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36917include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36918prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036919postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036920file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36921hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36922compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36923predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36924postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36925predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36926postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36927compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036928
36929LTCC='$LTCC'
36930LTCFLAGS='$LTCFLAGS'
36931compiler='$compiler_DEFAULT'
36932
cristy0c60a692010-11-04 01:09:47 +000036933# A function that is used when there is no print builtin or printf.
36934func_fallback_echo ()
36935{
36936 eval 'cat <<_LTECHO_EOF
36937\$1
36938_LTECHO_EOF'
36939}
36940
cristy73bd4a52010-10-05 11:24:23 +000036941# Quote evaled strings.
36942for var in SED \
36943GREP \
36944EGREP \
36945FGREP \
cristy0c60a692010-11-04 01:09:47 +000036946SHELL \
36947ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036948LD \
cristy0c60a692010-11-04 01:09:47 +000036949AS \
36950DLLTOOL \
36951OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036952PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036953NM \
36954LN_S \
36955lt_SP2NL \
36956lt_NL2SP \
36957reload_flag \
36958deplibs_check_method \
36959file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036960file_magic_glob \
36961want_nocaseglob \
36962sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036963AR \
36964AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036965archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036966STRIP \
36967RANLIB \
36968CC \
36969CFLAGS \
36970compiler \
36971lt_cv_sys_global_symbol_pipe \
36972lt_cv_sys_global_symbol_to_cdecl \
36973lt_cv_sys_global_symbol_to_c_name_address \
36974lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036975nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036976lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036977lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036978lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036979lt_prog_compiler_static \
36980lt_cv_prog_compiler_c_o \
36981need_locks \
cristyda16f162011-02-19 23:52:17 +000036982MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036983DSYMUTIL \
36984NMEDIT \
36985LIPO \
36986OTOOL \
36987OTOOL64 \
36988shrext_cmds \
36989export_dynamic_flag_spec \
36990whole_archive_flag_spec \
36991compiler_needs_object \
36992with_gnu_ld \
36993allow_undefined_flag \
36994no_undefined_flag \
36995hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036996hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036997exclude_expsyms \
36998include_expsyms \
36999file_list_spec \
37000variables_saved_for_relink \
37001libname_spec \
37002library_names_spec \
37003soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037004install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037005finish_eval \
37006old_striplib \
37007striplib \
37008compiler_lib_search_dirs \
37009predep_objects \
37010postdep_objects \
37011predeps \
37012postdeps \
37013compiler_lib_search_path \
37014LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037015reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037016compiler_CXX \
37017lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037018lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037019lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037020lt_prog_compiler_static_CXX \
37021lt_cv_prog_compiler_c_o_CXX \
37022export_dynamic_flag_spec_CXX \
37023whole_archive_flag_spec_CXX \
37024compiler_needs_object_CXX \
37025with_gnu_ld_CXX \
37026allow_undefined_flag_CXX \
37027no_undefined_flag_CXX \
37028hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037029hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037030exclude_expsyms_CXX \
37031include_expsyms_CXX \
37032file_list_spec_CXX \
37033compiler_lib_search_dirs_CXX \
37034predep_objects_CXX \
37035postdep_objects_CXX \
37036predeps_CXX \
37037postdeps_CXX \
37038compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037039 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037040 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037041 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037042 ;;
37043 *)
37044 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37045 ;;
37046 esac
37047done
37048
37049# Double-quote double-evaled strings.
37050for var in reload_cmds \
37051old_postinstall_cmds \
37052old_postuninstall_cmds \
37053old_archive_cmds \
37054extract_expsyms_cmds \
37055old_archive_from_new_cmds \
37056old_archive_from_expsyms_cmds \
37057archive_cmds \
37058archive_expsym_cmds \
37059module_cmds \
37060module_expsym_cmds \
37061export_symbols_cmds \
37062prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037063postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037064postinstall_cmds \
37065postuninstall_cmds \
37066finish_cmds \
37067sys_lib_search_path_spec \
37068sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037069reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037070old_archive_cmds_CXX \
37071old_archive_from_new_cmds_CXX \
37072old_archive_from_expsyms_cmds_CXX \
37073archive_cmds_CXX \
37074archive_expsym_cmds_CXX \
37075module_cmds_CXX \
37076module_expsym_cmds_CXX \
37077export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037078prelink_cmds_CXX \
37079postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037080 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037081 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037082 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037083 ;;
37084 *)
37085 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37086 ;;
37087 esac
37088done
37089
cristy73bd4a52010-10-05 11:24:23 +000037090ac_aux_dir='$ac_aux_dir'
37091xsi_shell='$xsi_shell'
37092lt_shell_append='$lt_shell_append'
37093
37094# See if we are running on zsh, and set the options which allow our
37095# commands through without removal of \ escapes INIT.
37096if test -n "\${ZSH_VERSION+set}" ; then
37097 setopt NO_GLOB_SUBST
37098fi
37099
37100
37101 PACKAGE='$PACKAGE'
37102 VERSION='$VERSION'
37103 TIMESTAMP='$TIMESTAMP'
37104 RM='$RM'
37105 ofile='$ofile'
37106
37107
37108
37109
37110
37111
cristy3ed852e2009-09-05 21:47:34 +000037112_ACEOF
37113
37114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37115
37116# Handling of arguments.
37117for ac_config_target in $ac_config_targets
37118do
37119 case $ac_config_target in
37120 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037121 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037122 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037123 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37124 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37125 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37126 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37127 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037128 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037129 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037130 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37131 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37132 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37133 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37134 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037135 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037136 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037137 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37138 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37139 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37141 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037142 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037143 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037144 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037145 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037146 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37147 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37148 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37149 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037150 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37151 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37152 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37153 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37154 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37155 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37156 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37157 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37158 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37159 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37160 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37161 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037162 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37163 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37165 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037166 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037167 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037168 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037169 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037170 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37171 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37172
cristy98dddb52010-11-04 00:30:15 +000037173 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037174 esac
37175done
37176
37177
37178# If the user did not use the arguments to specify the items to instantiate,
37179# then the envvar interface is used. Set only those that are not.
37180# We use the long form for the default assignment because of an extremely
37181# bizarre bug on SunOS 4.1.3.
37182if $ac_need_defaults; then
37183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37186fi
37187
37188# Have a temporary directory for convenience. Make it in the build tree
37189# simply because there is no reason against having it here, and in addition,
37190# creating and moving files from /tmp can sometimes cause problems.
37191# Hook for its removal unless debugging.
37192# Note that there is a small window in which the directory will not be cleaned:
37193# after its creation but before its name has been assigned to `$tmp'.
37194$debug ||
37195{
cristyda16f162011-02-19 23:52:17 +000037196 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037197 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037198 : "${ac_tmp:=$tmp}"
37199 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037200' 0
cristy8b350f62009-11-15 23:12:43 +000037201 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037202}
37203# Create a (secure) tmp directory for tmp files.
37204
37205{
37206 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037207 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037208} ||
37209{
37210 tmp=./conf$$-$RANDOM
37211 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037212} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037213ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037214
37215# Set up the scripts for CONFIG_FILES section.
37216# No need to generate them if there are no CONFIG_FILES.
37217# This happens for instance with `./config.status config.h'.
37218if test -n "$CONFIG_FILES"; then
37219
37220
cristy8b350f62009-11-15 23:12:43 +000037221ac_cr=`echo X | tr X '\015'`
37222# On cygwin, bash can eat \r inside `` if the user requested igncr.
37223# But we know of no other shell where ac_cr would be empty at this
37224# point, so we can use a bashism as a fallback.
37225if test "x$ac_cr" = x; then
37226 eval ac_cr=\$\'\\r\'
37227fi
cristy3ed852e2009-09-05 21:47:34 +000037228ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37229if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037230 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037231else
37232 ac_cs_awk_cr=$ac_cr
37233fi
37234
cristyda16f162011-02-19 23:52:17 +000037235echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037236_ACEOF
37237
37238
37239{
37240 echo "cat >conf$$subs.awk <<_ACEOF" &&
37241 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37242 echo "_ACEOF"
37243} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37245ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037246ac_delim='%!_!# '
37247for ac_last_try in false false false false false :; do
37248 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037250
37251 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37252 if test $ac_delim_n = $ac_delim_num; then
37253 break
37254 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037256 else
37257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37258 fi
37259done
37260rm -f conf$$subs.sh
37261
37262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037263cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037264_ACEOF
37265sed -n '
37266h
37267s/^/S["/; s/!.*/"]=/
37268p
37269g
37270s/^[^!]*!//
37271:repl
37272t repl
37273s/'"$ac_delim"'$//
37274t delim
37275:nl
37276h
cristycd4c5312009-11-22 01:19:08 +000037277s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037278t more1
37279s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37280p
37281n
37282b repl
37283:more1
37284s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37285p
37286g
37287s/.\{148\}//
37288t nl
37289:delim
37290h
cristycd4c5312009-11-22 01:19:08 +000037291s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037292t more2
37293s/["\\]/\\&/g; s/^/"/; s/$/"/
37294p
37295b
37296:more2
37297s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37298p
37299g
37300s/.\{148\}//
37301t delim
37302' <conf$$subs.awk | sed '
37303/^[^""]/{
37304 N
37305 s/\n//
37306}
37307' >>$CONFIG_STATUS || ac_write_fail=1
37308rm -f conf$$subs.awk
37309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37310_ACAWK
cristyda16f162011-02-19 23:52:17 +000037311cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037312 for (key in S) S_is_set[key] = 1
37313 FS = ""
37314
37315}
37316{
37317 line = $ 0
37318 nfields = split(line, field, "@")
37319 substed = 0
37320 len = length(field[1])
37321 for (i = 2; i < nfields; i++) {
37322 key = field[i]
37323 keylen = length(key)
37324 if (S_is_set[key]) {
37325 value = S[key]
37326 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37327 len += length(value) + length(field[++i])
37328 substed = 1
37329 } else
37330 len += 1 + keylen
37331 }
37332
37333 print line
37334}
37335
37336_ACAWK
37337_ACEOF
37338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37339if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37340 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37341else
37342 cat
cristyda16f162011-02-19 23:52:17 +000037343fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037344 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037345_ACEOF
37346
cristy98dddb52010-11-04 00:30:15 +000037347# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37348# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037349# trailing colons and then remove the whole line if VPATH becomes empty
37350# (actually we leave an empty line to preserve line numbers).
37351if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037352 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37353h
37354s///
37355s/^/:/
37356s/[ ]*$/:/
37357s/:\$(srcdir):/:/g
37358s/:\${srcdir}:/:/g
37359s/:@srcdir@:/:/g
37360s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037361s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037362x
37363s/\(=[ ]*\).*/\1/
37364G
37365s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037366s/^[^=]*=[ ]*$//
37367}'
37368fi
37369
37370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37371fi # test -n "$CONFIG_FILES"
37372
37373# Set up the scripts for CONFIG_HEADERS section.
37374# No need to generate them if there are no CONFIG_HEADERS.
37375# This happens for instance with `./config.status Makefile'.
37376if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037377cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037378BEGIN {
37379_ACEOF
37380
37381# Transform confdefs.h into an awk script `defines.awk', embedded as
37382# here-document in config.status, that substitutes the proper values into
37383# config.h.in to produce config.h.
37384
37385# Create a delimiter string that does not exist in confdefs.h, to ease
37386# handling of long lines.
37387ac_delim='%!_!# '
37388for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037389 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37390 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037391 break
37392 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037393 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037394 else
37395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37396 fi
37397done
37398
37399# For the awk script, D is an array of macro values keyed by name,
37400# likewise P contains macro parameters if any. Preserve backslash
37401# newline sequences.
37402
37403ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37404sed -n '
37405s/.\{148\}/&'"$ac_delim"'/g
37406t rset
37407:rset
37408s/^[ ]*#[ ]*define[ ][ ]*/ /
37409t def
37410d
37411:def
37412s/\\$//
37413t bsnl
37414s/["\\]/\\&/g
37415s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37416D["\1"]=" \3"/p
37417s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37418d
37419:bsnl
37420s/["\\]/\\&/g
37421s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37422D["\1"]=" \3\\\\\\n"\\/p
37423t cont
37424s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37425t cont
37426d
37427:cont
37428n
37429s/.\{148\}/&'"$ac_delim"'/g
37430t clear
37431:clear
37432s/\\$//
37433t bsnlc
37434s/["\\]/\\&/g; s/^/"/; s/$/"/p
37435d
37436:bsnlc
37437s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37438b cont
37439' <confdefs.h | sed '
37440s/'"$ac_delim"'/"\\\
37441"/g' >>$CONFIG_STATUS || ac_write_fail=1
37442
37443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37444 for (key in D) D_is_set[key] = 1
37445 FS = ""
37446}
37447/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37448 line = \$ 0
37449 split(line, arg, " ")
37450 if (arg[1] == "#") {
37451 defundef = arg[2]
37452 mac1 = arg[3]
37453 } else {
37454 defundef = substr(arg[1], 2)
37455 mac1 = arg[2]
37456 }
37457 split(mac1, mac2, "(") #)
37458 macro = mac2[1]
37459 prefix = substr(line, 1, index(line, defundef) - 1)
37460 if (D_is_set[macro]) {
37461 # Preserve the white space surrounding the "#".
37462 print prefix "define", macro P[macro] D[macro]
37463 next
37464 } else {
37465 # Replace #undef with comments. This is necessary, for example,
37466 # in the case of _POSIX_SOURCE, which is predefined and required
37467 # on some systems where configure will not decide to define it.
37468 if (defundef == "undef") {
37469 print "/*", prefix defundef, macro, "*/"
37470 next
37471 }
37472 }
37473}
37474{ print }
37475_ACAWK
37476_ACEOF
37477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037478 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037479fi # test -n "$CONFIG_HEADERS"
37480
37481
37482eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37483shift
37484for ac_tag
37485do
37486 case $ac_tag in
37487 :[FHLC]) ac_mode=$ac_tag; continue;;
37488 esac
37489 case $ac_mode$ac_tag in
37490 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037491 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037492 :[FH]-) ac_tag=-:-;;
37493 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37494 esac
37495 ac_save_IFS=$IFS
37496 IFS=:
37497 set x $ac_tag
37498 IFS=$ac_save_IFS
37499 shift
37500 ac_file=$1
37501 shift
37502
37503 case $ac_mode in
37504 :L) ac_source=$1;;
37505 :[FH])
37506 ac_file_inputs=
37507 for ac_f
37508 do
37509 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037510 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037511 *) # Look for the file first in the build tree, then in the source tree
37512 # (if the path is not absolute). The absolute path cannot be DOS-style,
37513 # because $ac_f cannot contain `:'.
37514 test -f "$ac_f" ||
37515 case $ac_f in
37516 [\\/$]*) false;;
37517 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37518 esac ||
cristy98dddb52010-11-04 00:30:15 +000037519 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037520 esac
37521 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037522 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037523 done
37524
37525 # Let's still pretend it is `configure' which instantiates (i.e., don't
37526 # use $as_me), people would be surprised to read:
37527 # /* config.h. Generated by config.status. */
37528 configure_input='Generated from '`
37529 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37530 `' by configure.'
37531 if test x"$ac_file" != x-; then
37532 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037534$as_echo "$as_me: creating $ac_file" >&6;}
37535 fi
37536 # Neutralize special characters interpreted by sed in replacement strings.
37537 case $configure_input in #(
37538 *\&* | *\|* | *\\* )
37539 ac_sed_conf_input=`$as_echo "$configure_input" |
37540 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37541 *) ac_sed_conf_input=$configure_input;;
37542 esac
37543
37544 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037545 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037547 esac
37548 ;;
37549 esac
37550
37551 ac_dir=`$as_dirname -- "$ac_file" ||
37552$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37553 X"$ac_file" : 'X\(//\)[^/]' \| \
37554 X"$ac_file" : 'X\(//\)$' \| \
37555 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37556$as_echo X"$ac_file" |
37557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37558 s//\1/
37559 q
37560 }
37561 /^X\(\/\/\)[^/].*/{
37562 s//\1/
37563 q
37564 }
37565 /^X\(\/\/\)$/{
37566 s//\1/
37567 q
37568 }
37569 /^X\(\/\).*/{
37570 s//\1/
37571 q
37572 }
37573 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037574 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037575 ac_builddir=.
37576
37577case "$ac_dir" in
37578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37579*)
37580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37581 # A ".." for each directory in $ac_dir_suffix.
37582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37583 case $ac_top_builddir_sub in
37584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37586 esac ;;
37587esac
37588ac_abs_top_builddir=$ac_pwd
37589ac_abs_builddir=$ac_pwd$ac_dir_suffix
37590# for backward compatibility:
37591ac_top_builddir=$ac_top_build_prefix
37592
37593case $srcdir in
37594 .) # We are building in place.
37595 ac_srcdir=.
37596 ac_top_srcdir=$ac_top_builddir_sub
37597 ac_abs_top_srcdir=$ac_pwd ;;
37598 [\\/]* | ?:[\\/]* ) # Absolute name.
37599 ac_srcdir=$srcdir$ac_dir_suffix;
37600 ac_top_srcdir=$srcdir
37601 ac_abs_top_srcdir=$srcdir ;;
37602 *) # Relative name.
37603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37604 ac_top_srcdir=$ac_top_build_prefix$srcdir
37605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37606esac
37607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37608
37609
37610 case $ac_mode in
37611 :F)
37612 #
37613 # CONFIG_FILE
37614 #
37615
37616 case $INSTALL in
37617 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37618 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37619 esac
cristy73bd4a52010-10-05 11:24:23 +000037620 ac_MKDIR_P=$MKDIR_P
37621 case $MKDIR_P in
37622 [\\/$]* | ?:[\\/]* ) ;;
37623 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37624 esac
cristy3ed852e2009-09-05 21:47:34 +000037625_ACEOF
37626
37627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37628# If the template does not know about datarootdir, expand it.
37629# FIXME: This hack should be removed a few years after 2.60.
37630ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037631ac_sed_dataroot='
37632/datarootdir/ {
37633 p
37634 q
37635}
37636/@datadir@/p
37637/@docdir@/p
37638/@infodir@/p
37639/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037640/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037641case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37642*datarootdir*) ac_datarootdir_seen=yes;;
37643*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037645$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37646_ACEOF
37647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37648 ac_datarootdir_hack='
37649 s&@datadir@&$datadir&g
37650 s&@docdir@&$docdir&g
37651 s&@infodir@&$infodir&g
37652 s&@localedir@&$localedir&g
37653 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037654 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037655esac
37656_ACEOF
37657
37658# Neutralize VPATH when `$srcdir' = `.'.
37659# Shell code in configure.ac might set extrasub.
37660# FIXME: do we really want to maintain this feature?
37661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37662ac_sed_extra="$ac_vpsub
37663$extrasub
37664_ACEOF
37665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37666:t
37667/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37668s|@configure_input@|$ac_sed_conf_input|;t t
37669s&@top_builddir@&$ac_top_builddir_sub&;t t
37670s&@top_build_prefix@&$ac_top_build_prefix&;t t
37671s&@srcdir@&$ac_srcdir&;t t
37672s&@abs_srcdir@&$ac_abs_srcdir&;t t
37673s&@top_srcdir@&$ac_top_srcdir&;t t
37674s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37675s&@builddir@&$ac_builddir&;t t
37676s&@abs_builddir@&$ac_abs_builddir&;t t
37677s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37678s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037679s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037680$ac_datarootdir_hack
37681"
cristyda16f162011-02-19 23:52:17 +000037682eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37683 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037684
37685test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037686 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37687 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37688 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037690which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037691$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037692which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037693
cristyda16f162011-02-19 23:52:17 +000037694 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037695 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037696 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37697 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037698 esac \
cristy98dddb52010-11-04 00:30:15 +000037699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037700 ;;
37701 :H)
37702 #
37703 # CONFIG_HEADER
37704 #
37705 if test x"$ac_file" != x-; then
37706 {
37707 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37709 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037711 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037712 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037713$as_echo "$as_me: $ac_file is unchanged" >&6;}
37714 else
37715 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037716 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037718 fi
37719 else
37720 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037721 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037722 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037723 fi
cristy73bd4a52010-10-05 11:24:23 +000037724# Compute "$ac_file"'s index in $config_headers.
37725_am_arg="$ac_file"
37726_am_stamp_count=1
37727for _am_header in $config_headers :; do
37728 case $_am_header in
37729 $_am_arg | $_am_arg:* )
37730 break ;;
37731 * )
37732 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37733 esac
37734done
37735echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37736$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37737 X"$_am_arg" : 'X\(//\)[^/]' \| \
37738 X"$_am_arg" : 'X\(//\)$' \| \
37739 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37740$as_echo X"$_am_arg" |
37741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37742 s//\1/
37743 q
37744 }
37745 /^X\(\/\/\)[^/].*/{
37746 s//\1/
37747 q
37748 }
37749 /^X\(\/\/\)$/{
37750 s//\1/
37751 q
37752 }
37753 /^X\(\/\).*/{
37754 s//\1/
37755 q
37756 }
37757 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037758 ;;
37759
cristy8b350f62009-11-15 23:12:43 +000037760 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037761$as_echo "$as_me: executing $ac_file commands" >&6;}
37762 ;;
37763 esac
37764
37765
37766 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037767 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037768ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37769ac_prefix_conf_PKG=`echo MagickCore`
37770ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37771ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37772ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37773if test ".$ac_prefix_conf_INP" = "."; then
37774 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37775 case "$ac_file" in
37776 *.h) ac_prefix_conf_INP=$ac_file ;;
37777 *)
37778 esac
37779 test ".$ac_prefix_conf_INP" != "." && break
37780 done
37781fi
37782if test ".$ac_prefix_conf_INP" = "."; then
37783 case "$ac_prefix_conf_OUT" in
37784 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37785 ;;
37786 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37787 ;;
37788 *) ac_prefix_conf_INP=config.h
37789 ;;
37790 esac
37791fi
37792if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037793 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037794else
37795 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37796 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37797 fi fi
37798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37799$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37800 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037801 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37802 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37803 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37804 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37805 $as_echo "#endif/" >> conftest.prefix
37806 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37807 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37808 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037809 # now executing _script on _DEF input to create _OUT output file
37810 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37811 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37812 echo ' ' >>$tmp/pconfig.h
37813 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37814
37815 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37816 echo ' ' >>$tmp/pconfig.h
37817 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37818 echo "#endif" >>$tmp/pconfig.h
37819 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37821$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37822 else
37823 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37824$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37825 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37826 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37827 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37828$as_echo X"$ac_prefix_conf_OUT" |
37829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37830 s//\1/
37831 q
37832 }
37833 /^X\(\/\/\)[^/].*/{
37834 s//\1/
37835 q
37836 }
37837 /^X\(\/\/\)$/{
37838 s//\1/
37839 q
37840 }
37841 /^X\(\/\).*/{
37842 s//\1/
37843 q
37844 }
37845 s/.*/./; q'`
37846 as_dir="$ac_dir"; as_fn_mkdir_p
37847 rm -f "$ac_prefix_conf_OUT"
37848 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37849 fi
37850 cp conftest.prefix _configs.sed
37851 else
cristy98dddb52010-11-04 00:30:15 +000037852 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 +000037853 fi
37854 rm -f conftest.*
37855fi
37856 ;;
37857 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000037858 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000037859 # are listed without --file. Let's play safe and only enable the eval
37860 # if we detect the quoting.
37861 case $CONFIG_FILES in
37862 *\'*) eval set x "$CONFIG_FILES" ;;
37863 *) set x $CONFIG_FILES ;;
37864 esac
37865 shift
37866 for mf
37867 do
37868 # Strip MF so we end up with the name of the file.
37869 mf=`echo "$mf" | sed -e 's/:.*$//'`
37870 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037871 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037872 # some people rename them; so instead we look at the file content.
37873 # Grep'ing the first line is not enough: some people post-process
37874 # each Makefile.in and add a new line on top of each file to say so.
37875 # Grep'ing the whole file is not good either: AIX grep has a line
37876 # limit of 2048, but all sed's we know have understand at least 4000.
37877 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37878 dirpart=`$as_dirname -- "$mf" ||
37879$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37880 X"$mf" : 'X\(//\)[^/]' \| \
37881 X"$mf" : 'X\(//\)$' \| \
37882 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37883$as_echo X"$mf" |
37884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37885 s//\1/
37886 q
37887 }
37888 /^X\(\/\/\)[^/].*/{
37889 s//\1/
37890 q
37891 }
37892 /^X\(\/\/\)$/{
37893 s//\1/
37894 q
37895 }
37896 /^X\(\/\).*/{
37897 s//\1/
37898 q
37899 }
37900 s/.*/./; q'`
37901 else
37902 continue
37903 fi
37904 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037905 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037906 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37907 test -z "$DEPDIR" && continue
37908 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000037909 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000037910 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037911 # Find all dependency output files, they are included files with
37912 # $(DEPDIR) in their names. We invoke sed twice because it is the
37913 # simplest approach to changing $(DEPDIR) to its actual value in the
37914 # expansion.
37915 for file in `sed -n "
37916 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037917 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037918 # Make sure the directory exists.
37919 test -f "$dirpart/$file" && continue
37920 fdir=`$as_dirname -- "$file" ||
37921$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37922 X"$file" : 'X\(//\)[^/]' \| \
37923 X"$file" : 'X\(//\)$' \| \
37924 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37925$as_echo X"$file" |
37926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37927 s//\1/
37928 q
37929 }
37930 /^X\(\/\/\)[^/].*/{
37931 s//\1/
37932 q
37933 }
37934 /^X\(\/\/\)$/{
37935 s//\1/
37936 q
37937 }
37938 /^X\(\/\).*/{
37939 s//\1/
37940 q
37941 }
37942 s/.*/./; q'`
37943 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37944 # echo "creating $dirpart/$file"
37945 echo '# dummy' > "$dirpart/$file"
37946 done
37947 done
37948}
37949 ;;
37950 "libtool":C)
37951
37952 # See if we are running on zsh, and set the options which allow our
37953 # commands through without removal of \ escapes.
37954 if test -n "${ZSH_VERSION+set}" ; then
37955 setopt NO_GLOB_SUBST
37956 fi
37957
37958 cfgfile="${ofile}T"
37959 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37960 $RM "$cfgfile"
37961
37962 cat <<_LT_EOF >> "$cfgfile"
37963#! $SHELL
37964
37965# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37966# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37967# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37968# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37969#
37970# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037971# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37972# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037973# Written by Gordon Matzigkeit, 1996
37974#
37975# This file is part of GNU Libtool.
37976#
37977# GNU Libtool is free software; you can redistribute it and/or
37978# modify it under the terms of the GNU General Public License as
37979# published by the Free Software Foundation; either version 2 of
37980# the License, or (at your option) any later version.
37981#
37982# As a special exception to the GNU General Public License,
37983# if you distribute this file as part of a program or library that
37984# is built using GNU Libtool, you may include this file under the
37985# same distribution terms that you use for the rest of that program.
37986#
37987# GNU Libtool is distributed in the hope that it will be useful,
37988# but WITHOUT ANY WARRANTY; without even the implied warranty of
37989# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37990# GNU General Public License for more details.
37991#
37992# You should have received a copy of the GNU General Public License
37993# along with GNU Libtool; see the file COPYING. If not, a copy
37994# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37995# obtained by writing to the Free Software Foundation, Inc.,
37996# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37997
37998
37999# The names of the tagged configurations supported by this script.
38000available_tags="CXX "
38001
38002# ### BEGIN LIBTOOL CONFIG
38003
38004# A sed program that does not truncate output.
38005SED=$lt_SED
38006
38007# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38008Xsed="\$SED -e 1s/^X//"
38009
38010# A grep program that handles long lines.
38011GREP=$lt_GREP
38012
38013# An ERE matcher.
38014EGREP=$lt_EGREP
38015
38016# A literal string matcher.
38017FGREP=$lt_FGREP
38018
cristy0c60a692010-11-04 01:09:47 +000038019# Shell to use when invoking shell scripts.
38020SHELL=$lt_SHELL
38021
38022# An echo program that protects backslashes.
38023ECHO=$lt_ECHO
38024
cristy73bd4a52010-10-05 11:24:23 +000038025# Which release of libtool.m4 was used?
38026macro_version=$macro_version
38027macro_revision=$macro_revision
38028
38029# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038030AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038031
38032# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038033DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038034
38035# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038036OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038037
38038# Whether or not to build shared libraries.
38039build_libtool_libs=$enable_shared
38040
38041# Whether or not to build static libraries.
38042build_old_libs=$enable_static
38043
38044# What type of objects to build.
38045pic_mode=$pic_mode
38046
38047# Whether or not to optimize for fast installation.
38048fast_install=$enable_fast_install
38049
cristy99bd5232011-12-07 14:38:20 +000038050# The PATH separator for the build system.
38051PATH_SEPARATOR=$lt_PATH_SEPARATOR
38052
cristy73bd4a52010-10-05 11:24:23 +000038053# The host system.
38054host_alias=$host_alias
38055host=$host
38056host_os=$host_os
38057
38058# The build system.
38059build_alias=$build_alias
38060build=$build
38061build_os=$build_os
38062
38063# A BSD- or MS-compatible name lister.
38064NM=$lt_NM
38065
38066# Whether we need soft or hard links.
38067LN_S=$lt_LN_S
38068
38069# What is the maximum length of a command?
38070max_cmd_len=$max_cmd_len
38071
38072# Object file suffix (normally "o").
38073objext=$ac_objext
38074
38075# Executable file suffix (normally "").
38076exeext=$exeext
38077
38078# whether the shell understands "unset".
38079lt_unset=$lt_unset
38080
38081# turn spaces into newlines.
38082SP2NL=$lt_lt_SP2NL
38083
38084# turn newlines into spaces.
38085NL2SP=$lt_lt_NL2SP
38086
cristyda16f162011-02-19 23:52:17 +000038087# convert \$build file names to \$host format.
38088to_host_file_cmd=$lt_cv_to_host_file_cmd
38089
38090# convert \$build files to toolchain format.
38091to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38092
cristy73bd4a52010-10-05 11:24:23 +000038093# Method to check whether dependent libraries are shared objects.
38094deplibs_check_method=$lt_deplibs_check_method
38095
cristyda16f162011-02-19 23:52:17 +000038096# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038097file_magic_cmd=$lt_file_magic_cmd
38098
cristyda16f162011-02-19 23:52:17 +000038099# How to find potential files when deplibs_check_method = "file_magic".
38100file_magic_glob=$lt_file_magic_glob
38101
38102# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38103want_nocaseglob=$lt_want_nocaseglob
38104
38105# Command to associate shared and link libraries.
38106sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38107
cristy73bd4a52010-10-05 11:24:23 +000038108# The archiver.
38109AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038110
38111# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038112AR_FLAGS=$lt_AR_FLAGS
38113
cristyda16f162011-02-19 23:52:17 +000038114# How to feed a file listing to the archiver.
38115archiver_list_spec=$lt_archiver_list_spec
38116
cristy73bd4a52010-10-05 11:24:23 +000038117# A symbol stripping program.
38118STRIP=$lt_STRIP
38119
38120# Commands used to install an old-style archive.
38121RANLIB=$lt_RANLIB
38122old_postinstall_cmds=$lt_old_postinstall_cmds
38123old_postuninstall_cmds=$lt_old_postuninstall_cmds
38124
cristy0c60a692010-11-04 01:09:47 +000038125# Whether to use a lock for old archive extraction.
38126lock_old_archive_extraction=$lock_old_archive_extraction
38127
cristy73bd4a52010-10-05 11:24:23 +000038128# A C compiler.
38129LTCC=$lt_CC
38130
38131# LTCC compiler flags.
38132LTCFLAGS=$lt_CFLAGS
38133
38134# Take the output of nm and produce a listing of raw symbols and C names.
38135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38136
38137# Transform the output of nm in a proper C declaration.
38138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38139
38140# Transform the output of nm in a C name address pair.
38141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38142
38143# Transform the output of nm in a C name address pair when lib prefix is needed.
38144global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38145
cristyda16f162011-02-19 23:52:17 +000038146# Specify filename containing input files for \$NM.
38147nm_file_list_spec=$lt_nm_file_list_spec
38148
38149# The root where to search for dependent libraries,and in which our libraries should be installed.
38150lt_sysroot=$lt_sysroot
38151
cristy73bd4a52010-10-05 11:24:23 +000038152# The name of the directory that contains temporary libtool files.
38153objdir=$objdir
38154
cristy73bd4a52010-10-05 11:24:23 +000038155# Used to examine libraries when file_magic_cmd begins with "file".
38156MAGIC_CMD=$MAGIC_CMD
38157
38158# Must we lock files when doing compilation?
38159need_locks=$lt_need_locks
38160
cristyda16f162011-02-19 23:52:17 +000038161# Manifest tool.
38162MANIFEST_TOOL=$lt_MANIFEST_TOOL
38163
cristy73bd4a52010-10-05 11:24:23 +000038164# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38165DSYMUTIL=$lt_DSYMUTIL
38166
38167# Tool to change global to local symbols on Mac OS X.
38168NMEDIT=$lt_NMEDIT
38169
38170# Tool to manipulate fat objects and archives on Mac OS X.
38171LIPO=$lt_LIPO
38172
38173# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38174OTOOL=$lt_OTOOL
38175
38176# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38177OTOOL64=$lt_OTOOL64
38178
38179# Old archive suffix (normally "a").
38180libext=$libext
38181
38182# Shared library suffix (normally ".so").
38183shrext_cmds=$lt_shrext_cmds
38184
38185# The commands to extract the exported symbol list from a shared archive.
38186extract_expsyms_cmds=$lt_extract_expsyms_cmds
38187
38188# Variables whose values should be saved in libtool wrapper scripts and
38189# restored at link time.
38190variables_saved_for_relink=$lt_variables_saved_for_relink
38191
38192# Do we need the "lib" prefix for modules?
38193need_lib_prefix=$need_lib_prefix
38194
38195# Do we need a version for libraries?
38196need_version=$need_version
38197
38198# Library versioning type.
38199version_type=$version_type
38200
38201# Shared library runtime path variable.
38202runpath_var=$runpath_var
38203
38204# Shared library path variable.
38205shlibpath_var=$shlibpath_var
38206
38207# Is shlibpath searched before the hard-coded library search path?
38208shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38209
38210# Format of library name prefix.
38211libname_spec=$lt_libname_spec
38212
38213# List of archive names. First name is the real one, the rest are links.
38214# The last name is the one that the linker finds with -lNAME
38215library_names_spec=$lt_library_names_spec
38216
38217# The coded name of the library, if different from the real name.
38218soname_spec=$lt_soname_spec
38219
cristy0c60a692010-11-04 01:09:47 +000038220# Permission mode override for installation of shared libraries.
38221install_override_mode=$lt_install_override_mode
38222
cristy73bd4a52010-10-05 11:24:23 +000038223# Command to use after installation of a shared archive.
38224postinstall_cmds=$lt_postinstall_cmds
38225
38226# Command to use after uninstallation of a shared archive.
38227postuninstall_cmds=$lt_postuninstall_cmds
38228
38229# Commands used to finish a libtool library installation in a directory.
38230finish_cmds=$lt_finish_cmds
38231
38232# As "finish_cmds", except a single script fragment to be evaled but
38233# not shown.
38234finish_eval=$lt_finish_eval
38235
38236# Whether we should hardcode library paths into libraries.
38237hardcode_into_libs=$hardcode_into_libs
38238
38239# Compile-time system search path for libraries.
38240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38241
38242# Run-time system search path for libraries.
38243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38244
38245# Whether dlopen is supported.
38246dlopen_support=$enable_dlopen
38247
38248# Whether dlopen of programs is supported.
38249dlopen_self=$enable_dlopen_self
38250
38251# Whether dlopen of statically linked programs is supported.
38252dlopen_self_static=$enable_dlopen_self_static
38253
38254# Commands to strip libraries.
38255old_striplib=$lt_old_striplib
38256striplib=$lt_striplib
38257
38258
38259# The linker used to build libraries.
38260LD=$lt_LD
38261
cristy0c60a692010-11-04 01:09:47 +000038262# How to create reloadable object files.
38263reload_flag=$lt_reload_flag
38264reload_cmds=$lt_reload_cmds
38265
cristy73bd4a52010-10-05 11:24:23 +000038266# Commands used to build an old-style archive.
38267old_archive_cmds=$lt_old_archive_cmds
38268
38269# A language specific compiler.
38270CC=$lt_compiler
38271
38272# Is the compiler the GNU compiler?
38273with_gcc=$GCC
38274
38275# Compiler flag to turn off builtin functions.
38276no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38277
cristy73bd4a52010-10-05 11:24:23 +000038278# Additional compiler flags for building library objects.
38279pic_flag=$lt_lt_prog_compiler_pic
38280
cristyda16f162011-02-19 23:52:17 +000038281# How to pass a linker flag through the compiler.
38282wl=$lt_lt_prog_compiler_wl
38283
cristy73bd4a52010-10-05 11:24:23 +000038284# Compiler flag to prevent dynamic linking.
38285link_static_flag=$lt_lt_prog_compiler_static
38286
38287# Does compiler simultaneously support -c and -o options?
38288compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38289
38290# Whether or not to add -lc for building shared libraries.
38291build_libtool_need_lc=$archive_cmds_need_lc
38292
38293# Whether or not to disallow shared libs when runtime libs are static.
38294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38295
38296# Compiler flag to allow reflexive dlopens.
38297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38298
38299# Compiler flag to generate shared objects directly from archives.
38300whole_archive_flag_spec=$lt_whole_archive_flag_spec
38301
38302# Whether the compiler copes with passing no objects directly.
38303compiler_needs_object=$lt_compiler_needs_object
38304
38305# Create an old-style archive from a shared archive.
38306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38307
38308# Create a temporary old-style archive to link instead of a shared archive.
38309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38310
38311# Commands used to build a shared archive.
38312archive_cmds=$lt_archive_cmds
38313archive_expsym_cmds=$lt_archive_expsym_cmds
38314
38315# Commands used to build a loadable module if different from building
38316# a shared archive.
38317module_cmds=$lt_module_cmds
38318module_expsym_cmds=$lt_module_expsym_cmds
38319
38320# Whether we are building with GNU ld or not.
38321with_gnu_ld=$lt_with_gnu_ld
38322
38323# Flag that allows shared libraries with undefined symbols to be built.
38324allow_undefined_flag=$lt_allow_undefined_flag
38325
38326# Flag that enforces no undefined symbols.
38327no_undefined_flag=$lt_no_undefined_flag
38328
38329# Flag to hardcode \$libdir into a binary during linking.
38330# This must work even if \$libdir does not exist
38331hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38332
cristy73bd4a52010-10-05 11:24:23 +000038333# Whether we need a single "-rpath" flag with a separated argument.
38334hardcode_libdir_separator=$lt_hardcode_libdir_separator
38335
38336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38337# DIR into the resulting binary.
38338hardcode_direct=$hardcode_direct
38339
38340# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38341# DIR into the resulting binary and the resulting library dependency is
38342# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38343# library is relocated.
38344hardcode_direct_absolute=$hardcode_direct_absolute
38345
38346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38347# into the resulting binary.
38348hardcode_minus_L=$hardcode_minus_L
38349
38350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38351# into the resulting binary.
38352hardcode_shlibpath_var=$hardcode_shlibpath_var
38353
38354# Set to "yes" if building a shared library automatically hardcodes DIR
38355# into the library and all subsequent libraries and executables linked
38356# against it.
38357hardcode_automatic=$hardcode_automatic
38358
38359# Set to yes if linker adds runtime paths of dependent libraries
38360# to runtime path list.
38361inherit_rpath=$inherit_rpath
38362
38363# Whether libtool must link a program against all its dependency libraries.
38364link_all_deplibs=$link_all_deplibs
38365
cristy73bd4a52010-10-05 11:24:23 +000038366# Set to "yes" if exported symbols are required.
38367always_export_symbols=$always_export_symbols
38368
38369# The commands to list exported symbols.
38370export_symbols_cmds=$lt_export_symbols_cmds
38371
38372# Symbols that should not be listed in the preloaded symbols.
38373exclude_expsyms=$lt_exclude_expsyms
38374
38375# Symbols that must always be exported.
38376include_expsyms=$lt_include_expsyms
38377
38378# Commands necessary for linking programs (against libraries) with templates.
38379prelink_cmds=$lt_prelink_cmds
38380
cristyda16f162011-02-19 23:52:17 +000038381# Commands necessary for finishing linking programs.
38382postlink_cmds=$lt_postlink_cmds
38383
cristy73bd4a52010-10-05 11:24:23 +000038384# Specify filename containing input files.
38385file_list_spec=$lt_file_list_spec
38386
38387# How to hardcode a shared library path into an executable.
38388hardcode_action=$hardcode_action
38389
38390# The directories searched by this compiler when creating a shared library.
38391compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38392
38393# Dependencies to place before and after the objects being linked to
38394# create a shared library.
38395predep_objects=$lt_predep_objects
38396postdep_objects=$lt_postdep_objects
38397predeps=$lt_predeps
38398postdeps=$lt_postdeps
38399
38400# The library search path used internally by the compiler when linking
38401# a shared library.
38402compiler_lib_search_path=$lt_compiler_lib_search_path
38403
38404# ### END LIBTOOL CONFIG
38405
38406_LT_EOF
38407
38408 case $host_os in
38409 aix3*)
38410 cat <<\_LT_EOF >> "$cfgfile"
38411# AIX sometimes has problems with the GCC collect2 program. For some
38412# reason, if we set the COLLECT_NAMES environment variable, the problems
38413# vanish in a puff of smoke.
38414if test "X${COLLECT_NAMES+set}" != Xset; then
38415 COLLECT_NAMES=
38416 export COLLECT_NAMES
38417fi
38418_LT_EOF
38419 ;;
38420 esac
38421
38422
38423ltmain="$ac_aux_dir/ltmain.sh"
38424
38425
38426 # We use sed instead of cat because bash on DJGPP gets confused if
38427 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38428 # text mode, it properly converts lines to CR/LF. This bash problem
38429 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038430 sed '$q' "$ltmain" >> "$cfgfile" \
38431 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038432
cristyda16f162011-02-19 23:52:17 +000038433 if test x"$xsi_shell" = xyes; then
38434 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38435func_dirname ()\
38436{\
38437\ case ${1} in\
38438\ */*) func_dirname_result="${1%/*}${2}" ;;\
38439\ * ) func_dirname_result="${3}" ;;\
38440\ esac\
38441} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38442 && mv -f "$cfgfile.tmp" "$cfgfile" \
38443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38444test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038445
38446
cristyda16f162011-02-19 23:52:17 +000038447 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38448func_basename ()\
38449{\
38450\ func_basename_result="${1##*/}"\
38451} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38452 && mv -f "$cfgfile.tmp" "$cfgfile" \
38453 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38454test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038455
38456
cristyda16f162011-02-19 23:52:17 +000038457 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38458func_dirname_and_basename ()\
38459{\
38460\ case ${1} in\
38461\ */*) func_dirname_result="${1%/*}${2}" ;;\
38462\ * ) func_dirname_result="${3}" ;;\
38463\ esac\
38464\ func_basename_result="${1##*/}"\
38465} # Extended-shell func_dirname_and_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000038469
cristyda16f162011-02-19 23:52:17 +000038470
38471 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38472func_stripname ()\
38473{\
38474\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38475\ # positional parameters, so assign one to ordinary parameter first.\
38476\ func_stripname_result=${3}\
38477\ func_stripname_result=${func_stripname_result#"${1}"}\
38478\ func_stripname_result=${func_stripname_result%"${2}"}\
38479} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38480 && mv -f "$cfgfile.tmp" "$cfgfile" \
38481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38482test 0 -eq $? || _lt_function_replace_fail=:
38483
38484
38485 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38486func_split_long_opt ()\
38487{\
38488\ func_split_long_opt_name=${1%%=*}\
38489\ func_split_long_opt_arg=${1#*=}\
38490} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38491 && mv -f "$cfgfile.tmp" "$cfgfile" \
38492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38493test 0 -eq $? || _lt_function_replace_fail=:
38494
38495
38496 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38497func_split_short_opt ()\
38498{\
38499\ func_split_short_opt_arg=${1#??}\
38500\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38501} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38502 && mv -f "$cfgfile.tmp" "$cfgfile" \
38503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38504test 0 -eq $? || _lt_function_replace_fail=:
38505
38506
38507 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38508func_lo2o ()\
38509{\
38510\ case ${1} in\
38511\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38512\ *) func_lo2o_result=${1} ;;\
38513\ esac\
38514} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38515 && mv -f "$cfgfile.tmp" "$cfgfile" \
38516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38517test 0 -eq $? || _lt_function_replace_fail=:
38518
38519
38520 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38521func_xform ()\
38522{\
38523 func_xform_result=${1%.*}.lo\
38524} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38525 && mv -f "$cfgfile.tmp" "$cfgfile" \
38526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38527test 0 -eq $? || _lt_function_replace_fail=:
38528
38529
38530 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38531func_arith ()\
38532{\
38533 func_arith_result=$(( $* ))\
38534} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38535 && mv -f "$cfgfile.tmp" "$cfgfile" \
38536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38537test 0 -eq $? || _lt_function_replace_fail=:
38538
38539
38540 sed -e '/^func_len ()$/,/^} # func_len /c\
38541func_len ()\
38542{\
38543 func_len_result=${#1}\
38544} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38545 && mv -f "$cfgfile.tmp" "$cfgfile" \
38546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38547test 0 -eq $? || _lt_function_replace_fail=:
38548
38549fi
38550
38551if test x"$lt_shell_append" = xyes; then
38552 sed -e '/^func_append ()$/,/^} # func_append /c\
38553func_append ()\
38554{\
38555 eval "${1}+=\\${2}"\
38556} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38557 && mv -f "$cfgfile.tmp" "$cfgfile" \
38558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38559test 0 -eq $? || _lt_function_replace_fail=:
38560
38561
38562 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38563func_append_quoted ()\
38564{\
38565\ func_quote_for_eval "${2}"\
38566\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38567} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38568 && mv -f "$cfgfile.tmp" "$cfgfile" \
38569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38570test 0 -eq $? || _lt_function_replace_fail=:
38571
38572
38573 # Save a `func_append' function call where possible by direct use of '+='
38574 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38575 && mv -f "$cfgfile.tmp" "$cfgfile" \
38576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38577 test 0 -eq $? || _lt_function_replace_fail=:
38578else
38579 # Save a `func_append' function call even when '+=' is not available
38580 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38581 && mv -f "$cfgfile.tmp" "$cfgfile" \
38582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38583 test 0 -eq $? || _lt_function_replace_fail=:
38584fi
38585
38586if test x"$_lt_function_replace_fail" = x":"; then
38587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38588$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38589fi
38590
38591
38592 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038593 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38594 chmod +x "$ofile"
38595
38596
38597 cat <<_LT_EOF >> "$ofile"
38598
38599# ### BEGIN LIBTOOL TAG CONFIG: CXX
38600
38601# The linker used to build libraries.
38602LD=$lt_LD_CXX
38603
cristy0c60a692010-11-04 01:09:47 +000038604# How to create reloadable object files.
38605reload_flag=$lt_reload_flag_CXX
38606reload_cmds=$lt_reload_cmds_CXX
38607
cristy73bd4a52010-10-05 11:24:23 +000038608# Commands used to build an old-style archive.
38609old_archive_cmds=$lt_old_archive_cmds_CXX
38610
38611# A language specific compiler.
38612CC=$lt_compiler_CXX
38613
38614# Is the compiler the GNU compiler?
38615with_gcc=$GCC_CXX
38616
38617# Compiler flag to turn off builtin functions.
38618no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38619
cristy73bd4a52010-10-05 11:24:23 +000038620# Additional compiler flags for building library objects.
38621pic_flag=$lt_lt_prog_compiler_pic_CXX
38622
cristyda16f162011-02-19 23:52:17 +000038623# How to pass a linker flag through the compiler.
38624wl=$lt_lt_prog_compiler_wl_CXX
38625
cristy73bd4a52010-10-05 11:24:23 +000038626# Compiler flag to prevent dynamic linking.
38627link_static_flag=$lt_lt_prog_compiler_static_CXX
38628
38629# Does compiler simultaneously support -c and -o options?
38630compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38631
38632# Whether or not to add -lc for building shared libraries.
38633build_libtool_need_lc=$archive_cmds_need_lc_CXX
38634
38635# Whether or not to disallow shared libs when runtime libs are static.
38636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38637
38638# Compiler flag to allow reflexive dlopens.
38639export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38640
38641# Compiler flag to generate shared objects directly from archives.
38642whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38643
38644# Whether the compiler copes with passing no objects directly.
38645compiler_needs_object=$lt_compiler_needs_object_CXX
38646
38647# Create an old-style archive from a shared archive.
38648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38649
38650# Create a temporary old-style archive to link instead of a shared archive.
38651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38652
38653# Commands used to build a shared archive.
38654archive_cmds=$lt_archive_cmds_CXX
38655archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38656
38657# Commands used to build a loadable module if different from building
38658# a shared archive.
38659module_cmds=$lt_module_cmds_CXX
38660module_expsym_cmds=$lt_module_expsym_cmds_CXX
38661
38662# Whether we are building with GNU ld or not.
38663with_gnu_ld=$lt_with_gnu_ld_CXX
38664
38665# Flag that allows shared libraries with undefined symbols to be built.
38666allow_undefined_flag=$lt_allow_undefined_flag_CXX
38667
38668# Flag that enforces no undefined symbols.
38669no_undefined_flag=$lt_no_undefined_flag_CXX
38670
38671# Flag to hardcode \$libdir into a binary during linking.
38672# This must work even if \$libdir does not exist
38673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38674
cristy73bd4a52010-10-05 11:24:23 +000038675# Whether we need a single "-rpath" flag with a separated argument.
38676hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38677
38678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38679# DIR into the resulting binary.
38680hardcode_direct=$hardcode_direct_CXX
38681
38682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38683# DIR into the resulting binary and the resulting library dependency is
38684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38685# library is relocated.
38686hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38687
38688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38689# into the resulting binary.
38690hardcode_minus_L=$hardcode_minus_L_CXX
38691
38692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38693# into the resulting binary.
38694hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38695
38696# Set to "yes" if building a shared library automatically hardcodes DIR
38697# into the library and all subsequent libraries and executables linked
38698# against it.
38699hardcode_automatic=$hardcode_automatic_CXX
38700
38701# Set to yes if linker adds runtime paths of dependent libraries
38702# to runtime path list.
38703inherit_rpath=$inherit_rpath_CXX
38704
38705# Whether libtool must link a program against all its dependency libraries.
38706link_all_deplibs=$link_all_deplibs_CXX
38707
cristy73bd4a52010-10-05 11:24:23 +000038708# Set to "yes" if exported symbols are required.
38709always_export_symbols=$always_export_symbols_CXX
38710
38711# The commands to list exported symbols.
38712export_symbols_cmds=$lt_export_symbols_cmds_CXX
38713
38714# Symbols that should not be listed in the preloaded symbols.
38715exclude_expsyms=$lt_exclude_expsyms_CXX
38716
38717# Symbols that must always be exported.
38718include_expsyms=$lt_include_expsyms_CXX
38719
38720# Commands necessary for linking programs (against libraries) with templates.
38721prelink_cmds=$lt_prelink_cmds_CXX
38722
cristyda16f162011-02-19 23:52:17 +000038723# Commands necessary for finishing linking programs.
38724postlink_cmds=$lt_postlink_cmds_CXX
38725
cristy73bd4a52010-10-05 11:24:23 +000038726# Specify filename containing input files.
38727file_list_spec=$lt_file_list_spec_CXX
38728
38729# How to hardcode a shared library path into an executable.
38730hardcode_action=$hardcode_action_CXX
38731
38732# The directories searched by this compiler when creating a shared library.
38733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38734
38735# Dependencies to place before and after the objects being linked to
38736# create a shared library.
38737predep_objects=$lt_predep_objects_CXX
38738postdep_objects=$lt_postdep_objects_CXX
38739predeps=$lt_predeps_CXX
38740postdeps=$lt_postdeps_CXX
38741
38742# The library search path used internally by the compiler when linking
38743# a shared library.
38744compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38745
38746# ### END LIBTOOL TAG CONFIG: CXX
38747_LT_EOF
38748
38749 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038750 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038751 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038752 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038753 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38754 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38755
38756 esac
38757done # for ac_tag
38758
38759
cristy8b350f62009-11-15 23:12:43 +000038760as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038761_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038762ac_clean_files=$ac_clean_files_save
38763
38764test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038766
38767
38768# configure is writing to config.log, and then calls config.status.
38769# config.status does its own redirection, appending to config.log.
38770# Unfortunately, on DOS this fails, as config.log is still kept open
38771# by configure, so config.status won't be able to write to it; its
38772# output is simply discarded. So we exec the FD to /dev/null,
38773# effectively closing config.log, so it can be properly (re)opened and
38774# appended to by config.status. When coming back to configure, we
38775# need to make the FD available again.
38776if test "$no_create" != yes; then
38777 ac_cs_success=:
38778 ac_config_status_args=
38779 test "$silent" = yes &&
38780 ac_config_status_args="$ac_config_status_args --quiet"
38781 exec 5>/dev/null
38782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38783 exec 5>>config.log
38784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38785 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038786 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038787fi
38788if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038790$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38791fi
38792
38793
38794rm -f magick-version
38795
cristy430a7312010-01-21 20:44:04 +000038796result_dejavu_font_dir='none'
38797if test "${dejavu_font_dir}x" != 'x'; then
38798 result_dejavu_font_dir=$dejavu_font_dir
38799fi
38800
cristy3ed852e2009-09-05 21:47:34 +000038801result_ghostscript_font_dir='none'
38802if test "${ghostscript_font_dir}x" != 'x'; then
38803 result_ghostscript_font_dir=$ghostscript_font_dir
38804fi
38805
38806result_windows_font_dir='none'
38807if test "${windows_font_dir}x" != 'x'; then
38808 result_windows_font_dir=${windows_font_dir}
38809fi
38810
cristyad38abe2012-12-23 23:03:21 +000038811{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038812ImageMagick is configured as follows. Please verify that this configuration
38813matches your expectations.
38814
38815Host system type: $host
38816Build system type: $build
38817
38818 Option Value
38819-------------------------------------------------------------------------------
38820Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38821Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038822Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038823GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38824Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38825High Dynamic Range Imagery
38826 --enable-hdri=$enable_hdri $enable_hdri
38827
38828Delegate Configuration:
38829BZLIB --with-bzlib=$with_bzlib $have_bzlib
38830Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038831Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038832DJVU --with-djvu=$with_djvu $have_djvu
38833DPS --with-dps=$with_dps $have_dps
38834FFTW --with-fftw=$with_fftw $have_fftw
38835FlashPIX --with-fpx=$with_fpx $have_fpx
38836FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38837FreeType --with-freetype=$with_freetype $have_freetype
38838GhostPCL None $PCLDelegate ($PCLVersion)
38839GhostXPS None $XPSDelegate ($XPSVersion)
38840Ghostscript None $PSDelegate ($GSVersion)
38841Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38842Ghostscript lib --with-gslib=$with_gslib $have_gslib
38843Graphviz --with-gvc=$with_gvc $have_gvc
38844JBIG --with-jbig=$with_jbig $have_jbig
38845JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38846JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038847LCMS v1 --with-lcms=$with_lcms $have_lcms
38848LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038849LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038850LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038851LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038852Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38853OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038854PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038855PERL --with-perl=$with_perl $have_perl
38856PNG --with-png=$with_png $have_png
38857RSVG --with-rsvg=$with_rsvg $have_rsvg
38858TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038859WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038860Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038861WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038862X11 --with-x=$with_x $have_x
38863XML --with-xml=$with_xml $have_xml
38864ZLIB --with-zlib=$with_zlib $have_zlib
38865
38866X11 Configuration:
38867 X_CFLAGS = $X_CFLAGS
38868 X_PRE_LIBS = $X_PRE_LIBS
38869 X_LIBS = $X_LIBS
38870 X_EXTRA_LIBS = $X_EXTRA_LIBS
38871
38872Options used to compile and link:
38873 PREFIX = $PREFIX_DIR
38874 EXEC-PREFIX = $EXEC_PREFIX_DIR
38875 VERSION = $PACKAGE_VERSION
38876 CC = $CC
38877 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038878 CPPFLAGS = $MAGICK_CPPFLAGS
38879 PCFLAGS = $MAGICK_PCFLAGS
38880 DEFS = $DEFS
38881 LDFLAGS = $LDFLAGS
38882 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38883 LIBS = $MAGICK_LIBS
38884 CXX = $CXX
38885 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038886 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038887 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038888" >&5
cristyad38abe2012-12-23 23:03:21 +000038889$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038890ImageMagick is configured as follows. Please verify that this configuration
38891matches your expectations.
38892
38893Host system type: $host
38894Build system type: $build
38895
38896 Option Value
38897-------------------------------------------------------------------------------
38898Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38899Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038900Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038901GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38902Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38903High Dynamic Range Imagery
38904 --enable-hdri=$enable_hdri $enable_hdri
38905
38906Delegate Configuration:
38907BZLIB --with-bzlib=$with_bzlib $have_bzlib
38908Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038909Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038910DJVU --with-djvu=$with_djvu $have_djvu
38911DPS --with-dps=$with_dps $have_dps
38912FFTW --with-fftw=$with_fftw $have_fftw
38913FlashPIX --with-fpx=$with_fpx $have_fpx
38914FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38915FreeType --with-freetype=$with_freetype $have_freetype
38916GhostPCL None $PCLDelegate ($PCLVersion)
38917GhostXPS None $XPSDelegate ($XPSVersion)
38918Ghostscript None $PSDelegate ($GSVersion)
38919Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38920Ghostscript lib --with-gslib=$with_gslib $have_gslib
38921Graphviz --with-gvc=$with_gvc $have_gvc
38922JBIG --with-jbig=$with_jbig $have_jbig
38923JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38924JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038925LCMS v1 --with-lcms=$with_lcms $have_lcms
38926LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038927LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038928LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038929LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038930Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38931OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038932PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038933PERL --with-perl=$with_perl $have_perl
38934PNG --with-png=$with_png $have_png
38935RSVG --with-rsvg=$with_rsvg $have_rsvg
38936TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038937WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038938Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038939WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038940X11 --with-x=$with_x $have_x
38941XML --with-xml=$with_xml $have_xml
38942ZLIB --with-zlib=$with_zlib $have_zlib
38943
38944X11 Configuration:
38945 X_CFLAGS = $X_CFLAGS
38946 X_PRE_LIBS = $X_PRE_LIBS
38947 X_LIBS = $X_LIBS
38948 X_EXTRA_LIBS = $X_EXTRA_LIBS
38949
38950Options used to compile and link:
38951 PREFIX = $PREFIX_DIR
38952 EXEC-PREFIX = $EXEC_PREFIX_DIR
38953 VERSION = $PACKAGE_VERSION
38954 CC = $CC
38955 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038956 CPPFLAGS = $MAGICK_CPPFLAGS
38957 PCFLAGS = $MAGICK_PCFLAGS
38958 DEFS = $DEFS
38959 LDFLAGS = $LDFLAGS
38960 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38961 LIBS = $MAGICK_LIBS
38962 CXX = $CXX
38963 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038964 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038965 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038966" >&6; }